From 0321faa7f6d98d155b325394d3ab1b597beab0b8 Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Wed, 28 Feb 2024 16:32:21 -0800 Subject: [PATCH 01/20] Add employee daily history model, update surrogate key on employee overview --- CHANGELOG.md | 13 +++ dbt_project.yml | 6 +- .../int_workday__worker_employee_enhanced.sql | 96 +++++++++++++++++ .../int_workday__worker_position_enriched.sql | 34 +++--- .../int_workday__employee_history.sql | 81 ++++++++++++++ .../stg_workday__worker_history.sql | 42 ++++++++ .../stg_workday__worker_position_history.sql | 43 ++++++++ models/workday.yml | 2 + models/workday__employee_overview.sql | 101 ++---------------- .../workday__employee_daily_history.sql | 81 ++++++++++++++ 10 files changed, 388 insertions(+), 111 deletions(-) create mode 100644 models/intermediate/int_workday__worker_employee_enhanced.sql create mode 100644 models/intermediate/workday_history/int_workday__employee_history.sql create mode 100644 models/staging/workday_history/stg_workday__worker_history.sql create mode 100644 models/staging/workday_history/stg_workday__worker_position_history.sql create mode 100644 models/workday_history/workday__employee_daily_history.sql diff --git a/CHANGELOG.md b/CHANGELOG.md index 1004613..39cbddd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,16 @@ +# dbt_workday v0.2.0 + +## 🚨 Breaking Changes 🚨 +- Created a surrogate key `employee_id` in `workday__employee_overview` that combines `worker_id`, `position_id`, and `start_date`. This accounts for cases where: + - A worker can hold multiple positions concurrently. + - A position being held by multiple workers concurrently. + - A worker being rehired for the same position. + +## 🚀 Feature Updates 🚀 +- We have added an employee daily history model in the [`models/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/workday_history) folder [based off of Fivetran's history mode feature](https://fivetran.com/docs/core-concepts/sync-modes/history-mode), pulling from Workday HCM source models you can view in the [`models/staging/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/staging/workday_history) folder. + +This will allow customers to utilize the Fivetran history mode feature, which records every version of each record in the source table from the moment this mode is activated in the equivalent tables. + # dbt_workday v0.1.1 [PR #4](https://github.com/fivetran/dbt_workday/pull/4) contains the following updates: diff --git a/dbt_project.yml b/dbt_project.yml index c64113d..c20b2ea 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,6 +1,6 @@ config-version: 2 name: 'workday' -version: '0.1.1' +version: '0.1.0' require-dbt-version: [">=1.3.0", "<2.0.0"] models: @@ -8,7 +8,7 @@ models: +schema: workday +materialized: table intermediate: - +materialized: ephemeral + +materialized: table staging: +materialized: view +schema: stg_workday @@ -34,4 +34,4 @@ vars: person_contact_email_address: "{{ source('workday','person_contact_email_address') }}" worker_position_history: "{{ source('workday','worker_position_history') }}" worker_leave_status: "{{ source('workday','worker_leave_status') }}" - worker_position_organization_history: "{{ source('workday','worker_position_organization_history') }}" \ No newline at end of file + worker_position_organization_history: "{{ source('workday','worker_position_organization_history') }}" \ No newline at end of file diff --git a/models/intermediate/int_workday__worker_employee_enhanced.sql b/models/intermediate/int_workday__worker_employee_enhanced.sql new file mode 100644 index 0000000..3a89e6e --- /dev/null +++ b/models/intermediate/int_workday__worker_employee_enhanced.sql @@ -0,0 +1,96 @@ +with int_worker_base as ( + + select * + from {{ ref('int_workday__worker_details') }} +), + +int_worker_personal_details as ( + + select * + from {{ ref('int_workday__personal_details') }} +), + + +int_worker_position_enriched as ( + + select * + from {{ ref('int_workday__worker_position_enriched') }} +), + +worker_employee_enhanced as ( + + select + int_worker_base.*, + first_name, + last_name, + date_of_birth, + gender, + is_hispanic_or_latino, + email_address, + ethnicity_codes, + military_status, + position_id, + business_title, + job_profile_id, + employee_type, + position_location, + management_level_code, + fte_percent, + days_at_position, + position_start_date, + position_end_date, + position_effective_date, + worker_positions, + worker_levels, + position_days, + case when days_of_employment >= 365 + then true + else false + end as is_employed_one_year, + case when days_of_employment >= 365*5 + then true + else false + end as is_employed_five_years, + case when days_of_employment >= 365*10 + then true + else false + end as is_employed_ten_years, + case when days_of_employment >= 365*20 + then true + else false + end as is_employed_twenty_years, + case when days_of_employment >= 365*30 + then true + else false + end as is_employed_thirty_years, + case when days_of_employment >= 365 and is_user_active + then true + else false + end as is_current_employee_one_year, + case when days_of_employment >= 365*5 and is_user_active + then true + else false + end as is_current_employee_five_years, + case when days_of_employment >= 365*10 and is_user_active + then true + else false + end as is_current_employee_ten_years, + case when days_of_employment >= 365*20 and is_user_active + then true + else false + end as is_current_employee_twenty_years, + case when days_of_employment >= 365*30 and is_user_active + then true + else false + end as is_current_employee_thirty_years + from int_worker_base + left join int_worker_personal_details + on int_worker_base.worker_id = int_worker_personal_details.worker_id + and int_worker_base.source_relation = int_worker_personal_details.source_relation + left join int_worker_position_enriched + on int_worker_base.worker_id = int_worker_position_enriched.worker_id + and int_worker_base.source_relation = int_worker_position_enriched.source_relation +) + +select * +from worker_employee_enhanced \ No newline at end of file diff --git a/models/intermediate/int_workday__worker_position_enriched.sql b/models/intermediate/int_workday__worker_position_enriched.sql index dcc672c..ce8bc5a 100644 --- a/models/intermediate/int_workday__worker_position_enriched.sql +++ b/models/intermediate/int_workday__worker_position_enriched.sql @@ -51,26 +51,28 @@ most_recent_position as ( worker_position_enriched as ( select - most_recent_position.worker_id, - most_recent_position.source_relation, - most_recent_position.position_id, - most_recent_position.business_title, - most_recent_position.job_profile_id, - most_recent_position.employee_type as most_recent_position_type, - most_recent_position.position_location as most_recent_location, - most_recent_position.management_level_code as most_recent_level, - most_recent_position.fte_percent, - most_recent_position.days_at_position, - most_recent_position.position_start_date as most_recent_position_start_date, - most_recent_position.position_end_date as most_recent_position_end_date, - most_recent_position.position_effective_date as most_recent_position_effective_date, + {{ dbt_utils.generate_surrogate_key(['worker_position_data_enhanced.worker_id', + 'position_id', 'position_start_date']) }} as employee_id, + worker_position_data_enhanced.worker_id, + worker_position_data_enhanced.source_relation, + worker_position_data_enhanced.position_id, + worker_position_data_enhanced.business_title, + worker_position_data_enhanced.job_profile_id, + worker_position_data_enhanced.employee_type, + worker_position_data_enhanced.position_location, + worker_position_data_enhanced.management_level_code, + worker_position_data_enhanced.fte_percent, + worker_position_data_enhanced.days_at_position, + worker_position_data_enhanced.position_start_date, + worker_position_data_enhanced.position_end_date, + worker_position_data_enhanced.position_effective_date, worker_position_measures.worker_positions, worker_position_measures.worker_levels, worker_position_measures.position_days - from most_recent_position + from worker_position_data_enhanced left join worker_position_measures - on most_recent_position.worker_id = worker_position_measures.worker_id - and most_recent_position.source_relation = worker_position_measures.source_relation + on worker_position_data_enhanced.worker_id = worker_position_measures.worker_id + and worker_position_data_enhanced.source_relation = worker_position_measures.source_relation ) select * diff --git a/models/intermediate/workday_history/int_workday__employee_history.sql b/models/intermediate/workday_history/int_workday__employee_history.sql new file mode 100644 index 0000000..a2bf3e2 --- /dev/null +++ b/models/intermediate/workday_history/int_workday__employee_history.sql @@ -0,0 +1,81 @@ +with worker_history as ( + + select * + from {{ ref('stg_workday__worker_history') }} +), + +worker_position_history as ( + + select * + from {{ ref('stg_workday__worker_position_history') }} +), + +worker_start_records as ( + + select worker_id, + _fivetran_start, + from worker_history + union distinct + select worker_id, + _fivetran_start + from worker_position_history + order by worker_id, _fivetran_start +), + +worker_history_end_values as ( + + select *, + lead({{ dbt.dateadd('microsecond', -1, '_fivetran_start') }} ) over(partition by worker_id order by _fivetran_start) as eventual_fivetran_end + from worker_start_records +), + +worker_history_scd as ( + + select *, + coalesce(cast(eventual_fivetran_end as {{ dbt.type_timestamp() }}), + cast('9999-12-31 23:59:59.999000' as {{ dbt.type_timestamp() }})) as _fivetran_end + from worker_history_end_values + order by worker_id, _fivetran_start, _fivetran_end +), + +employee_history_scd as ( + + select worker_history_scd.worker_id, + worker_position_history.position_id, + worker_history_scd._fivetran_start, + worker_history_scd._fivetran_end, + worker_history._fivetran_active as wh_active, + worker_position_history._fivetran_active as wph_active, + worker_history.end_employment_date as wh_end_employment_date, + worker_position_history.end_employment_date as wph_end_employment_date, + worker_history.pay_through_date as wh_pay_through_date, + worker_position_history.pay_through_date as wph_pay_through_date, + {{ dbt_utils.star(from=ref('stg_workday__worker_history'), except=["worker_id", "_fivetran_start", "_fivetran_end", "_fivetran_synced", "_fivetran_active", "_fivetran_date", "history_unique_key", "end_employment_date", "pay_through_date"]) }}, + {{ dbt_utils.star(from=ref('stg_workday__worker_position_history'), except=["worker_id", "position_id", "_fivetran_start", "_fivetran_end", "_fivetran_synced", "_fivetran_active", "_fivetran_date", "history_unique_key", "end_employment_date", "pay_through_date"])}} + from worker_history_scd + + left join worker_history + on worker_history_scd.worker_id = worker_history.worker_id + and worker_history_scd._fivetran_start <= worker_history._fivetran_end + and worker_history_scd._fivetran_end >= worker_history._fivetran_start + + left join worker_position_history + on worker_history_scd.worker_id = worker_position_history.worker_id + and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end + and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start + + order by worker_id, _fivetran_start, _fivetran_end +), + +employee_key as ( + + select {{ dbt_utils.generate_surrogate_key(['worker_id','position_id','start_date']) }} as employee_id, + cast(_fivetran_start as date) as _fivetran_date, + employee_history_scd.* + from employee_history_scd +) + +select * +from employee_key + + diff --git a/models/staging/workday_history/stg_workday__worker_history.sql b/models/staging/workday_history/stg_workday__worker_history.sql new file mode 100644 index 0000000..4a41a64 --- /dev/null +++ b/models/staging/workday_history/stg_workday__worker_history.sql @@ -0,0 +1,42 @@ +{{ config( + enabled= var('worker_history_enabled', False), + materialized='incremental', + unique_key='history_unique_key', + incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'spark', 'databricks') else 'delete+insert', + partition_by={ + "field": "_fivetran_date", + "data_type": "date" + } if target.type not in ('spark','databricks') else ['_fivetran_date'], + file_format='parquet', + on_schema_change='fail' + ) +}} + +with base as ( + + select * + from {{ source('workday','worker_history') }} + {% if is_incremental() %} + where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= (select max(cast((_fivetran_start) as {{ dbt.type_timestamp() }})) from {{ this }} ) + {% else %} + {% if var('worker_history_start_date',[]) %} + where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('worker_history_start_date') }}" + {% endif %} + {% endif %} +), + +final as ( + + select + id as worker_id, + cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, + cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, + cast(_fivetran_start as date) as _fivetran_date, + {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key, + {{ dbt_utils.star(from=source('workday','worker_history'), + except=["id", "_fivetran_start", "_fivetran_end", "home_country"]) }} + from base +) + +select * +from final \ No newline at end of file diff --git a/models/staging/workday_history/stg_workday__worker_position_history.sql b/models/staging/workday_history/stg_workday__worker_position_history.sql new file mode 100644 index 0000000..1fdbbf5 --- /dev/null +++ b/models/staging/workday_history/stg_workday__worker_position_history.sql @@ -0,0 +1,43 @@ +{{ config( + enabled= var('worker_position_history_enabled', False), + materialized='incremental', + unique_key='history_unique_key', + incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'spark', 'databricks') else 'delete+insert', + partition_by={ + "field": "_fivetran_date", + "data_type": "date" + } if target.type not in ('spark','databricks') else ['_fivetran_date'], + file_format='parquet', + on_schema_change='fail' + ) +}} + +with base as ( + + select * + from {{ source('workday','worker_position_history') }} + {% if is_incremental() %} + where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= (select max(cast((_fivetran_start) as {{ dbt.type_timestamp() }})) from {{ this }} ) + {% else %} + {% if var('worker_position_history_enabled',[]) %} + where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('worker_position_history_start_date') }}" + {% endif %} + {% endif %} +), + +final as ( + + select + worker_id, + position_id, + cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, + cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, + cast(_fivetran_start as date) as _fivetran_date, + {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', '_fivetran_start']) }} as history_unique_key, + {{ dbt_utils.star(from=source('workday','worker_position_history'), + except=["worker_id", "position_id", "_fivetran_start", "_fivetran_end", "home_country"]) }} + from base +) + +select * +from final \ No newline at end of file diff --git a/models/workday.yml b/models/workday.yml index 7fb7ac8..6180282 100644 --- a/models/workday.yml +++ b/models/workday.yml @@ -8,6 +8,8 @@ models: combination_of_columns: - source_relation - worker_id + - position_id + - position_start_date columns: - name: worker_id diff --git a/models/workday__employee_overview.sql b/models/workday__employee_overview.sql index 276d8d4..0078972 100644 --- a/models/workday__employee_overview.sql +++ b/models/workday__employee_overview.sql @@ -1,96 +1,13 @@ -with int_worker_base as ( - - select * - from {{ ref('int_workday__worker_details') }} -), - -int_worker_personal_details as ( - - select * - from {{ ref('int_workday__personal_details') }} -), - - -int_worker_position_enriched as ( - - select * - from {{ ref('int_workday__worker_position_enriched') }} -), - -worker_employee_enhanced as ( - +with employee_surrogate_key as ( + select - int_worker_base.*, - first_name, - last_name, - date_of_birth, - gender, - is_hispanic_or_latino, - email_address, - ethnicity_codes, - military_status, + {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'position_start_date']) }} as employee_id, + worker_id, position_id, - business_title, - job_profile_id, - most_recent_position_type, - most_recent_location, - most_recent_level, - fte_percent, - days_at_position, - most_recent_position_start_date, - most_recent_position_end_date, - most_recent_position_effective_date, - worker_positions, - worker_levels, - position_days, - case when days_of_employment >= 365 - then true - else false - end as is_employed_one_year, - case when days_of_employment >= 365*5 - then true - else false - end as is_employed_five_years, - case when days_of_employment >= 365*10 - then true - else false - end as is_employed_ten_years, - case when days_of_employment >= 365*20 - then true - else false - end as is_employed_twenty_years, - case when days_of_employment >= 365*30 - then true - else false - end as is_employed_thirty_years, - case when days_of_employment >= 365 and is_user_active - then true - else false - end as is_current_employee_one_year, - case when days_of_employment >= 365*5 and is_user_active - then true - else false - end as is_current_employee_five_years, - case when days_of_employment >= 365*10 and is_user_active - then true - else false - end as is_current_employee_ten_years, - case when days_of_employment >= 365*20 and is_user_active - then true - else false - end as is_current_employee_twenty_years, - case when days_of_employment >= 365*30 and is_user_active - then true - else false - end as is_current_employee_thirty_years - from int_worker_base - left join int_worker_personal_details - on int_worker_base.worker_id = int_worker_personal_details.worker_id - and int_worker_base.source_relation = int_worker_personal_details.source_relation - left join int_worker_position_enriched - on int_worker_base.worker_id = int_worker_position_enriched.worker_id - and int_worker_base.source_relation = int_worker_position_enriched.source_relation + position_start_date, + {{ dbt_utils.star(from=ref('int_workday__worker_employee_enhanced'), except=['worker_id', 'position_id', 'position_start_date']) }} + from {{ ref('int_workday__worker_employee_enhanced') }} ) -select * -from worker_employee_enhanced +select * +from employee_surrogate_key \ No newline at end of file diff --git a/models/workday_history/workday__employee_daily_history.sql b/models/workday_history/workday__employee_daily_history.sql new file mode 100644 index 0000000..e6646ff --- /dev/null +++ b/models/workday_history/workday__employee_daily_history.sql @@ -0,0 +1,81 @@ +{{ + config( + enabled = var('worker_history_enabled', False), + materialized = 'incremental', + partition_by = { + 'field': 'date_day', + 'data_type': 'date' + } if target.type not in ['spark', 'databricks'] else ['date_day'], + unique_key = 'employee_day_id', + incremental_strategy = 'insert_overwrite' if target.type in ('bigquery', 'spark', 'databricks') else 'delete+insert', + file_format = 'parquet', + on_schema_change = 'fail' + ) +}} + +{% if execute %} + {% set date_query %} + select + {{ dbt.date_trunc('day', dbt.current_timestamp_backcompat()) }} as max_date + {% endset %} + + {% set last_date = run_query(date_query).columns[0][0]|string %} + + {# If only compiling, creates range going back 1 year #} + {% else %} + {% set last_date = dbt.dateadd("year", "-1", "current_date") %} + {% endif %} + + +with spine as ( + {# Prioritizes variables over calculated dates #} + {% set first_date = var('worker_history_start_date', '2020-01-01')|string %} + {% set last_date = last_date|string %} + + {{ dbt_utils.date_spine( + datepart="day", + start_date = "cast('" ~ first_date[0:10] ~ "'as date)", + end_date = "cast('" ~ last_date[0:10] ~ "'as date)" + ) + }} +), + +employee_history as ( + + select * + from {{ ref('int_workday__employee_history') }} + {% if is_incremental() %} + where _fivetran_start >= (select max(cast((_fivetran_start) as {{ dbt.type_timestamp() }})) from {{ this }} ) + {% endif %} +), + +order_daily_values as ( + + select + *, + row_number() over ( + partition by _fivetran_date, worker_id + order by _fivetran_start desc) as row_num + from employee_history +), + +get_latest_daily_value as ( + + select * + from order_daily_values + where row_num = 1 +), + +daily_history as ( + + select + {{ dbt_utils.generate_surrogate_key(['spine.date_day','get_latest_daily_value.employee_id']) }} as employee_day_id, + cast(spine.date_day as date) as date_day, + get_latest_daily_value.* + from get_latest_daily_value + join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }}) + and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }}) +) + +select * +from daily_history \ No newline at end of file From 1a903057d0d6143dc025a05d8c1f67512db67a1e Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Wed, 6 Mar 2024 15:26:15 -0800 Subject: [PATCH 02/20] Workday history upgrades --- .buildkite/scripts/run_models.sh | 2 + dbt_project.yml | 4 +- integration_tests/dbt_project.yml | 2 +- models/docs.md | 2 + .../int_workday__employee_history.sql | 18 +- ..._workday__personal_information_history.sql | 24 + .../stg_workday__worker_history.sql | 22 +- .../stg_workday__worker_position_history.sql | 20 +- ...__worker_position_organization_history.sql | 26 + .../workday_history/stg_workday_history.yml | 706 ++++++++++++++++++ .../workday__employee_daily_history.sql | 17 +- .../workday__monthly_summary.sql | 72 ++ models/workday_history/workday_history.yml | 0 13 files changed, 857 insertions(+), 58 deletions(-) create mode 100644 models/staging/workday_history/stg_workday__personal_information_history.sql create mode 100644 models/staging/workday_history/stg_workday__worker_position_organization_history.sql create mode 100644 models/staging/workday_history/stg_workday_history.yml create mode 100644 models/workday_history/workday__monthly_summary.sql create mode 100644 models/workday_history/workday_history.yml diff --git a/.buildkite/scripts/run_models.sh b/.buildkite/scripts/run_models.sh index f7fed30..90b3da3 100644 --- a/.buildkite/scripts/run_models.sh +++ b/.buildkite/scripts/run_models.sh @@ -19,6 +19,8 @@ dbt deps dbt seed --target "$db" --full-refresh dbt run --target "$db" --full-refresh dbt test --target "$db" +dbt run --vars '{personal_information_history_start_date: "2023-01-01", worker_position_history_start_date: "2023-01-01", worker_history_start_date: "2023-01-01", worker_position_organization_history_start_date: "2023-01-01"}' --target "$db" --full-refresh +dbt test --target "$db" dbt run --target "$db" dbt test --target "$db" diff --git a/dbt_project.yml b/dbt_project.yml index c20b2ea..0beabc4 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,6 +1,6 @@ config-version: 2 name: 'workday' -version: '0.1.0' +version: '0.2.0' require-dbt-version: [">=1.3.0", "<2.0.0"] models: @@ -12,6 +12,8 @@ models: staging: +materialized: view +schema: stg_workday + workday_history: + +materialized: table vars: job_profile: "{{ source('workday','job_profile') }}" diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index c6fb5d2..6191f45 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,5 +1,5 @@ name: 'workday_integration_tests' -version: '0.1.1' +version: '0.2.0' config-version: 2 profile: 'integration_tests' diff --git a/models/docs.md b/models/docs.md index 777e30d..cc2063b 100644 --- a/models/docs.md +++ b/models/docs.md @@ -6,6 +6,8 @@ {% docs _fivetran_end %} Timestamp marking the end of a record being active. {% enddocs %} +{% docs _fivetran_date %} Date when the record was first created or modified in the source. {% enddocs %} + {% docs _fivetran_active %} TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE. {% enddocs %} {% docs source_relation %} The record's source if the unioning functionality is used. Otherwise this field will be empty. {% enddocs %} diff --git a/models/intermediate/workday_history/int_workday__employee_history.sql b/models/intermediate/workday_history/int_workday__employee_history.sql index a2bf3e2..90c10aa 100644 --- a/models/intermediate/workday_history/int_workday__employee_history.sql +++ b/models/intermediate/workday_history/int_workday__employee_history.sql @@ -10,6 +10,12 @@ worker_position_history as ( from {{ ref('stg_workday__worker_position_history') }} ), +personal_information_history as ( + + select * + from {{ ref('stg_workday__personal_information_history') }} +), + worker_start_records as ( select worker_id, @@ -19,6 +25,10 @@ worker_start_records as ( select worker_id, _fivetran_start from worker_position_history + union distinct + select worker_id, + _fivetran_start + from personal_information_history order by worker_id, _fivetran_start ), @@ -51,7 +61,8 @@ employee_history_scd as ( worker_history.pay_through_date as wh_pay_through_date, worker_position_history.pay_through_date as wph_pay_through_date, {{ dbt_utils.star(from=ref('stg_workday__worker_history'), except=["worker_id", "_fivetran_start", "_fivetran_end", "_fivetran_synced", "_fivetran_active", "_fivetran_date", "history_unique_key", "end_employment_date", "pay_through_date"]) }}, - {{ dbt_utils.star(from=ref('stg_workday__worker_position_history'), except=["worker_id", "position_id", "_fivetran_start", "_fivetran_end", "_fivetran_synced", "_fivetran_active", "_fivetran_date", "history_unique_key", "end_employment_date", "pay_through_date"])}} + {{ dbt_utils.star(from=ref('stg_workday__worker_position_history'), except=["worker_id", "position_id", "_fivetran_start", "_fivetran_end", "_fivetran_synced", "_fivetran_active", "_fivetran_date", "history_unique_key", "end_employment_date", "pay_through_date"])}}, + {{ dbt_utils.star(from=ref('stg_workday__personal_information_history'), except=["worker_id", "_fivetran_start", "_fivetran_end", "_fivetran_synced", "_fivetran_active", "_fivetran_date", "history_unique_key"])}} from worker_history_scd left join worker_history @@ -64,6 +75,11 @@ employee_history_scd as ( and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start + left join personal_information_history + on worker_history_scd.worker_id = personal_information_history.worker_id + and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end + and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start + order by worker_id, _fivetran_start, _fivetran_end ), diff --git a/models/staging/workday_history/stg_workday__personal_information_history.sql b/models/staging/workday_history/stg_workday__personal_information_history.sql new file mode 100644 index 0000000..75bedca --- /dev/null +++ b/models/staging/workday_history/stg_workday__personal_information_history.sql @@ -0,0 +1,24 @@ +with base as ( + + select * + from {{ source('workday','personal_information_history') }} + {% if var('personal_information_history_start_date',[]) %} + where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('personal_information_history_start_date') }}" + {% endif %} +), + +final as ( + + select + id as worker_id, + cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, + cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, + cast(_fivetran_start as date) as _fivetran_date, + {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key, + {{ dbt_utils.star(from=source('workday','personal_information_history'), + except=["id", "_fivetran_start", "_fivetran_end"]) }} + from base +) + +select * +from final \ No newline at end of file diff --git a/models/staging/workday_history/stg_workday__worker_history.sql b/models/staging/workday_history/stg_workday__worker_history.sql index 4a41a64..68c7cbf 100644 --- a/models/staging/workday_history/stg_workday__worker_history.sql +++ b/models/staging/workday_history/stg_workday__worker_history.sql @@ -1,34 +1,16 @@ -{{ config( - enabled= var('worker_history_enabled', False), - materialized='incremental', - unique_key='history_unique_key', - incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'spark', 'databricks') else 'delete+insert', - partition_by={ - "field": "_fivetran_date", - "data_type": "date" - } if target.type not in ('spark','databricks') else ['_fivetran_date'], - file_format='parquet', - on_schema_change='fail' - ) -}} - with base as ( select * - from {{ source('workday','worker_history') }} - {% if is_incremental() %} - where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= (select max(cast((_fivetran_start) as {{ dbt.type_timestamp() }})) from {{ this }} ) - {% else %} + from {{ source('workday','worker_history') }} {% if var('worker_history_start_date',[]) %} where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('worker_history_start_date') }}" - {% endif %} {% endif %} ), final as ( select - id as worker_id, + id as worker_id, cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, cast(_fivetran_start as date) as _fivetran_date, diff --git a/models/staging/workday_history/stg_workday__worker_position_history.sql b/models/staging/workday_history/stg_workday__worker_position_history.sql index 1fdbbf5..cc26999 100644 --- a/models/staging/workday_history/stg_workday__worker_position_history.sql +++ b/models/staging/workday_history/stg_workday__worker_position_history.sql @@ -1,28 +1,10 @@ -{{ config( - enabled= var('worker_position_history_enabled', False), - materialized='incremental', - unique_key='history_unique_key', - incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'spark', 'databricks') else 'delete+insert', - partition_by={ - "field": "_fivetran_date", - "data_type": "date" - } if target.type not in ('spark','databricks') else ['_fivetran_date'], - file_format='parquet', - on_schema_change='fail' - ) -}} - with base as ( select * from {{ source('workday','worker_position_history') }} - {% if is_incremental() %} - where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= (select max(cast((_fivetran_start) as {{ dbt.type_timestamp() }})) from {{ this }} ) - {% else %} - {% if var('worker_position_history_enabled',[]) %} + {% if var('worker_position_history_start_date',[]) %} where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('worker_position_history_start_date') }}" {% endif %} - {% endif %} ), final as ( diff --git a/models/staging/workday_history/stg_workday__worker_position_organization_history.sql b/models/staging/workday_history/stg_workday__worker_position_organization_history.sql new file mode 100644 index 0000000..8b1e416 --- /dev/null +++ b/models/staging/workday_history/stg_workday__worker_position_organization_history.sql @@ -0,0 +1,26 @@ +with base as ( + + select * + from {{ source('workday','worker_position_organization_history') }} + {% if var('worker_position_organization_history_start_date',[]) %} + where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('worker_position_organization_history_start_date') }}" + {% endif %} +), + +final as ( + + select + worker_id, + position_id, + organization_id, + cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, + cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, + cast(_fivetran_start as date) as _fivetran_date, + {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'organization_id', '_fivetran_start']) }} as history_unique_key, + {{ dbt_utils.star(from=source('workday','worker_position_organization_history'), + except=["worker_id", "position_id", "organization_id", "_fivetran_start", "_fivetran_end"]) }} + from base +) + +select * +from final \ No newline at end of file diff --git a/models/staging/workday_history/stg_workday_history.yml b/models/staging/workday_history/stg_workday_history.yml new file mode 100644 index 0000000..20b145e --- /dev/null +++ b/models/staging/workday_history/stg_workday_history.yml @@ -0,0 +1,706 @@ +version: 2 + +models: + - name: stg_workday__personal_information_history + description: Represents historical records of a worker's personal information. + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - worker_id + - source_relation + - _fivetran_start + + columns: + - name: worker_id + description: '{{ doc("worker_id") }}' + tests: + - not_null + + - name: source_relation + description: '{{ doc("source_relation") }}' + + - name: _fivetran_start + description: '{{ doc("_fivetran_start") }}' + + - name: _fivetran_end + description: '{{ doc("_fivetran_end") }}' + + - name: _fivetran_date + description: '{{ doc("_fivetran_date") }}' + + - name: history_unique_key + description: Surrogate key hashed on `worker_id`, `source_relation` and `_fivetran_start`. + tests: + - unique + - not_null + + - name: _fivetran_active + description: '{{ doc("_fivetran_active") }}' + + - name: type + description: '{{ doc("personal_information_type") }}' + + - name: _fivetran_synced + description: '{{ doc("_fivetran_synced") }}' + + - name: additional_nationality + description: '{{ doc("additional_nationality") }}' + + - name: blood_type + description: '{{ doc("blood_type") }}' + + - name: citizenship_status + description: '{{ doc("citizenship_status") }}' + + - name: city_of_birth + description: '{{ doc("city_of_birth") }}' + + - name: city_of_birth_code + description: '{{ doc("city_of_birth_code") }}' + + - name: country_of_birth + description: '{{ doc("country_of_birth") }}' + + - name: date_of_birth + description: '{{ doc("date_of_birth") }}' + + - name: date_of_death + description: '{{ doc("date_of_death") }}' + + - name: gender + description: '{{ doc("gender") }}' + + - name: is_hispanic_or_latino + description: '{{ doc("hispanic_or_latino") }}' + + - name: hukou_locality + description: '{{ doc("hukou_locality") }}' + + - name: hukou_postal_code + description: '{{ doc("hukou_postal_code") }}' + + - name: hukou_region + description: '{{ doc("hukou_region") }}' + + - name: hukou_subregion + description: '{{ doc("hukou_subregion") }}' + + - name: hukou_type + description: '{{ doc("hukou_type") }}' + + - name: last_medical_exam_date + description: '{{ doc("last_medical_exam_date") }}' + + - name: last_medical_exam_valid_to + description: '{{ doc("last_medical_exam_valid_to") }}' + + - name: is_local_hukou + description: '{{ doc("local_hukou") }}' + + - name: marital_status + description: '{{ doc("marital_status") }}' + + - name: marital_status_date + description: '{{ doc("marital_status_date") }}' + + - name: medical_exam_notes + description: '{{ doc("medical_exam_notes") }}' + + - name: native_region + description: '{{ doc("native_region") }}' + + - name: native_region_code + description: '{{ doc("native_region_code") }}' + + - name: personnel_file_agency + description: '{{ doc("personnel_file_agency") }}' + + - name: political_affiliation + description: '{{ doc("political_affiliation") }}' + + - name: primary_nationality + description: '{{ doc("primary_nationality") }}' + + - name: region_of_birth + description: '{{ doc("region_of_birth") }}' + + - name: region_of_birth_code + description: '{{ doc("region_of_birth_code") }}' + + - name: religion + description: '{{ doc("religion") }}' + + - name: social_benefit + description: '{{ doc("social_benefit") }}' + + - name: is_tobacco_use + description: '{{ doc("tobacco_use") }}' + + + - name: stg_workday__worker_history + description: Represents historical records of a worker's personal information. + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - worker_id + - source_relation + - _fivetran_start + + columns: + - name: worker_id + description: '{{ doc("worker_id") }}' + tests: + - not_null + + - name: source_relation + description: '{{ doc("source_relation") }}' + + - name: _fivetran_start + description: '{{ doc("_fivetran_start") }}' + + - name: _fivetran_end + description: '{{ doc("_fivetran_end") }}' + + - name: _fivetran_date + description: '{{ doc("_fivetran_date") }}' + + - name: history_unique_key + description: Surrogate key hashed on `worker_id`, `source_relation` and `_fivetran_start`. + tests: + - unique + - not_null + tests: + - unique + - not_null + + - name: _fivetran_active + description: '{{ doc("_fivetran_active") }}' + + - name: _fivetran_synced + description: '{{ doc("_fivetran_synced") }}' + + - name: academic_tenure_date + description: '{{ doc("academic_tenure_date") }}' + + - name: is_active + description: '{{ doc("active") }}' + + - name: active_status_date + description: '{{ doc("active_status_date") }}' + + - name: annual_currency_summary_currency + description: '{{ doc("annual_currency_summary_currency") }}' + + - name: annual_currency_summary_frequency + description: '{{ doc("annual_currency_summary_frequency") }}' + + - name: annual_currency_summary_primary_compensation_basis + description: '{{ doc("annual_currency_summary_primary_compensation_basis") }}' + + - name: annual_currency_summary_total_base_pay + description: '{{ doc("annual_currency_summary_total_base_pay") }}' + + - name: annual_currency_summary_total_salary_and_allowances + description: '{{ doc("annual_currency_summary_total_salary_and_allowances") }}' + + - name: annual_summary_currency + description: '{{ doc("annual_summary_currency") }}' + + - name: annual_summary_frequency + description: '{{ doc("annual_summary_frequency") }}' + + - name: annual_summary_primary_compensation_basis + description: '{{ doc("annual_summary_primary_compensation_basis") }}' + + - name: annual_summary_total_base_pay + description: '{{ doc("annual_summary_total_base_pay") }}' + + - name: annual_summary_total_salary_and_allowances + description: '{{ doc("annual_summary_total_salary_and_allowances") }}' + + - name: benefits_service_date + description: '{{ doc("benefits_service_date") }}' + + - name: company_service_date + description: '{{ doc("company_service_date") }}' + + - name: compensation_effective_date + description: '{{ doc("compensation_effective_date") }}' + + - name: compensation_grade_id + description: '{{ doc("compensation_grade_id") }}' + + - name: compensation_grade_profile_id + description: '{{ doc("compensation_grade_profile_id") }}' + + - name: continuous_service_date + description: '{{ doc("continuous_service_date") }}' + + - name: contract_assignment_details + description: '{{ doc("contract_assignment_details") }}' + + - name: contract_currency_code + description: '{{ doc("contract_currency_code") }}' + + - name: contract_end_date + description: '{{ doc("contract_end_date") }}' + + - name: contract_frequency_name + description: '{{ doc("contract_frequency_name") }}' + + - name: contract_pay_rate + description: '{{ doc("contract_pay_rate") }}' + + - name: contract_vendor_name + description: '{{ doc("contract_vendor_name") }}' + + - name: date_entered_workforce + description: '{{ doc("date_entered_workforce") }}' + + - name: days_unemployed + description: '{{ doc("days_unemployed") }}' + + - name: eligible_for_hire + description: '{{ doc("eligible_for_hire") }}' + + - name: eligible_for_rehire_on_latest_termination + description: '{{ doc("eligible_for_rehire_on_latest_termination") }}' + + - name: employee_compensation_currency + description: '{{ doc("employee_compensation_currency") }}' + + - name: employee_compensation_frequency + description: '{{ doc("employee_compensation_frequency") }}' + + - name: employee_compensation_primary_compensation_basis + description: '{{ doc("employee_compensation_primary_compensation_basis") }}' + + - name: employee_compensation_total_base_pay + description: '{{ doc("employee_compensation_total_base_pay") }}' + + - name: employee_compensation_total_salary_and_allowances + description: '{{ doc("employee_compensation_total_salary_and_allowances") }}' + + - name: end_employment_date + description: '{{ doc("end_employment_date") }}' + + - name: expected_date_of_return + description: '{{ doc("expected_date_of_return") }}' + + - name: expected_retirement_date + description: '{{ doc("expected_retirement_date") }}' + + - name: first_day_of_work + description: '{{ doc("first_day_of_work") }}' + + - name: is_has_international_assignment + description: '{{ doc("has_international_assignment") }}' + + - name: hire_date + description: '{{ doc("hire_date") }}' + + - name: hire_reason + description: '{{ doc("hire_reason") }}' + + - name: is_hire_rescinded + description: '{{ doc("hire_rescinded") }}' + + - name: home_country + description: '{{ doc("home_country") }}' + + - name: hourly_frequency_currency + description: '{{ doc("hourly_frequency_currency") }}' + + - name: hourly_frequency_frequency + description: '{{ doc("hourly_frequency_frequency") }}' + + - name: hourly_frequency_primary_compensation_basis + description: '{{ doc("hourly_frequency_primary_compensation_basis") }}' + + - name: hourly_frequency_total_base_pay + description: '{{ doc("hourly_frequency_total_base_pay") }}' + + - name: hourly_frequency_total_salary_and_allowances + description: '{{ doc("hourly_frequency_total_salary_and_allowances") }}' + + - name: last_datefor_which_paid + description: '{{ doc("last_datefor_which_paid") }}' + + - name: local_termination_reason + description: '{{ doc("local_termination_reason") }}' + + - name: months_continuous_prior_employment + description: '{{ doc("months_continuous_prior_employment") }}' + + - name: is_not_returning + description: '{{ doc("not_returning") }}' + + - name: original_hire_date + description: '{{ doc("original_hire_date") }}' + + - name: pay_group_frequency_currency + description: '{{ doc("pay_group_frequency_currency") }}' + + - name: pay_group_frequency_frequency + description: '{{ doc("pay_group_frequency_frequency") }}' + + - name: pay_group_frequency_primary_compensation_basis + description: '{{ doc("pay_group_frequency_primary_compensation_basis") }}' + + - name: pay_group_frequency_total_base_pay + description: '{{ doc("pay_group_frequency_total_base_pay") }}' + + - name: pay_group_frequency_total_salary_and_allowances + description: '{{ doc("pay_group_frequency_total_salary_and_allowances") }}' + + - name: pay_through_date + description: '{{ doc("pay_through_date") }}' + + - name: primary_termination_category + description: '{{ doc("primary_termination_category") }}' + + - name: primary_termination_reason + description: '{{ doc("primary_termination_reason") }}' + + - name: probation_end_date + description: '{{ doc("probation_end_date") }}' + + - name: probation_start_date + description: '{{ doc("probation_start_date") }}' + + - name: reason_reference_id + description: '{{ doc("reason_reference_id") }}' + + - name: is_regrettable_termination + description: '{{ doc("regrettable_termination") }}' + + - name: is_rehire + description: '{{ doc("rehire") }}' + + - name: resignation_date + description: '{{ doc("resignation_date") }}' + + - name: is_retired + description: '{{ doc("retired") }}' + + - name: retirement_date + description: '{{ doc("retirement_date") }}' + + - name: retirement_eligibility_date + description: '{{ doc("retirement_eligibility_date") }}' + + - name: is_return_unknown + description: '{{ doc("return_unknown") }}' + + - name: seniority_date + description: '{{ doc("seniority_date") }}' + + - name: severance_date + description: '{{ doc("severance_date") }}' + + - name: is_terminated + description: '{{ doc("is_terminated") }}' + + - name: termination_date + description: '{{ doc("termination_date") }}' + + - name: is_termination_involuntary + description: '{{ doc("termination_involuntary") }}' + + - name: termination_last_day_of_work + description: '{{ doc("termination_last_day_of_work") }}' + + - name: time_off_service_date + description: '{{ doc("time_off_service_date") }}' + + - name: universal_id + description: '{{ doc("universal_id") }}' + + - name: user_id + description: '{{ doc("user_id") }}' + + - name: vesting_date + description: '{{ doc("vesting_date") }}' + + - name: worker_code + description: '{{ doc("worker_code") }}' + + + - name: stg_workday__worker_position_history + description: Represents historical records of a worker's personal information. + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - worker_id + - position_id + - source_relation + - _fivetran_start + + columns: + - name: source_relation + description: '{{ doc("source_relation") }}' + + - name: worker_id + description: '{{ doc("worker_id") }}' + tests: + - not_null + + - name: position_id + description: '{{ doc("position_id") }}' + tests: + - not_null + + - name: _fivetran_start + description: '{{ doc("_fivetran_start") }}' + + - name: _fivetran_end + description: '{{ doc("_fivetran_end") }}' + + - name: _fivetran_date + description: '{{ doc("_fivetran_date") }}' + + - name: history_unique_key + description: Surrogate key hashed on `position_id`, `worker_id`, `source_relation` and `_fivetran_start` . + tests: + - unique + - not_null + + - name: _fivetran_active + description: '{{ doc("_fivetran_active") }}' + + - name: _fivetran_synced + description: '{{ doc("_fivetran_synced") }}' + + - name: academic_pay_setup_data_annual_work_period_end_date + description: '{{ doc("academic_pay_setup_data_annual_work_period_end_date") }}' + + - name: academic_pay_setup_data_annual_work_period_start_date + description: '{{ doc("academic_pay_setup_data_annual_work_period_start_date") }}' + + - name: academic_pay_setup_data_annual_work_period_work_percent_of_year + description: '{{ doc("academic_pay_setup_data_annual_work_period_work_percent_of_year") }}' + + - name: academic_pay_setup_data_disbursement_plan_period_end_date + description: '{{ doc("academic_pay_setup_data_disbursement_plan_period_end_date") }}' + + - name: academic_pay_setup_data_disbursement_plan_period_start_date + description: '{{ doc("academic_pay_setup_data_disbursement_plan_period_start_date") }}' + + - name: business_site_summary_display_language + description: '{{ doc("business_site_summary_display_language") }}' + + - name: business_site_summary_local + description: '{{ doc("business_site_summary_local") }}' + + - name: position_location + description: '{{ doc("business_site_summary_location") }}' + + - name: business_site_summary_location_type + description: '{{ doc("business_site_summary_location_type") }}' + + - name: business_site_summary_name + description: '{{ doc("business_site_summary_name") }}' + + - name: business_site_summary_scheduled_weekly_hours + description: '{{ doc("business_site_summary_scheduled_weekly_hours") }}' + + - name: business_site_summary_time_profile + description: '{{ doc("business_site_summary_time_profile") }}' + + - name: business_title + description: '{{ doc("business_title") }}' + + - name: is_critical_job + description: '{{ doc("critical_job") }}' + + - name: default_weekly_hours + description: '{{ doc("default_weekly_hours") }}' + + - name: difficulty_to_fill + description: '{{ doc("difficulty_to_fill") }}' + + - name: position_effective_date + description: '{{ doc("effective_date") }}' + + - name: employee_type + description: '{{ doc("employee_type") }}' + + - name: position_end_date + description: '{{ doc("end_date") }}' + + - name: end_employment_date + description: '{{ doc("end_employment_date") }}' + + - name: is_exclude_from_head_count + description: '{{ doc("exclude_from_head_count") }}' + + - name: expected_assignment_end_date + description: '{{ doc("expected_assignment_end_date") }}' + + - name: external_employee + description: '{{ doc("external_employee") }}' + + - name: federal_withholding_fein + description: '{{ doc("federal_withholding_fein") }}' + + - name: frequency + description: '{{ doc("frequency") }}' + + - name: fte_percent + description: '{{ doc("full_time_equivalent_percentage") }}' + + - name: headcount_restriction_code + description: '{{ doc("headcount_restriction_code") }}' + + - name: home_country + description: '{{ doc("home_country") }}' + + - name: host_country + description: '{{ doc("host_country") }}' + + - name: international_assignment_type + description: '{{ doc("international_assignment_type") }}' + + - name: is_primary_job + description: '{{ doc("is_primary_job") }}' + + - name: is_job_exempt + description: '{{ doc("job_exempt") }}' + + - name: job_profile_id + description: '{{ doc("job_profile_id") }}' + + - name: management_level_code + description: '{{ doc("management_level_code") }}' + + - name: paid_fte + description: '{{ doc("paid_fte") }}' + + - name: pay_group + description: '{{ doc("pay_group") }}' + + - name: pay_rate + description: '{{ doc("pay_rate") }}' + + - name: pay_rate_type + description: '{{ doc("pay_rate_type") }}' + + - name: pay_through_date + description: '{{ doc("pay_through_date") }}' + + - name: payroll_entity + description: '{{ doc("payroll_entity") }}' + + - name: payroll_file_number + description: '{{ doc("payroll_file_number") }}' + + - name: regular_paid_equivalent_hours + description: '{{ doc("regular_paid_equivalent_hours") }}' + + - name: scheduled_weekly_hours + description: '{{ doc("scheduled_weekly_hours") }}' + + - name: is_specify_paid_fte + description: '{{ doc("specify_paid_fte") }}' + + - name: is_specify_working_fte + description: '{{ doc("specify_working_fte") }}' + + - name: position_start_date + description: '{{ doc("start_date") }}' + + - name: start_international_assignment_reason + description: '{{ doc("start_international_assignment_reason") }}' + + - name: work_hours_profile + description: '{{ doc("work_hours_profile") }}' + + - name: work_shift + description: '{{ doc("work_shift") }}' + + - name: is_work_shift_required + description: '{{ doc("work_shift_required") }}' + + - name: work_space + description: '{{ doc("work_space") }}' + + - name: worker_hours_profile_classification + description: '{{ doc("worker_hours_profile_classification") }}' + + - name: working_fte + description: '{{ doc("working_fte") }}' + + - name: working_time_frequency + description: '{{ doc("working_time_frequency") }}' + + - name: working_time_unit + description: '{{ doc("working_time_unit") }}' + + - name: working_time_value + description: '{{ doc("working_time_value") }}' + + + + - name: stg_workday__worker_position_organization_history + description: Represents historical records of a worker's personal information. + tests: + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - worker_id + - position_id + - organization_id + - source_relation + - _fivetran_start + - _fivetran_end + + columns: + - name: worker_id + description: '{{ doc("worker_id") }}' + tests: + - not_null + + - name: position_id + description: '{{ doc("position_id") }}' + tests: + - not_null + + - name: organization_id + description: '{{ doc("organization_id") }}' + tests: + - not_null + + - name: source_relation + description: '{{ doc("source_relation") }}' + + - name: _fivetran_start + description: '{{ doc("_fivetran_start") }}' + + - name: _fivetran_end + description: '{{ doc("_fivetran_end") }}' + + - name: _fivetran_date + description: '{{ doc("_fivetran_date") }}' + + - name: history_unique_key + description: Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, `source_relation` and `_fivetran_start` . + tests: + - unique + - not_null + + - name: _fivetran_active + description: '{{ doc("_fivetran_active") }}' + + - name: _fivetran_synced + description: '{{ doc("_fivetran_synced") }}' + + - name: index + description: '{{ doc("index") }}' + + - name: date_of_pay_group_assignment + description: '{{ doc("date_of_pay_group_assignment") }}' + + - name: primary_business_site + description: '{{ doc("primary_business_site") }}' + + - name: is_used_in_change_organization_assignments + description: '{{ doc("used_in_change_organization_assignments") }}' \ No newline at end of file diff --git a/models/workday_history/workday__employee_daily_history.sql b/models/workday_history/workday__employee_daily_history.sql index e6646ff..a1150c8 100644 --- a/models/workday_history/workday__employee_daily_history.sql +++ b/models/workday_history/workday__employee_daily_history.sql @@ -1,18 +1,3 @@ -{{ - config( - enabled = var('worker_history_enabled', False), - materialized = 'incremental', - partition_by = { - 'field': 'date_day', - 'data_type': 'date' - } if target.type not in ['spark', 'databricks'] else ['date_day'], - unique_key = 'employee_day_id', - incremental_strategy = 'insert_overwrite' if target.type in ('bigquery', 'spark', 'databricks') else 'delete+insert', - file_format = 'parquet', - on_schema_change = 'fail' - ) -}} - {% if execute %} {% set date_query %} select @@ -54,7 +39,7 @@ order_daily_values as ( select *, row_number() over ( - partition by _fivetran_date, worker_id + partition by _fivetran_date, employee_id order by _fivetran_start desc) as row_num from employee_history ), diff --git a/models/workday_history/workday__monthly_summary.sql b/models/workday_history/workday__monthly_summary.sql new file mode 100644 index 0000000..1d221c3 --- /dev/null +++ b/models/workday_history/workday__monthly_summary.sql @@ -0,0 +1,72 @@ +with row_month_partition as ( + + select *, + {{ dbt.date_trunc('month', date_day) }} as date_month, + row_number() over (partition by employee_id, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row + from {{ ref('workday__employee_daily_history') }} + order by employee_id, date_day +), + +end_of_month_history as ( + + select * + from row_month_partition + where recent_dom_row = 1 + order by employee_id, date_day +), + +monthly_employee_metrics as ( + + select date_month, + sum(case when date_month = {{ dbt.date_trunc('month', effective_date) }} then 1 else 0 end) as new_employees, + sum(case when date_month = {{ dbt.date_trunc('month', termination_date) }} then 1 else 0 end) as churned_employees, + sum(case when date_month = {{ dbt.date_trunc('month', wh_end_employment_date) }} then 1 else 0 end) as churned_workers_this_month + from end_of_month_history + group by 1 +), + +monthly_active_employee_metrics as ( + + select date_month, + count(distinct employee_id) as active_employees_this_month, + sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees, + sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees, + sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees, + sum(case when date_month = {{ dbt.date_trunc('month', wph_end_employment_date) }} + then 1 else 0 end) as churned_employees_this_month, + sum(case when date_month >= {{ dbt.date_trunc('month', effective_date) }} + and (date_month <= {{ dbt.date_trunc('month', wh_end_employment_date) }} + or wh_end_employment_date is null) + then 1 else 0 end) as active_workers_this_month + from end_of_month_history + where date_month >= {{ dbt.date_trunc('month', effective_date) }} + and (date_month <= {{ dbt.date_trunc('month', wph_end_employment_date) }} + or wph_end_employment_date is null) + group by 1 +), + +monthly_active_worker_metrics as ( + + select date_month, + count(distinct worker_id) as active_workers_this_month + where (date_month >= {{ dbt.date_trunc('month', effective_date) }} + and date_month <= {{ dbt.date_trunc('month', wh_end_employment_date) }}) + or wh_end_employment_date is null + group by 1 +), + +monthly_summary as ( + + select date_month, + monthly_employee_metrics.*, + monthly_active_employee_metrics.*, + monthly_active_worker_metrics.* + from monthly_employee_metrics + left join monthly_active_employee_metrics + on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month + left join monthly_active_worker_metrics + on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month +) + +select * +from monthly_summary \ No newline at end of file diff --git a/models/workday_history/workday_history.yml b/models/workday_history/workday_history.yml new file mode 100644 index 0000000..e69de29 From 810af8dab54b5cbb0ebe63d5854d4d4b27859a2a Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Wed, 6 Mar 2024 16:46:45 -0800 Subject: [PATCH 03/20] Workday history upgrades --- docs/catalog.json | 2 +- docs/index.html | 4 +- docs/manifest.json | 2 +- docs/run_results.json | 2 +- .../seeds/workday_worker_history_data.csv | 10 ++--- .../workday_worker_position_history_data.csv | 12 +++--- .../int_workday__employee_history.sql | 2 +- .../stg_workday__worker_history.sql | 4 +- .../stg_workday__worker_position_history.sql | 4 +- .../workday_history/stg_workday_history.yml | 27 +++--------- .../workday__monthly_summary.sql | 43 ++++++++++--------- 11 files changed, 50 insertions(+), 62 deletions(-) diff --git a/docs/catalog.json b/docs/catalog.json index 4ca7a01..0fe5639 100644 --- a/docs/catalog.json +++ b/docs/catalog.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.6.1", "generated_at": "2024-02-20T19:38:51.559069Z", "invocation_id": "7d05597f-1e75-41df-a9b8-5eca5c835afb", "env": {}}, "nodes": {}, "sources": {"source.workday.workday.organization": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "organization", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "TIMESTAMP", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "BOOL", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "STRING", "index": 6, "name": "code", "comment": null}, "description": {"type": "STRING", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "STRING", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "BOOL", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "BOOL", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "DATE", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "BOOL", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "BOOL", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "TIMESTAMP", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "STRING", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "STRING", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "STRING", "index": 17, "name": "name", "comment": null}, "organization_owner_id": {"type": "STRING", "index": 18, "name": "organization_owner_id", "comment": null}, "position_availability_date": {"type": "DATE", "index": 19, "name": "position_availability_date", "comment": null}, "position_earliest_hire_date": {"type": "DATE", "index": 20, "name": "position_earliest_hire_date", "comment": null}, "position_time_type": {"type": "STRING", "index": 21, "name": "position_time_type", "comment": null}, "position_worker_type": {"type": "STRING", "index": 22, "name": "position_worker_type", "comment": null}, "staffing_model": {"type": "STRING", "index": 23, "name": "staffing_model", "comment": null}, "sub_type": {"type": "STRING", "index": 24, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "STRING", "index": 25, "name": "superior_organization_id", "comment": null}, "top_level_organization_id": {"type": "STRING", "index": 26, "name": "top_level_organization_id", "comment": null}, "type": {"type": "STRING", "index": 27, "name": "type", "comment": null}, "visibility": {"type": "STRING", "index": 28, "name": "visibility", "comment": null}, "organization_code": {"type": "STRING", "index": 29, "name": "organization_code", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "DATE", "index": 30, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "STRING", "index": 31, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "STRING", "index": 32, "name": "supervisory_position_worker_type", "comment": null}, "supervisory_position_availability_date": {"type": "DATE", "index": 33, "name": "supervisory_position_availability_date", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 482.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 144026.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization"}, "source.workday.workday.organization_role": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "organization_role", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "organization_id": {"type": "STRING", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "STRING", "index": 5, "name": "organization_role_code", "comment": null}, "role_id": {"type": "STRING", "index": 6, "name": "role_id", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 11920.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1183232.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role"}, "source.workday.workday.position": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "position", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "DATE", "index": 4, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "DATE", "index": 5, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "FLOAT64", "index": 6, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "DATE", "index": 7, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "DATE", "index": 8, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "STRING", "index": 9, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "STRING", "index": 10, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "STRING", "index": 11, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "STRING", "index": 12, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "STRING", "index": 13, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "FLOAT64", "index": 14, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "STRING", "index": 15, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "STRING", "index": 16, "name": "business_title", "comment": null}, "critical_job": {"type": "BOOL", "index": 17, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "FLOAT64", "index": 18, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "STRING", "index": 19, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "DATE", "index": 20, "name": "effective_date", "comment": null}, "end_date": {"type": "DATE", "index": 21, "name": "end_date", "comment": null}, "end_employment_date": {"type": "DATE", "index": 22, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "BOOL", "index": 23, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "DATE", "index": 24, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "STRING", "index": 25, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "STRING", "index": 26, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "STRING", "index": 27, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "FLOAT64", "index": 28, "name": "full_time_equivalent_percentage", "comment": null}, "head_count_retriction_id": {"type": "STRING", "index": 29, "name": "head_count_retriction_id", "comment": null}, "home_country": {"type": "STRING", "index": 30, "name": "home_country", "comment": null}, "host_country": {"type": "STRING", "index": 31, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "STRING", "index": 32, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "BOOL", "index": 33, "name": "is_primary_job", "comment": null}, "job_category_id": {"type": "STRING", "index": 34, "name": "job_category_id", "comment": null}, "job_exempt": {"type": "BOOL", "index": 35, "name": "job_exempt", "comment": null}, "job_family_id": {"type": "STRING", "index": 36, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "STRING", "index": 37, "name": "job_profile_id", "comment": null}, "job_profile_name": {"type": "STRING", "index": 38, "name": "job_profile_name", "comment": null}, "management_level_id": {"type": "STRING", "index": 39, "name": "management_level_id", "comment": null}, "paid_fte": {"type": "FLOAT64", "index": 40, "name": "paid_fte", "comment": null}, "pay_group": {"type": "STRING", "index": 41, "name": "pay_group", "comment": null}, "pay_rate": {"type": "STRING", "index": 42, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "STRING", "index": 43, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "DATE", "index": 44, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "STRING", "index": 45, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "STRING", "index": 46, "name": "payroll_file_number", "comment": null}, "position_code": {"type": "STRING", "index": 47, "name": "position_code", "comment": null}, "position_time_type": {"type": "STRING", "index": 48, "name": "position_time_type", "comment": null}, "position_title": {"type": "STRING", "index": 49, "name": "position_title", "comment": null}, "regular_paid_equivalent_hours": {"type": "FLOAT64", "index": 50, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "FLOAT64", "index": 51, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "BOOL", "index": 52, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "BOOL", "index": 53, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "DATE", "index": 54, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "STRING", "index": 55, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "STRING", "index": 56, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "STRING", "index": 57, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "BOOL", "index": 58, "name": "work_shift_required", "comment": null}, "work_space": {"type": "STRING", "index": 59, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "STRING", "index": 60, "name": "worker_hours_profile_classification", "comment": null}, "worker_id": {"type": "STRING", "index": 61, "name": "worker_id", "comment": null}, "working_fte": {"type": "FLOAT64", "index": 62, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "STRING", "index": 63, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "STRING", "index": 64, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "FLOAT64", "index": 65, "name": "working_time_value", "comment": null}, "employee_type": {"type": "STRING", "index": 66, "name": "employee_type", "comment": null}, "supervisory_organization_id": {"type": "STRING", "index": 67, "name": "supervisory_organization_id", "comment": null}, "compensation_step_code": {"type": "STRING", "index": 68, "name": "compensation_step_code", "comment": null}, "worker_type_code": {"type": "STRING", "index": 69, "name": "worker_type_code", "comment": null}, "worker_position_id": {"type": "STRING", "index": 70, "name": "worker_position_id", "comment": null}, "available_for_hire": {"type": "BOOL", "index": 71, "name": "available_for_hire", "comment": null}, "earliest_hire_date": {"type": "DATE", "index": 72, "name": "earliest_hire_date", "comment": null}, "primary_compensation_basis": {"type": "FLOAT64", "index": 73, "name": "primary_compensation_basis", "comment": null}, "available_for_overlap": {"type": "BOOL", "index": 74, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "BOOL", "index": 75, "name": "available_for_recruiting", "comment": null}, "compensation_grade_code": {"type": "STRING", "index": 76, "name": "compensation_grade_code", "comment": null}, "primary_compensation_basis_percent_change": {"type": "FLOAT64", "index": 77, "name": "primary_compensation_basis_percent_change", "comment": null}, "hiring_freeze": {"type": "BOOL", "index": 78, "name": "hiring_freeze", "comment": null}, "compensation_package_code": {"type": "STRING", "index": 79, "name": "compensation_package_code", "comment": null}, "academic_tenure_eligible": {"type": "BOOL", "index": 80, "name": "academic_tenure_eligible", "comment": null}, "position_time_type_code": {"type": "STRING", "index": 81, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis_amount_change": {"type": "FLOAT64", "index": 82, "name": "primary_compensation_basis_amount_change", "comment": null}, "difficulty_to_fill_code": {"type": "STRING", "index": 83, "name": "difficulty_to_fill_code", "comment": null}, "earliest_overlap_date": {"type": "DATE", "index": 84, "name": "earliest_overlap_date", "comment": null}, "job_description": {"type": "STRING", "index": 85, "name": "job_description", "comment": null}, "availability_date": {"type": "DATE", "index": 86, "name": "availability_date", "comment": null}, "job_description_summary": {"type": "STRING", "index": 87, "name": "job_description_summary", "comment": null}, "worker_for_filled_position_id": {"type": "STRING", "index": 88, "name": "worker_for_filled_position_id", "comment": null}, "closed": {"type": "BOOL", "index": 89, "name": "closed", "comment": null}, "compensation_grade_profile_code": {"type": "STRING", "index": 90, "name": "compensation_grade_profile_code", "comment": null}, "job_posting_title": {"type": "STRING", "index": 91, "name": "job_posting_title", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 714.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 642240.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position"}, "source.workday.workday.job_family": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "job_family", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "DATE", "index": 4, "name": "effective_date", "comment": null}, "in_active": {"type": "BOOL", "index": 5, "name": "in_active", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "summary": {"type": "STRING", "index": 7, "name": "summary", "comment": null}, "job_family_code": {"type": "STRING", "index": 8, "name": "job_family_code", "comment": null}, "inactive": {"type": "BOOL", "index": 9, "name": "inactive", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 112.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 9031.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family"}, "source.workday.workday.job_profile": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "job_profile", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "STRING", "index": 4, "name": "additional_job_description", "comment": null}, "critical_job": {"type": "BOOL", "index": 5, "name": "critical_job", "comment": null}, "description": {"type": "STRING", "index": 6, "name": "description", "comment": null}, "difficult_to_fill": {"type": "STRING", "index": 7, "name": "difficult_to_fill", "comment": null}, "effective_date": {"type": "DATE", "index": 8, "name": "effective_date", "comment": null}, "inactive": {"type": "BOOL", "index": 9, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "BOOL", "index": 10, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "STRING", "index": 11, "name": "job_category_id", "comment": null}, "level": {"type": "STRING", "index": 12, "name": "level", "comment": null}, "management_level": {"type": "STRING", "index": 13, "name": "management_level", "comment": null}, "private_title": {"type": "STRING", "index": 14, "name": "private_title", "comment": null}, "public_job": {"type": "BOOL", "index": 15, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "STRING", "index": 16, "name": "referral_payment_plan", "comment": null}, "restrict_to_country": {"type": "STRING", "index": 17, "name": "restrict_to_country", "comment": null}, "summary": {"type": "STRING", "index": 18, "name": "summary", "comment": null}, "title": {"type": "STRING", "index": 19, "name": "title", "comment": null}, "work_shift_required": {"type": "BOOL", "index": 20, "name": "work_shift_required", "comment": null}, "job_profile_code": {"type": "STRING", "index": 21, "name": "job_profile_code", "comment": null}, "difficulty_to_fill": {"type": "STRING", "index": 22, "name": "difficulty_to_fill", "comment": null}, "compensation_grade_id": {"type": "STRING", "index": 23, "name": "compensation_grade_id", "comment": null}, "union_membership_requirement": {"type": "STRING", "index": 24, "name": "union_membership_requirement", "comment": null}, "union_code": {"type": "STRING", "index": 25, "name": "union_code", "comment": null}, "work_study_requirement_option_code": {"type": "STRING", "index": 26, "name": "work_study_requirement_option_code", "comment": null}, "work_study_award_source_code": {"type": "STRING", "index": 27, "name": "work_study_award_source_code", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 324.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 400554.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_profile"}, "source.workday.workday.organization_job_family": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "organization_job_family", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"job_family_id": {"type": "STRING", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "STRING", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "STRING", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 0.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 0.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_job_family"}, "source.workday.workday.organization_role_worker": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "organization_role_worker", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"associated_worker_id": {"type": "STRING", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "STRING", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "STRING", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 8160.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 685440.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role_worker"}, "source.workday.workday.job_family_job_profile": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "job_family_job_profile", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"job_family_id": {"type": "STRING", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "STRING", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 322.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 20591.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_profile"}, "source.workday.workday.job_family_job_family_group": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "job_family_job_family_group", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"job_family_group_id": {"type": "STRING", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "STRING", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 106.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6289.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_family_group"}, "source.workday.workday.worker_position_organization_history": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "worker_position_organization_history", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"_fivetran_start": {"type": "TIMESTAMP", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "INT64", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "STRING", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "STRING", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "BOOL", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "TIMESTAMP", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "DATE", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "STRING", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "STRING", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "BOOL", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 13911.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 1907385.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_organization_history"}, "source.workday.workday.personal_information_history": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "personal_information_history", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"_fivetran_start": {"type": "TIMESTAMP", "index": 1, "name": "_fivetran_start", "comment": null}, "id": {"type": "STRING", "index": 2, "name": "id", "comment": null}, "type": {"type": "STRING", "index": 3, "name": "type", "comment": null}, "_fivetran_active": {"type": "BOOL", "index": 4, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "JSON", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "STRING", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "JSON", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "STRING", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "STRING", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "STRING", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "DATE", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "DATE", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "STRING", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "BOOL", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "STRING", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "STRING", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "STRING", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "STRING", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "STRING", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "DATE", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "DATE", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "BOOL", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "STRING", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "DATE", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "STRING", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "STRING", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "STRING", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "STRING", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "STRING", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "STRING", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "STRING", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "STRING", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "STRING", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "STRING", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "BOOL", "index": 37, "name": "tobacco_use", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 583.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 75539.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_history"}, "source.workday.workday.person_name": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "person_name", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "STRING", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "STRING", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "STRING", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "STRING", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "STRING", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "STRING", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "STRING", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "STRING", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "STRING", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "STRING", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "STRING", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "STRING", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "STRING", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "STRING", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "STRING", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "STRING", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "STRING", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "STRING", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "STRING", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "STRING", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "STRING", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "STRING", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "STRING", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "STRING", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "STRING", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "STRING", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "STRING", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "STRING", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "STRING", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 3728.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 281828.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_name"}, "source.workday.workday.military_service": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "military_service", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "STRING", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "DATE", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "STRING", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "STRING", "index": 7, "name": "rank", "comment": null}, "service": {"type": "STRING", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "STRING", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "STRING", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "DATE", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 36.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 4491.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.military_service"}, "source.workday.workday.position_organization": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "position_organization", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"organization_id": {"type": "STRING", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "STRING", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "STRING", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 2189.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 217670.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_organization"}, "source.workday.workday.person_contact_email_address": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "person_contact_email_address", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "STRING", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "STRING", "index": 5, "name": "email_address", "comment": null}, "email_comment": {"type": "STRING", "index": 6, "name": "email_comment", "comment": null}, "email_code": {"type": "STRING", "index": 7, "name": "email_code", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1716.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 187370.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_contact_email_address"}, "source.workday.workday.worker_history": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "worker_history", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"_fivetran_start": {"type": "TIMESTAMP", "index": 1, "name": "_fivetran_start", "comment": null}, "id": {"type": "STRING", "index": 2, "name": "id", "comment": null}, "_fivetran_active": {"type": "BOOL", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "DATE", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "BOOL", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "DATE", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "STRING", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "STRING", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "FLOAT64", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "FLOAT64", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "FLOAT64", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "STRING", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "STRING", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "FLOAT64", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "FLOAT64", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "FLOAT64", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "DATE", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "DATE", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "DATE", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "STRING", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "STRING", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "DATE", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "STRING", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "STRING", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "DATE", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "STRING", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "FLOAT64", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "STRING", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "DATE", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "FLOAT64", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "STRING", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "STRING", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "STRING", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "STRING", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "FLOAT64", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "FLOAT64", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "FLOAT64", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "DATE", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "DATE", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "DATE", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "DATE", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "BOOL", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "DATE", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "STRING", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "BOOL", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "STRING", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "STRING", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "STRING", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "FLOAT64", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "FLOAT64", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "FLOAT64", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "DATE", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "STRING", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "FLOAT64", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "BOOL", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "DATE", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "STRING", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "STRING", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "FLOAT64", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "FLOAT64", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "FLOAT64", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "DATE", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "STRING", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "STRING", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "DATE", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "DATE", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "STRING", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "BOOL", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "BOOL", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "DATE", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "BOOL", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "DATE", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "DATE", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "BOOL", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "DATE", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "DATE", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "BOOL", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "DATE", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "BOOL", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "DATE", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "DATE", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "STRING", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "STRING", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "DATE", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "STRING", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 22561.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 10451320.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_history"}, "source.workday.workday.worker_position_history": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "worker_position_history", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"_fivetran_start": {"type": "TIMESTAMP", "index": 1, "name": "_fivetran_start", "comment": null}, "position_id": {"type": "STRING", "index": 2, "name": "position_id", "comment": null}, "worker_id": {"type": "STRING", "index": 3, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "BOOL", "index": 4, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "TIMESTAMP", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "DATE", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "DATE", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "FLOAT64", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "DATE", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "DATE", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "STRING", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "STRING", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "STRING", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "STRING", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "STRING", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "FLOAT64", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "STRING", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "STRING", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "BOOL", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "FLOAT64", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "STRING", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "DATE", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "STRING", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "DATE", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "DATE", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "BOOL", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "DATE", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "STRING", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "STRING", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "STRING", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "FLOAT64", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "STRING", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "STRING", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "STRING", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "STRING", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "BOOL", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "BOOL", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "STRING", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "STRING", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "FLOAT64", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "STRING", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "STRING", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "STRING", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "DATE", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "STRING", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "STRING", "index": 47, "name": "payroll_file_number", "comment": null}, "position_time_type": {"type": "STRING", "index": 48, "name": "position_time_type", "comment": null}, "regular_paid_equivalent_hours": {"type": "FLOAT64", "index": 49, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "FLOAT64", "index": 50, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "BOOL", "index": 51, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "BOOL", "index": 52, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "DATE", "index": 53, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "STRING", "index": 54, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "STRING", "index": 55, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "STRING", "index": 56, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "BOOL", "index": 57, "name": "work_shift_required", "comment": null}, "work_space": {"type": "STRING", "index": 58, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "STRING", "index": 59, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "FLOAT64", "index": 60, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "STRING", "index": 61, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "STRING", "index": 62, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "FLOAT64", "index": 63, "name": "working_time_value", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 1367.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 517564.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_history"}, "source.workday.workday.job_family_group": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "job_family_group", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "DATE", "index": 4, "name": "effective_date", "comment": null}, "in_active": {"type": "BOOL", "index": 5, "name": "in_active", "comment": null}, "name": {"type": "STRING", "index": 6, "name": "name", "comment": null}, "summary": {"type": "STRING", "index": 7, "name": "summary", "comment": null}, "job_family_group_code": {"type": "STRING", "index": 8, "name": "job_family_group_code", "comment": null}, "inactive": {"type": "BOOL", "index": 9, "name": "inactive", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 30.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 2099.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_group"}, "source.workday.workday.worker_leave_status": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "worker_leave_status", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "worker_id": {"type": "STRING", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "DATE", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "DATE", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "FLOAT64", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "BOOL", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "BOOL", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "DATE", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "DATE", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "BOOL", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "DATE", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "DATE", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "DATE", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "STRING", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "DATE", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "DATE", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "DATE", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "DATE", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "DATE", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "FLOAT64", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "DATE", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "STRING", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "FLOAT64", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "STRING", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "DATE", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "STRING", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "STRING", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "STRING", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "BOOL", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "FLOAT64", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "FLOAT64", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "FLOAT64", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "FLOAT64", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "BOOL", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "BOOL", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "BOOL", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "BOOL", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "STRING", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "BOOL", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "BOOL", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "DATE", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "DATE", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "BOOL", "index": 45, "name": "work_related", "comment": null}, "leave_request_event_id": {"type": "STRING", "index": 46, "name": "leave_request_event_id", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 28.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 6741.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_leave_status"}, "source.workday.workday.personal_information_ethnicity": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "personal_information_ethnicity", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"index": {"type": "INT64", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "STRING", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "STRING", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "STRING", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 308.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 36300.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_ethnicity"}, "source.workday.workday.position_job_profile": {"metadata": {"type": "table", "schema": "erin_workday_hcm_ga", "name": "position_job_profile", "database": "singular-vector-135519", "comment": null, "owner": null}, "columns": {"id": {"type": "STRING", "index": 1, "name": "id", "comment": null}, "position_id": {"type": "STRING", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "BOOL", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "TIMESTAMP", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "STRING", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "BOOL", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "STRING", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "STRING", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "STRING", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "BOOL", "index": 10, "name": "work_shift_required", "comment": null}, "job_profile_id": {"type": "STRING", "index": 11, "name": "job_profile_id", "comment": null}}, "stats": {"num_rows": {"id": "num_rows", "label": "# Rows", "value": 712.0, "include": true, "description": "Approximate count of rows in this table"}, "num_bytes": {"id": "num_bytes", "label": "Approximate Size", "value": 95598.0, "include": true, "description": "Approximate size of table as reported by BigQuery"}, "has_stats": {"id": "has_stats", "label": "Has Stats?", "value": true, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_job_profile"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.7.8", "generated_at": "2024-03-07T00:46:12.690229Z", "invocation_id": "218a7437-3e28-4317-8406-f68aa2b0221b", "env": {}}, "nodes": {"seed.workday_integration_tests.workday_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_data"}, "seed.workday_integration_tests.workday_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data"}, "seed.workday_integration_tests.workday_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_profile_data"}, "seed.workday_integration_tests.workday_military_service_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_military_service_data"}, "seed.workday_integration_tests.workday_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_data"}, "seed.workday_integration_tests.workday_organization_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data"}, "seed.workday_integration_tests.workday_organization_role_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_data"}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data"}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data"}, "seed.workday_integration_tests.workday_person_name_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_name_data"}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data"}, "seed.workday_integration_tests.workday_personal_information_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data"}, "seed.workday_integration_tests.workday_position_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_data"}, "seed.workday_integration_tests.workday_position_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data"}, "seed.workday_integration_tests.workday_position_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_organization_data"}, "seed.workday_integration_tests.workday_worker_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_history_data"}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data"}, "seed.workday_integration_tests.workday_worker_position_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data"}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data"}, "model.workday.stg_workday__job_family": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 3, "name": "effective_date", "comment": null}, "job_family_id": {"type": "text", "index": 4, "name": "job_family_id", "comment": null}, "is_inactive": {"type": "boolean", "index": 5, "name": "is_inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "job_family_summary": {"type": "text", "index": 7, "name": "job_family_summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family"}, "model.workday.stg_workday__job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_base"}, "model.workday.stg_workday__job_family_group": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 3, "name": "effective_date", "comment": null}, "job_family_group_id": {"type": "text", "index": 4, "name": "job_family_group_id", "comment": null}, "is_inactive": {"type": "boolean", "index": 5, "name": "is_inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "job_family_group_summary": {"type": "text", "index": 7, "name": "job_family_group_summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_group"}, "model.workday.stg_workday__job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_group_base"}, "model.workday.stg_workday__job_family_job_family_group": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "job_family_id": {"type": "text", "index": 3, "name": "job_family_id", "comment": null}, "job_family_group_id": {"type": "text", "index": 4, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_family_group"}, "model.workday.stg_workday__job_family_job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base"}, "model.workday.stg_workday__job_family_job_profile": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "job_family_id": {"type": "text", "index": 3, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 4, "name": "job_profile_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_profile"}, "model.workday.stg_workday__job_family_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_profile_base"}, "model.workday.stg_workday__job_profile": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 3, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 4, "name": "compensation_grade_id", "comment": null}, "is_critical_job": {"type": "boolean", "index": 5, "name": "is_critical_job", "comment": null}, "job_description": {"type": "text", "index": 6, "name": "job_description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 7, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 8, "name": "effective_date", "comment": null}, "job_profile_id": {"type": "text", "index": 9, "name": "job_profile_id", "comment": null}, "is_inactive": {"type": "boolean", "index": 10, "name": "is_inactive", "comment": null}, "is_include_job_code_in_name": {"type": "boolean", "index": 11, "name": "is_include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "is_public_job": {"type": "boolean", "index": 17, "name": "is_public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "job_summary": {"type": "text", "index": 19, "name": "job_summary", "comment": null}, "job_title": {"type": "text", "index": 20, "name": "job_title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 23, "name": "is_work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_profile"}, "model.workday.stg_workday__job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_profile_base"}, "model.workday.stg_workday__military_service": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 4, "name": "discharge_date", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "military_status": {"type": "text", "index": 10, "name": "military_status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__military_service"}, "model.workday.stg_workday__military_service_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__military_service_base"}, "model.workday.stg_workday__organization": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 3, "name": "availability_date", "comment": null}, "is_available_for_hire": {"type": "integer", "index": 4, "name": "is_available_for_hire", "comment": null}, "code": {"type": "integer", "index": 5, "name": "code", "comment": null}, "organization_description": {"type": "integer", "index": 6, "name": "organization_description", "comment": null}, "external_url": {"type": "text", "index": 7, "name": "external_url", "comment": null}, "is_hiring_freeze": {"type": "boolean", "index": 8, "name": "is_hiring_freeze", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "is_inactive": {"type": "boolean", "index": 10, "name": "is_inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "is_include_manager_in_name": {"type": "boolean", "index": 12, "name": "is_include_manager_in_name", "comment": null}, "is_include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "is_include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "organization_location": {"type": "text", "index": 15, "name": "organization_location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "organization_name": {"type": "text", "index": 17, "name": "organization_name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "organization_sub_type": {"type": "text", "index": 21, "name": "organization_sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "organization_type": {"type": "text", "index": 28, "name": "organization_type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization"}, "model.workday.stg_workday__organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_base"}, "model.workday.stg_workday__organization_job_family": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 3, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 4, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 5, "name": "organization_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_job_family"}, "model.workday.stg_workday__organization_job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_job_family_base"}, "model.workday.stg_workday__organization_role": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "organization_id": {"type": "text", "index": 3, "name": "organization_id", "comment": null}, "organization_role_code": {"type": "text", "index": 4, "name": "organization_role_code", "comment": null}, "organization_role_id": {"type": "text", "index": 5, "name": "organization_role_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role"}, "model.workday.stg_workday__organization_role_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_base"}, "model.workday.stg_workday__organization_role_worker": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "organization_worker_code": {"type": "integer", "index": 3, "name": "organization_worker_code", "comment": null}, "organization_id": {"type": "text", "index": 4, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 5, "name": "role_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_worker"}, "model.workday.stg_workday__organization_role_worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_worker_base"}, "model.workday.stg_workday__person_contact_email_address": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 4, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 5, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 6, "name": "email_comment", "comment": null}, "person_contact_email_address_id": {"type": "text", "index": 7, "name": "person_contact_email_address_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_contact_email_address"}, "model.workday.stg_workday__person_contact_email_address_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_contact_email_address_base"}, "model.workday.stg_workday__person_name": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 4, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 5, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 7, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 8, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 9, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 10, "name": "honorary_suffix", "comment": null}, "index": {"type": "integer", "index": 11, "name": "index", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 13, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 14, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 15, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 16, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 17, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 18, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 19, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 20, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 21, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 22, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 23, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 24, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 25, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 26, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 27, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 28, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 29, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 30, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 31, "name": "tertiary_last_name", "comment": null}, "person_name_type": {"type": "text", "index": 32, "name": "person_name_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_name"}, "model.workday.stg_workday__person_name_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_name_base"}, "model.workday.stg_workday__personal_information": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 4, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 5, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 6, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 7, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 8, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 9, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 10, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 11, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 12, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 13, "name": "is_hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 14, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 15, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 16, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 17, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 18, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 19, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 20, "name": "last_medical_exam_valid_to", "comment": null}, "is_local_hukou": {"type": "integer", "index": 21, "name": "is_local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 22, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 23, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 24, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 25, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 26, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 27, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 28, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 29, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 30, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 31, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 32, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 33, "name": "social_benefit", "comment": null}, "is_tobacco_use": {"type": "boolean", "index": 34, "name": "is_tobacco_use", "comment": null}, "type": {"type": "text", "index": 35, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information"}, "model.workday.stg_workday__personal_information_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_base"}, "model.workday.stg_workday__personal_information_ethnicity": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 4, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 5, "name": "ethnicity_id", "comment": null}, "index": {"type": "integer", "index": 6, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_ethnicity"}, "model.workday.stg_workday__personal_information_ethnicity_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base"}, "model.workday.stg_workday__personal_information_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_end", "comment": null}, "_fivetran_date": {"type": "date", "index": 4, "name": "_fivetran_date", "comment": null}, "history_unique_key": {"type": "text", "index": 5, "name": "history_unique_key", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 7, "name": "_fivetran_active", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 9, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 10, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 11, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 12, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 13, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 14, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 15, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 16, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 17, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 18, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 19, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 20, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 21, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 22, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 23, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 24, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 25, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 26, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 27, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 28, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 29, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 30, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 31, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 32, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 33, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 34, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 35, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 36, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 37, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 38, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 39, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 40, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_history"}, "model.workday.stg_workday__position": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "is_academic_tenure_eligible": {"type": "boolean", "index": 3, "name": "is_academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 4, "name": "availability_date", "comment": null}, "is_available_for_hire": {"type": "boolean", "index": 5, "name": "is_available_for_hire", "comment": null}, "is_available_for_overlap": {"type": "boolean", "index": 6, "name": "is_available_for_overlap", "comment": null}, "is_available_for_recruiting": {"type": "boolean", "index": 7, "name": "is_available_for_recruiting", "comment": null}, "is_closed": {"type": "boolean", "index": 8, "name": "is_closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 9, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 10, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 11, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 12, "name": "compensation_step_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 13, "name": "is_critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 14, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 15, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 16, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 17, "name": "effective_date", "comment": null}, "is_hiring_freeze": {"type": "boolean", "index": 18, "name": "is_hiring_freeze", "comment": null}, "position_id": {"type": "text", "index": 19, "name": "position_id", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 29, "name": "is_work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position"}, "model.workday.stg_workday__position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_base"}, "model.workday.stg_workday__position_job_profile": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 3, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 4, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 5, "name": "job_category_code", "comment": null}, "job_profile_id": {"type": "text", "index": 6, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 7, "name": "management_level_code", "comment": null}, "position_job_profile_name": {"type": "text", "index": 8, "name": "position_job_profile_name", "comment": null}, "position_id": {"type": "text", "index": 9, "name": "position_id", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 10, "name": "is_work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_job_profile"}, "model.workday.stg_workday__position_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_job_profile_base"}, "model.workday.stg_workday__position_organization": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "organization_id": {"type": "text", "index": 3, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 5, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_organization"}, "model.workday.stg_workday__position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_organization_base"}, "model.workday.stg_workday__worker": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 4, "name": "academic_tenure_date", "comment": null}, "is_active": {"type": "boolean", "index": 5, "name": "is_active", "comment": null}, "active_status_date": {"type": "date", "index": 6, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 7, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 8, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 9, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 10, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 11, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 12, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 13, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 14, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 15, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 16, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 17, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 18, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 19, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 20, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 21, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 22, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 23, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 24, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 25, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 26, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 27, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 28, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 29, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 30, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 31, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 32, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 33, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 34, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 35, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 36, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 37, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 38, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 39, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 40, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 41, "name": "first_day_of_work", "comment": null}, "is_has_international_assignment": {"type": "boolean", "index": 42, "name": "is_has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 43, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 44, "name": "hire_reason", "comment": null}, "is_hire_rescinded": {"type": "boolean", "index": 45, "name": "is_hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 46, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 47, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 48, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 49, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 50, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 51, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 52, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 53, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 54, "name": "months_continuous_prior_employment", "comment": null}, "is_not_returning": {"type": "boolean", "index": 55, "name": "is_not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 56, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 57, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 58, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 59, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 60, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 61, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 62, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 63, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 64, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 65, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 66, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 67, "name": "reason_reference_id", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 68, "name": "is_regrettable_termination", "comment": null}, "is_rehire": {"type": "boolean", "index": 69, "name": "is_rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 70, "name": "resignation_date", "comment": null}, "is_retired": {"type": "boolean", "index": 71, "name": "is_retired", "comment": null}, "retirement_date": {"type": "integer", "index": 72, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 73, "name": "retirement_eligibility_date", "comment": null}, "is_return_unknown": {"type": "boolean", "index": 74, "name": "is_return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 75, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 76, "name": "severance_date", "comment": null}, "is_terminated": {"type": "boolean", "index": 77, "name": "is_terminated", "comment": null}, "termination_date": {"type": "date", "index": 78, "name": "termination_date", "comment": null}, "is_termination_involuntary": {"type": "boolean", "index": 79, "name": "is_termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 80, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 81, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 82, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 83, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 84, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 85, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker"}, "model.workday.stg_workday__worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_base"}, "model.workday.stg_workday__worker_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_end", "comment": null}, "_fivetran_date": {"type": "date", "index": 4, "name": "_fivetran_date", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 5, "name": "end_employment_date", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 6, "name": "termination_date", "comment": null}, "history_unique_key": {"type": "text", "index": 7, "name": "history_unique_key", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 8, "name": "_fivetran_active", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 10, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 11, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 12, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 13, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 14, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 15, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 16, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 17, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 18, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 19, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 20, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 22, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 23, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 24, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 25, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 26, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 27, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 28, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 29, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 30, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 31, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 32, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 33, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 34, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 35, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 36, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 37, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 38, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 39, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 40, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 41, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 42, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 43, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 44, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 45, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 46, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 47, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 48, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 49, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 50, "name": "hire_rescinded", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 51, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 52, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 53, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 54, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 55, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 56, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 57, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 58, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 59, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 60, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 61, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 62, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 63, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 64, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 65, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 66, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 67, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 68, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 69, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 70, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 71, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 72, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 73, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 74, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 75, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 76, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 77, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 78, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 79, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 80, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 81, "name": "terminated", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 82, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 83, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 84, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 85, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 86, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 87, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 88, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_history"}, "model.workday.stg_workday__worker_leave_status": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 3, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 4, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 5, "name": "age_of_dependent", "comment": null}, "is_benefits_effect": {"type": "boolean", "index": 6, "name": "is_benefits_effect", "comment": null}, "child_birth_date": {"type": "date", "index": 7, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 8, "name": "child_sdate_of_death", "comment": null}, "is_continuous_service_accrual_effect": {"type": "boolean", "index": 9, "name": "is_continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 10, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 11, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 12, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 14, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 15, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 16, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 17, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 18, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 19, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 20, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 21, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 22, "name": "leave_percentage", "comment": null}, "leave_request_event_id": {"type": "text", "index": 23, "name": "leave_request_event_id", "comment": null}, "leave_return_event": {"type": "integer", "index": 24, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 25, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 26, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 27, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 28, "name": "location_during_leave", "comment": null}, "is_multiple_child_indicator": {"type": "integer", "index": 29, "name": "is_multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 30, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 31, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 32, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 33, "name": "number_of_previous_maternity_leaves", "comment": null}, "is_on_leave": {"type": "boolean", "index": 34, "name": "is_on_leave", "comment": null}, "is_paid_time_off_accrual_effect": {"type": "boolean", "index": 35, "name": "is_paid_time_off_accrual_effect", "comment": null}, "is_payroll_effect": {"type": "boolean", "index": 36, "name": "is_payroll_effect", "comment": null}, "is_single_parent_indicator": {"type": "integer", "index": 37, "name": "is_single_parent_indicator", "comment": null}, "is_caesarean_section_birth": {"type": "integer", "index": 38, "name": "is_caesarean_section_birth", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 39, "name": "social_security_disability_code", "comment": null}, "is_stock_vesting_effect": {"type": "boolean", "index": 40, "name": "is_stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 41, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 42, "name": "week_of_confinement", "comment": null}, "is_work_related": {"type": "integer", "index": 43, "name": "is_work_related", "comment": null}, "worker_id": {"type": "text", "index": 44, "name": "worker_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_leave_status"}, "model.workday.stg_workday__worker_leave_status_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_leave_status_base"}, "model.workday.stg_workday__worker_position": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 3, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 4, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 5, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 6, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 8, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 9, "name": "business_site_summary_local", "comment": null}, "position_location": {"type": "text", "index": 10, "name": "position_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 11, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 12, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 13, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 14, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 15, "name": "business_title", "comment": null}, "is_critical_job": {"type": "boolean", "index": 16, "name": "is_critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 17, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 18, "name": "difficulty_to_fill", "comment": null}, "position_effective_date": {"type": "date", "index": 19, "name": "position_effective_date", "comment": null}, "employee_type": {"type": "text", "index": 20, "name": "employee_type", "comment": null}, "position_end_date": {"type": "date", "index": 21, "name": "position_end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 22, "name": "end_employment_date", "comment": null}, "is_exclude_from_head_count": {"type": "boolean", "index": 23, "name": "is_exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 24, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 25, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 26, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 27, "name": "frequency", "comment": null}, "fte_percent": {"type": "integer", "index": 28, "name": "fte_percent", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 29, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 30, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 31, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 32, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 33, "name": "is_primary_job", "comment": null}, "is_job_exempt": {"type": "boolean", "index": 34, "name": "is_job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 35, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 36, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 37, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 38, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 39, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 40, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 41, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 42, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 43, "name": "payroll_file_number", "comment": null}, "position_id": {"type": "text", "index": 44, "name": "position_id", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 45, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 46, "name": "scheduled_weekly_hours", "comment": null}, "is_specify_paid_fte": {"type": "boolean", "index": 47, "name": "is_specify_paid_fte", "comment": null}, "is_specify_working_fte": {"type": "boolean", "index": 48, "name": "is_specify_working_fte", "comment": null}, "position_start_date": {"type": "date", "index": 49, "name": "position_start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 50, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 51, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 52, "name": "work_shift", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 53, "name": "is_work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 54, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 55, "name": "worker_hours_profile_classification", "comment": null}, "worker_id": {"type": "text", "index": 56, "name": "worker_id", "comment": null}, "working_fte": {"type": "double precision", "index": 57, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 58, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 59, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 60, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position"}, "model.workday.stg_workday__worker_position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_base"}, "model.workday.stg_workday__worker_position_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_date": {"type": "date", "index": 5, "name": "_fivetran_date", "comment": null}, "effective_date": {"type": "timestamp without time zone", "index": 6, "name": "effective_date", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 7, "name": "end_employment_date", "comment": null}, "history_unique_key": {"type": "text", "index": 8, "name": "history_unique_key", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 9, "name": "_fivetran_active", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 12, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 13, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 14, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 15, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 16, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 17, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 18, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 19, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 20, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 21, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 22, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 23, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 24, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 25, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 26, "name": "difficulty_to_fill", "comment": null}, "employee_type": {"type": "text", "index": 27, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 28, "name": "end_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 29, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 30, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 31, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 32, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 33, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 34, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 35, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 36, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 37, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 38, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 39, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 40, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 41, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 42, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 43, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 44, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 45, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 46, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 47, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 48, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 49, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 50, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 51, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 52, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 53, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 54, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 55, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 56, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 57, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 58, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 59, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 60, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 61, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 62, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 63, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_history"}, "model.workday.stg_workday__worker_position_organization": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 6, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 7, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 8, "name": "primary_business_site", "comment": null}, "is_used_in_change_organization_assignments": {"type": "boolean", "index": 9, "name": "is_used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_organization"}, "model.workday.stg_workday__worker_position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_organization_base"}, "model.workday.stg_workday__worker_position_organization_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "organization_id": {"type": "text", "index": 3, "name": "organization_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_date": {"type": "date", "index": 6, "name": "_fivetran_date", "comment": null}, "history_unique_key": {"type": "text", "index": 7, "name": "history_unique_key", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 9, "name": "_fivetran_active", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 11, "name": "date_of_pay_group_assignment", "comment": null}, "primary_business_site": {"type": "integer", "index": 12, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 13, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_organization_history"}, "model.workday.int_workday__employee_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_id": {"type": "text", "index": 1, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 2, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "wh_active": {"type": "boolean", "index": 7, "name": "wh_active", "comment": null}, "wph_active": {"type": "boolean", "index": 8, "name": "wph_active", "comment": null}, "wh_end_employment_date": {"type": "timestamp without time zone", "index": 9, "name": "wh_end_employment_date", "comment": null}, "wph_end_employment_date": {"type": "timestamp without time zone", "index": 10, "name": "wph_end_employment_date", "comment": null}, "wh_pay_through_date": {"type": "date", "index": 11, "name": "wh_pay_through_date", "comment": null}, "wph_pay_through_date": {"type": "date", "index": 12, "name": "wph_pay_through_date", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 13, "name": "termination_date", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 14, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 15, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 16, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 17, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 18, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 19, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 20, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 22, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 23, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 24, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 25, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 26, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 27, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 28, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 29, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 30, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 31, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 32, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 33, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 34, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 35, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 36, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 37, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 38, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 39, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 40, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 41, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 42, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 43, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 44, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 45, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 46, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 47, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 48, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 49, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 50, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 51, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 52, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 53, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 54, "name": "hire_rescinded", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 55, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 56, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 57, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 58, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 59, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 60, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 61, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 62, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 63, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 64, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 65, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 66, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 67, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 68, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 69, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "primary_termination_category": {"type": "text", "index": 70, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 71, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 72, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 73, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 74, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 75, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 76, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 77, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 78, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 79, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 80, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 81, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 82, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 83, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 84, "name": "terminated", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 85, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 86, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 87, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 88, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 89, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 90, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 91, "name": "worker_code", "comment": null}, "effective_date": {"type": "timestamp without time zone", "index": 92, "name": "effective_date", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 93, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 94, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 95, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 96, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 97, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 98, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 99, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 100, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 101, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 102, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 103, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 104, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 105, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 106, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 107, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 108, "name": "difficulty_to_fill", "comment": null}, "employee_type": {"type": "text", "index": 109, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 110, "name": "end_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 111, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 112, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 113, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 114, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 115, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 116, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 117, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 118, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 119, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 120, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 121, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 122, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 123, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 124, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 125, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 126, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 127, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 128, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 129, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 130, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 131, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 132, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 133, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 134, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 135, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 136, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 137, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 138, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 139, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 140, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 141, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 142, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 143, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 144, "name": "working_time_value", "comment": null}, "type": {"type": "text", "index": 145, "name": "type", "comment": null}, "additional_nationality": {"type": "integer", "index": 146, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 147, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 148, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 149, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 150, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 151, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 152, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 153, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 154, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 155, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 156, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 157, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 158, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 159, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 160, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 161, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 162, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 163, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 164, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 165, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 166, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 167, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 168, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 169, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 170, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 171, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 172, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 173, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 174, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 175, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 176, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 177, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__employee_history"}, "model.workday.int_workday__personal_details": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "int_workday__personal_details", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "date_of_birth": {"type": "date", "index": 3, "name": "date_of_birth", "comment": null}, "gender": {"type": "text", "index": 4, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 5, "name": "is_hispanic_or_latino", "comment": null}, "first_name": {"type": "text", "index": 6, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 7, "name": "last_name", "comment": null}, "email_address": {"type": "text", "index": 8, "name": "email_address", "comment": null}, "ethnicity_codes": {"type": "text", "index": 9, "name": "ethnicity_codes", "comment": null}, "military_status": {"type": "text", "index": 10, "name": "military_status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__personal_details"}, "model.workday.int_workday__worker_details": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_details", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "worker_code": {"type": "integer", "index": 3, "name": "worker_code", "comment": null}, "user_id": {"type": "text", "index": 4, "name": "user_id", "comment": null}, "universal_id": {"type": "integer", "index": 5, "name": "universal_id", "comment": null}, "is_user_active": {"type": "boolean", "index": 6, "name": "is_user_active", "comment": null}, "is_employed": {"type": "boolean", "index": 7, "name": "is_employed", "comment": null}, "hire_date": {"type": "date", "index": 8, "name": "hire_date", "comment": null}, "departure_date": {"type": "date", "index": 9, "name": "departure_date", "comment": null}, "days_of_employment": {"type": "integer", "index": 10, "name": "days_of_employment", "comment": null}, "is_terminated": {"type": "boolean", "index": 11, "name": "is_terminated", "comment": null}, "primary_termination_category": {"type": "text", "index": 12, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 13, "name": "primary_termination_reason", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 14, "name": "is_regrettable_termination", "comment": null}, "compensation_effective_date": {"type": "date", "index": 15, "name": "compensation_effective_date", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 16, "name": "employee_compensation_frequency", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 17, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 19, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_summary_currency": {"type": "text", "index": 20, "name": "annual_summary_currency", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_summary_primary_compensation_basis", "comment": null}, "compensation_grade_id": {"type": "text", "index": 23, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 24, "name": "compensation_grade_profile_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__worker_details"}, "model.workday.int_workday__worker_employee_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_employee_enhanced", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "worker_code": {"type": "integer", "index": 3, "name": "worker_code", "comment": null}, "user_id": {"type": "text", "index": 4, "name": "user_id", "comment": null}, "universal_id": {"type": "integer", "index": 5, "name": "universal_id", "comment": null}, "is_user_active": {"type": "boolean", "index": 6, "name": "is_user_active", "comment": null}, "is_employed": {"type": "boolean", "index": 7, "name": "is_employed", "comment": null}, "hire_date": {"type": "date", "index": 8, "name": "hire_date", "comment": null}, "departure_date": {"type": "date", "index": 9, "name": "departure_date", "comment": null}, "days_of_employment": {"type": "integer", "index": 10, "name": "days_of_employment", "comment": null}, "is_terminated": {"type": "boolean", "index": 11, "name": "is_terminated", "comment": null}, "primary_termination_category": {"type": "text", "index": 12, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 13, "name": "primary_termination_reason", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 14, "name": "is_regrettable_termination", "comment": null}, "compensation_effective_date": {"type": "date", "index": 15, "name": "compensation_effective_date", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 16, "name": "employee_compensation_frequency", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 17, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 19, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_summary_currency": {"type": "text", "index": 20, "name": "annual_summary_currency", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_summary_primary_compensation_basis", "comment": null}, "compensation_grade_id": {"type": "text", "index": 23, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 24, "name": "compensation_grade_profile_id", "comment": null}, "first_name": {"type": "text", "index": 25, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 26, "name": "last_name", "comment": null}, "date_of_birth": {"type": "date", "index": 27, "name": "date_of_birth", "comment": null}, "gender": {"type": "text", "index": 28, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 29, "name": "is_hispanic_or_latino", "comment": null}, "email_address": {"type": "text", "index": 30, "name": "email_address", "comment": null}, "ethnicity_codes": {"type": "text", "index": 31, "name": "ethnicity_codes", "comment": null}, "military_status": {"type": "text", "index": 32, "name": "military_status", "comment": null}, "position_id": {"type": "text", "index": 33, "name": "position_id", "comment": null}, "business_title": {"type": "text", "index": 34, "name": "business_title", "comment": null}, "job_profile_id": {"type": "text", "index": 35, "name": "job_profile_id", "comment": null}, "employee_type": {"type": "text", "index": 36, "name": "employee_type", "comment": null}, "position_location": {"type": "text", "index": 37, "name": "position_location", "comment": null}, "management_level_code": {"type": "text", "index": 38, "name": "management_level_code", "comment": null}, "fte_percent": {"type": "integer", "index": 39, "name": "fte_percent", "comment": null}, "days_at_position": {"type": "integer", "index": 40, "name": "days_at_position", "comment": null}, "position_start_date": {"type": "date", "index": 41, "name": "position_start_date", "comment": null}, "position_end_date": {"type": "date", "index": 42, "name": "position_end_date", "comment": null}, "position_effective_date": {"type": "date", "index": 43, "name": "position_effective_date", "comment": null}, "worker_positions": {"type": "bigint", "index": 44, "name": "worker_positions", "comment": null}, "worker_levels": {"type": "bigint", "index": 45, "name": "worker_levels", "comment": null}, "position_days": {"type": "bigint", "index": 46, "name": "position_days", "comment": null}, "is_employed_one_year": {"type": "boolean", "index": 47, "name": "is_employed_one_year", "comment": null}, "is_employed_five_years": {"type": "boolean", "index": 48, "name": "is_employed_five_years", "comment": null}, "is_employed_ten_years": {"type": "boolean", "index": 49, "name": "is_employed_ten_years", "comment": null}, "is_employed_twenty_years": {"type": "boolean", "index": 50, "name": "is_employed_twenty_years", "comment": null}, "is_employed_thirty_years": {"type": "boolean", "index": 51, "name": "is_employed_thirty_years", "comment": null}, "is_current_employee_one_year": {"type": "boolean", "index": 52, "name": "is_current_employee_one_year", "comment": null}, "is_current_employee_five_years": {"type": "boolean", "index": 53, "name": "is_current_employee_five_years", "comment": null}, "is_current_employee_ten_years": {"type": "boolean", "index": 54, "name": "is_current_employee_ten_years", "comment": null}, "is_current_employee_twenty_years": {"type": "boolean", "index": 55, "name": "is_current_employee_twenty_years", "comment": null}, "is_current_employee_thirty_years": {"type": "boolean", "index": 56, "name": "is_current_employee_thirty_years", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__worker_employee_enhanced"}, "model.workday.int_workday__worker_position_enriched": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_position_enriched", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_id": {"type": "text", "index": 1, "name": "employee_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "business_title": {"type": "text", "index": 5, "name": "business_title", "comment": null}, "job_profile_id": {"type": "text", "index": 6, "name": "job_profile_id", "comment": null}, "employee_type": {"type": "text", "index": 7, "name": "employee_type", "comment": null}, "position_location": {"type": "text", "index": 8, "name": "position_location", "comment": null}, "management_level_code": {"type": "text", "index": 9, "name": "management_level_code", "comment": null}, "fte_percent": {"type": "integer", "index": 10, "name": "fte_percent", "comment": null}, "days_at_position": {"type": "integer", "index": 11, "name": "days_at_position", "comment": null}, "position_start_date": {"type": "date", "index": 12, "name": "position_start_date", "comment": null}, "position_end_date": {"type": "date", "index": 13, "name": "position_end_date", "comment": null}, "position_effective_date": {"type": "date", "index": 14, "name": "position_effective_date", "comment": null}, "worker_positions": {"type": "bigint", "index": 15, "name": "worker_positions", "comment": null}, "worker_levels": {"type": "bigint", "index": 16, "name": "worker_levels", "comment": null}, "position_days": {"type": "bigint", "index": 17, "name": "position_days", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__worker_position_enriched"}, "model.workday.workday__employee_daily_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_day_id": {"type": "text", "index": 1, "name": "employee_day_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "employee_id": {"type": "text", "index": 3, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 4, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 5, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 6, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_end", "comment": null}, "wh_active": {"type": "boolean", "index": 9, "name": "wh_active", "comment": null}, "wph_active": {"type": "boolean", "index": 10, "name": "wph_active", "comment": null}, "wh_end_employment_date": {"type": "timestamp without time zone", "index": 11, "name": "wh_end_employment_date", "comment": null}, "wph_end_employment_date": {"type": "timestamp without time zone", "index": 12, "name": "wph_end_employment_date", "comment": null}, "wh_pay_through_date": {"type": "date", "index": 13, "name": "wh_pay_through_date", "comment": null}, "wph_pay_through_date": {"type": "date", "index": 14, "name": "wph_pay_through_date", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 15, "name": "termination_date", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 16, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 17, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 18, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 19, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 20, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 21, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 22, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 23, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 24, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 25, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 26, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 27, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 28, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 29, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 30, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 31, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 32, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 33, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 34, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 35, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 36, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 37, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 38, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 39, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 40, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 41, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 42, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 43, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 44, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 45, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 46, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 47, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 48, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 49, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 50, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 51, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 52, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 53, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 54, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 55, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 56, "name": "hire_rescinded", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 57, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 58, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 59, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 60, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 61, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 62, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 63, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 64, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 65, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 66, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 67, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 68, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 69, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 70, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 71, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "primary_termination_category": {"type": "text", "index": 72, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 73, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 74, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 75, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 76, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 77, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 78, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 79, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 80, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 81, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 82, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 83, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 84, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 85, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 86, "name": "terminated", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 87, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 88, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 89, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 90, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 91, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 92, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 93, "name": "worker_code", "comment": null}, "effective_date": {"type": "timestamp without time zone", "index": 94, "name": "effective_date", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 95, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 96, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 97, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 98, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 99, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 100, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 101, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 102, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 103, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 104, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 105, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 106, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 107, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 108, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 109, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 110, "name": "difficulty_to_fill", "comment": null}, "employee_type": {"type": "text", "index": 111, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 112, "name": "end_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 113, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 114, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 115, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 116, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 117, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 118, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 119, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 120, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 121, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 122, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 123, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 124, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 125, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 126, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 127, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 128, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 129, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 130, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 131, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 132, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 133, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 134, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 135, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 136, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 137, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 138, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 139, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 140, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 141, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 142, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 143, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 144, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 145, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 146, "name": "working_time_value", "comment": null}, "type": {"type": "text", "index": 147, "name": "type", "comment": null}, "additional_nationality": {"type": "integer", "index": 148, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 149, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 150, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 151, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 152, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 153, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 154, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 155, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 156, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 157, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 158, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 159, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 160, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 161, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 162, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 163, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 164, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 165, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 166, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 167, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 168, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 169, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 170, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 171, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 172, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 173, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 174, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 175, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 176, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 177, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 178, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 179, "name": "ll", "comment": null}, "row_num": {"type": "bigint", "index": 180, "name": "row_num", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_daily_history"}, "model.workday.workday__employee_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_id": {"type": "text", "index": 1, "name": "employee_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "position_start_date": {"type": "date", "index": 4, "name": "position_start_date", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "worker_code": {"type": "integer", "index": 6, "name": "worker_code", "comment": null}, "user_id": {"type": "text", "index": 7, "name": "user_id", "comment": null}, "universal_id": {"type": "integer", "index": 8, "name": "universal_id", "comment": null}, "is_user_active": {"type": "boolean", "index": 9, "name": "is_user_active", "comment": null}, "is_employed": {"type": "boolean", "index": 10, "name": "is_employed", "comment": null}, "hire_date": {"type": "date", "index": 11, "name": "hire_date", "comment": null}, "departure_date": {"type": "date", "index": 12, "name": "departure_date", "comment": null}, "days_of_employment": {"type": "integer", "index": 13, "name": "days_of_employment", "comment": null}, "is_terminated": {"type": "boolean", "index": 14, "name": "is_terminated", "comment": null}, "primary_termination_category": {"type": "text", "index": 15, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 16, "name": "primary_termination_reason", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 17, "name": "is_regrettable_termination", "comment": null}, "compensation_effective_date": {"type": "date", "index": 18, "name": "compensation_effective_date", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 19, "name": "employee_compensation_frequency", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 20, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_summary_currency": {"type": "text", "index": 23, "name": "annual_summary_currency", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 24, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 25, "name": "annual_summary_primary_compensation_basis", "comment": null}, "compensation_grade_id": {"type": "text", "index": 26, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 27, "name": "compensation_grade_profile_id", "comment": null}, "first_name": {"type": "text", "index": 28, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 29, "name": "last_name", "comment": null}, "date_of_birth": {"type": "date", "index": 30, "name": "date_of_birth", "comment": null}, "gender": {"type": "text", "index": 31, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 32, "name": "is_hispanic_or_latino", "comment": null}, "email_address": {"type": "text", "index": 33, "name": "email_address", "comment": null}, "ethnicity_codes": {"type": "text", "index": 34, "name": "ethnicity_codes", "comment": null}, "military_status": {"type": "text", "index": 35, "name": "military_status", "comment": null}, "business_title": {"type": "text", "index": 36, "name": "business_title", "comment": null}, "job_profile_id": {"type": "text", "index": 37, "name": "job_profile_id", "comment": null}, "employee_type": {"type": "text", "index": 38, "name": "employee_type", "comment": null}, "position_location": {"type": "text", "index": 39, "name": "position_location", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "fte_percent": {"type": "integer", "index": 41, "name": "fte_percent", "comment": null}, "days_at_position": {"type": "integer", "index": 42, "name": "days_at_position", "comment": null}, "position_end_date": {"type": "date", "index": 43, "name": "position_end_date", "comment": null}, "position_effective_date": {"type": "date", "index": 44, "name": "position_effective_date", "comment": null}, "worker_positions": {"type": "bigint", "index": 45, "name": "worker_positions", "comment": null}, "worker_levels": {"type": "bigint", "index": 46, "name": "worker_levels", "comment": null}, "position_days": {"type": "bigint", "index": 47, "name": "position_days", "comment": null}, "is_employed_one_year": {"type": "boolean", "index": 48, "name": "is_employed_one_year", "comment": null}, "is_employed_five_years": {"type": "boolean", "index": 49, "name": "is_employed_five_years", "comment": null}, "is_employed_ten_years": {"type": "boolean", "index": 50, "name": "is_employed_ten_years", "comment": null}, "is_employed_twenty_years": {"type": "boolean", "index": 51, "name": "is_employed_twenty_years", "comment": null}, "is_employed_thirty_years": {"type": "boolean", "index": 52, "name": "is_employed_thirty_years", "comment": null}, "is_current_employee_one_year": {"type": "boolean", "index": 53, "name": "is_current_employee_one_year", "comment": null}, "is_current_employee_five_years": {"type": "boolean", "index": 54, "name": "is_current_employee_five_years", "comment": null}, "is_current_employee_ten_years": {"type": "boolean", "index": 55, "name": "is_current_employee_ten_years", "comment": null}, "is_current_employee_twenty_years": {"type": "boolean", "index": 56, "name": "is_current_employee_twenty_years", "comment": null}, "is_current_employee_thirty_years": {"type": "boolean", "index": 57, "name": "is_current_employee_thirty_years", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_overview"}, "model.workday.workday__job_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "job_profile_code": {"type": "text", "index": 3, "name": "job_profile_code", "comment": null}, "job_title": {"type": "text", "index": 4, "name": "job_title", "comment": null}, "private_title": {"type": "integer", "index": 5, "name": "private_title", "comment": null}, "job_summary": {"type": "text", "index": 6, "name": "job_summary", "comment": null}, "job_description": {"type": "text", "index": 7, "name": "job_description", "comment": null}, "job_family_codes": {"type": "text", "index": 8, "name": "job_family_codes", "comment": null}, "job_family_summaries": {"type": "text", "index": 9, "name": "job_family_summaries", "comment": null}, "job_family_group_codes": {"type": "text", "index": 10, "name": "job_family_group_codes", "comment": null}, "job_family_group_summaries": {"type": "text", "index": 11, "name": "job_family_group_summaries", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__job_overview"}, "model.workday.workday__monthly_summary": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_month": {"type": "timestamp with time zone", "index": 1, "name": "date_month", "comment": null}, "new_employees": {"type": "bigint", "index": 2, "name": "new_employees", "comment": null}, "churned_employees": {"type": "bigint", "index": 3, "name": "churned_employees", "comment": null}, "churned_workers": {"type": "bigint", "index": 4, "name": "churned_workers", "comment": null}, "active_employees": {"type": "bigint", "index": 5, "name": "active_employees", "comment": null}, "active_male_employees": {"type": "bigint", "index": 6, "name": "active_male_employees", "comment": null}, "active_female_employees": {"type": "bigint", "index": 7, "name": "active_female_employees", "comment": null}, "active_known_gender_employees": {"type": "bigint", "index": 8, "name": "active_known_gender_employees", "comment": null}, "active_workers": {"type": "bigint", "index": 9, "name": "active_workers", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__monthly_summary"}, "model.workday.workday__organization_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "organization_role_id": {"type": "text", "index": 2, "name": "organization_role_id", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "organization_code": {"type": "text", "index": 6, "name": "organization_code", "comment": null}, "organization_name": {"type": "text", "index": 7, "name": "organization_name", "comment": null}, "organization_type": {"type": "text", "index": 8, "name": "organization_type", "comment": null}, "organization_sub_type": {"type": "text", "index": 9, "name": "organization_sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 10, "name": "superior_organization_id", "comment": null}, "top_level_organization_id": {"type": "text", "index": 11, "name": "top_level_organization_id", "comment": null}, "manager_id": {"type": "text", "index": 12, "name": "manager_id", "comment": null}, "organization_role_code": {"type": "text", "index": 13, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__organization_overview"}, "model.workday.workday__position_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "position_code": {"type": "text", "index": 3, "name": "position_code", "comment": null}, "job_posting_title": {"type": "text", "index": 4, "name": "job_posting_title", "comment": null}, "effective_date": {"type": "date", "index": 5, "name": "effective_date", "comment": null}, "is_closed": {"type": "boolean", "index": 6, "name": "is_closed", "comment": null}, "is_hiring_freeze": {"type": "boolean", "index": 7, "name": "is_hiring_freeze", "comment": null}, "is_available_for_hire": {"type": "boolean", "index": 8, "name": "is_available_for_hire", "comment": null}, "availability_date": {"type": "date", "index": 9, "name": "availability_date", "comment": null}, "is_available_for_recruiting": {"type": "boolean", "index": 10, "name": "is_available_for_recruiting", "comment": null}, "earliest_hire_date": {"type": "date", "index": 11, "name": "earliest_hire_date", "comment": null}, "is_available_for_overlap": {"type": "boolean", "index": 12, "name": "is_available_for_overlap", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 13, "name": "earliest_overlap_date", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 14, "name": "worker_for_filled_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 15, "name": "worker_type_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 16, "name": "position_time_type_code", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 17, "name": "supervisory_organization_id", "comment": null}, "job_profile_id": {"type": "text", "index": 18, "name": "job_profile_id", "comment": null}, "compensation_package_code": {"type": "integer", "index": 19, "name": "compensation_package_code", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 20, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 21, "name": "compensation_grade_profile_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__position_overview"}}, "sources": {"source.workday.workday.job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family"}, "source.workday.workday.job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_group"}, "source.workday.workday.job_family_job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_family_group"}, "source.workday.workday.job_family_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_profile"}, "source.workday.workday.job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_profile"}, "source.workday.workday.military_service": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.military_service"}, "source.workday.workday.organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization"}, "source.workday.workday.organization_job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_job_family"}, "source.workday.workday.organization_role": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role"}, "source.workday.workday.organization_role_worker": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role_worker"}, "source.workday.workday.person_contact_email_address": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_contact_email_address"}, "source.workday.workday.person_name": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_name"}, "source.workday.workday.personal_information_ethnicity": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_ethnicity"}, "source.workday.workday.personal_information_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_history"}, "source.workday.workday.position": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position"}, "source.workday.workday.position_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_job_profile"}, "source.workday.workday.position_organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_organization"}, "source.workday.workday.worker_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_history"}, "source.workday.workday.worker_leave_status": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_leave_status"}, "source.workday.workday.worker_position_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_history"}, "source.workday.workday.worker_position_organization_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_organization_history"}}, "errors": null} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 2bcc794..ca1e6f8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -64,7 +64,7 @@ * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",c="[object Array]",u="[object Boolean]",d="[object Date]",p="[object Error]",f="[object Function]",h="[object GeneratorFunction]",g="[object Map]",m="[object Number]",v="[object Object]",b="[object RegExp]",y="[object Set]",x="[object String]",w="[object Symbol]",k="[object WeakMap]",A="[object ArrayBuffer]",E="[object DataView]",S="[object Float32Array]",$="[object Float64Array]",C="[object Int8Array]",_="[object Int16Array]",O="[object Int32Array]",T="[object Uint8Array]",j="[object Uint16Array]",P="[object Uint32Array]",D=/\b__p \+= '';/g,R=/\b(__p \+=) '' \+/g,I=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,M=/[&<>"']/g,z=RegExp(N.source),L=RegExp(M.source),B=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U=/^\w*$/,H=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,G=/[\\^$.*+?()[\]{}|]/g,W=RegExp(G.source),Y=/^\s+/,X=/\s/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,K=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/[()=,{}\[\]\/\s]/,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ue=/($^)/,de=/['\n\r\u2028\u2029\\]/g,pe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",he="[\\ud800-\\udfff]",ge="["+fe+"]",me="["+pe+"]",ve="\\d+",be="[\\u2700-\\u27bf]",ye="[a-z\\xdf-\\xf6\\xf8-\\xff]",xe="[^\\ud800-\\udfff"+fe+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",ke="[^\\ud800-\\udfff]",Ae="(?:\\ud83c[\\udde6-\\uddff]){2}",Ee="[\\ud800-\\udbff][\\udc00-\\udfff]",Se="[A-Z\\xc0-\\xd6\\xd8-\\xde]",$e="(?:"+ye+"|"+xe+")",Ce="(?:"+Se+"|"+xe+")",_e="(?:"+me+"|"+we+")"+"?",Oe="[\\ufe0e\\ufe0f]?"+_e+("(?:\\u200d(?:"+[ke,Ae,Ee].join("|")+")[\\ufe0e\\ufe0f]?"+_e+")*"),Te="(?:"+[be,Ae,Ee].join("|")+")"+Oe,je="(?:"+[ke+me+"?",me,Ae,Ee,he].join("|")+")",Pe=RegExp("['’]","g"),De=RegExp(me,"g"),Re=RegExp(we+"(?="+we+")|"+je+Oe,"g"),Ie=RegExp([Se+"?"+ye+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ge,Se,"$"].join("|")+")",Ce+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ge,Se+$e,"$"].join("|")+")",Se+"?"+$e+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,Te].join("|"),"g"),Ne=RegExp("[\\u200d\\ud800-\\udfff"+pe+"\\ufe0e\\ufe0f]"),Me=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ze=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Le=-1,Be={};Be[S]=Be[$]=Be[C]=Be[_]=Be[O]=Be[T]=Be["[object Uint8ClampedArray]"]=Be[j]=Be[P]=!0,Be[l]=Be[c]=Be[A]=Be[u]=Be[E]=Be[d]=Be[p]=Be[f]=Be[g]=Be[m]=Be[v]=Be[b]=Be[y]=Be[x]=Be[k]=!1;var Fe={};Fe[l]=Fe[c]=Fe[A]=Fe[E]=Fe[u]=Fe[d]=Fe[S]=Fe[$]=Fe[C]=Fe[_]=Fe[O]=Fe[g]=Fe[m]=Fe[v]=Fe[b]=Fe[y]=Fe[x]=Fe[w]=Fe[T]=Fe["[object Uint8ClampedArray]"]=Fe[j]=Fe[P]=!0,Fe[p]=Fe[f]=Fe[k]=!1;var qe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ve=parseFloat,Ue=parseInt,He="object"==typeof e&&e&&e.Object===Object&&e,Ge="object"==typeof self&&self&&self.Object===Object&&self,We=He||Ge||Function("return this")(),Ye=t&&!t.nodeType&&t,Xe=Ye&&"object"==typeof r&&r&&!r.nodeType&&r,Ze=Xe&&Xe.exports===Ye,Qe=Ze&&He.process,Je=function(){try{var e=Xe&&Xe.require&&Xe.require("util").types;return e||Qe&&Qe.binding&&Qe.binding("util")}catch(e){}}(),Ke=Je&&Je.isArrayBuffer,et=Je&&Je.isDate,tt=Je&&Je.isMap,nt=Je&&Je.isRegExp,rt=Je&&Je.isSet,it=Je&&Je.isTypedArray;function ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function pt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function It(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function Nt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Mt=$t({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),zt=$t({"&":"&","<":"<",">":">",'"':""","'":"'"});function Lt(e){return"\\"+qe[e]}function Bt(e){return Ne.test(e)}function Ft(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function qt(e,t){return function(n){return e(t(n))}}function Vt(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"});var Zt=function e(t){var n,r=(t=null==t?We:Zt.defaults(We.Object(),t,Zt.pick(We,ze))).Array,i=t.Date,X=t.Error,pe=t.Function,fe=t.Math,he=t.Object,ge=t.RegExp,me=t.String,ve=t.TypeError,be=r.prototype,ye=pe.prototype,xe=he.prototype,we=t["__core-js_shared__"],ke=ye.toString,Ae=xe.hasOwnProperty,Ee=0,Se=(n=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",$e=xe.toString,Ce=ke.call(he),_e=We._,Oe=ge("^"+ke.call(Ae).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Te=Ze?t.Buffer:void 0,je=t.Symbol,Re=t.Uint8Array,Ne=Te?Te.allocUnsafe:void 0,qe=qt(he.getPrototypeOf,he),He=he.create,Ge=xe.propertyIsEnumerable,Ye=be.splice,Xe=je?je.isConcatSpreadable:void 0,Qe=je?je.iterator:void 0,Je=je?je.toStringTag:void 0,bt=function(){try{var e=eo(he,"defineProperty");return e({},"",{}),e}catch(e){}}(),$t=t.clearTimeout!==We.clearTimeout&&t.clearTimeout,Qt=i&&i.now!==We.Date.now&&i.now,Jt=t.setTimeout!==We.setTimeout&&t.setTimeout,Kt=fe.ceil,en=fe.floor,tn=he.getOwnPropertySymbols,nn=Te?Te.isBuffer:void 0,rn=t.isFinite,on=be.join,an=qt(he.keys,he),sn=fe.max,ln=fe.min,cn=i.now,un=t.parseInt,dn=fe.random,pn=be.reverse,fn=eo(t,"DataView"),hn=eo(t,"Map"),gn=eo(t,"Promise"),mn=eo(t,"Set"),vn=eo(t,"WeakMap"),bn=eo(he,"create"),yn=vn&&new vn,xn={},wn=_o(fn),kn=_o(hn),An=_o(gn),En=_o(mn),Sn=_o(vn),$n=je?je.prototype:void 0,Cn=$n?$n.valueOf:void 0,_n=$n?$n.toString:void 0;function On(e){if(Ha(e)&&!Ra(e)&&!(e instanceof Dn)){if(e instanceof Pn)return e;if(Ae.call(e,"__wrapped__"))return Oo(e)}return new Pn(e)}var Tn=function(){function e(){}return function(t){if(!Ua(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function jn(){}function Pn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Dn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Rn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Qn(e,t,n,r,i,o){var a,s=1&t,c=2&t,p=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!Ua(e))return e;var k=Ra(e);if(k){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ae.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return bi(e,a)}else{var D=ro(e),R=D==f||D==h;if(za(e))return pi(e,s);if(D==v||D==l||R&&!i){if(a=c||R?{}:oo(e),!s)return c?function(e,t){return yi(e,no(e),t)}(e,function(e,t){return e&&yi(t,ks(t),e)}(a,e)):function(e,t){return yi(e,to(e),t)}(e,Wn(a,e))}else{if(!Fe[D])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case A:return fi(e);case u:case d:return new r(+e);case E:return function(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case S:case $:case C:case _:case O:case T:case"[object Uint8ClampedArray]":case j:case P:return hi(e,n);case g:return new r;case m:case x:return new r(e);case b:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case y:return new r;case w:return i=e,Cn?he(Cn.call(i)):{}}var i}(e,D,s)}}o||(o=new zn);var I=o.get(e);if(I)return I;o.set(e,a),Za(e)?e.forEach((function(r){a.add(Qn(r,t,n,r,e,o))})):Ga(e)&&e.forEach((function(r,i){a.set(i,Qn(r,t,n,i,e,o))}));var N=k?void 0:(p?c?Wi:Gi:c?ks:ws)(e);return st(N||e,(function(r,i){N&&(r=e[i=r]),Un(a,i,Qn(r,t,n,i,e,o))})),a}function Jn(e,t,n){var r=n.length;if(null==e)return!r;for(e=he(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function Kn(e,t,n){if("function"!=typeof e)throw new ve(o);return wo((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var i=-1,o=dt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=ft(t,jt(n))),r?(o=pt,a=!1):t.length>=200&&(o=Dt,a=!1,t=new Mn(t));e:for(;++i-1},In.prototype.set=function(e,t){var n=this.__data__,r=Hn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Nn.prototype.clear=function(){this.size=0,this.__data__={hash:new Rn,map:new(hn||In),string:new Rn}},Nn.prototype.delete=function(e){var t=Ji(this,e).delete(e);return this.size-=t?1:0,t},Nn.prototype.get=function(e){return Ji(this,e).get(e)},Nn.prototype.has=function(e){return Ji(this,e).has(e)},Nn.prototype.set=function(e,t){var n=Ji(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Mn.prototype.add=Mn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Mn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new In,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof In){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nn(r)}return n.set(e,t),this.size=n.size,this};var tr=ki(cr),nr=ki(ur,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function ir(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?ar(s,t-1,n,r,i):ht(i,s):r||(i[i.length]=s)}return i}var sr=Ai(),lr=Ai(!0);function cr(e,t){return e&&sr(e,t,ws)}function ur(e,t){return e&&lr(e,t,ws)}function dr(e,t){return ut(t,(function(t){return Fa(e[t])}))}function pr(e,t){for(var n=0,r=(t=li(t,e)).length;null!=e&&nt}function mr(e,t){return null!=e&&Ae.call(e,t)}function vr(e,t){return null!=e&&t in he(e)}function br(e,t,n){for(var i=n?pt:dt,o=e[0].length,a=e.length,s=a,l=r(a),c=1/0,u=[];s--;){var d=e[s];s&&t&&(d=ft(d,jt(t))),c=ln(d.length,c),l[s]=!n&&(t||o>=120&&d.length>=120)?new Mn(s&&d):void 0}d=e[0];var p=-1,f=l[0];e:for(;++p=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)}))}function Rr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&Ye.call(s,l,1),Ye.call(e,l,1);return e}function Nr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;so(i)?Ye.call(e,i,1):ei(e,i)}}return e}function Mr(e,t){return e+en(dn()*(t-e+1))}function zr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function Lr(e,t){return ko(mo(e,t,Ws),e+"")}function Br(e){return Bn(Ts(e))}function Fr(e,t){var n=Ts(e);return So(n,Zn(t,0,n.length))}function qr(e,t,n,r){if(!Ua(e))return e;for(var i=-1,o=(t=li(t,e)).length,a=o-1,s=e;null!=s&&++io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i>>1,a=e[o];null!==a&&!Ja(a)&&(n?a<=t:a=200){var c=t?null:zi(e);if(c)return Ut(c);a=!1,i=Dt,l=new Mn}else l=t?[]:s;e:for(;++r=r?e:Gr(e,t,n)}var di=$t||function(e){return We.clearTimeout(e)};function pi(e,t){if(t)return e.slice();var n=e.length,r=Ne?Ne(n):new e.constructor(n);return e.copy(r),r}function fi(e){var t=new e.constructor(e.byteLength);return new Re(t).set(new Re(e)),t}function hi(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function gi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=Ja(e),a=void 0!==t,s=null===t,l=t==t,c=Ja(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&lo(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=he(t);++r-1?i[o?t[a]:a]:void 0}}function _i(e){return Hi((function(t){var n=t.length,r=n,i=Pn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ve(o);if(i&&!s&&"wrapper"==Xi(a))var s=new Pn([],!0)}for(r=s?r:n;++r1&&y.reverse(),d&&cs))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,f=2&n?new Mn:void 0;for(o.set(e,t),o.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Z,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Q);return t?t[1].split(J):[]}(r),n)))}function Eo(e){var t=0,n=0;return function(){var r=cn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function So(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Xo(e,n)}));function na(e){var t=On(e);return t.__chain__=!0,t}function ra(e,t){return t(e)}var ia=Hi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Xn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Dn&&so(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ra,args:[i],thisArg:void 0}),new Pn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var oa=xi((function(e,t,n){Ae.call(e,n)?++e[n]:Yn(e,n,1)}));var aa=Ci(Do),sa=Ci(Ro);function la(e,t){return(Ra(e)?st:tr)(e,Qi(t,3))}function ca(e,t){return(Ra(e)?lt:nr)(e,Qi(t,3))}var ua=xi((function(e,t,n){Ae.call(e,n)?e[n].push(t):Yn(e,n,[t])}));var da=Lr((function(e,t,n){var i=-1,o="function"==typeof t,a=Na(e)?r(e.length):[];return tr(e,(function(e){a[++i]=o?ot(t,e,n):yr(e,t,n)})),a})),pa=xi((function(e,t,n){Yn(e,n,t)}));function fa(e,t){return(Ra(e)?ft:_r)(e,Qi(t,3))}var ha=xi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ga=Lr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&lo(e,t[0],t[1])?t=[]:n>2&&lo(t[0],t[1],t[2])&&(t=[t[0]]),Dr(e,ar(t,1),[])})),ma=Qt||function(){return We.Date.now()};function va(e,t,n){return t=n?void 0:t,Bi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ba(e,t){var n;if("function"!=typeof t)throw new ve(o);return e=is(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ya=Lr((function(e,t,n){var r=1;if(n.length){var i=Vt(n,Zi(ya));r|=32}return Bi(e,r,t,n,i)})),xa=Lr((function(e,t,n){var r=3;if(n.length){var i=Vt(n,Zi(xa));r|=32}return Bi(t,r,e,n,i)}));function wa(e,t,n){var r,i,a,s,l,c,u=0,d=!1,p=!1,f=!0;if("function"!=typeof e)throw new ve(o);function h(t){var n=r,o=i;return r=i=void 0,u=t,s=e.apply(o,n)}function g(e){return u=e,l=wo(v,t),d?h(e):s}function m(e){var n=e-c;return void 0===c||n>=t||n<0||p&&e-u>=a}function v(){var e=ma();if(m(e))return b(e);l=wo(v,function(e){var n=t-(e-c);return p?ln(n,a-(e-u)):n}(e))}function b(e){return l=void 0,f&&r?h(e):(r=i=void 0,s)}function y(){var e=ma(),n=m(e);if(r=arguments,i=this,c=e,n){if(void 0===l)return g(c);if(p)return di(l),l=wo(v,t),h(c)}return void 0===l&&(l=wo(v,t)),s}return t=as(t)||0,Ua(n)&&(d=!!n.leading,a=(p="maxWait"in n)?sn(as(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==l&&di(l),u=0,r=c=i=l=void 0},y.flush=function(){return void 0===l?s:b(ma())},y}var ka=Lr((function(e,t){return Kn(e,1,t)})),Aa=Lr((function(e,t,n){return Kn(e,as(t)||0,n)}));function Ea(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ve(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ea.Cache||Nn),n}function Sa(e){if("function"!=typeof e)throw new ve(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ea.Cache=Nn;var $a=ci((function(e,t){var n=(t=1==t.length&&Ra(t[0])?ft(t[0],jt(Qi())):ft(ar(t,1),jt(Qi()))).length;return Lr((function(r){for(var i=-1,o=ln(r.length,n);++i=t})),Da=xr(function(){return arguments}())?xr:function(e){return Ha(e)&&Ae.call(e,"callee")&&!Ge.call(e,"callee")},Ra=r.isArray,Ia=Ke?jt(Ke):function(e){return Ha(e)&&hr(e)==A};function Na(e){return null!=e&&Va(e.length)&&!Fa(e)}function Ma(e){return Ha(e)&&Na(e)}var za=nn||al,La=et?jt(et):function(e){return Ha(e)&&hr(e)==d};function Ba(e){if(!Ha(e))return!1;var t=hr(e);return t==p||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ya(e)}function Fa(e){if(!Ua(e))return!1;var t=hr(e);return t==f||t==h||"[object AsyncFunction]"==t||"[object Proxy]"==t}function qa(e){return"number"==typeof e&&e==is(e)}function Va(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ua(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ha(e){return null!=e&&"object"==typeof e}var Ga=tt?jt(tt):function(e){return Ha(e)&&ro(e)==g};function Wa(e){return"number"==typeof e||Ha(e)&&hr(e)==m}function Ya(e){if(!Ha(e)||hr(e)!=v)return!1;var t=qe(e);if(null===t)return!0;var n=Ae.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==Ce}var Xa=nt?jt(nt):function(e){return Ha(e)&&hr(e)==b};var Za=rt?jt(rt):function(e){return Ha(e)&&ro(e)==y};function Qa(e){return"string"==typeof e||!Ra(e)&&Ha(e)&&hr(e)==x}function Ja(e){return"symbol"==typeof e||Ha(e)&&hr(e)==w}var Ka=it?jt(it):function(e){return Ha(e)&&Va(e.length)&&!!Be[hr(e)]};var es=Ii(Cr),ts=Ii((function(e,t){return e<=t}));function ns(e){if(!e)return[];if(Na(e))return Qa(e)?Wt(e):bi(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=ro(e);return(t==g?Ft:t==y?Ut:Ts)(e)}function rs(e){return e?(e=as(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function is(e){var t=rs(e),n=t%1;return t==t?n?t-n:t:0}function os(e){return e?Zn(is(e),0,4294967295):0}function as(e){if("number"==typeof e)return e;if(Ja(e))return NaN;if(Ua(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ua(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Tt(e);var n=oe.test(e);return n||se.test(e)?Ue(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function ss(e){return yi(e,ks(e))}function ls(e){return null==e?"":Jr(e)}var cs=wi((function(e,t){if(fo(t)||Na(t))yi(t,ws(t),e);else for(var n in t)Ae.call(t,n)&&Un(e,n,t[n])})),us=wi((function(e,t){yi(t,ks(t),e)})),ds=wi((function(e,t,n,r){yi(t,ks(t),e,r)})),ps=wi((function(e,t,n,r){yi(t,ws(t),e,r)})),fs=Hi(Xn);var hs=Lr((function(e,t){e=he(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&lo(t[0],t[1],i)&&(r=1);++n1),t})),yi(e,Wi(e),n),r&&(n=Qn(n,7,Vi));for(var i=t.length;i--;)ei(n,t[i]);return n}));var $s=Hi((function(e,t){return null==e?{}:function(e,t){return Rr(e,t,(function(t,n){return vs(e,n)}))}(e,t)}));function Cs(e,t){if(null==e)return{};var n=ft(Wi(e),(function(e){return[e]}));return t=Qi(t),Rr(e,n,(function(e,n){return t(e,n[0])}))}var _s=Li(ws),Os=Li(ks);function Ts(e){return null==e?[]:Pt(e,ws(e))}var js=Si((function(e,t,n){return t=t.toLowerCase(),e+(n?Ps(t):t)}));function Ps(e){return Bs(ls(e).toLowerCase())}function Ds(e){return(e=ls(e))&&e.replace(ce,Mt).replace(De,"")}var Rs=Si((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Is=Si((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ns=Ei("toLowerCase");var Ms=Si((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var zs=Si((function(e,t,n){return e+(n?" ":"")+Bs(t)}));var Ls=Si((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Bs=Ei("toUpperCase");function Fs(e,t,n){return e=ls(e),void 0===(t=n?void 0:t)?function(e){return Me.test(e)}(e)?function(e){return e.match(Ie)||[]}(e):function(e){return e.match(K)||[]}(e):e.match(t)||[]}var qs=Lr((function(e,t){try{return ot(e,void 0,t)}catch(e){return Ba(e)?e:new X(e)}})),Vs=Hi((function(e,t){return st(t,(function(t){t=Co(t),Yn(e,t,ya(e[t],e))})),e}));function Us(e){return function(){return e}}var Hs=_i(),Gs=_i(!0);function Ws(e){return e}function Ys(e){return Er("function"==typeof e?e:Qn(e,1))}var Xs=Lr((function(e,t){return function(n){return yr(n,e,t)}})),Zs=Lr((function(e,t){return function(n){return yr(e,n,t)}}));function Qs(e,t,n){var r=ws(t),i=dr(t,r);null!=n||Ua(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=dr(t,ws(t)));var o=!(Ua(n)&&"chain"in n&&!n.chain),a=Fa(e);return st(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=bi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,ht([this.value()],arguments))})})),e}function Js(){}var Ks=Pi(ft),el=Pi(ct),tl=Pi(vt);function nl(e){return co(e)?St(Co(e)):function(e){return function(t){return pr(t,e)}}(e)}var rl=Ri(),il=Ri(!0);function ol(){return[]}function al(){return!1}var sl=ji((function(e,t){return e+t}),0),ll=Mi("ceil"),cl=ji((function(e,t){return e/t}),1),ul=Mi("floor");var dl,pl=ji((function(e,t){return e*t}),1),fl=Mi("round"),hl=ji((function(e,t){return e-t}),0);return On.after=function(e,t){if("function"!=typeof t)throw new ve(o);return e=is(e),function(){if(--e<1)return t.apply(this,arguments)}},On.ary=va,On.assign=cs,On.assignIn=us,On.assignInWith=ds,On.assignWith=ps,On.at=fs,On.before=ba,On.bind=ya,On.bindAll=Vs,On.bindKey=xa,On.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ra(e)?e:[e]},On.chain=na,On.chunk=function(e,t,n){t=(n?lo(e,t,n):void 0===t)?1:sn(is(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=r(Kt(i/t));oi?0:i+n),(r=void 0===r||r>i?i:is(r))<0&&(r+=i),r=n>r?0:os(r);n>>0)?(e=ls(e))&&("string"==typeof t||null!=t&&!Xa(t))&&!(t=Jr(t))&&Bt(e)?ui(Wt(e),0,n):e.split(t,n):[]},On.spread=function(e,t){if("function"!=typeof e)throw new ve(o);return t=null==t?0:sn(is(t),0),Lr((function(n){var r=n[t],i=ui(n,0,t);return r&&ht(i,r),ot(e,this,i)}))},On.tail=function(e){var t=null==e?0:e.length;return t?Gr(e,1,t):[]},On.take=function(e,t,n){return e&&e.length?Gr(e,0,(t=n||void 0===t?1:is(t))<0?0:t):[]},On.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Gr(e,(t=r-(t=n||void 0===t?1:is(t)))<0?0:t,r):[]},On.takeRightWhile=function(e,t){return e&&e.length?ni(e,Qi(t,3),!1,!0):[]},On.takeWhile=function(e,t){return e&&e.length?ni(e,Qi(t,3)):[]},On.tap=function(e,t){return t(e),e},On.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ve(o);return Ua(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),wa(e,t,{leading:r,maxWait:t,trailing:i})},On.thru=ra,On.toArray=ns,On.toPairs=_s,On.toPairsIn=Os,On.toPath=function(e){return Ra(e)?ft(e,Co):Ja(e)?[e]:bi($o(ls(e)))},On.toPlainObject=ss,On.transform=function(e,t,n){var r=Ra(e),i=r||za(e)||Ka(e);if(t=Qi(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ua(e)&&Fa(o)?Tn(qe(e)):{}}return(i?st:cr)(e,(function(e,r,i){return t(n,e,r,i)})),n},On.unary=function(e){return va(e,1)},On.union=Ho,On.unionBy=Go,On.unionWith=Wo,On.uniq=function(e){return e&&e.length?Kr(e):[]},On.uniqBy=function(e,t){return e&&e.length?Kr(e,Qi(t,2)):[]},On.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Kr(e,void 0,t):[]},On.unset=function(e,t){return null==e||ei(e,t)},On.unzip=Yo,On.unzipWith=Xo,On.update=function(e,t,n){return null==e?e:ti(e,t,si(n))},On.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ti(e,t,si(n),r)},On.values=Ts,On.valuesIn=function(e){return null==e?[]:Pt(e,ks(e))},On.without=Zo,On.words=Fs,On.wrap=function(e,t){return Ca(si(t),e)},On.xor=Qo,On.xorBy=Jo,On.xorWith=Ko,On.zip=ea,On.zipObject=function(e,t){return oi(e||[],t||[],Un)},On.zipObjectDeep=function(e,t){return oi(e||[],t||[],qr)},On.zipWith=ta,On.entries=_s,On.entriesIn=Os,On.extend=us,On.extendWith=ds,Qs(On,On),On.add=sl,On.attempt=qs,On.camelCase=js,On.capitalize=Ps,On.ceil=ll,On.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=as(n))==n?n:0),void 0!==t&&(t=(t=as(t))==t?t:0),Zn(as(e),t,n)},On.clone=function(e){return Qn(e,4)},On.cloneDeep=function(e){return Qn(e,5)},On.cloneDeepWith=function(e,t){return Qn(e,5,t="function"==typeof t?t:void 0)},On.cloneWith=function(e,t){return Qn(e,4,t="function"==typeof t?t:void 0)},On.conformsTo=function(e,t){return null==t||Jn(e,t,ws(t))},On.deburr=Ds,On.defaultTo=function(e,t){return null==e||e!=e?t:e},On.divide=cl,On.endsWith=function(e,t,n){e=ls(e),t=Jr(t);var r=e.length,i=n=void 0===n?r:Zn(is(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},On.eq=Ta,On.escape=function(e){return(e=ls(e))&&L.test(e)?e.replace(M,zt):e},On.escapeRegExp=function(e){return(e=ls(e))&&W.test(e)?e.replace(G,"\\$&"):e},On.every=function(e,t,n){var r=Ra(e)?ct:rr;return n&&lo(e,t,n)&&(t=void 0),r(e,Qi(t,3))},On.find=aa,On.findIndex=Do,On.findKey=function(e,t){return yt(e,Qi(t,3),cr)},On.findLast=sa,On.findLastIndex=Ro,On.findLastKey=function(e,t){return yt(e,Qi(t,3),ur)},On.floor=ul,On.forEach=la,On.forEachRight=ca,On.forIn=function(e,t){return null==e?e:sr(e,Qi(t,3),ks)},On.forInRight=function(e,t){return null==e?e:lr(e,Qi(t,3),ks)},On.forOwn=function(e,t){return e&&cr(e,Qi(t,3))},On.forOwnRight=function(e,t){return e&&ur(e,Qi(t,3))},On.get=ms,On.gt=ja,On.gte=Pa,On.has=function(e,t){return null!=e&&io(e,t,mr)},On.hasIn=vs,On.head=No,On.identity=Ws,On.includes=function(e,t,n,r){e=Na(e)?e:Ts(e),n=n&&!r?is(n):0;var i=e.length;return n<0&&(n=sn(i+n,0)),Qa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wt(e,t,n)>-1},On.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:is(n);return i<0&&(i=sn(r+i,0)),wt(e,t,i)},On.inRange=function(e,t,n){return t=rs(t),void 0===n?(n=t,t=0):n=rs(n),function(e,t,n){return e>=ln(t,n)&&e=-9007199254740991&&e<=9007199254740991},On.isSet=Za,On.isString=Qa,On.isSymbol=Ja,On.isTypedArray=Ka,On.isUndefined=function(e){return void 0===e},On.isWeakMap=function(e){return Ha(e)&&ro(e)==k},On.isWeakSet=function(e){return Ha(e)&&"[object WeakSet]"==hr(e)},On.join=function(e,t){return null==e?"":on.call(e,t)},On.kebabCase=Rs,On.last=Bo,On.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=is(n))<0?sn(r+i,0):ln(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):xt(e,At,i,!0)},On.lowerCase=Is,On.lowerFirst=Ns,On.lt=es,On.lte=ts,On.max=function(e){return e&&e.length?ir(e,Ws,gr):void 0},On.maxBy=function(e,t){return e&&e.length?ir(e,Qi(t,2),gr):void 0},On.mean=function(e){return Et(e,Ws)},On.meanBy=function(e,t){return Et(e,Qi(t,2))},On.min=function(e){return e&&e.length?ir(e,Ws,Cr):void 0},On.minBy=function(e,t){return e&&e.length?ir(e,Qi(t,2),Cr):void 0},On.stubArray=ol,On.stubFalse=al,On.stubObject=function(){return{}},On.stubString=function(){return""},On.stubTrue=function(){return!0},On.multiply=pl,On.nth=function(e,t){return e&&e.length?Pr(e,is(t)):void 0},On.noConflict=function(){return We._===this&&(We._=_e),this},On.noop=Js,On.now=ma,On.pad=function(e,t,n){e=ls(e);var r=(t=is(t))?Gt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Di(en(i),n)+e+Di(Kt(i),n)},On.padEnd=function(e,t,n){e=ls(e);var r=(t=is(t))?Gt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=dn();return ln(e+i*(t-e+Ve("1e-"+((i+"").length-1))),t)}return Mr(e,t)},On.reduce=function(e,t,n){var r=Ra(e)?gt:Ct,i=arguments.length<3;return r(e,Qi(t,4),n,i,tr)},On.reduceRight=function(e,t,n){var r=Ra(e)?mt:Ct,i=arguments.length<3;return r(e,Qi(t,4),n,i,nr)},On.repeat=function(e,t,n){return t=(n?lo(e,t,n):void 0===t)?1:is(t),zr(ls(e),t)},On.replace=function(){var e=arguments,t=ls(e[0]);return e.length<3?t:t.replace(e[1],e[2])},On.result=function(e,t,n){var r=-1,i=(t=li(t,e)).length;for(i||(i=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=ln(e,4294967295);e-=4294967295;for(var i=Ot(r,t=Qi(t));++n=o)return e;var s=n-Gt(r);if(s<1)return r;var l=a?ui(a,0,s).join(""):e.slice(0,s);if(void 0===i)return l+r;if(a&&(s+=l.length-s),Xa(i)){if(e.slice(s).search(i)){var c,u=l;for(i.global||(i=ge(i.source,ls(re.exec(i))+"g")),i.lastIndex=0;c=i.exec(u);)var d=c.index;l=l.slice(0,void 0===d?s:d)}}else if(e.indexOf(Jr(i),s)!=s){var p=l.lastIndexOf(i);p>-1&&(l=l.slice(0,p))}return l+r},On.unescape=function(e){return(e=ls(e))&&z.test(e)?e.replace(N,Xt):e},On.uniqueId=function(e){var t=++Ee;return ls(e)+t},On.upperCase=Ls,On.upperFirst=Bs,On.each=la,On.eachRight=ca,On.first=No,Qs(On,(dl={},cr(On,(function(e,t){Ae.call(On.prototype,t)||(dl[t]=e)})),dl),{chain:!1}),On.VERSION="4.17.21",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){On[e].placeholder=On})),st(["drop","take"],(function(e,t){Dn.prototype[e]=function(n){n=void 0===n?1:sn(is(n),0);var r=this.__filtered__&&!t?new Dn(this):this.clone();return r.__filtered__?r.__takeCount__=ln(n,r.__takeCount__):r.__views__.push({size:ln(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Dn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Dn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Qi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Dn.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Dn.prototype[e]=function(){return this.__filtered__?new Dn(this):this[n](1)}})),Dn.prototype.compact=function(){return this.filter(Ws)},Dn.prototype.find=function(e){return this.filter(e).head()},Dn.prototype.findLast=function(e){return this.reverse().find(e)},Dn.prototype.invokeMap=Lr((function(e,t){return"function"==typeof e?new Dn(this):this.map((function(n){return yr(n,e,t)}))})),Dn.prototype.reject=function(e){return this.filter(Sa(Qi(e)))},Dn.prototype.slice=function(e,t){e=is(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Dn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=is(t))<0?n.dropRight(-t):n.take(t-e)),n)},Dn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Dn.prototype.toArray=function(){return this.take(4294967295)},cr(Dn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=On[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(On.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof Dn,l=a[0],c=s||Ra(t),u=function(e){var t=i.apply(On,ht([e],a));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(s=c=!1);var d=this.__chain__,p=!!this.__actions__.length,f=o&&!d,h=s&&!p;if(!o&&c){t=h?t:new Dn(this);var g=e.apply(t,a);return g.__actions__.push({func:ra,args:[u],thisArg:void 0}),new Pn(g,d)}return f&&h?e.apply(this,a):(g=this.thru(u),f?r?g.value()[0]:g.value():g)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=be[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);On.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ra(i)?i:[],e)}return this[n]((function(n){return t.apply(Ra(n)?n:[],e)}))}})),cr(Dn.prototype,(function(e,t){var n=On[t];if(n){var r=n.name+"";Ae.call(xn,r)||(xn[r]=[]),xn[r].push({name:t,func:n})}})),xn[Oi(void 0,2).name]=[{name:"wrapper",func:void 0}],Dn.prototype.clone=function(){var e=new Dn(this.__wrapped__);return e.__actions__=bi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=bi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=bi(this.__views__),e},Dn.prototype.reverse=function(){if(this.__filtered__){var e=new Dn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Dn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ra(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},On.prototype.plant=function(e){for(var t,n=this;n instanceof jn;){var r=Oo(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},On.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Dn){var t=e;return this.__actions__.length&&(t=new Dn(this)),(t=t.reverse()).__actions__.push({func:ra,args:[Uo],thisArg:void 0}),new Pn(t,this.__chain__)}return this.thru(Uo)},On.prototype.toJSON=On.prototype.valueOf=On.prototype.value=function(){return ri(this.__wrapped__,this.__actions__)},On.prototype.first=On.prototype.head,Qe&&(On.prototype[Qe]=function(){return this}),On}();We._=Zt,void 0===(i=function(){return Zt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(35),n(80)(e))},function(e,t,n){const r=n(21);function i(e){return!r.isNull(e)&&!r.isUndefined(e)}function o(e,t,n,a){a||(a=1);var s=e.predecessors(t);if(!s||0==n)return[];var l=s.concat(s.reduce((function(t,r){return a>=n&&i(n)?t:t.concat(o(e,r,n,a+1))}),[]));return r.uniq(l)}function a(e,t,n,o){o||(o=1);var s=e.successors(t);if(!s||0==n)return[];var l=s.concat(s.reduce((function(t,r){return o>=n&&i(n)?t:t.concat(a(e,r,n,o+1))}),[]));return r.uniq(l)}e.exports={selectAt:function(e,t){var n=[t],i=r.union([t],a(e,t));return r.each(i,(function(t){var i=o(e,t);n=r.union(n,i,[t])})),n},ancestorNodes:o,descendentNodes:a}},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n\n/* TODO */\n.section-target {\n top: -8em;\n}\n\n.noflex {\n flex: 0 0 160px !important;\n}\n\n.highlight {\n color: #24292e;\n background-color: white;\n}\n\n\n\n
\n \n
\n
\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n
\n
\n
\n
Columns
\n \n
\n
\n\n
\n
\n
\n
Referenced By
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t,n){"use strict";n.r(t);var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function s(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=o(e[t],n)})),Object.keys(t).forEach((function(i){n.isMergeableObject(t[i])&&e[i]?r[i]=s(e[i],t[i],n):r[i]=o(t[i],n)})),r}(e,t,n):o(t,n)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return s(e,n,t)}),{})};var l=s;const c=n(9),u=(n(33),n(202)),{getQuoteChar:d}=n(430);c.module("dbt").factory("project",["$q","$http",function(e,t){var n={project:{},tree:{project:[],database:[],sources:[]},files:{manifest:{},catalog:{}},loaded:e.defer()};function r(e,t){return u.each(t.sources,(function(e,n){t.nodes[n]=e})),u.each(e.nodes,(function(e,n){var r=t.nodes[n];if(r){var i,o,a,s=u.keys(r.columns),l=e.columns,c=(i=s,o=l,a={},u.each(o,(function(e,t){var n=u.find(i,(function(e){return e.toLowerCase()==t.toLowerCase()}));n?a[n]=e:a[t]=e})),a);e.columns=c}})),l(t,e)}function i(e,n){return t({method:"GET",url:n}).then((function(t){return{label:e,data:t.data}}),(function(t){console.error(t),alert("dbt Docs was unable to load the "+e+" file at path: \n "+n+"\n\nError: "+t.statusText+" ("+t.status+")\n\nThe dbt Docs site may not work as expected if this file cannot be found.Please try again, and contact support if this error persists.")}))}return n.find_by_id=function(e,t){n.ready((function(){if(e){var r=n.node(e);t(r)}}))},n.node=function(e){return u.find(n.project.nodes,{unique_id:e})},n.loadProject=function(){var t="?cb="+(new Date).getTime(),o=[i("manifest","manifest.json"+t),i("catalog","catalog.json"+t)];e.all(o).then((function(e){u.each(e,(function(e){e?n.files[e.label]=e.data:console.error("FILE FAILED TO LOAD!")})),u.each(n.files.manifest.nodes,(function(e){"model"==e.resource_type&&null!=e.version?e.label=e.name+"_v"+e.version:e.label=e.name})),u.each(n.files.manifest.sources,(function(e){e.label=e.source_name+"."+e.name,n.files.manifest.nodes[e.unique_id]=e})),u.each(n.files.manifest.exposures,(function(e){e.label||(e.label=e.name),n.files.manifest.nodes[e.unique_id]=e})),u.each(n.files.manifest.metrics,(function(e){n.files.manifest.nodes[e.unique_id]=e})),u.each(n.files.manifest.semantic_models,(function(e){n.files.manifest.nodes[e.unique_id]=e,e.label=e.name}));var t=n.files.manifest.metadata.adapter_type,i=function(e,t){var n=e||[],r={};u.each(n,(function(e){r[e.package_name]||(r[e.package_name]={}),r[e.package_name][e.name]=e}));e=[];return u.each(r,(function(n,r){if("dbt"!=r&&r!="dbt_"+t){var i=function(e,t){var n={};u.each(e,(function(e){e.macro_sql.match(/{{\s*adapter_macro\([^)]+\)\s+}}/)&&(e.impls={"Adapter Macro":e.macro_sql},e.is_adapter_macro=!0,n[e.name]=e)}));var r=["postgres","redshift","bigquery","snowflake","spark","presto","default"],i=u.values(n),o=u.filter(e,(function(e){var t=e.name.split("__"),i=t.shift(),o=t.join("__");return!(r.indexOf(i)>=0&&n[o])||(n[o].impls[i]=e.macro_sql,e.is_adapter_macro_impl=!0,!1)}));return i.concat(o)}(n);e=e.concat(i)}})),u.keyBy(e,"unique_id")}(n.files.manifest.macros,t);n.files.manifest.macros=i;var o=r(n.files.manifest,n.files.catalog),a=o.nodes,s=u.keyBy(a,"name"),l=u.filter(o.nodes,{resource_type:"test"});u.each(l,(function(e){if(e.hasOwnProperty("test_metadata")){var t,n={test_name:t=e.test_metadata.namespace?e.test_metadata.namespace+"."+e.test_metadata.name:e.test_metadata.name};if("not_null"==e.test_metadata.name)n.short="N",n.label="Not Null";else if("unique"==e.test_metadata.name)n.short="U",n.label="Unique";else if("relationships"==e.test_metadata.name){var r=e.refs[0],i=s[r];i&&e.test_metadata.kwargs.field&&(n.fk_field=e.test_metadata.kwargs.field,n.fk_model=i),n.short="F",n.label="Foreign Key"}else if("accepted_values"==e.test_metadata.name){if(Array.isArray(e.test_metadata.kwargs.values))var a=e.test_metadata.kwargs.values.join(", ");else a=JSON.stringify(e.test_metadata.kwargs.values);n.short="A",n.label="Accepted Values: "+a}else{var l=u.omit(e.test_metadata.kwargs,"column_name");n.short="+",n.label=t+"("+JSON.stringify(l)+")"}var c=e.depends_on.nodes,p=e.column_name||e.test_metadata.kwargs.column_name||e.test_metadata.kwargs.arg;if(c.length&&p){if("relationships"==e.test_metadata.name)var f=c[c.length-1];else f=c[0];var h=o.nodes[f],g=d(o.metadata),m=u.find(h.columns,(function(e,t){let n=p;return p.startsWith(g)&&p.endsWith(g)&&(n=p.substring(1,p.length-1)),t.toLowerCase()==n.toLowerCase()}));m&&(m.tests=m.tests||[],m.tests.push(n))}}})),n.project=o;var c=u.filter(n.project.macros,(function(e){return!e.is_adapter_macro_impl})),p=u.filter(n.project.nodes,(function(e){return u.includes(["model","source","seed","snapshot","analysis","exposure","metric","semantic_model"],e.resource_type)}));n.project.searchable=u.filter(p.concat(c),(function(e){return!e.docs||e.docs.show})),n.loaded.resolve()}))},n.ready=function(e){n.loaded.promise.then((function(){e(n.project)}))},n.search=function(e){if(0==e.length)return u.map(n.project.searchable,(function(e){return{model:e,matches:[]}}));var t=[];return u.each(n.project.searchable,(function(n){var r=function(e,t){var n=[],r={name:"string",description:"string",raw_code:"string",columns:"object",column_description:"n/a",tags:"array",arguments:"array",label:"string"};let i=u.words(e.toLowerCase());for(var o in r)if("column_description"===o)for(var a in t.columns)null!=t.columns[a].description&&i.every(e=>-1!=t.columns[a].description.toLowerCase().indexOf(e))&&n.push({key:o,value:e});else{if(!t[o])continue;if("string"===r[o]&&i.every(e=>-1!=t[o].toLowerCase().indexOf(e)))n.push({key:o,value:e});else if("object"===r[o])for(var a in t[o])null!=t[o][a].name&&i.every(e=>-1!=t[o][a].name.toLowerCase().indexOf(e))&&n.push({key:o,value:e});else if("array"===r[o])for(var s of t[o])i.every(e=>-1!=JSON.stringify(s).toLowerCase().indexOf(e))&&n.push({key:o,value:e})}return n}(e,n);r.length&&t.push({model:n,matches:r})})),t},n.getModelTree=function(e,t){n.loaded.promise.then((function(){var r=u.values(n.project.macros),i=u.filter(n.project.nodes,(function(e){if("test"==e.resource_type&&!e.hasOwnProperty("test_metadata"))return!0;return u.includes(["snapshot","source","seed","model","analysis","exposure","metric","semantic_model"],e.resource_type)}));n.tree.database=function(e,t){var n={},r=u.filter(e,(function(e){return!!u.get(e,["docs","show"],!0)&&(-1!=u.indexOf(["source","snapshot","seed"],e.resource_type)||("model"==e.resource_type?"ephemeral"!=e.config.materialized:void 0))})),i=u.sortBy(r,(function(e){return e.database+"."+e.schema+"."+(e.identifier||e.alias||e.name)})),o=u.groupBy(i,"database");return u.each(o,(function(e,r){var i={type:"database",name:r,active:!1,items:[]};n[r]=i;var o=u.groupBy(e,"schema");u.each(o,(function(e,n){n={type:"schema",name:n,active:!1,items:[]};i.items.push(n),u.each(e,(function(e){var r=e.unique_id==t;r&&(i.active=!0,n.active=!0),n.items.push({type:"table",name:e.identifier||e.alias||e.name,node:e,active:r,unique_id:e.unique_id,node_type:"model"})}))}))})),n}(i,e),n.tree.groups=function(e,t){var n={};u.each(e,(function(e){const r=u.get(e,["docs","show"],!0);if(!(e.resource_type in["source","exposure","seed","macro"])&&r&&"private"!==e.access){if("model"==e.resource_type&&null!=e.version)var i=e.name+"_v"+e.version;else i=e.name;var o="protected"===e.access?i+" (protected)":i,a=e.group,s=e.unique_id==t;n[a]?s&&(n[a].active=!0):n[a]={type:"group",name:a,active:s,items:[]},n[a].items.push({type:"file",name:o,node:e,active:s,unique_id:e.unique_id,node_type:"model"})}}));n=u.sortBy(u.values(n),"name");return u.each(n,(function(e){e.items=u.sortBy(e.items,"name")})),n}(i,e),n.tree.project=function(e,t,n){var r={};e=e||[],t=t||[];return u.each(e.concat(t),(function(e){var t=u.get(e,["docs","show"],!0);if("source"!=e.resource_type&&"exposure"!=e.resource_type&&"metric"!=e.resource_type&&"semantic_model"!=e.resource_type&&t){if(-1!=e.original_file_path.indexOf("\\"))var i=e.original_file_path.split("\\");else i=e.original_file_path.split("/");var o=[e.package_name].concat(i),a=e.unique_id==n,s=u.initial(o);if("macro"==e.resource_type)var l=e.name;else l=u.last(o);if("model"==e.resource_type&&null!=e.version)var c=e.name+"_v"+e.version;else c=e.name;var d=r;u.each(s,(function(e){d[e]?a&&(d[e].active=!0):d[e]={type:"folder",name:e,active:a,items:{}},d=d[e].items})),d[l]={type:"file",name:c,node:e,active:a,unique_id:e.unique_id,node_type:e.resource_type}}})),function e(t){var n=[],r=u.values(t);return u.each(r,(function(t){if(t.items){var r=e(t.items),i=u.sortBy(r,"name");t.items=i}n.push(t)})),n}(r)}(i,r,e);var o=u.values(n.project.sources);n.tree.sources=function(e,t){var n={};u.each(e,(function(e){var r=e.source_name,i=e.name,o=e.unique_id==t;n[r]?o&&(n[r].active=!0):n[r]={type:"folder",name:r,active:o,items:[]},n[r].items.push({type:"file",name:i,node:e,active:o,unique_id:e.unique_id,node_type:"source"})}));n=u.sortBy(u.values(n),"name");return u.each(n,(function(e){e.items=u.sortBy(e.items,"name")})),n}(o,e);var a=u.values(n.project.exposures);n.tree.exposures=function(e,t){var n={};u.each(e,(function(e){e.name;var r=e.type||"Uncategorized";r=function(e){var t={ml:"ML"};return t.hasOwnProperty(e)?t[e]:e.charAt(0).toUpperCase()+e.slice(1)}(r);var i=e.unique_id==t;n[r]?i&&(n[r].active=!0):n[r]={type:"folder",name:r,active:i,items:[]},n[r].items.push({type:"file",name:e.label,node:e,active:i,unique_id:e.unique_id,node_type:"exposure"})}));n=u.sortBy(u.values(n),"name");return u.each(n,(function(e){e.items=u.sortBy(e.items,"name")})),n}(a,e);var s=u.values(n.project.metrics);n.tree.metrics=function(e,t){var n={};u.each(e,(function(e){e.name;var r=e.package_name,i=e.unique_id==t;n[r]?i&&(n[r].active=!0):n[r]={type:"folder",name:r,active:i,items:[]},n[r].items.push({type:"file",name:e.label,node:e,active:i,unique_id:e.unique_id,node_type:"metric"})}));n=u.sortBy(u.values(n),"name");return u.each(n,(function(e){n.items=u.sortBy(n.items,"name")})),n}(s,e);var l=u.values(n.project.semantic_models);n.tree.semantic_models=function(e,t){var n={};u.each(e,(function(e){e.name;var r=e.package_name,i=e.unique_id==t;n[r]?i&&(n[r].active=!0):n[r]={type:"folder",name:r,active:i,items:[]},n[r].items.push({type:"file",name:e.name,node:e,active:i,unique_id:e.unique_id,node_type:"semantic_model"})}));n=u.sortBy(u.values(n),"name");return u.each(n,(function(e){n.items=u.sortBy(n.items,"name")})),n}(l,e),t(n.tree)}))},n.updateSelectedInTree=function(e,t){var r=!1;return u.each(t,(function(t){if(t.node&&t.node.unique_id==e)t.active=!0,r=!0;else if(t.node&&t.node.unique_id!=e)t.active=!1;else{n.updateSelectedInTree(e,t.items)&&(t.active=!0,r=!0)}})),r},n.updateSelected=function(e){return n.updateSelectedInTree(e,n.tree.project),n.updateSelectedInTree(e,n.tree.database),n.updateSelectedInTree(e,n.tree.groups),n.updateSelectedInTree(e,n.tree.sources),n.updateSelectedInTree(e,n.tree.exposures),n.updateSelectedInTree(e,n.tree.metrics),n.updateSelectedInTree(e,n.tree.semantic_models),n.tree},n.caseColumn=function(e){return"snowflake"==n.project.metadata.adapter_type&&e.toUpperCase()==e?e.toLowerCase():e},n.init=function(){n.loadProject()},n}])},function(e,t,n){const r=n(9);n(209),n(230),n(445),n(458),n(459),n(479),n(480),n(481),r.module("dbt").run(["$rootScope","$state","$stateParams",function(e,t,n){e.$state=t,e.$stateParams=n}])},function(e,t){ + */(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",c="[object Array]",u="[object Boolean]",d="[object Date]",p="[object Error]",f="[object Function]",h="[object GeneratorFunction]",g="[object Map]",m="[object Number]",v="[object Object]",b="[object RegExp]",y="[object Set]",x="[object String]",w="[object Symbol]",k="[object WeakMap]",A="[object ArrayBuffer]",E="[object DataView]",S="[object Float32Array]",$="[object Float64Array]",C="[object Int8Array]",_="[object Int16Array]",O="[object Int32Array]",T="[object Uint8Array]",j="[object Uint16Array]",P="[object Uint32Array]",D=/\b__p \+= '';/g,R=/\b(__p \+=) '' \+/g,I=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,M=/[&<>"']/g,z=RegExp(N.source),L=RegExp(M.source),B=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U=/^\w*$/,H=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,G=/[\\^$.*+?()[\]{}|]/g,W=RegExp(G.source),Y=/^\s+/,X=/\s/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,K=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ee=/[()=,{}\[\]\/\s]/,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ue=/($^)/,de=/['\n\r\u2028\u2029\\]/g,pe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",he="[\\ud800-\\udfff]",ge="["+fe+"]",me="["+pe+"]",ve="\\d+",be="[\\u2700-\\u27bf]",ye="[a-z\\xdf-\\xf6\\xf8-\\xff]",xe="[^\\ud800-\\udfff"+fe+ve+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",ke="[^\\ud800-\\udfff]",Ae="(?:\\ud83c[\\udde6-\\uddff]){2}",Ee="[\\ud800-\\udbff][\\udc00-\\udfff]",Se="[A-Z\\xc0-\\xd6\\xd8-\\xde]",$e="(?:"+ye+"|"+xe+")",Ce="(?:"+Se+"|"+xe+")",_e="(?:"+me+"|"+we+")"+"?",Oe="[\\ufe0e\\ufe0f]?"+_e+("(?:\\u200d(?:"+[ke,Ae,Ee].join("|")+")[\\ufe0e\\ufe0f]?"+_e+")*"),Te="(?:"+[be,Ae,Ee].join("|")+")"+Oe,je="(?:"+[ke+me+"?",me,Ae,Ee,he].join("|")+")",Pe=RegExp("['’]","g"),De=RegExp(me,"g"),Re=RegExp(we+"(?="+we+")|"+je+Oe,"g"),Ie=RegExp([Se+"?"+ye+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ge,Se,"$"].join("|")+")",Ce+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ge,Se+$e,"$"].join("|")+")",Se+"?"+$e+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ve,Te].join("|"),"g"),Ne=RegExp("[\\u200d\\ud800-\\udfff"+pe+"\\ufe0e\\ufe0f]"),Me=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ze=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Le=-1,Be={};Be[S]=Be[$]=Be[C]=Be[_]=Be[O]=Be[T]=Be["[object Uint8ClampedArray]"]=Be[j]=Be[P]=!0,Be[l]=Be[c]=Be[A]=Be[u]=Be[E]=Be[d]=Be[p]=Be[f]=Be[g]=Be[m]=Be[v]=Be[b]=Be[y]=Be[x]=Be[k]=!1;var Fe={};Fe[l]=Fe[c]=Fe[A]=Fe[E]=Fe[u]=Fe[d]=Fe[S]=Fe[$]=Fe[C]=Fe[_]=Fe[O]=Fe[g]=Fe[m]=Fe[v]=Fe[b]=Fe[y]=Fe[x]=Fe[w]=Fe[T]=Fe["[object Uint8ClampedArray]"]=Fe[j]=Fe[P]=!0,Fe[p]=Fe[f]=Fe[k]=!1;var qe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ve=parseFloat,Ue=parseInt,He="object"==typeof e&&e&&e.Object===Object&&e,Ge="object"==typeof self&&self&&self.Object===Object&&self,We=He||Ge||Function("return this")(),Ye=t&&!t.nodeType&&t,Xe=Ye&&"object"==typeof r&&r&&!r.nodeType&&r,Ze=Xe&&Xe.exports===Ye,Qe=Ze&&He.process,Je=function(){try{var e=Xe&&Xe.require&&Xe.require("util").types;return e||Qe&&Qe.binding&&Qe.binding("util")}catch(e){}}(),Ke=Je&&Je.isArrayBuffer,et=Je&&Je.isDate,tt=Je&&Je.isMap,nt=Je&&Je.isRegExp,rt=Je&&Je.isSet,it=Je&&Je.isTypedArray;function ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function pt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function It(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function Nt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Mt=$t({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),zt=$t({"&":"&","<":"<",">":">",'"':""","'":"'"});function Lt(e){return"\\"+qe[e]}function Bt(e){return Ne.test(e)}function Ft(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function qt(e,t){return function(n){return e(t(n))}}function Vt(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"});var Zt=function e(t){var n,r=(t=null==t?We:Zt.defaults(We.Object(),t,Zt.pick(We,ze))).Array,i=t.Date,X=t.Error,pe=t.Function,fe=t.Math,he=t.Object,ge=t.RegExp,me=t.String,ve=t.TypeError,be=r.prototype,ye=pe.prototype,xe=he.prototype,we=t["__core-js_shared__"],ke=ye.toString,Ae=xe.hasOwnProperty,Ee=0,Se=(n=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",$e=xe.toString,Ce=ke.call(he),_e=We._,Oe=ge("^"+ke.call(Ae).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Te=Ze?t.Buffer:void 0,je=t.Symbol,Re=t.Uint8Array,Ne=Te?Te.allocUnsafe:void 0,qe=qt(he.getPrototypeOf,he),He=he.create,Ge=xe.propertyIsEnumerable,Ye=be.splice,Xe=je?je.isConcatSpreadable:void 0,Qe=je?je.iterator:void 0,Je=je?je.toStringTag:void 0,bt=function(){try{var e=eo(he,"defineProperty");return e({},"",{}),e}catch(e){}}(),$t=t.clearTimeout!==We.clearTimeout&&t.clearTimeout,Qt=i&&i.now!==We.Date.now&&i.now,Jt=t.setTimeout!==We.setTimeout&&t.setTimeout,Kt=fe.ceil,en=fe.floor,tn=he.getOwnPropertySymbols,nn=Te?Te.isBuffer:void 0,rn=t.isFinite,on=be.join,an=qt(he.keys,he),sn=fe.max,ln=fe.min,cn=i.now,un=t.parseInt,dn=fe.random,pn=be.reverse,fn=eo(t,"DataView"),hn=eo(t,"Map"),gn=eo(t,"Promise"),mn=eo(t,"Set"),vn=eo(t,"WeakMap"),bn=eo(he,"create"),yn=vn&&new vn,xn={},wn=_o(fn),kn=_o(hn),An=_o(gn),En=_o(mn),Sn=_o(vn),$n=je?je.prototype:void 0,Cn=$n?$n.valueOf:void 0,_n=$n?$n.toString:void 0;function On(e){if(Ha(e)&&!Ra(e)&&!(e instanceof Dn)){if(e instanceof Pn)return e;if(Ae.call(e,"__wrapped__"))return Oo(e)}return new Pn(e)}var Tn=function(){function e(){}return function(t){if(!Ua(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function jn(){}function Pn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Dn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Rn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Qn(e,t,n,r,i,o){var a,s=1&t,c=2&t,p=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!Ua(e))return e;var k=Ra(e);if(k){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ae.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return bi(e,a)}else{var D=ro(e),R=D==f||D==h;if(za(e))return pi(e,s);if(D==v||D==l||R&&!i){if(a=c||R?{}:oo(e),!s)return c?function(e,t){return yi(e,no(e),t)}(e,function(e,t){return e&&yi(t,ks(t),e)}(a,e)):function(e,t){return yi(e,to(e),t)}(e,Wn(a,e))}else{if(!Fe[D])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case A:return fi(e);case u:case d:return new r(+e);case E:return function(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case S:case $:case C:case _:case O:case T:case"[object Uint8ClampedArray]":case j:case P:return hi(e,n);case g:return new r;case m:case x:return new r(e);case b:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case y:return new r;case w:return i=e,Cn?he(Cn.call(i)):{}}var i}(e,D,s)}}o||(o=new zn);var I=o.get(e);if(I)return I;o.set(e,a),Za(e)?e.forEach((function(r){a.add(Qn(r,t,n,r,e,o))})):Ga(e)&&e.forEach((function(r,i){a.set(i,Qn(r,t,n,i,e,o))}));var N=k?void 0:(p?c?Wi:Gi:c?ks:ws)(e);return st(N||e,(function(r,i){N&&(r=e[i=r]),Un(a,i,Qn(r,t,n,i,e,o))})),a}function Jn(e,t,n){var r=n.length;if(null==e)return!r;for(e=he(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function Kn(e,t,n){if("function"!=typeof e)throw new ve(o);return wo((function(){e.apply(void 0,n)}),t)}function er(e,t,n,r){var i=-1,o=dt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=ft(t,jt(n))),r?(o=pt,a=!1):t.length>=200&&(o=Dt,a=!1,t=new Mn(t));e:for(;++i-1},In.prototype.set=function(e,t){var n=this.__data__,r=Hn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Nn.prototype.clear=function(){this.size=0,this.__data__={hash:new Rn,map:new(hn||In),string:new Rn}},Nn.prototype.delete=function(e){var t=Ji(this,e).delete(e);return this.size-=t?1:0,t},Nn.prototype.get=function(e){return Ji(this,e).get(e)},Nn.prototype.has=function(e){return Ji(this,e).has(e)},Nn.prototype.set=function(e,t){var n=Ji(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Mn.prototype.add=Mn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Mn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.clear=function(){this.__data__=new In,this.size=0},zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},zn.prototype.get=function(e){return this.__data__.get(e)},zn.prototype.has=function(e){return this.__data__.has(e)},zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof In){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nn(r)}return n.set(e,t),this.size=n.size,this};var tr=ki(cr),nr=ki(ur,!0);function rr(e,t){var n=!0;return tr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function ir(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?ar(s,t-1,n,r,i):ht(i,s):r||(i[i.length]=s)}return i}var sr=Ai(),lr=Ai(!0);function cr(e,t){return e&&sr(e,t,ws)}function ur(e,t){return e&&lr(e,t,ws)}function dr(e,t){return ut(t,(function(t){return Fa(e[t])}))}function pr(e,t){for(var n=0,r=(t=li(t,e)).length;null!=e&&nt}function mr(e,t){return null!=e&&Ae.call(e,t)}function vr(e,t){return null!=e&&t in he(e)}function br(e,t,n){for(var i=n?pt:dt,o=e[0].length,a=e.length,s=a,l=r(a),c=1/0,u=[];s--;){var d=e[s];s&&t&&(d=ft(d,jt(t))),c=ln(d.length,c),l[s]=!n&&(t||o>=120&&d.length>=120)?new Mn(s&&d):void 0}d=e[0];var p=-1,f=l[0];e:for(;++p=s)return l;var c=n[r];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)}))}function Rr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&Ye.call(s,l,1),Ye.call(e,l,1);return e}function Nr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;so(i)?Ye.call(e,i,1):ei(e,i)}}return e}function Mr(e,t){return e+en(dn()*(t-e+1))}function zr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=en(t/2))&&(e+=e)}while(t);return n}function Lr(e,t){return ko(mo(e,t,Ws),e+"")}function Br(e){return Bn(Ts(e))}function Fr(e,t){var n=Ts(e);return So(n,Zn(t,0,n.length))}function qr(e,t,n,r){if(!Ua(e))return e;for(var i=-1,o=(t=li(t,e)).length,a=o-1,s=e;null!=s&&++io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i>>1,a=e[o];null!==a&&!Ja(a)&&(n?a<=t:a=200){var c=t?null:zi(e);if(c)return Ut(c);a=!1,i=Dt,l=new Mn}else l=t?[]:s;e:for(;++r=r?e:Gr(e,t,n)}var di=$t||function(e){return We.clearTimeout(e)};function pi(e,t){if(t)return e.slice();var n=e.length,r=Ne?Ne(n):new e.constructor(n);return e.copy(r),r}function fi(e){var t=new e.constructor(e.byteLength);return new Re(t).set(new Re(e)),t}function hi(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function gi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=Ja(e),a=void 0!==t,s=null===t,l=t==t,c=Ja(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&lo(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=he(t);++r-1?i[o?t[a]:a]:void 0}}function _i(e){return Hi((function(t){var n=t.length,r=n,i=Pn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ve(o);if(i&&!s&&"wrapper"==Xi(a))var s=new Pn([],!0)}for(r=s?r:n;++r1&&y.reverse(),d&&cs))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,p=!0,f=2&n?new Mn:void 0;for(o.set(e,t),o.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Z,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Q);return t?t[1].split(J):[]}(r),n)))}function Eo(e){var t=0,n=0;return function(){var r=cn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function So(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Xo(e,n)}));function na(e){var t=On(e);return t.__chain__=!0,t}function ra(e,t){return t(e)}var ia=Hi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Xn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Dn&&so(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ra,args:[i],thisArg:void 0}),new Pn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var oa=xi((function(e,t,n){Ae.call(e,n)?++e[n]:Yn(e,n,1)}));var aa=Ci(Do),sa=Ci(Ro);function la(e,t){return(Ra(e)?st:tr)(e,Qi(t,3))}function ca(e,t){return(Ra(e)?lt:nr)(e,Qi(t,3))}var ua=xi((function(e,t,n){Ae.call(e,n)?e[n].push(t):Yn(e,n,[t])}));var da=Lr((function(e,t,n){var i=-1,o="function"==typeof t,a=Na(e)?r(e.length):[];return tr(e,(function(e){a[++i]=o?ot(t,e,n):yr(e,t,n)})),a})),pa=xi((function(e,t,n){Yn(e,n,t)}));function fa(e,t){return(Ra(e)?ft:_r)(e,Qi(t,3))}var ha=xi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ga=Lr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&lo(e,t[0],t[1])?t=[]:n>2&&lo(t[0],t[1],t[2])&&(t=[t[0]]),Dr(e,ar(t,1),[])})),ma=Qt||function(){return We.Date.now()};function va(e,t,n){return t=n?void 0:t,Bi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ba(e,t){var n;if("function"!=typeof t)throw new ve(o);return e=is(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ya=Lr((function(e,t,n){var r=1;if(n.length){var i=Vt(n,Zi(ya));r|=32}return Bi(e,r,t,n,i)})),xa=Lr((function(e,t,n){var r=3;if(n.length){var i=Vt(n,Zi(xa));r|=32}return Bi(t,r,e,n,i)}));function wa(e,t,n){var r,i,a,s,l,c,u=0,d=!1,p=!1,f=!0;if("function"!=typeof e)throw new ve(o);function h(t){var n=r,o=i;return r=i=void 0,u=t,s=e.apply(o,n)}function g(e){return u=e,l=wo(v,t),d?h(e):s}function m(e){var n=e-c;return void 0===c||n>=t||n<0||p&&e-u>=a}function v(){var e=ma();if(m(e))return b(e);l=wo(v,function(e){var n=t-(e-c);return p?ln(n,a-(e-u)):n}(e))}function b(e){return l=void 0,f&&r?h(e):(r=i=void 0,s)}function y(){var e=ma(),n=m(e);if(r=arguments,i=this,c=e,n){if(void 0===l)return g(c);if(p)return di(l),l=wo(v,t),h(c)}return void 0===l&&(l=wo(v,t)),s}return t=as(t)||0,Ua(n)&&(d=!!n.leading,a=(p="maxWait"in n)?sn(as(n.maxWait)||0,t):a,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==l&&di(l),u=0,r=c=i=l=void 0},y.flush=function(){return void 0===l?s:b(ma())},y}var ka=Lr((function(e,t){return Kn(e,1,t)})),Aa=Lr((function(e,t,n){return Kn(e,as(t)||0,n)}));function Ea(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ve(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ea.Cache||Nn),n}function Sa(e){if("function"!=typeof e)throw new ve(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ea.Cache=Nn;var $a=ci((function(e,t){var n=(t=1==t.length&&Ra(t[0])?ft(t[0],jt(Qi())):ft(ar(t,1),jt(Qi()))).length;return Lr((function(r){for(var i=-1,o=ln(r.length,n);++i=t})),Da=xr(function(){return arguments}())?xr:function(e){return Ha(e)&&Ae.call(e,"callee")&&!Ge.call(e,"callee")},Ra=r.isArray,Ia=Ke?jt(Ke):function(e){return Ha(e)&&hr(e)==A};function Na(e){return null!=e&&Va(e.length)&&!Fa(e)}function Ma(e){return Ha(e)&&Na(e)}var za=nn||al,La=et?jt(et):function(e){return Ha(e)&&hr(e)==d};function Ba(e){if(!Ha(e))return!1;var t=hr(e);return t==p||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ya(e)}function Fa(e){if(!Ua(e))return!1;var t=hr(e);return t==f||t==h||"[object AsyncFunction]"==t||"[object Proxy]"==t}function qa(e){return"number"==typeof e&&e==is(e)}function Va(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ua(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ha(e){return null!=e&&"object"==typeof e}var Ga=tt?jt(tt):function(e){return Ha(e)&&ro(e)==g};function Wa(e){return"number"==typeof e||Ha(e)&&hr(e)==m}function Ya(e){if(!Ha(e)||hr(e)!=v)return!1;var t=qe(e);if(null===t)return!0;var n=Ae.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==Ce}var Xa=nt?jt(nt):function(e){return Ha(e)&&hr(e)==b};var Za=rt?jt(rt):function(e){return Ha(e)&&ro(e)==y};function Qa(e){return"string"==typeof e||!Ra(e)&&Ha(e)&&hr(e)==x}function Ja(e){return"symbol"==typeof e||Ha(e)&&hr(e)==w}var Ka=it?jt(it):function(e){return Ha(e)&&Va(e.length)&&!!Be[hr(e)]};var es=Ii(Cr),ts=Ii((function(e,t){return e<=t}));function ns(e){if(!e)return[];if(Na(e))return Qa(e)?Wt(e):bi(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=ro(e);return(t==g?Ft:t==y?Ut:Ts)(e)}function rs(e){return e?(e=as(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function is(e){var t=rs(e),n=t%1;return t==t?n?t-n:t:0}function os(e){return e?Zn(is(e),0,4294967295):0}function as(e){if("number"==typeof e)return e;if(Ja(e))return NaN;if(Ua(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ua(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Tt(e);var n=oe.test(e);return n||se.test(e)?Ue(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function ss(e){return yi(e,ks(e))}function ls(e){return null==e?"":Jr(e)}var cs=wi((function(e,t){if(fo(t)||Na(t))yi(t,ws(t),e);else for(var n in t)Ae.call(t,n)&&Un(e,n,t[n])})),us=wi((function(e,t){yi(t,ks(t),e)})),ds=wi((function(e,t,n,r){yi(t,ks(t),e,r)})),ps=wi((function(e,t,n,r){yi(t,ws(t),e,r)})),fs=Hi(Xn);var hs=Lr((function(e,t){e=he(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&lo(t[0],t[1],i)&&(r=1);++n1),t})),yi(e,Wi(e),n),r&&(n=Qn(n,7,Vi));for(var i=t.length;i--;)ei(n,t[i]);return n}));var $s=Hi((function(e,t){return null==e?{}:function(e,t){return Rr(e,t,(function(t,n){return vs(e,n)}))}(e,t)}));function Cs(e,t){if(null==e)return{};var n=ft(Wi(e),(function(e){return[e]}));return t=Qi(t),Rr(e,n,(function(e,n){return t(e,n[0])}))}var _s=Li(ws),Os=Li(ks);function Ts(e){return null==e?[]:Pt(e,ws(e))}var js=Si((function(e,t,n){return t=t.toLowerCase(),e+(n?Ps(t):t)}));function Ps(e){return Bs(ls(e).toLowerCase())}function Ds(e){return(e=ls(e))&&e.replace(ce,Mt).replace(De,"")}var Rs=Si((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Is=Si((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ns=Ei("toLowerCase");var Ms=Si((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var zs=Si((function(e,t,n){return e+(n?" ":"")+Bs(t)}));var Ls=Si((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Bs=Ei("toUpperCase");function Fs(e,t,n){return e=ls(e),void 0===(t=n?void 0:t)?function(e){return Me.test(e)}(e)?function(e){return e.match(Ie)||[]}(e):function(e){return e.match(K)||[]}(e):e.match(t)||[]}var qs=Lr((function(e,t){try{return ot(e,void 0,t)}catch(e){return Ba(e)?e:new X(e)}})),Vs=Hi((function(e,t){return st(t,(function(t){t=Co(t),Yn(e,t,ya(e[t],e))})),e}));function Us(e){return function(){return e}}var Hs=_i(),Gs=_i(!0);function Ws(e){return e}function Ys(e){return Er("function"==typeof e?e:Qn(e,1))}var Xs=Lr((function(e,t){return function(n){return yr(n,e,t)}})),Zs=Lr((function(e,t){return function(n){return yr(e,n,t)}}));function Qs(e,t,n){var r=ws(t),i=dr(t,r);null!=n||Ua(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=dr(t,ws(t)));var o=!(Ua(n)&&"chain"in n&&!n.chain),a=Fa(e);return st(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=bi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,ht([this.value()],arguments))})})),e}function Js(){}var Ks=Pi(ft),el=Pi(ct),tl=Pi(vt);function nl(e){return co(e)?St(Co(e)):function(e){return function(t){return pr(t,e)}}(e)}var rl=Ri(),il=Ri(!0);function ol(){return[]}function al(){return!1}var sl=ji((function(e,t){return e+t}),0),ll=Mi("ceil"),cl=ji((function(e,t){return e/t}),1),ul=Mi("floor");var dl,pl=ji((function(e,t){return e*t}),1),fl=Mi("round"),hl=ji((function(e,t){return e-t}),0);return On.after=function(e,t){if("function"!=typeof t)throw new ve(o);return e=is(e),function(){if(--e<1)return t.apply(this,arguments)}},On.ary=va,On.assign=cs,On.assignIn=us,On.assignInWith=ds,On.assignWith=ps,On.at=fs,On.before=ba,On.bind=ya,On.bindAll=Vs,On.bindKey=xa,On.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ra(e)?e:[e]},On.chain=na,On.chunk=function(e,t,n){t=(n?lo(e,t,n):void 0===t)?1:sn(is(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=r(Kt(i/t));oi?0:i+n),(r=void 0===r||r>i?i:is(r))<0&&(r+=i),r=n>r?0:os(r);n>>0)?(e=ls(e))&&("string"==typeof t||null!=t&&!Xa(t))&&!(t=Jr(t))&&Bt(e)?ui(Wt(e),0,n):e.split(t,n):[]},On.spread=function(e,t){if("function"!=typeof e)throw new ve(o);return t=null==t?0:sn(is(t),0),Lr((function(n){var r=n[t],i=ui(n,0,t);return r&&ht(i,r),ot(e,this,i)}))},On.tail=function(e){var t=null==e?0:e.length;return t?Gr(e,1,t):[]},On.take=function(e,t,n){return e&&e.length?Gr(e,0,(t=n||void 0===t?1:is(t))<0?0:t):[]},On.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Gr(e,(t=r-(t=n||void 0===t?1:is(t)))<0?0:t,r):[]},On.takeRightWhile=function(e,t){return e&&e.length?ni(e,Qi(t,3),!1,!0):[]},On.takeWhile=function(e,t){return e&&e.length?ni(e,Qi(t,3)):[]},On.tap=function(e,t){return t(e),e},On.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ve(o);return Ua(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),wa(e,t,{leading:r,maxWait:t,trailing:i})},On.thru=ra,On.toArray=ns,On.toPairs=_s,On.toPairsIn=Os,On.toPath=function(e){return Ra(e)?ft(e,Co):Ja(e)?[e]:bi($o(ls(e)))},On.toPlainObject=ss,On.transform=function(e,t,n){var r=Ra(e),i=r||za(e)||Ka(e);if(t=Qi(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ua(e)&&Fa(o)?Tn(qe(e)):{}}return(i?st:cr)(e,(function(e,r,i){return t(n,e,r,i)})),n},On.unary=function(e){return va(e,1)},On.union=Ho,On.unionBy=Go,On.unionWith=Wo,On.uniq=function(e){return e&&e.length?Kr(e):[]},On.uniqBy=function(e,t){return e&&e.length?Kr(e,Qi(t,2)):[]},On.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Kr(e,void 0,t):[]},On.unset=function(e,t){return null==e||ei(e,t)},On.unzip=Yo,On.unzipWith=Xo,On.update=function(e,t,n){return null==e?e:ti(e,t,si(n))},On.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ti(e,t,si(n),r)},On.values=Ts,On.valuesIn=function(e){return null==e?[]:Pt(e,ks(e))},On.without=Zo,On.words=Fs,On.wrap=function(e,t){return Ca(si(t),e)},On.xor=Qo,On.xorBy=Jo,On.xorWith=Ko,On.zip=ea,On.zipObject=function(e,t){return oi(e||[],t||[],Un)},On.zipObjectDeep=function(e,t){return oi(e||[],t||[],qr)},On.zipWith=ta,On.entries=_s,On.entriesIn=Os,On.extend=us,On.extendWith=ds,Qs(On,On),On.add=sl,On.attempt=qs,On.camelCase=js,On.capitalize=Ps,On.ceil=ll,On.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=as(n))==n?n:0),void 0!==t&&(t=(t=as(t))==t?t:0),Zn(as(e),t,n)},On.clone=function(e){return Qn(e,4)},On.cloneDeep=function(e){return Qn(e,5)},On.cloneDeepWith=function(e,t){return Qn(e,5,t="function"==typeof t?t:void 0)},On.cloneWith=function(e,t){return Qn(e,4,t="function"==typeof t?t:void 0)},On.conformsTo=function(e,t){return null==t||Jn(e,t,ws(t))},On.deburr=Ds,On.defaultTo=function(e,t){return null==e||e!=e?t:e},On.divide=cl,On.endsWith=function(e,t,n){e=ls(e),t=Jr(t);var r=e.length,i=n=void 0===n?r:Zn(is(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},On.eq=Ta,On.escape=function(e){return(e=ls(e))&&L.test(e)?e.replace(M,zt):e},On.escapeRegExp=function(e){return(e=ls(e))&&W.test(e)?e.replace(G,"\\$&"):e},On.every=function(e,t,n){var r=Ra(e)?ct:rr;return n&&lo(e,t,n)&&(t=void 0),r(e,Qi(t,3))},On.find=aa,On.findIndex=Do,On.findKey=function(e,t){return yt(e,Qi(t,3),cr)},On.findLast=sa,On.findLastIndex=Ro,On.findLastKey=function(e,t){return yt(e,Qi(t,3),ur)},On.floor=ul,On.forEach=la,On.forEachRight=ca,On.forIn=function(e,t){return null==e?e:sr(e,Qi(t,3),ks)},On.forInRight=function(e,t){return null==e?e:lr(e,Qi(t,3),ks)},On.forOwn=function(e,t){return e&&cr(e,Qi(t,3))},On.forOwnRight=function(e,t){return e&&ur(e,Qi(t,3))},On.get=ms,On.gt=ja,On.gte=Pa,On.has=function(e,t){return null!=e&&io(e,t,mr)},On.hasIn=vs,On.head=No,On.identity=Ws,On.includes=function(e,t,n,r){e=Na(e)?e:Ts(e),n=n&&!r?is(n):0;var i=e.length;return n<0&&(n=sn(i+n,0)),Qa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wt(e,t,n)>-1},On.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:is(n);return i<0&&(i=sn(r+i,0)),wt(e,t,i)},On.inRange=function(e,t,n){return t=rs(t),void 0===n?(n=t,t=0):n=rs(n),function(e,t,n){return e>=ln(t,n)&&e=-9007199254740991&&e<=9007199254740991},On.isSet=Za,On.isString=Qa,On.isSymbol=Ja,On.isTypedArray=Ka,On.isUndefined=function(e){return void 0===e},On.isWeakMap=function(e){return Ha(e)&&ro(e)==k},On.isWeakSet=function(e){return Ha(e)&&"[object WeakSet]"==hr(e)},On.join=function(e,t){return null==e?"":on.call(e,t)},On.kebabCase=Rs,On.last=Bo,On.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=is(n))<0?sn(r+i,0):ln(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):xt(e,At,i,!0)},On.lowerCase=Is,On.lowerFirst=Ns,On.lt=es,On.lte=ts,On.max=function(e){return e&&e.length?ir(e,Ws,gr):void 0},On.maxBy=function(e,t){return e&&e.length?ir(e,Qi(t,2),gr):void 0},On.mean=function(e){return Et(e,Ws)},On.meanBy=function(e,t){return Et(e,Qi(t,2))},On.min=function(e){return e&&e.length?ir(e,Ws,Cr):void 0},On.minBy=function(e,t){return e&&e.length?ir(e,Qi(t,2),Cr):void 0},On.stubArray=ol,On.stubFalse=al,On.stubObject=function(){return{}},On.stubString=function(){return""},On.stubTrue=function(){return!0},On.multiply=pl,On.nth=function(e,t){return e&&e.length?Pr(e,is(t)):void 0},On.noConflict=function(){return We._===this&&(We._=_e),this},On.noop=Js,On.now=ma,On.pad=function(e,t,n){e=ls(e);var r=(t=is(t))?Gt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Di(en(i),n)+e+Di(Kt(i),n)},On.padEnd=function(e,t,n){e=ls(e);var r=(t=is(t))?Gt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=dn();return ln(e+i*(t-e+Ve("1e-"+((i+"").length-1))),t)}return Mr(e,t)},On.reduce=function(e,t,n){var r=Ra(e)?gt:Ct,i=arguments.length<3;return r(e,Qi(t,4),n,i,tr)},On.reduceRight=function(e,t,n){var r=Ra(e)?mt:Ct,i=arguments.length<3;return r(e,Qi(t,4),n,i,nr)},On.repeat=function(e,t,n){return t=(n?lo(e,t,n):void 0===t)?1:is(t),zr(ls(e),t)},On.replace=function(){var e=arguments,t=ls(e[0]);return e.length<3?t:t.replace(e[1],e[2])},On.result=function(e,t,n){var r=-1,i=(t=li(t,e)).length;for(i||(i=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=ln(e,4294967295);e-=4294967295;for(var i=Ot(r,t=Qi(t));++n=o)return e;var s=n-Gt(r);if(s<1)return r;var l=a?ui(a,0,s).join(""):e.slice(0,s);if(void 0===i)return l+r;if(a&&(s+=l.length-s),Xa(i)){if(e.slice(s).search(i)){var c,u=l;for(i.global||(i=ge(i.source,ls(re.exec(i))+"g")),i.lastIndex=0;c=i.exec(u);)var d=c.index;l=l.slice(0,void 0===d?s:d)}}else if(e.indexOf(Jr(i),s)!=s){var p=l.lastIndexOf(i);p>-1&&(l=l.slice(0,p))}return l+r},On.unescape=function(e){return(e=ls(e))&&z.test(e)?e.replace(N,Xt):e},On.uniqueId=function(e){var t=++Ee;return ls(e)+t},On.upperCase=Ls,On.upperFirst=Bs,On.each=la,On.eachRight=ca,On.first=No,Qs(On,(dl={},cr(On,(function(e,t){Ae.call(On.prototype,t)||(dl[t]=e)})),dl),{chain:!1}),On.VERSION="4.17.21",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){On[e].placeholder=On})),st(["drop","take"],(function(e,t){Dn.prototype[e]=function(n){n=void 0===n?1:sn(is(n),0);var r=this.__filtered__&&!t?new Dn(this):this.clone();return r.__filtered__?r.__takeCount__=ln(n,r.__takeCount__):r.__views__.push({size:ln(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Dn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Dn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Qi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Dn.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Dn.prototype[e]=function(){return this.__filtered__?new Dn(this):this[n](1)}})),Dn.prototype.compact=function(){return this.filter(Ws)},Dn.prototype.find=function(e){return this.filter(e).head()},Dn.prototype.findLast=function(e){return this.reverse().find(e)},Dn.prototype.invokeMap=Lr((function(e,t){return"function"==typeof e?new Dn(this):this.map((function(n){return yr(n,e,t)}))})),Dn.prototype.reject=function(e){return this.filter(Sa(Qi(e)))},Dn.prototype.slice=function(e,t){e=is(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Dn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=is(t))<0?n.dropRight(-t):n.take(t-e)),n)},Dn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Dn.prototype.toArray=function(){return this.take(4294967295)},cr(Dn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=On[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(On.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof Dn,l=a[0],c=s||Ra(t),u=function(e){var t=i.apply(On,ht([e],a));return r&&d?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(s=c=!1);var d=this.__chain__,p=!!this.__actions__.length,f=o&&!d,h=s&&!p;if(!o&&c){t=h?t:new Dn(this);var g=e.apply(t,a);return g.__actions__.push({func:ra,args:[u],thisArg:void 0}),new Pn(g,d)}return f&&h?e.apply(this,a):(g=this.thru(u),f?r?g.value()[0]:g.value():g)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=be[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);On.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ra(i)?i:[],e)}return this[n]((function(n){return t.apply(Ra(n)?n:[],e)}))}})),cr(Dn.prototype,(function(e,t){var n=On[t];if(n){var r=n.name+"";Ae.call(xn,r)||(xn[r]=[]),xn[r].push({name:t,func:n})}})),xn[Oi(void 0,2).name]=[{name:"wrapper",func:void 0}],Dn.prototype.clone=function(){var e=new Dn(this.__wrapped__);return e.__actions__=bi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=bi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=bi(this.__views__),e},Dn.prototype.reverse=function(){if(this.__filtered__){var e=new Dn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Dn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ra(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},On.prototype.plant=function(e){for(var t,n=this;n instanceof jn;){var r=Oo(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},On.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Dn){var t=e;return this.__actions__.length&&(t=new Dn(this)),(t=t.reverse()).__actions__.push({func:ra,args:[Uo],thisArg:void 0}),new Pn(t,this.__chain__)}return this.thru(Uo)},On.prototype.toJSON=On.prototype.valueOf=On.prototype.value=function(){return ri(this.__wrapped__,this.__actions__)},On.prototype.first=On.prototype.head,Qe&&(On.prototype[Qe]=function(){return this}),On}();We._=Zt,void 0===(i=function(){return Zt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(35),n(80)(e))},function(e,t,n){const r=n(21);function i(e){return!r.isNull(e)&&!r.isUndefined(e)}function o(e,t,n,a){a||(a=1);var s=e.predecessors(t);if(!s||0==n)return[];var l=s.concat(s.reduce((function(t,r){return a>=n&&i(n)?t:t.concat(o(e,r,n,a+1))}),[]));return r.uniq(l)}function a(e,t,n,o){o||(o=1);var s=e.successors(t);if(!s||0==n)return[];var l=s.concat(s.reduce((function(t,r){return o>=n&&i(n)?t:t.concat(a(e,r,n,o+1))}),[]));return r.uniq(l)}e.exports={selectAt:function(e,t){var n=[t],i=r.union([t],a(e,t));return r.each(i,(function(t){var i=o(e,t);n=r.union(n,i,[t])})),n},ancestorNodes:o,descendentNodes:a}},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n\n/* TODO */\n.section-target {\n top: -8em;\n}\n\n.noflex {\n flex: 0 0 160px !important;\n}\n\n.highlight {\n color: #24292e;\n background-color: white;\n}\n\n\n\n
\n \n
\n
\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n
\n
\n
\n
Columns
\n \n
\n
\n\n
\n
\n
\n
Referenced By
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t,n){"use strict";n.r(t);var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function s(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=o(e[t],n)})),Object.keys(t).forEach((function(i){n.isMergeableObject(t[i])&&e[i]?r[i]=s(e[i],t[i],n):r[i]=o(t[i],n)})),r}(e,t,n):o(t,n)}s.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return s(e,n,t)}),{})};var l=s;const c=n(9),u=(n(33),n(202)),{getQuoteChar:d}=n(430);c.module("dbt").factory("project",["$q","$http",function(e,t){var n={manifest:"MANIFEST.JSON INLINE DATA",catalog:"CATALOG.JSON INLINE DATA"},r={project:{},tree:{project:[],database:[],sources:[]},files:{manifest:{},catalog:{}},loaded:e.defer()};function i(e,t){return u.each(t.sources,(function(e,n){t.nodes[n]=e})),u.each(e.nodes,(function(e,n){var r=t.nodes[n];if(r){var i,o,a,s=u.keys(r.columns),l=e.columns,c=(i=s,o=l,a={},u.each(o,(function(e,t){var n=u.find(i,(function(e){return e.toLowerCase()==t.toLowerCase()}));n?a[n]=e:a[t]=e})),a);e.columns=c}})),l(t,e)}function o(e,r){return e in n&&"object"==typeof n[e]?{label:e,data:n[e]}:t({method:"GET",url:r}).then((function(t){return{label:e,data:t.data}}),(function(t){console.error(t),alert("dbt Docs was unable to load the "+e+" file at path: \n "+r+"\n\nError: "+t.statusText+" ("+t.status+")\n\nThe dbt Docs site may not work as expected if this file cannot be found.Please try again, and contact support if this error persists.")}))}return r.find_by_id=function(e,t){r.ready((function(){if(e){var n=r.node(e);t(n)}}))},r.node=function(e){return u.find(r.project.nodes,{unique_id:e})},r.loadProject=function(){var t="?cb="+(new Date).getTime(),n=[o("manifest","manifest.json"+t),o("catalog","catalog.json"+t)];e.all(n).then((function(e){u.each(e,(function(e){e?r.files[e.label]=e.data:console.error("FILE FAILED TO LOAD!")})),u.each(r.files.manifest.nodes,(function(e){"model"==e.resource_type&&null!=e.version?e.label=e.name+"_v"+e.version:e.label=e.name})),u.each(r.files.manifest.sources,(function(e){e.label=e.source_name+"."+e.name,r.files.manifest.nodes[e.unique_id]=e})),u.each(r.files.manifest.exposures,(function(e){e.label||(e.label=e.name),r.files.manifest.nodes[e.unique_id]=e})),u.each(r.files.manifest.metrics,(function(e){r.files.manifest.nodes[e.unique_id]=e})),u.each(r.files.manifest.semantic_models,(function(e){r.files.manifest.nodes[e.unique_id]=e,e.label=e.name}));var t=r.files.manifest.metadata.adapter_type,n=function(e,t){var n=e||[],r={};u.each(n,(function(e){r[e.package_name]||(r[e.package_name]={}),r[e.package_name][e.name]=e}));e=[];return u.each(r,(function(n,r){if("dbt"!=r&&r!="dbt_"+t){var i=function(e,t){var n={};u.each(e,(function(e){e.macro_sql.match(/{{\s*adapter_macro\([^)]+\)\s+}}/)&&(e.impls={"Adapter Macro":e.macro_sql},e.is_adapter_macro=!0,n[e.name]=e)}));var r=["postgres","redshift","bigquery","snowflake","spark","presto","default"],i=u.values(n),o=u.filter(e,(function(e){var t=e.name.split("__"),i=t.shift(),o=t.join("__");return!(r.indexOf(i)>=0&&n[o])||(n[o].impls[i]=e.macro_sql,e.is_adapter_macro_impl=!0,!1)}));return i.concat(o)}(n);e=e.concat(i)}})),u.keyBy(e,"unique_id")}(r.files.manifest.macros,t);r.files.manifest.macros=n;var o=i(r.files.manifest,r.files.catalog),a=o.nodes,s=u.keyBy(a,"name"),l=u.filter(o.nodes,{resource_type:"test"});u.each(l,(function(e){if(e.hasOwnProperty("test_metadata")){var t,n={test_name:t=e.test_metadata.namespace?e.test_metadata.namespace+"."+e.test_metadata.name:e.test_metadata.name};if("not_null"==e.test_metadata.name)n.short="N",n.label="Not Null";else if("unique"==e.test_metadata.name)n.short="U",n.label="Unique";else if("relationships"==e.test_metadata.name){var r=e.refs[0],i=s[r];i&&e.test_metadata.kwargs.field&&(n.fk_field=e.test_metadata.kwargs.field,n.fk_model=i),n.short="F",n.label="Foreign Key"}else if("accepted_values"==e.test_metadata.name){if(Array.isArray(e.test_metadata.kwargs.values))var a=e.test_metadata.kwargs.values.join(", ");else a=JSON.stringify(e.test_metadata.kwargs.values);n.short="A",n.label="Accepted Values: "+a}else{var l=u.omit(e.test_metadata.kwargs,"column_name");n.short="+",n.label=t+"("+JSON.stringify(l)+")"}var c=e.depends_on.nodes,p=e.column_name||e.test_metadata.kwargs.column_name||e.test_metadata.kwargs.arg;if(c.length&&p){if("relationships"==e.test_metadata.name)var f=c[c.length-1];else f=c[0];var h=o.nodes[f],g=d(o.metadata),m=u.find(h.columns,(function(e,t){let n=p;return p.startsWith(g)&&p.endsWith(g)&&(n=p.substring(1,p.length-1)),t.toLowerCase()==n.toLowerCase()}));m&&(m.tests=m.tests||[],m.tests.push(n))}}})),r.project=o;var c=u.filter(r.project.macros,(function(e){return!e.is_adapter_macro_impl})),p=u.filter(r.project.nodes,(function(e){return u.includes(["model","source","seed","snapshot","analysis","exposure","metric","semantic_model"],e.resource_type)}));r.project.searchable=u.filter(p.concat(c),(function(e){return!e.docs||e.docs.show})),r.loaded.resolve()}))},r.ready=function(e){r.loaded.promise.then((function(){e(r.project)}))},r.search=function(e){if(0==e.length)return u.map(r.project.searchable,(function(e){return{model:e,matches:[]}}));var t=[];return u.each(r.project.searchable,(function(n){var r=function(e,t){var n=[],r={name:"string",description:"string",raw_code:"string",columns:"object",column_description:"n/a",tags:"array",arguments:"array",label:"string"};let i=u.words(e.toLowerCase());for(var o in r)if("column_description"===o)for(var a in t.columns)null!=t.columns[a].description&&i.every(e=>-1!=t.columns[a].description.toLowerCase().indexOf(e))&&n.push({key:o,value:e});else{if(!t[o])continue;if("string"===r[o]&&i.every(e=>-1!=t[o].toLowerCase().indexOf(e)))n.push({key:o,value:e});else if("object"===r[o])for(var a in t[o])null!=t[o][a].name&&i.every(e=>-1!=t[o][a].name.toLowerCase().indexOf(e))&&n.push({key:o,value:e});else if("array"===r[o])for(var s of t[o])i.every(e=>-1!=JSON.stringify(s).toLowerCase().indexOf(e))&&n.push({key:o,value:e})}return n}(e,n);r.length&&t.push({model:n,matches:r})})),t},r.getModelTree=function(e,t){r.loaded.promise.then((function(){var n=u.values(r.project.macros),i=u.filter(r.project.nodes,(function(e){if("test"==e.resource_type&&!e.hasOwnProperty("test_metadata"))return!0;return u.includes(["snapshot","source","seed","model","analysis","exposure","metric","semantic_model"],e.resource_type)}));r.tree.database=function(e,t){var n={},r=u.filter(e,(function(e){return!!u.get(e,["docs","show"],!0)&&(-1!=u.indexOf(["source","snapshot","seed"],e.resource_type)||("model"==e.resource_type?"ephemeral"!=e.config.materialized:void 0))})),i=u.sortBy(r,(function(e){return e.database+"."+e.schema+"."+(e.identifier||e.alias||e.name)})),o=u.groupBy(i,"database");return u.each(o,(function(e,r){var i={type:"database",name:r,active:!1,items:[]};n[r]=i;var o=u.groupBy(e,"schema");u.each(o,(function(e,n){n={type:"schema",name:n,active:!1,items:[]};i.items.push(n),u.each(e,(function(e){var r=e.unique_id==t;r&&(i.active=!0,n.active=!0),n.items.push({type:"table",name:e.identifier||e.alias||e.name,node:e,active:r,unique_id:e.unique_id,node_type:"model"})}))}))})),n}(i,e),r.tree.groups=function(e,t){var n={};u.each(e,(function(e){const r=u.get(e,["docs","show"],!0);if(!(e.resource_type in["source","exposure","seed","macro"])&&r&&"private"!==e.access){if("model"==e.resource_type&&null!=e.version)var i=e.name+"_v"+e.version;else i=e.name;var o="protected"===e.access?i+" (protected)":i,a=e.group,s=e.unique_id==t;n[a]?s&&(n[a].active=!0):n[a]={type:"group",name:a,active:s,items:[]},n[a].items.push({type:"file",name:o,node:e,active:s,unique_id:e.unique_id,node_type:"model"})}}));n=u.sortBy(u.values(n),"name");return u.each(n,(function(e){e.items=u.sortBy(e.items,"name")})),n}(i,e),r.tree.project=function(e,t,n){var r={};e=e||[],t=t||[];return u.each(e.concat(t),(function(e){var t=u.get(e,["docs","show"],!0);if("source"!=e.resource_type&&"exposure"!=e.resource_type&&"metric"!=e.resource_type&&"semantic_model"!=e.resource_type&&t){if(-1!=e.original_file_path.indexOf("\\"))var i=e.original_file_path.split("\\");else i=e.original_file_path.split("/");var o=[e.package_name].concat(i),a=e.unique_id==n,s=u.initial(o);if("macro"==e.resource_type)var l=e.name;else l=u.last(o);if("model"==e.resource_type&&null!=e.version)var c=e.name+"_v"+e.version;else c=e.name;var d=r;u.each(s,(function(e){d[e]?a&&(d[e].active=!0):d[e]={type:"folder",name:e,active:a,items:{}},d=d[e].items})),d[l]={type:"file",name:c,node:e,active:a,unique_id:e.unique_id,node_type:e.resource_type}}})),function e(t){var n=[],r=u.values(t);return u.each(r,(function(t){if(t.items){var r=e(t.items),i=u.sortBy(r,"name");t.items=i}n.push(t)})),n}(r)}(i,n,e);var o=u.values(r.project.sources);r.tree.sources=function(e,t){var n={};u.each(e,(function(e){var r=e.source_name,i=e.name,o=e.unique_id==t;n[r]?o&&(n[r].active=!0):n[r]={type:"folder",name:r,active:o,items:[]},n[r].items.push({type:"file",name:i,node:e,active:o,unique_id:e.unique_id,node_type:"source"})}));n=u.sortBy(u.values(n),"name");return u.each(n,(function(e){e.items=u.sortBy(e.items,"name")})),n}(o,e);var a=u.values(r.project.exposures);r.tree.exposures=function(e,t){var n={};u.each(e,(function(e){e.name;var r=e.type||"Uncategorized";r=function(e){var t={ml:"ML"};return t.hasOwnProperty(e)?t[e]:e.charAt(0).toUpperCase()+e.slice(1)}(r);var i=e.unique_id==t;n[r]?i&&(n[r].active=!0):n[r]={type:"folder",name:r,active:i,items:[]},n[r].items.push({type:"file",name:e.label,node:e,active:i,unique_id:e.unique_id,node_type:"exposure"})}));n=u.sortBy(u.values(n),"name");return u.each(n,(function(e){e.items=u.sortBy(e.items,"name")})),n}(a,e);var s=u.values(r.project.metrics);r.tree.metrics=function(e,t){var n={};u.each(e,(function(e){e.name;var r=e.package_name,i=e.unique_id==t;n[r]?i&&(n[r].active=!0):n[r]={type:"folder",name:r,active:i,items:[]},n[r].items.push({type:"file",name:e.label,node:e,active:i,unique_id:e.unique_id,node_type:"metric"})}));n=u.sortBy(u.values(n),"name");return u.each(n,(function(e){n.items=u.sortBy(n.items,"name")})),n}(s,e);var l=u.values(r.project.semantic_models);r.tree.semantic_models=function(e,t){var n={};u.each(e,(function(e){e.name;var r=e.package_name,i=e.unique_id==t;n[r]?i&&(n[r].active=!0):n[r]={type:"folder",name:r,active:i,items:[]},n[r].items.push({type:"file",name:e.name,node:e,active:i,unique_id:e.unique_id,node_type:"semantic_model"})}));n=u.sortBy(u.values(n),"name");return u.each(n,(function(e){n.items=u.sortBy(n.items,"name")})),n}(l,e),t(r.tree)}))},r.updateSelectedInTree=function(e,t){var n=!1;return u.each(t,(function(t){if(t.node&&t.node.unique_id==e)t.active=!0,n=!0;else if(t.node&&t.node.unique_id!=e)t.active=!1;else{r.updateSelectedInTree(e,t.items)&&(t.active=!0,n=!0)}})),n},r.updateSelected=function(e){return r.updateSelectedInTree(e,r.tree.project),r.updateSelectedInTree(e,r.tree.database),r.updateSelectedInTree(e,r.tree.groups),r.updateSelectedInTree(e,r.tree.sources),r.updateSelectedInTree(e,r.tree.exposures),r.updateSelectedInTree(e,r.tree.metrics),r.updateSelectedInTree(e,r.tree.semantic_models),r.tree},r.caseColumn=function(e){return"snowflake"==r.project.metadata.adapter_type&&e.toUpperCase()==e?e.toLowerCase():e},r.init=function(){r.loadProject()},r}])},function(e,t,n){const r=n(9);n(209),n(230),n(445),n(458),n(459),n(479),n(480),n(481),r.module("dbt").run(["$rootScope","$state","$stateParams",function(e,t,n){e.$state=t,e.$stateParams=n}])},function(e,t){ /** * @license AngularJS v1.8.2 * (c) 2010-2020 Google LLC. http://angularjs.org @@ -97,6 +97,6 @@ * @author Feross Aboukhadijeh * @license MIT */ -e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,n){n(9).module("dbt").factory("locationService",["$state",function(e){var t={};return t.parseState=function(e){return function(e){return{selected:{include:e.g_i||"",exclude:e.g_e||""},show_graph:!!e.g_v}}(e)},t.setState=function(t){var n=function(e){var t={g_v:1};return t.g_i=e.include,t.g_e=e.exclude,t}(t),r=e.current.name;e.go(r,n)},t.clearState=function(){var t=e.current.name;e.go(t,{g_i:null,g_e:null,g_v:null})},t}])},function(e,t,n){"use strict";const r=n(9),i=n(202);r.module("dbt").controller("OverviewCtrl",["$scope","$state","project",function(e,t,n){e.overview_md="(loading)",n.ready((function(n){let r=t.params.project_name?t.params.project_name:null;var o=n.docs["doc.dbt.__overview__"],a=i.filter(n.docs,{name:"__overview__"});if(i.each(a,(function(e){"dbt"!=e.package_name&&(o=e)})),null!==r){o=n.docs[`doc.${r}.__${r}__`]||o;let e=i.filter(n.docs,{name:`__${r}__`});i.each(e,e=>{e.package_name!==r&&(o=e)})}e.overview_md=o.block_contents}))}])},function(e,t,n){"use strict";n(9).module("dbt").controller("SourceListCtrl",["$scope","$state","project",function(e,t,n){e.source=t.params.source,e.model={},e.extra_table_fields=[],e.has_more_info=function(e){return(e.description||"").length},e.toggle_source_expanded=function(t){e.has_more_info(t)&&(t.expanded=!t.expanded)},n.ready((function(t){var n=_.filter(t.nodes,(function(t){return t.source_name==e.source}));if(0!=n.length){n.sort((e,t)=>e.name.localeCompare(t.name));var r=n[0];e.model={name:e.source,source_description:r.source_description,sources:n};var i=_.uniq(_.map(n,"metadata.owner")),o=_.uniq(_.map(n,"database")),a=_.uniq(_.map(n,"schema"));e.extra_table_fields=[{name:"Loader",value:r.loader},{name:1==i.length?"Owner":"Owners",value:i.join(", ")},{name:1==o.length?"Database":"Databases",value:o.join(", ")},{name:1==a.length?"Schema":"Schemas",value:a.join(", ")},{name:"Tables",value:n.length}]}}))}])},function(e,t,n){const r=n(9),i={main:n(482),overview:n(483),graph:n(484),source:n(205),source_list:n(485),model:n(486),source:n(205),snapshot:n(487),seed:n(488),test:n(489),analysis:n(490),macro:n(491),exposure:n(492),metric:n(493),semantic_model:n(494),operation:n(495)};r.module("dbt").config(["$stateProvider","$urlRouterProvider",function(e,t){var n="g_v&g_i&g_e&g_p&g_n";t.otherwise("/overview"),e.state("dbt",{url:"/",abstract:!0,controller:"MainController",templateUrl:i.main}).state("dbt.overview",{url:"overview?"+n,controller:"OverviewCtrl",templateUrl:i.overview}).state("dbt.project_overview",{url:"overview/:project_name?"+n,controller:"OverviewCtrl",templateUrl:i.overview,params:{project_name:{type:"string"}}}).state("dbt.graph",{url:"graph",controller:"GraphCtrl",templateUrl:i.graph}).state("dbt.model",{url:"model/:unique_id?section&"+n,controller:"ModelCtrl",templateUrl:i.model,params:{unique_id:{type:"string"}}}).state("dbt.seed",{url:"seed/:unique_id?section&"+n,controller:"SeedCtrl",templateUrl:i.seed,params:{unique_id:{type:"string"}}}).state("dbt.snapshot",{url:"snapshot/:unique_id?section&"+n,controller:"SnapshotCtrl",templateUrl:i.snapshot,params:{unique_id:{type:"string"}}}).state("dbt.test",{url:"test/:unique_id?section&"+n,controller:"TestCtrl",templateUrl:i.test,params:{unique_id:{type:"string"}}}).state("dbt.analysis",{url:"analysis/:unique_id?section&"+n,controller:"AnalysisCtrl",templateUrl:i.analysis,params:{unique_id:{type:"string"}}}).state("dbt.source",{url:"source/:unique_id?section&"+n,controller:"SourceCtrl",templateUrl:i.source,params:{unique_id:{type:"string"}}}).state("dbt.source_list",{url:"source_list/:source?section&"+n,controller:"SourceListCtrl",templateUrl:i.source_list,params:{source:{type:"string"}}}).state("dbt.macro",{url:"macro/:unique_id?section",controller:"MacroCtrl",templateUrl:i.macro,params:{unique_id:{type:"string"}}}).state("dbt.exposure",{url:"exposure/:unique_id?section&"+n,controller:"ExposureCtrl",templateUrl:i.exposure,params:{unique_id:{type:"string"}}}).state("dbt.metric",{url:"metric/:unique_id?section&"+n,controller:"MetricCtrl",templateUrl:i.metric,params:{unique_id:{type:"string"}}}).state("dbt.semantic_model",{url:"semantic_model/:unique_id?section&"+n,controller:"SemanticModelCtrl",templateUrl:i.semantic_model,params:{unique_id:{type:"string"}}}).state("dbt.operation",{url:"operation/:unique_id?section&"+n,controller:"OperationCtrl",templateUrl:i.operation,params:{unique_id:{type:"string"}}})}])},function(e,t){var n="/main/main.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n\n
\n
\n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/overview/overview.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'
\n \n
\n
\n

\n
\n
\n
\n\n')}]),e.exports=n},function(e,t){var n="/graph/graph.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'
\n
\n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/sources/source_list.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n\n
\n
\n
\n
Source Tables
\n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
SourceTableDescriptionLinkMore?
\n
\n {{ source.source_name }}\n
\n
\n {{ source.name }}

\n
\n {{ source.description }}\n \n View docs\n \n \n \n \n \n \n \n \n \n
\n
\n
\n
Description
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/model.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Columns
\n \n
\n
\n\n
\n
\n
\n
Referenced By
\n \n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/snapshot.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Columns
\n \n
\n
\n\n
\n
\n
\n
Referenced By
\n \n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/seed.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n
\n
\n
\n
Columns
\n \n
\n
\n\n
\n
\n
\n
Referenced By
\n \n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/test.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/analysis.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/macro.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ macro.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Arguments
\n \n
\n
\n\n
\n
\n
\n
Referenced By
\n \n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/exposure.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ exposure.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/metric.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ metric.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/semantic_model.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ semantic_model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Entities
\n\n
\n
\n
\n
\n
Name
\n
{{ entity.name }}
\n
None
\n
Type
\n
{{ entity.type }}
\n
None
\n
Expression
\n
{{ entity.expr }}
\n
None
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/operation.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n}]); +e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,n){n(9).module("dbt").factory("locationService",["$state",function(e){var t={};return t.parseState=function(e){return function(e){return{selected:{include:e.g_i||"",exclude:e.g_e||""},show_graph:!!e.g_v}}(e)},t.setState=function(t){var n=function(e){var t={g_v:1};return t.g_i=e.include,t.g_e=e.exclude,t}(t),r=e.current.name;e.go(r,n)},t.clearState=function(){var t=e.current.name;e.go(t,{g_i:null,g_e:null,g_v:null})},t}])},function(e,t,n){"use strict";const r=n(9),i=n(202);r.module("dbt").controller("OverviewCtrl",["$scope","$state","project",function(e,t,n){e.overview_md="(loading)",n.ready((function(n){let r=t.params.project_name?t.params.project_name:null;var o=n.docs["doc.dbt.__overview__"],a=i.filter(n.docs,{name:"__overview__"});if(i.each(a,(function(e){"dbt"!=e.package_name&&(o=e)})),null!==r){o=n.docs[`doc.${r}.__${r}__`]||o;let e=i.filter(n.docs,{name:`__${r}__`});i.each(e,e=>{e.package_name!==r&&(o=e)})}e.overview_md=o.block_contents}))}])},function(e,t,n){"use strict";n(9).module("dbt").controller("SourceListCtrl",["$scope","$state","project",function(e,t,n){e.source=t.params.source,e.model={},e.extra_table_fields=[],e.has_more_info=function(e){return(e.description||"").length},e.toggle_source_expanded=function(t){e.has_more_info(t)&&(t.expanded=!t.expanded)},n.ready((function(t){var n=_.filter(t.nodes,(function(t){return t.source_name==e.source}));if(0!=n.length){n.sort((e,t)=>e.name.localeCompare(t.name));var r=n[0];e.model={name:e.source,source_description:r.source_description,sources:n};var i=_.uniq(_.map(n,"metadata.owner")),o=_.uniq(_.map(n,"database")),a=_.uniq(_.map(n,"schema"));e.extra_table_fields=[{name:"Loader",value:r.loader},{name:1==i.length?"Owner":"Owners",value:i.join(", ")},{name:1==o.length?"Database":"Databases",value:o.join(", ")},{name:1==a.length?"Schema":"Schemas",value:a.join(", ")},{name:"Tables",value:n.length}]}}))}])},function(e,t,n){const r=n(9),i={main:n(482),overview:n(483),graph:n(484),source:n(205),source_list:n(485),model:n(486),source:n(205),snapshot:n(487),seed:n(488),test:n(489),analysis:n(490),macro:n(491),exposure:n(492),metric:n(493),semantic_model:n(494),operation:n(495)};r.module("dbt").config(["$stateProvider","$urlRouterProvider",function(e,t){var n="g_v&g_i&g_e&g_p&g_n";t.otherwise("/overview"),e.state("dbt",{url:"/",abstract:!0,controller:"MainController",templateUrl:i.main}).state("dbt.overview",{url:"overview?"+n,controller:"OverviewCtrl",templateUrl:i.overview}).state("dbt.project_overview",{url:"overview/:project_name?"+n,controller:"OverviewCtrl",templateUrl:i.overview,params:{project_name:{type:"string"}}}).state("dbt.graph",{url:"graph",controller:"GraphCtrl",templateUrl:i.graph}).state("dbt.model",{url:"model/:unique_id?section&"+n,controller:"ModelCtrl",templateUrl:i.model,params:{unique_id:{type:"string"}}}).state("dbt.seed",{url:"seed/:unique_id?section&"+n,controller:"SeedCtrl",templateUrl:i.seed,params:{unique_id:{type:"string"}}}).state("dbt.snapshot",{url:"snapshot/:unique_id?section&"+n,controller:"SnapshotCtrl",templateUrl:i.snapshot,params:{unique_id:{type:"string"}}}).state("dbt.test",{url:"test/:unique_id?section&"+n,controller:"TestCtrl",templateUrl:i.test,params:{unique_id:{type:"string"}}}).state("dbt.analysis",{url:"analysis/:unique_id?section&"+n,controller:"AnalysisCtrl",templateUrl:i.analysis,params:{unique_id:{type:"string"}}}).state("dbt.source",{url:"source/:unique_id?section&"+n,controller:"SourceCtrl",templateUrl:i.source,params:{unique_id:{type:"string"}}}).state("dbt.source_list",{url:"source_list/:source?section&"+n,controller:"SourceListCtrl",templateUrl:i.source_list,params:{source:{type:"string"}}}).state("dbt.macro",{url:"macro/:unique_id?section",controller:"MacroCtrl",templateUrl:i.macro,params:{unique_id:{type:"string"}}}).state("dbt.exposure",{url:"exposure/:unique_id?section&"+n,controller:"ExposureCtrl",templateUrl:i.exposure,params:{unique_id:{type:"string"}}}).state("dbt.metric",{url:"metric/:unique_id?section&"+n,controller:"MetricCtrl",templateUrl:i.metric,params:{unique_id:{type:"string"}}}).state("dbt.semantic_model",{url:"semantic_model/:unique_id?section&"+n,controller:"SemanticModelCtrl",templateUrl:i.semantic_model,params:{unique_id:{type:"string"}}}).state("dbt.operation",{url:"operation/:unique_id?section&"+n,controller:"OperationCtrl",templateUrl:i.operation,params:{unique_id:{type:"string"}}})}])},function(e,t){var n="/main/main.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n\n
\n
\n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/overview/overview.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'
\n \n
\n
\n

\n
\n
\n
\n\n')}]),e.exports=n},function(e,t){var n="/graph/graph.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'
\n
\n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/sources/source_list.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n\n
\n
\n
\n
Source Tables
\n
\n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
SourceTableDescriptionLinkMore?
\n
\n {{ source.source_name }}\n
\n
\n {{ source.name }}

\n
\n {{ source.description }}\n \n View docs\n \n \n \n \n \n \n \n \n \n
\n
\n
\n
Description
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/model.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Columns
\n \n
\n
\n\n
\n
\n
\n
Referenced By
\n \n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/snapshot.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Columns
\n \n
\n
\n\n
\n
\n
\n
Referenced By
\n \n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/seed.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n
\n
\n
\n
Columns
\n \n
\n
\n\n
\n
\n
\n
Referenced By
\n \n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/test.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/analysis.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/macro.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ macro.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Arguments
\n \n
\n
\n\n
\n
\n
\n
Referenced By
\n \n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/exposure.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ exposure.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/metric.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ metric.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/semantic_model.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n\n
\n
\n \n
\n\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ semantic_model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Entities
\n\n
\n
\n
\n
\n
Name
\n
{{ entity.name }}
\n
None
\n
Type
\n
{{ entity.type }}
\n
None
\n
Expression
\n
{{ entity.expr }}
\n
None
\n
\n
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n')}]),e.exports=n},function(e,t){var n="/docs/operation.html";window.angular.module("ng").run(["$templateCache",function(e){e.put(n,'\n\n
\n \n
\n
\n
\n
\n
\n
Description
\n
\n
\n
\n
This {{ model.resource_type }} is not currently documented
\n
\n
\n
\n
\n\n
\n
\n
\n
Depends On
\n \n
\n
\n\n
\n
\n
\n \n
\n
\n
\n
\n
\n')}]),e.exports=n}]); //# sourceMappingURL=main.js.map diff --git a/docs/manifest.json b/docs/manifest.json index 9ef5918..9642bec 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v10.json", "dbt_version": "1.6.1", "generated_at": "2024-02-20T19:38:25.192992Z", "invocation_id": "7d05597f-1e75-41df-a9b8-5eca5c835afb", "env": {}, "project_name": "my_new_project", "project_id": "faebc42304447d4427374f806679ecb5", "user_id": "e607f749-4294-4b15-833b-0ae4a87d4d24", "send_anonymous_usage_stats": true, "adapter_type": "bigquery"}, "nodes": {"model.my_new_project.my_first_dbt_model": {"database": "dbt-package-testing", "schema": "zz_dbt_renee", "name": "my_first_dbt_model", "resource_type": "model", "package_name": "my_new_project", "path": "example/my_first_dbt_model.sql", "original_file_path": "models/example/my_first_dbt_model.sql", "unique_id": "model.my_new_project.my_first_dbt_model", "fqn": ["my_new_project", "example", "my_first_dbt_model"], "alias": "my_first_dbt_model", "checksum": {"name": "sha256", "checksum": "0f0a39768ca58b1f5b1e85acbb46843e16a97d88db12e7a25d1533b2e8f77b36"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "A starter dbt model", "columns": {"id": {"name": "id", "description": "The primary key for this table", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "my_new_project://models/example/schema.yml", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table"}, "created_at": 1708457909.135208, "relation_name": "`dbt-package-testing`.`zz_dbt_renee`.`my_first_dbt_model`", "raw_code": "/*\n Welcome to your first dbt model!\n Did you know that you can also configure models directly within SQL files?\n This will override configurations stated in dbt_project.yml\n\n Try changing \"table\" to \"view\" below\n*/\n\n{{ config(materialized='table') }}\n\nwith source_data as (\n\n select 1 as id\n union all\n select null as id\n\n)\n\nselect *\nfrom source_data\n\n/*\n Uncomment the line below to remove records with null `id` values\n*/\n\n-- where id is not null", "language": "sql", "refs": [], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": []}, "compiled_path": "target/compiled/my_new_project/models/example/my_first_dbt_model.sql", "compiled": true, "compiled_code": "/*\n Welcome to your first dbt model!\n Did you know that you can also configure models directly within SQL files?\n This will override configurations stated in dbt_project.yml\n\n Try changing \"table\" to \"view\" below\n*/\n\n\n\nwith source_data as (\n\n select 1 as id\n union all\n select null as id\n\n)\n\nselect *\nfrom source_data\n\n/*\n Uncomment the line below to remove records with null `id` values\n*/\n\n-- where id is not null", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.my_new_project.my_second_dbt_model": {"database": "dbt-package-testing", "schema": "zz_dbt_renee", "name": "my_second_dbt_model", "resource_type": "model", "package_name": "my_new_project", "path": "example/my_second_dbt_model.sql", "original_file_path": "models/example/my_second_dbt_model.sql", "unique_id": "model.my_new_project.my_second_dbt_model", "fqn": ["my_new_project", "example", "my_second_dbt_model"], "alias": "my_second_dbt_model", "checksum": {"name": "sha256", "checksum": "dc8c458292bc2fb8ce4591cb70c1e23046e3c2e33fb1c2ce732658f90e231f1e"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "A starter dbt model", "columns": {"id": {"name": "id", "description": "The primary key for this table", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "my_new_project://models/example/schema.yml", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.136039, "relation_name": "`dbt-package-testing`.`zz_dbt_renee`.`my_second_dbt_model`", "raw_code": "-- Use the `ref` function to select from other models\n\nselect *\nfrom {{ ref('my_first_dbt_model') }}\nwhere id = 1", "language": "sql", "refs": [{"name": "my_first_dbt_model", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.my_new_project.my_first_dbt_model"]}, "compiled_path": "target/compiled/my_new_project/models/example/my_second_dbt_model.sql", "compiled": true, "compiled_code": "-- Use the `ref` function to select from other models\n\nselect *\nfrom `dbt-package-testing`.`zz_dbt_renee`.`my_first_dbt_model`\nwhere id = 1", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__employee_overview": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_workday", "name": "workday__employee_overview", "resource_type": "model", "package_name": "workday", "path": "workday__employee_overview.sql", "original_file_path": "models/workday__employee_overview.sql", "unique_id": "model.workday.workday__employee_overview", "fqn": ["workday", "workday__employee_overview"], "alias": "workday__employee_overview", "checksum": {"name": "sha256", "checksum": "cc95ee7dafaef52e48c9d3c34a307eaf104bfe18cb196e657d951de077cb338f"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_user_active": {"name": "is_user_active", "description": "Is the user currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed": {"name": "is_employed", "description": "Is the worker currently employed?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "departure_date": {"name": "departure_date", "description": "The departure date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_of_employment": {"name": "days_of_employment", "description": "Number of days employed by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Has the worker been regrettably terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_codes": {"name": "ethnicity_codes", "description": "String aggregation of all ethnicity codes associated with an individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The military status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_position_type": {"name": "most_recent_position_type", "description": "The most recent position type of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_location": {"name": "most_recent_location", "description": "The most recent location of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_level": {"name": "most_recent_level", "description": "The most recent level of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_at_position": {"name": "days_at_position", "description": "The number of days the worker has held their most recent position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_position_start_date": {"name": "most_recent_position_start_date", "description": "The most recent position start date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_position_end_date": {"name": "most_recent_position_end_date", "description": "The most recent position end date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_position_effective_date": {"name": "most_recent_position_effective_date", "description": "The most recent position effective date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_positions": {"name": "worker_positions", "description": "The number of positions the worker has held", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_levels": {"name": "worker_levels", "description": "The number of levels the worker has worked at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_days": {"name": "position_days", "description": "The days the worker held positions at the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_one_year": {"name": "is_employed_one_year", "description": "Tracks whether a worker was employed at least one year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_five_years": {"name": "is_employed_five_years", "description": "Tracks whether a worker was employed at least five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_ten_years": {"name": "is_employed_ten_years", "description": "Tracks whether a worker was employed at least ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_twenty_years": {"name": "is_employed_twenty_years", "description": "Tracks whether a worker was employed at least twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_thirty_years": {"name": "is_employed_thirty_years", "description": "Tracks whether a worker was employed at least thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_one_year": {"name": "is_current_employee_one_year", "description": "Tracks whether a worker is active for more than a year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_five_years": {"name": "is_current_employee_five_years", "description": "Tracks whether a worker is active for more than five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "description": "Tracks whether a worker is active for more than ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "description": "Tracks whether a worker is active for more than twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "description": "Tracks whether a worker is active for more than thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1708457909.20309, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_workday`.`workday__employee_overview`", "raw_code": "with int_worker_base as (\n\n select * \n from {{ ref('int_workday__worker_details') }} \n),\n\nint_worker_personal_details as (\n\n select * \n from {{ ref('int_workday__personal_details') }} \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from {{ ref('int_workday__worker_position_enriched') }} \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n most_recent_position_type,\n most_recent_location,\n most_recent_level,\n fte_percent,\n days_at_position,\n most_recent_position_start_date,\n most_recent_position_end_date,\n most_recent_position_effective_date,\n worker_positions,\n worker_levels,\n position_days,\n case when days_of_employment >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_of_employment >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_of_employment >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_of_employment >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_of_employment >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_of_employment >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_of_employment >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_of_employment >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_of_employment >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_of_employment >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect *\nfrom worker_employee_enhanced", "language": "sql", "refs": [{"name": "int_workday__worker_details", "package": null, "version": null}, {"name": "int_workday__personal_details", "package": null, "version": null}, {"name": "int_workday__worker_position_enriched", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.int_workday__worker_details", "model.workday.int_workday__personal_details", "model.workday.int_workday__worker_position_enriched"]}, "compiled_path": "target/compiled/workday/models/workday__employee_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n current_timestamp() as current_date\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker`\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n\n datetime_diff(\n cast(current_date as datetime),\n cast(hire_date as datetime),\n day\n )\n\n \n else \n\n datetime_diff(\n cast(termination_date as datetime),\n cast(hire_date as datetime),\n day\n )\n\n \n end as days_of_employment,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__personal_information`\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__person_name`\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__person_contact_email_address`\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__personal_information_ethnicity`\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__military_service`\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n current_timestamp() as current_date\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_position`\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n\n datetime_diff(\n cast(current_date as datetime),\n cast(position_start_date as datetime),\n day\n )\n\n \n else \n\n datetime_diff(\n cast(position_end_date as datetime),\n cast(position_start_date as datetime),\n day\n )\n\n \n end as days_at_position,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n),\n\nworker_position_measures as (\n\n select \n worker_id,\n source_relation,\n count(distinct position_id) as worker_positions,\n count(distinct management_level_code) as worker_levels,\n sum(days_at_position) as position_days\n from worker_position_data_enhanced\n group by 1, 2\n),\n\nmost_recent_position as (\n\n select *\n from worker_position_data_enhanced\n where row_number = 1\n),\n\nworker_position_enriched as (\n\n select\n most_recent_position.worker_id,\n most_recent_position.source_relation,\n most_recent_position.position_id, \n most_recent_position.business_title,\n most_recent_position.job_profile_id, \n most_recent_position.employee_type as most_recent_position_type,\n most_recent_position.position_location as most_recent_location,\n most_recent_position.management_level_code as most_recent_level,\n most_recent_position.fte_percent,\n most_recent_position.days_at_position,\n most_recent_position.position_start_date as most_recent_position_start_date,\n most_recent_position.position_end_date as most_recent_position_end_date,\n most_recent_position.position_effective_date as most_recent_position_effective_date,\n worker_position_measures.worker_positions,\n worker_position_measures.worker_levels, \n worker_position_measures.position_days\n from most_recent_position\n left join worker_position_measures \n on most_recent_position.worker_id = worker_position_measures.worker_id\n and most_recent_position.source_relation = worker_position_measures.source_relation\n)\n\nselect * \nfrom worker_position_enriched\n), int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n most_recent_position_type,\n most_recent_location,\n most_recent_level,\n fte_percent,\n days_at_position,\n most_recent_position_start_date,\n most_recent_position_end_date,\n most_recent_position_effective_date,\n worker_positions,\n worker_levels,\n position_days,\n case when days_of_employment >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_of_employment >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_of_employment >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_of_employment >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_of_employment >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_of_employment >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_of_employment >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_of_employment >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_of_employment >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_of_employment >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect *\nfrom worker_employee_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.int_workday__worker_details", "sql": " __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n current_timestamp() as current_date\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker`\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n\n datetime_diff(\n cast(current_date as datetime),\n cast(hire_date as datetime),\n day\n )\n\n \n else \n\n datetime_diff(\n cast(termination_date as datetime),\n cast(hire_date as datetime),\n day\n )\n\n \n end as days_of_employment,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n)"}, {"id": "model.workday.int_workday__personal_details", "sql": " __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__personal_information`\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__person_name`\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__person_contact_email_address`\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__personal_information_ethnicity`\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__military_service`\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n)"}, {"id": "model.workday.int_workday__worker_position_enriched", "sql": " __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n current_timestamp() as current_date\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_position`\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n\n datetime_diff(\n cast(current_date as datetime),\n cast(position_start_date as datetime),\n day\n )\n\n \n else \n\n datetime_diff(\n cast(position_end_date as datetime),\n cast(position_start_date as datetime),\n day\n )\n\n \n end as days_at_position,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n),\n\nworker_position_measures as (\n\n select \n worker_id,\n source_relation,\n count(distinct position_id) as worker_positions,\n count(distinct management_level_code) as worker_levels,\n sum(days_at_position) as position_days\n from worker_position_data_enhanced\n group by 1, 2\n),\n\nmost_recent_position as (\n\n select *\n from worker_position_data_enhanced\n where row_number = 1\n),\n\nworker_position_enriched as (\n\n select\n most_recent_position.worker_id,\n most_recent_position.source_relation,\n most_recent_position.position_id, \n most_recent_position.business_title,\n most_recent_position.job_profile_id, \n most_recent_position.employee_type as most_recent_position_type,\n most_recent_position.position_location as most_recent_location,\n most_recent_position.management_level_code as most_recent_level,\n most_recent_position.fte_percent,\n most_recent_position.days_at_position,\n most_recent_position.position_start_date as most_recent_position_start_date,\n most_recent_position.position_end_date as most_recent_position_end_date,\n most_recent_position.position_effective_date as most_recent_position_effective_date,\n worker_position_measures.worker_positions,\n worker_position_measures.worker_levels, \n worker_position_measures.position_days\n from most_recent_position\n left join worker_position_measures \n on most_recent_position.worker_id = worker_position_measures.worker_id\n and most_recent_position.source_relation = worker_position_measures.source_relation\n)\n\nselect * \nfrom worker_position_enriched\n)"}], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__job_overview": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_workday", "name": "workday__job_overview", "resource_type": "model", "package_name": "workday", "path": "workday__job_overview.sql", "original_file_path": "models/workday__job_overview.sql", "unique_id": "model.workday.workday__job_overview", "fqn": ["workday", "workday__job_overview"], "alias": "workday__job_overview", "checksum": {"name": "sha256", "checksum": "b50072f5be5632d10a64a1e777aa62ae6f2283f22244bd033fea5fc20ce66165"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "The private title associated with the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "The summary of the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_codes": {"name": "job_family_codes", "description": "String array of all job family codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summaries": {"name": "job_family_summaries", "description": "String array of all job family summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_codes": {"name": "job_family_group_codes", "description": "String array of all job family group codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summaries": {"name": "job_family_group_summaries", "description": "String array of all job family group summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1708457909.208082, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_workday`.`workday__job_overview`", "raw_code": "with job_profile_data as (\n\n select * \n from {{ ref('stg_workday__job_profile') }}\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_profile') }}\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from {{ ref('stg_workday__job_family') }}\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_family_group') }}\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from {{ ref('stg_workday__job_family_group') }}\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_code', \"', '\" ) }} as job_family_codes,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_summary', \"', '\" ) }} as job_family_summaries, \n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_code', \"', '\" ) }} as job_family_group_codes,\n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_summary', \"', '\" ) }} as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom job_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}, {"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg", "macro.dbt_utils.group_by"], "nodes": ["model.workday.stg_workday__job_profile", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/workday__job_overview.sql", "compiled": true, "compiled_code": "with job_profile_data as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_profile`\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_job_profile`\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family`\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_job_family_group`\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_group`\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__position_overview": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_workday", "name": "workday__position_overview", "resource_type": "model", "package_name": "workday", "path": "workday__position_overview.sql", "original_file_path": "models/workday__position_overview.sql", "unique_id": "model.workday.workday__position_overview", "fqn": ["workday", "workday__position_overview"], "alias": "workday__position_overview", "checksum": {"name": "sha256", "checksum": "567db8a61cd72c8faec1aac1963cbf05b776d0fe170a7f8c0ae8ea3d076464d3"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts.", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1708457909.216552, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_workday`.`workday__position_overview`", "raw_code": "with position_data as (\n\n select *\n from {{ ref('stg_workday__position') }}\n),\n\nposition_job_profile_data as (\n\n select *\n from {{ ref('stg_workday__position_job_profile') }}\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}, {"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/workday__position_overview.sql", "compiled": true, "compiled_code": "with position_data as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__position`\n),\n\nposition_job_profile_data as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__position_job_profile`\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__organization_overview": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_workday", "name": "workday__organization_overview", "resource_type": "model", "package_name": "workday", "path": "workday__organization_overview.sql", "original_file_path": "models/workday__organization_overview.sql", "unique_id": "model.workday.workday__organization_overview", "fqn": ["workday", "workday__organization_overview"], "alias": "workday__organization_overview", "checksum": {"name": "sha256", "checksum": "0df19685be8a2ffee5d5e16069cbc9771cc639372004929a73f500f9d7c59798"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1708457909.22249, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_workday`.`workday__organization_overview`", "raw_code": "with organization_data as (\n\n select * \n from {{ ref('stg_workday__organization') }}\n),\n\norganization_role_data as (\n\n select * \n from {{ ref('stg_workday__organization_role') }}\n),\n\nworker_position_organization as (\n\n select *\n from {{ ref('stg_workday__worker_position_organization') }}\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}, {"name": "stg_workday__organization_role", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/workday__organization_overview.sql", "compiled": true, "compiled_code": "with organization_data as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization`\n),\n\norganization_role_data as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_role`\n),\n\nworker_position_organization as (\n\n select *\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_position_organization`\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position.sql", "original_file_path": "models/staging/stg_workday__position.sql", "unique_id": "model.workday.stg_workday__position", "fqn": ["workday", "staging", "stg_workday__position"], "alias": "stg_workday__position", "checksum": {"name": "sha256", "checksum": "a8eea235110df116f941d206b25f965ace56ec776662153af05d70a2bdf1cd4b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_academic_tenure_eligible": {"name": "is_academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.476994, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__position`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_base')),\n staging_columns=get_position_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_base", "package": null, "version": null}, {"name": "stg_workday__position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__position_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as BOOLEAN) as \n \n academic_tenure_eligible\n \n , \n cast(null as date) as \n \n availability_date\n \n , \n cast(null as BOOLEAN) as \n \n available_for_hire\n \n , \n cast(null as BOOLEAN) as \n \n available_for_overlap\n \n , \n cast(null as BOOLEAN) as \n \n available_for_recruiting\n \n , \n cast(null as BOOLEAN) as \n \n closed\n \n , \n cast(null as STRING) as \n \n compensation_grade_code\n \n , \n cast(null as STRING) as \n \n compensation_grade_profile_code\n \n , \n cast(null as STRING) as \n \n compensation_package_code\n \n , \n cast(null as STRING) as \n \n compensation_step_code\n \n , \n cast(null as BOOLEAN) as \n \n critical_job\n \n , \n cast(null as STRING) as \n \n difficulty_to_fill_code\n \n , \n cast(null as date) as \n \n earliest_hire_date\n \n , \n cast(null as date) as \n \n earliest_overlap_date\n \n , \n cast(null as date) as \n \n effective_date\n \n , \n cast(null as BOOLEAN) as \n \n hiring_freeze\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as STRING) as \n \n job_description\n \n , \n cast(null as STRING) as \n \n job_description_summary\n \n , \n cast(null as STRING) as \n \n job_posting_title\n \n , \n cast(null as STRING) as \n \n position_code\n \n , \n cast(null as STRING) as \n \n position_time_type_code\n \n , \n cast(null as FLOAT64) as \n \n primary_compensation_basis\n \n , \n cast(null as FLOAT64) as \n \n primary_compensation_basis_amount_change\n \n , \n cast(null as FLOAT64) as \n \n primary_compensation_basis_percent_change\n \n , \n cast(null as STRING) as \n \n supervisory_organization_id\n \n , \n cast(null as BOOLEAN) as \n \n work_shift_required\n \n , \n cast(null as STRING) as \n \n worker_for_filled_position_id\n \n , \n cast(null as STRING) as \n \n worker_position_id\n \n , \n cast(null as STRING) as \n \n worker_type_code\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_group"], "alias": "stg_workday__job_family_group", "checksum": {"name": "sha256", "checksum": "91495541dd20c1e46fd9fc7074605bd8d766196513173eb2e6d6d2abd779474a"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summary": {"name": "job_family_group_summary", "description": "The summary of the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.4657972, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_group`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_group_base')),\n staging_columns=get_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_group_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as date) as \n \n effective_date\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as BOOLEAN) as \n \n inactive\n \n , \n cast(null as STRING) as \n \n job_family_group_code\n \n , \n cast(null as STRING) as \n \n summary\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__job_family_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_profile.sql", "original_file_path": "models/staging/stg_workday__job_family_job_profile.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile", "fqn": ["workday", "staging", "stg_workday__job_family_job_profile"], "alias": "stg_workday__job_family_job_profile", "checksum": {"name": "sha256", "checksum": "22f926dc89704581204ef1db5906e7fc184c404d53dc5141b47056de357d6066"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.461965, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_job_profile`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_profile_base')),\n staging_columns=get_job_family_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_job_profile_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n job_family_id\n \n , \n cast(null as STRING) as \n \n job_profile_id\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__organization_role_worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role_worker.sql", "original_file_path": "models/staging/stg_workday__organization_role_worker.sql", "unique_id": "model.workday.stg_workday__organization_role_worker", "fqn": ["workday", "staging", "stg_workday__organization_role_worker"], "alias": "stg_workday__organization_role_worker", "checksum": {"name": "sha256", "checksum": "6cbf3f20ac378d061a6c9034bd75c08e7cf7079ac12c8b167c31e6e1c0e54fa6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_worker_code": {"name": "organization_worker_code", "description": "The worker code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.4683352, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_role_worker`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_worker_base')),\n staging_columns=get_organization_role_worker_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_worker_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role_worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_role_worker_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n associated_worker_id\n \n , \n cast(null as STRING) as \n \n organization_id\n \n , \n cast(null as STRING) as \n \n role_id\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__organization_role", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role.sql", "original_file_path": "models/staging/stg_workday__organization_role.sql", "unique_id": "model.workday.stg_workday__organization_role", "fqn": ["workday", "staging", "stg_workday__organization_role"], "alias": "stg_workday__organization_role", "checksum": {"name": "sha256", "checksum": "d20118b8c8234cda8e96b2df978fdce2aa46bbdb356ebac5b29680663d105e05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.466749, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_role`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_base')),\n staging_columns=get_organization_role_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_role_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n organization_id\n \n , \n cast(null as STRING) as \n \n organization_role_code\n \n , \n cast(null as STRING) as \n \n role_id\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__worker_position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position.sql", "original_file_path": "models/staging/stg_workday__worker_position.sql", "unique_id": "model.workday.stg_workday__worker_position", "fqn": ["workday", "staging", "stg_workday__worker_position"], "alias": "stg_workday__worker_position", "checksum": {"name": "sha256", "checksum": "f812d4b0a33146284f402362816bc05ca7a5e85fa228207ea0df356396906025"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Represents the positions held by workers in the Workday system", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.504094, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_position`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_base')),\n staging_columns=get_worker_position_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_position_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_active\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_start\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_end\n \n , \n cast(null as date) as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n , \n cast(null as date) as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n , \n cast(null as FLOAT64) as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n , \n cast(null as date) as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n , \n cast(null as date) as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n , \n cast(null as STRING) as \n \n business_site_summary_display_language\n \n , \n cast(null as STRING) as \n \n business_site_summary_local\n \n , \n cast(null as STRING) as \n \n business_site_summary_location\n \n , \n cast(null as STRING) as \n \n business_site_summary_location_type\n \n , \n cast(null as STRING) as \n \n business_site_summary_name\n \n , \n cast(null as FLOAT64) as \n \n business_site_summary_scheduled_weekly_hours\n \n , \n cast(null as STRING) as \n \n business_site_summary_time_profile\n \n , \n cast(null as STRING) as \n \n business_title\n \n , \n cast(null as BOOLEAN) as \n \n critical_job\n \n , \n cast(null as FLOAT64) as \n \n default_weekly_hours\n \n , \n cast(null as STRING) as \n \n difficulty_to_fill\n \n , \n cast(null as date) as \n \n effective_date\n \n , \n cast(null as STRING) as \n \n employee_type\n \n , \n cast(null as date) as \n \n end_date\n \n , \n cast(null as date) as \n \n end_employment_date\n \n , \n cast(null as BOOLEAN) as \n \n exclude_from_head_count\n \n , \n cast(null as date) as \n \n expected_assignment_end_date\n \n , \n cast(null as STRING) as \n \n external_employee\n \n , \n cast(null as STRING) as \n \n federal_withholding_fein\n \n , \n cast(null as STRING) as \n \n frequency\n \n , \n cast(null as FLOAT64) as \n \n full_time_equivalent_percentage\n \n , \n cast(null as STRING) as \n \n headcount_restriction_code\n \n , \n cast(null as STRING) as \n \n home_country\n \n , \n cast(null as STRING) as \n \n host_country\n \n , \n cast(null as STRING) as \n \n international_assignment_type\n \n , \n cast(null as BOOLEAN) as \n \n is_primary_job\n \n , \n cast(null as BOOLEAN) as \n \n job_exempt\n \n , \n cast(null as STRING) as \n \n job_profile_id\n \n , \n cast(null as STRING) as \n \n management_level_code\n \n , \n cast(null as FLOAT64) as \n \n paid_fte\n \n , \n cast(null as STRING) as \n \n pay_group\n \n , \n cast(null as STRING) as \n \n pay_rate\n \n , \n cast(null as STRING) as \n \n pay_rate_type\n \n , \n cast(null as date) as \n \n pay_through_date\n \n , \n cast(null as STRING) as \n \n payroll_entity\n \n , \n cast(null as STRING) as \n \n payroll_file_number\n \n , \n cast(null as STRING) as \n \n position_id\n \n , \n cast(null as FLOAT64) as \n \n regular_paid_equivalent_hours\n \n , \n cast(null as FLOAT64) as \n \n scheduled_weekly_hours\n \n , \n cast(null as BOOLEAN) as \n \n specify_paid_fte\n \n , \n cast(null as BOOLEAN) as \n \n specify_working_fte\n \n , \n cast(null as date) as \n \n start_date\n \n , \n cast(null as STRING) as \n \n start_international_assignment_reason\n \n , \n cast(null as STRING) as \n \n work_hours_profile\n \n , \n cast(null as STRING) as \n \n work_shift\n \n , \n cast(null as BOOLEAN) as \n \n work_shift_required\n \n , \n cast(null as STRING) as \n \n work_space\n \n , \n cast(null as STRING) as \n \n worker_hours_profile_classification\n \n , \n cast(null as STRING) as \n \n worker_id\n \n , \n cast(null as FLOAT64) as \n \n working_fte\n \n , \n cast(null as STRING) as \n \n working_time_frequency\n \n , \n cast(null as STRING) as \n \n working_time_unit\n \n , \n cast(null as FLOAT64) as \n \n working_time_value\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where current_timestamp() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__person_contact_email_address", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_contact_email_address.sql", "original_file_path": "models/staging/stg_workday__person_contact_email_address.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address", "fqn": ["workday", "staging", "stg_workday__person_contact_email_address"], "alias": "stg_workday__person_contact_email_address", "checksum": {"name": "sha256", "checksum": "fc93cd7747b3087ad994ab34f0feec9a8293e02f719a8ddb64bf652d786f50e5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_contact_email_address_id": {"name": "person_contact_email_address_id", "description": "The identifier of the personal contact email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.496861, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__person_contact_email_address`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_contact_email_address_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_contact_email_address_base')),\n staging_columns=get_person_contact_email_address_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_contact_email_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_contact_email_address_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_contact_email_address.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__person_contact_email_address_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n email_address\n \n , \n cast(null as STRING) as \n \n email_code\n \n , \n cast(null as STRING) as \n \n email_comment\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as STRING) as \n \n personal_info_system_id\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__position_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_job_profile.sql", "original_file_path": "models/staging/stg_workday__position_job_profile.sql", "unique_id": "model.workday.stg_workday__position_job_profile", "fqn": ["workday", "staging", "stg_workday__position_job_profile"], "alias": "stg_workday__position_job_profile", "checksum": {"name": "sha256", "checksum": "1bd56f05d8c66dff4d5741a2ca3963cd4859341229686f1e9155289aa86ca3f3"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_job_profile_name": {"name": "position_job_profile_name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.478716, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__position_job_profile`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_job_profile_base')),\n staging_columns=get_position_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__position_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__position_job_profile_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n difficulty_to_fill_code\n \n , \n cast(null as BOOLEAN) as \n \n is_critical_job\n \n , \n cast(null as STRING) as \n \n job_category_code\n \n , \n cast(null as STRING) as \n \n job_profile_id\n \n , \n cast(null as STRING) as \n \n management_level_code\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as STRING) as \n \n position_id\n \n , \n cast(null as BOOLEAN) as \n \n work_shift_required\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__worker_position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position_organization.sql", "original_file_path": "models/staging/stg_workday__worker_position_organization.sql", "unique_id": "model.workday.stg_workday__worker_position_organization", "fqn": ["workday", "staging", "stg_workday__worker_position_organization"], "alias": "stg_workday__worker_position_organization", "checksum": {"name": "sha256", "checksum": "c06c632d0c5bc211074ad78e1d36ea19e68ad03423068316bd207e3978472684"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.513281, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_position_organization`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_organization_base')),\n staging_columns=get_worker_position_organization_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_position_organization_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_active\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_start\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_end\n \n , \n cast(null as INT64) as \n \n index\n \n , \n cast(null as STRING) as \n \n position_id\n \n , \n cast(null as STRING) as \n \n worker_id\n \n , \n cast(null as date) as \n \n date_of_pay_group_assignment\n \n , \n cast(null as STRING) as \n \n organization_id\n \n , \n cast(null as STRING) as \n \n primary_business_site\n \n , \n cast(null as BOOLEAN) as \n \n used_in_change_organization_assignments\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where current_timestamp() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_profile.sql", "original_file_path": "models/staging/stg_workday__job_profile.sql", "unique_id": "model.workday.stg_workday__job_profile", "fqn": ["workday", "staging", "stg_workday__job_profile"], "alias": "stg_workday__job_profile", "checksum": {"name": "sha256", "checksum": "c58fefde4e2bab4dfcc7d23f270ba41e4b3a785de9c0f221854b44ce088753d6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_job_code_in_name": {"name": "is_include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_public_job": {"name": "is_public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.4610162, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_profile`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_profile_base')),\n staging_columns=get_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_profile_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n additional_job_description\n \n , \n cast(null as STRING) as \n \n compensation_grade_id\n \n , \n cast(null as BOOLEAN) as \n \n critical_job\n \n , \n cast(null as STRING) as \n \n description\n \n , \n cast(null as STRING) as \n \n difficulty_to_fill\n \n , \n cast(null as date) as \n \n effective_date\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as BOOLEAN) as \n \n inactive\n \n , \n cast(null as BOOLEAN) as \n \n include_job_code_in_name\n \n , \n cast(null as STRING) as \n \n job_category_id\n \n , \n cast(null as STRING) as \n \n job_profile_code\n \n , \n cast(null as STRING) as \n \n level\n \n , \n cast(null as STRING) as \n \n management_level\n \n , \n cast(null as STRING) as \n \n private_title\n \n , \n cast(null as BOOLEAN) as \n \n public_job\n \n , \n cast(null as STRING) as \n \n referral_payment_plan\n \n , \n cast(null as STRING) as \n \n summary\n \n , \n cast(null as STRING) as \n \n title\n \n , \n cast(null as STRING) as \n \n union_code\n \n , \n cast(null as STRING) as \n \n union_membership_requirement\n \n , \n cast(null as BOOLEAN) as \n \n work_shift_required\n \n , \n cast(null as STRING) as \n \n work_study_award_source_code\n \n , \n cast(null as STRING) as \n \n work_study_requirement_option_code\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_organization.sql", "original_file_path": "models/staging/stg_workday__position_organization.sql", "unique_id": "model.workday.stg_workday__position_organization", "fqn": ["workday", "staging", "stg_workday__position_organization"], "alias": "stg_workday__position_organization", "checksum": {"name": "sha256", "checksum": "3e066e026cb6c5a57a3780d60185e331275a40666ec842bd51a9f5214c8106f0"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.474399, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__position_organization`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_organization_base')),\n staging_columns=get_position_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_organization_base", "package": null, "version": null}, {"name": "stg_workday__position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__position_organization_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n organization_id\n \n , \n cast(null as STRING) as \n \n position_id\n \n , \n cast(null as STRING) as \n \n type\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__worker_leave_status", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_leave_status.sql", "original_file_path": "models/staging/stg_workday__worker_leave_status.sql", "unique_id": "model.workday.stg_workday__worker_leave_status", "fqn": ["workday", "staging", "stg_workday__worker_leave_status"], "alias": "stg_workday__worker_leave_status", "checksum": {"name": "sha256", "checksum": "7a780769764a426e346115891309d38326b383297d43976f5b368feefe555e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Represents the leave status of workers in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_benefits_effect": {"name": "is_benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_caesarean_section_birth": {"name": "is_caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_continuous_service_accrual_effect": {"name": "is_continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_multiple_child_indicator": {"name": "is_multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_on_leave": {"name": "is_on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_paid_time_off_accrual_effect": {"name": "is_paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_payroll_effect": {"name": "is_payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_single_parent_indicator": {"name": "is_single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_stock_vesting_effect": {"name": "is_stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_related": {"name": "is_work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.51198, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_leave_status`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_leave_status_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_leave_status_base')),\n staging_columns=get_worker_leave_status_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}, {"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_leave_status_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__worker_leave_status_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_leave_status.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_leave_status_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as date) as \n \n adoption_notification_date\n \n , \n cast(null as date) as \n \n adoption_placement_date\n \n , \n cast(null as FLOAT64) as \n \n age_of_dependent\n \n , \n cast(null as BOOLEAN) as \n \n benefits_effect\n \n , \n cast(null as BOOLEAN) as \n \n caesarean_section_birth\n \n , \n cast(null as date) as \n \n child_birth_date\n \n , \n cast(null as date) as \n \n child_sdate_of_death\n \n , \n cast(null as BOOLEAN) as \n \n continuous_service_accrual_effect\n \n , \n cast(null as date) as \n \n date_baby_arrived_home_from_hospital\n \n , \n cast(null as date) as \n \n date_child_entered_country\n \n , \n cast(null as date) as \n \n date_of_recall\n \n , \n cast(null as STRING) as \n \n description\n \n , \n cast(null as date) as \n \n estimated_leave_end_date\n \n , \n cast(null as date) as \n \n expected_due_date\n \n , \n cast(null as date) as \n \n first_day_of_work\n \n , \n cast(null as date) as \n \n last_date_for_which_paid\n \n , \n cast(null as date) as \n \n leave_end_date\n \n , \n cast(null as FLOAT64) as \n \n leave_entitlement_override\n \n , \n cast(null as date) as \n \n leave_last_day_of_work\n \n , \n cast(null as STRING) as \n \n leave_of_absence_type\n \n , \n cast(null as FLOAT64) as \n \n leave_percentage\n \n , \n cast(null as STRING) as \n \n leave_request_event_id\n \n , \n cast(null as STRING) as \n \n leave_return_event\n \n , \n cast(null as date) as \n \n leave_start_date\n \n , \n cast(null as STRING) as \n \n leave_status_code\n \n , \n cast(null as STRING) as \n \n leave_type_reason\n \n , \n cast(null as STRING) as \n \n location_during_leave\n \n , \n cast(null as BOOLEAN) as \n \n multiple_child_indicator\n \n , \n cast(null as FLOAT64) as \n \n number_of_babies_adopted_children\n \n , \n cast(null as FLOAT64) as \n \n number_of_child_dependents\n \n , \n cast(null as FLOAT64) as \n \n number_of_previous_births\n \n , \n cast(null as FLOAT64) as \n \n number_of_previous_maternity_leaves\n \n , \n cast(null as BOOLEAN) as \n \n on_leave\n \n , \n cast(null as BOOLEAN) as \n \n paid_time_off_accrual_effect\n \n , \n cast(null as BOOLEAN) as \n \n payroll_effect\n \n , \n cast(null as BOOLEAN) as \n \n single_parent_indicator\n \n , \n cast(null as STRING) as \n \n social_security_disability_code\n \n , \n cast(null as BOOLEAN) as \n \n stock_vesting_effect\n \n , \n cast(null as date) as \n \n stop_payment_date\n \n , \n cast(null as date) as \n \n week_of_confinement\n \n , \n cast(null as BOOLEAN) as \n \n work_related\n \n , \n cast(null as STRING) as \n \n worker_id\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__person_name", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_name.sql", "original_file_path": "models/staging/stg_workday__person_name.sql", "unique_id": "model.workday.stg_workday__person_name", "fqn": ["workday", "staging", "stg_workday__person_name"], "alias": "stg_workday__person_name", "checksum": {"name": "sha256", "checksum": "da74b8517c3659e32fa4600075b2c78fd9edf3b9d67b062a39aceeb7007a8106"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Represents the name information for an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_name_type": {"name": "person_name_type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.4932601, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__person_name`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_name_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_name_base')),\n staging_columns=get_person_name_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_name_base", "package": null, "version": null}, {"name": "stg_workday__person_name_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_name_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_name_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_name.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__person_name_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n academic_suffix\n \n , \n cast(null as STRING) as \n \n additional_name_type\n \n , \n cast(null as STRING) as \n \n country\n \n , \n cast(null as STRING) as \n \n first_name\n \n , \n cast(null as STRING) as \n \n full_name_singapore_malaysia\n \n , \n cast(null as STRING) as \n \n hereditary_suffix\n \n , \n cast(null as STRING) as \n \n honorary_suffix\n \n , \n cast(null as INT64) as \n \n index\n \n , \n cast(null as STRING) as \n \n last_name\n \n , \n cast(null as STRING) as \n \n local_first_name\n \n , \n cast(null as STRING) as \n \n local_first_name_2\n \n , \n cast(null as STRING) as \n \n local_last_name\n \n , \n cast(null as STRING) as \n \n local_last_name_2\n \n , \n cast(null as STRING) as \n \n local_middle_name\n \n , \n cast(null as STRING) as \n \n local_middle_name_2\n \n , \n cast(null as STRING) as \n \n local_secondary_last_name\n \n , \n cast(null as STRING) as \n \n local_secondary_last_name_2\n \n , \n cast(null as STRING) as \n \n middle_name\n \n , \n cast(null as STRING) as \n \n personal_info_system_id\n \n , \n cast(null as STRING) as \n \n prefix_salutation\n \n , \n cast(null as STRING) as \n \n prefix_title\n \n , \n cast(null as STRING) as \n \n prefix_title_code\n \n , \n cast(null as STRING) as \n \n professional_suffix\n \n , \n cast(null as STRING) as \n \n religious_suffix\n \n , \n cast(null as STRING) as \n \n royal_suffix\n \n , \n cast(null as STRING) as \n \n secondary_last_name\n \n , \n cast(null as STRING) as \n \n social_suffix\n \n , \n cast(null as STRING) as \n \n social_suffix_id\n \n , \n cast(null as STRING) as \n \n tertiary_last_name\n \n , \n cast(null as STRING) as \n \n type\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__personal_information_ethnicity", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information_ethnicity.sql", "original_file_path": "models/staging/stg_workday__personal_information_ethnicity.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity", "fqn": ["workday", "staging", "stg_workday__personal_information_ethnicity"], "alias": "stg_workday__personal_information_ethnicity", "checksum": {"name": "sha256", "checksum": "1cddb347cc063152fdf7519ab20008979c18819cf57eda40f40b5c0ae4df795c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.4942741, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__personal_information_ethnicity`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_ethnicity_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_ethnicity_base')),\n staging_columns=get_personal_information_ethnicity_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_ethnicity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information_ethnicity.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__personal_information_ethnicity_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n ethnicity_code\n \n , \n cast(null as STRING) as \n \n ethnicity_id\n \n , \n cast(null as INT64) as \n \n index\n \n , \n cast(null as STRING) as \n \n personal_info_system_id\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__organization_job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_job_family.sql", "original_file_path": "models/staging/stg_workday__organization_job_family.sql", "unique_id": "model.workday.stg_workday__organization_job_family", "fqn": ["workday", "staging", "stg_workday__organization_job_family"], "alias": "stg_workday__organization_job_family", "checksum": {"name": "sha256", "checksum": "25a30264c730bb3d4ed427d08d7262415aa13c72bda44f292aef305dabadb4dc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.469383, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_job_family`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_job_family_base')),\n staging_columns=get_organization_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family_base", "package": null, "version": null}, {"name": "stg_workday__organization_job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_job_family_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n job_family_group_id\n \n , \n cast(null as STRING) as \n \n job_family_id\n \n , \n cast(null as STRING) as \n \n organization_id\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family.sql", "original_file_path": "models/staging/stg_workday__job_family.sql", "unique_id": "model.workday.stg_workday__job_family", "fqn": ["workday", "staging", "stg_workday__job_family"], "alias": "stg_workday__job_family", "checksum": {"name": "sha256", "checksum": "2b55aade2b7c5f3aaa66b8689637aecadf3960de67f0df66ecd9d511ec3f4a2c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summary": {"name": "job_family_summary", "description": "The summary of the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.463351, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_base')),\n staging_columns=get_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_base", "package": null, "version": null}, {"name": "stg_workday__job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as date) as \n \n effective_date\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as BOOLEAN) as \n \n inactive\n \n , \n cast(null as STRING) as \n \n job_family_code\n \n , \n cast(null as STRING) as \n \n summary\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__military_service", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__military_service.sql", "original_file_path": "models/staging/stg_workday__military_service.sql", "unique_id": "model.workday.stg_workday__military_service", "fqn": ["workday", "staging", "stg_workday__military_service"], "alias": "stg_workday__military_service", "checksum": {"name": "sha256", "checksum": "2723e93ad3a6b887aa7d9b8c5d97bee2714a4b0d8ff0c80decb8be429e77b709"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Represents information about an individual's military service in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.495435, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__military_service`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__military_service_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__military_service_base')),\n staging_columns=get_military_service_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__military_service_base", "package": null, "version": null}, {"name": "stg_workday__military_service_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_military_service_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__military_service_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__military_service.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__military_service_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as date) as \n \n discharge_date\n \n , \n cast(null as INT64) as \n \n index\n \n , \n cast(null as STRING) as \n \n notes\n \n , \n cast(null as STRING) as \n \n personal_info_system_id\n \n , \n cast(null as STRING) as \n \n rank\n \n , \n cast(null as STRING) as \n \n service\n \n , \n cast(null as STRING) as \n \n service_type\n \n , \n cast(null as STRING) as \n \n status\n \n , \n cast(null as date) as \n \n status_begin_date\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__personal_information", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information.sql", "original_file_path": "models/staging/stg_workday__personal_information.sql", "unique_id": "model.workday.stg_workday__personal_information", "fqn": ["workday", "staging", "stg_workday__personal_information"], "alias": "stg_workday__personal_information", "checksum": {"name": "sha256", "checksum": "99c2547b9cba3b9798c54da22173f0f4e2d0db3f9623673fc37f0c6f081646bd"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "The personal information associated with each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.4906838, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__personal_information`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_base')),\n staging_columns=get_personal_information_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__personal_information_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__personal_information_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_active\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_start\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_end\n \n , \n cast(null as STRING) as \n \n additional_nationality\n \n , \n cast(null as STRING) as \n \n blood_type\n \n , \n cast(null as STRING) as \n \n citizenship_status\n \n , \n cast(null as STRING) as \n \n city_of_birth\n \n , \n cast(null as STRING) as \n \n city_of_birth_code\n \n , \n cast(null as STRING) as \n \n country_of_birth\n \n , \n cast(null as date) as \n \n date_of_birth\n \n , \n cast(null as date) as \n \n date_of_death\n \n , \n cast(null as STRING) as \n \n gender\n \n , \n cast(null as BOOLEAN) as \n \n hispanic_or_latino\n \n , \n cast(null as STRING) as \n \n hukou_locality\n \n , \n cast(null as STRING) as \n \n hukou_postal_code\n \n , \n cast(null as STRING) as \n \n hukou_region\n \n , \n cast(null as STRING) as \n \n hukou_subregion\n \n , \n cast(null as STRING) as \n \n hukou_type\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as date) as \n \n last_medical_exam_date\n \n , \n cast(null as date) as \n \n last_medical_exam_valid_to\n \n , \n cast(null as BOOLEAN) as \n \n local_hukou\n \n , \n cast(null as STRING) as \n \n marital_status\n \n , \n cast(null as date) as \n \n marital_status_date\n \n , \n cast(null as STRING) as \n \n medical_exam_notes\n \n , \n cast(null as STRING) as \n \n native_region\n \n , \n cast(null as STRING) as \n \n native_region_code\n \n , \n cast(null as STRING) as \n \n personnel_file_agency\n \n , \n cast(null as STRING) as \n \n political_affiliation\n \n , \n cast(null as STRING) as \n \n primary_nationality\n \n , \n cast(null as STRING) as \n \n region_of_birth\n \n , \n cast(null as STRING) as \n \n region_of_birth_code\n \n , \n cast(null as STRING) as \n \n religion\n \n , \n cast(null as STRING) as \n \n social_benefit\n \n , \n cast(null as BOOLEAN) as \n \n tobacco_use\n \n , \n cast(null as STRING) as \n \n type\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where current_timestamp() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__job_family_job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_job_family_group"], "alias": "stg_workday__job_family_job_family_group", "checksum": {"name": "sha256", "checksum": "6fd4740d69f85753d0bf54a02768c8d9b8887e6e58481511bb3067f6dbe9b7eb"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.4644392, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_job_family_group`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_family_group_base')),\n staging_columns=get_job_family_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_job_family_group_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as STRING) as \n \n job_family_id\n \n , \n cast(null as STRING) as \n \n job_family_group_id\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker.sql", "original_file_path": "models/staging/stg_workday__worker.sql", "unique_id": "model.workday.stg_workday__worker", "fqn": ["workday", "staging", "stg_workday__worker"], "alias": "stg_workday__worker", "checksum": {"name": "sha256", "checksum": "eabb44e7218212b2cfa0ed153715acd2cd920d91f48a20884f237d3307a8d88d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.4871502, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_base')),\n staging_columns=get_worker_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_active\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_start\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_end\n \n , \n cast(null as date) as \n \n academic_tenure_date\n \n , \n cast(null as BOOLEAN) as \n \n active\n \n , \n cast(null as date) as \n \n active_status_date\n \n , \n cast(null as STRING) as \n \n annual_currency_summary_currency\n \n , \n cast(null as STRING) as \n \n annual_currency_summary_frequency\n \n , \n cast(null as FLOAT64) as \n \n annual_currency_summary_primary_compensation_basis\n \n , \n cast(null as FLOAT64) as \n \n annual_currency_summary_total_base_pay\n \n , \n cast(null as FLOAT64) as \n \n annual_currency_summary_total_salary_and_allowances\n \n , \n cast(null as STRING) as \n \n annual_summary_currency\n \n , \n cast(null as STRING) as \n \n annual_summary_frequency\n \n , \n cast(null as FLOAT64) as \n \n annual_summary_primary_compensation_basis\n \n , \n cast(null as FLOAT64) as \n \n annual_summary_total_base_pay\n \n , \n cast(null as FLOAT64) as \n \n annual_summary_total_salary_and_allowances\n \n , \n cast(null as date) as \n \n benefits_service_date\n \n , \n cast(null as date) as \n \n company_service_date\n \n , \n cast(null as date) as \n \n compensation_effective_date\n \n , \n cast(null as STRING) as \n \n compensation_grade_id\n \n , \n cast(null as STRING) as \n \n compensation_grade_profile_id\n \n , \n cast(null as date) as \n \n continuous_service_date\n \n , \n cast(null as STRING) as \n \n contract_assignment_details\n \n , \n cast(null as STRING) as \n \n contract_currency_code\n \n , \n cast(null as date) as \n \n contract_end_date\n \n , \n cast(null as STRING) as \n \n contract_frequency_name\n \n , \n cast(null as FLOAT64) as \n \n contract_pay_rate\n \n , \n cast(null as STRING) as \n \n contract_vendor_name\n \n , \n cast(null as date) as \n \n date_entered_workforce\n \n , \n cast(null as FLOAT64) as \n \n days_unemployed\n \n , \n cast(null as STRING) as \n \n eligible_for_hire\n \n , \n cast(null as STRING) as \n \n eligible_for_rehire_on_latest_termination\n \n , \n cast(null as STRING) as \n \n employee_compensation_currency\n \n , \n cast(null as STRING) as \n \n employee_compensation_frequency\n \n , \n cast(null as FLOAT64) as \n \n employee_compensation_primary_compensation_basis\n \n , \n cast(null as FLOAT64) as \n \n employee_compensation_total_base_pay\n \n , \n cast(null as FLOAT64) as \n \n employee_compensation_total_salary_and_allowances\n \n , \n cast(null as date) as \n \n end_employment_date\n \n , \n cast(null as date) as \n \n expected_date_of_return\n \n , \n cast(null as date) as \n \n expected_retirement_date\n \n , \n cast(null as date) as \n \n first_day_of_work\n \n , \n cast(null as BOOLEAN) as \n \n has_international_assignment\n \n , \n cast(null as date) as \n \n hire_date\n \n , \n cast(null as STRING) as \n \n hire_reason\n \n , \n cast(null as BOOLEAN) as \n \n hire_rescinded\n \n , \n cast(null as STRING) as \n \n home_country\n \n , \n cast(null as STRING) as \n \n hourly_frequency_currency\n \n , \n cast(null as STRING) as \n \n hourly_frequency_frequency\n \n , \n cast(null as FLOAT64) as \n \n hourly_frequency_primary_compensation_basis\n \n , \n cast(null as FLOAT64) as \n \n hourly_frequency_total_base_pay\n \n , \n cast(null as FLOAT64) as \n \n hourly_frequency_total_salary_and_allowances\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as date) as \n \n last_datefor_which_paid\n \n , \n cast(null as STRING) as \n \n local_termination_reason\n \n , \n cast(null as FLOAT64) as \n \n months_continuous_prior_employment\n \n , \n cast(null as BOOLEAN) as \n \n not_returning\n \n , \n cast(null as date) as \n \n original_hire_date\n \n , \n cast(null as STRING) as \n \n pay_group_frequency_currency\n \n , \n cast(null as STRING) as \n \n pay_group_frequency_frequency\n \n , \n cast(null as FLOAT64) as \n \n pay_group_frequency_primary_compensation_basis\n \n , \n cast(null as FLOAT64) as \n \n pay_group_frequency_total_base_pay\n \n , \n cast(null as FLOAT64) as \n \n pay_group_frequency_total_salary_and_allowances\n \n , \n cast(null as date) as \n \n pay_through_date\n \n , \n cast(null as STRING) as \n \n primary_termination_category\n \n , \n cast(null as STRING) as \n \n primary_termination_reason\n \n , \n cast(null as date) as \n \n probation_end_date\n \n , \n cast(null as date) as \n \n probation_start_date\n \n , \n cast(null as STRING) as \n \n reason_reference_id\n \n , \n cast(null as BOOLEAN) as \n \n regrettable_termination\n \n , \n cast(null as BOOLEAN) as \n \n rehire\n \n , \n cast(null as date) as \n \n resignation_date\n \n , \n cast(null as BOOLEAN) as \n \n retired\n \n , \n cast(null as date) as \n \n retirement_date\n \n , \n cast(null as date) as \n \n retirement_eligibility_date\n \n , \n cast(null as BOOLEAN) as \n \n return_unknown\n \n , \n cast(null as date) as \n \n seniority_date\n \n , \n cast(null as date) as \n \n severance_date\n \n , \n cast(null as BOOLEAN) as \n \n terminated\n \n , \n cast(null as date) as \n \n termination_date\n \n , \n cast(null as BOOLEAN) as \n \n termination_involuntary\n \n , \n cast(null as date) as \n \n termination_last_day_of_work\n \n , \n cast(null as date) as \n \n time_off_service_date\n \n , \n cast(null as STRING) as \n \n universal_id\n \n , \n cast(null as STRING) as \n \n user_id\n \n , \n cast(null as date) as \n \n vesting_date\n \n , \n cast(null as STRING) as \n \n worker_code\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where current_timestamp() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization.sql", "original_file_path": "models/staging/stg_workday__organization.sql", "unique_id": "model.workday.stg_workday__organization", "fqn": ["workday", "staging", "stg_workday__organization"], "alias": "stg_workday__organization", "checksum": {"name": "sha256", "checksum": "ddc0897b633fd79f01412ef8b78788ca8168409bbdd6a076e7ae77eae46e5b4c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "Identifier for the organization.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_description": {"name": "organization_description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_manager_in_name": {"name": "is_include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_organization_code_in_name": {"name": "is_include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_location": {"name": "organization_location", "description": "The location of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457909.4733849, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization`", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_base')),\n staging_columns=get_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_base", "package": null, "version": null}, {"name": "stg_workday__organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_base`\n),\n\nfields as (\n\n select\n \n cast(null as BOOLEAN) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TIMESTAMP) as \n \n availability_date\n \n , \n cast(null as BOOLEAN) as \n \n available_for_hire\n \n , \n cast(null as STRING) as \n \n code\n \n , \n cast(null as STRING) as \n \n description\n \n , \n cast(null as STRING) as \n \n external_url\n \n , \n cast(null as BOOLEAN) as \n \n hiring_freeze\n \n , \n cast(null as STRING) as \n \n id\n \n , \n cast(null as BOOLEAN) as \n \n inactive\n \n , \n cast(null as date) as \n \n inactive_date\n \n , \n cast(null as BOOLEAN) as \n \n include_manager_in_name\n \n , \n cast(null as BOOLEAN) as \n \n include_organization_code_in_name\n \n , \n cast(null as TIMESTAMP) as \n \n last_updated_date_time\n \n , \n cast(null as STRING) as \n \n location\n \n , \n cast(null as STRING) as \n \n manager_id\n \n , \n cast(null as STRING) as \n \n name\n \n , \n cast(null as STRING) as \n \n organization_code\n \n , \n cast(null as STRING) as \n \n organization_owner_id\n \n , \n cast(null as STRING) as \n \n staffing_model\n \n , \n cast(null as STRING) as \n \n sub_type\n \n , \n cast(null as STRING) as \n \n superior_organization_id\n \n , \n cast(null as date) as \n \n supervisory_position_availability_date\n \n , \n cast(null as date) as \n \n supervisory_position_earliest_hire_date\n \n , \n cast(null as STRING) as \n \n supervisory_position_time_type\n \n , \n cast(null as STRING) as \n \n supervisory_position_worker_type\n \n , \n cast(null as STRING) as \n \n top_level_organization_id\n \n , \n cast(null as STRING) as \n \n type\n \n , \n cast(null as STRING) as \n \n visibility\n \n \n\n\n \n\n\n, cast('' as STRING) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_family_group_base"], "alias": "stg_workday__job_family_job_family_group_base", "checksum": {"name": "sha256", "checksum": "e2032528b0352adb9b447a62934a158666a681a00bfd8821c454342850710217"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.236744, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_job_family_group_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_family_group"], ["workday", "job_family_job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`job_family_job_family_group`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_ethnicity_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_ethnicity_base"], "alias": "stg_workday__personal_information_ethnicity_base", "checksum": {"name": "sha256", "checksum": "83d4f52d542558f35ac9c4bca924abf5d50bd6d060b57de257d9b3a8011375bc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.281452, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__personal_information_ethnicity_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_ethnicity', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_ethnicity',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_ethnicity"], ["workday", "personal_information_ethnicity"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`personal_information_ethnicity`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_group_base"], "alias": "stg_workday__job_family_group_base", "checksum": {"name": "sha256", "checksum": "bea26ff96c14d3e08fd64f97fbc8fbefc3cc6cc6726f7eb27132f966e3ace85d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.290935, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_group_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_group"], ["workday", "job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`job_family_group`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__worker_position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_organization_base.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_organization_base"], "alias": "stg_workday__worker_position_organization_base", "checksum": {"name": "sha256", "checksum": "42729b33f262620d892e95707fef1e711b95c66a4df3fb612d1eb73d024a7e38"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.299616, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_position_organization_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_organization_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_organization_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_organization_history"], ["workday", "worker_position_organization_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`worker_position_organization_history`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_base.sql", "original_file_path": "models/staging/base/stg_workday__position_base.sql", "unique_id": "model.workday.stg_workday__position_base", "fqn": ["workday", "staging", "base", "stg_workday__position_base"], "alias": "stg_workday__position_base", "checksum": {"name": "sha256", "checksum": "4ccfff02ed1a6e0e94868985aa08ad5eaac5c78e608ae24eb36ebeb3da3b1443"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.310397, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__position_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position"], ["workday", "position"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`position`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__person_contact_email_address_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_contact_email_address_base.sql", "original_file_path": "models/staging/base/stg_workday__person_contact_email_address_base.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "fqn": ["workday", "staging", "base", "stg_workday__person_contact_email_address_base"], "alias": "stg_workday__person_contact_email_address_base", "checksum": {"name": "sha256", "checksum": "2bfb4c913c999795db2691f4b3bc115fbae9bbad6e4eb59ad305bc057e7e0e5b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.319407, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__person_contact_email_address_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_contact_email_address', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_contact_email_address',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_contact_email_address"], ["workday", "person_contact_email_address"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_contact_email_address_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`person_contact_email_address`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__organization_job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_job_family_base.sql", "unique_id": "model.workday.stg_workday__organization_job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_job_family_base"], "alias": "stg_workday__organization_job_family_base", "checksum": {"name": "sha256", "checksum": "8a999ebe4367e8c4e6994124834c09f9d1eeb411d6e00353c9995bc0900ee1ea"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.328724, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_job_family_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_job_family"], ["workday", "organization_job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`organization_job_family`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__job_family_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_profile_base"], "alias": "stg_workday__job_family_job_profile_base", "checksum": {"name": "sha256", "checksum": "61149fbd447008acfc11c0cce919a3dcdfc878b1e43f1a904bed99cd0e12e934"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.3379369, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_job_profile_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_profile"], ["workday", "job_family_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`job_family_job_profile`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__position_organization_base.sql", "unique_id": "model.workday.stg_workday__position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__position_organization_base"], "alias": "stg_workday__position_organization_base", "checksum": {"name": "sha256", "checksum": "e9e1144f5ba976bda0612b7899e5c418c8f2880a69bb98c7bd61826b438cf705"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.348377, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__position_organization_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_organization"], ["workday", "position_organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`position_organization`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__organization_role_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_base.sql", "unique_id": "model.workday.stg_workday__organization_role_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_base"], "alias": "stg_workday__organization_role_base", "checksum": {"name": "sha256", "checksum": "7da1ae4c5e420c6a429f6082802496377da44449aefb62728c64e31c64923832"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.359376, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_role_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role"], ["workday", "organization_role"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`organization_role`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__worker_leave_status_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_leave_status_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_leave_status_base.sql", "unique_id": "model.workday.stg_workday__worker_leave_status_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_leave_status_base"], "alias": "stg_workday__worker_leave_status_base", "checksum": {"name": "sha256", "checksum": "25de6c8505c09d17787931dd2ad7fb497ee4fcc6ad9c076417ac327d38b2cee5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.36832, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_leave_status_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_leave_status', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_leave_status',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_leave_status"], ["workday", "worker_leave_status"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_leave_status_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`worker_leave_status`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_base.sql", "unique_id": "model.workday.stg_workday__job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_base"], "alias": "stg_workday__job_family_base", "checksum": {"name": "sha256", "checksum": "a6d51501e8a9f185408e2c8c963b04ed89e1f87260216f3e994f324119a0f804"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.377909, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family"], ["workday", "job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`job_family`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_profile_base"], "alias": "stg_workday__job_profile_base", "checksum": {"name": "sha256", "checksum": "ddeb40a89a0b03a8748dae6a224bade7705498441a9f295682bd24ef643fc563"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.387128, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_profile_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_profile"], ["workday", "job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`job_profile`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_base.sql", "unique_id": "model.workday.stg_workday__organization_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_base"], "alias": "stg_workday__organization_base", "checksum": {"name": "sha256", "checksum": "ee0cb72047f2c7760251317c86318a9f46c5a8be9113fcb7d81b269e1b4b4e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.3960161, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization"], ["workday", "organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`organization`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__organization_role_worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_worker_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_worker_base.sql", "unique_id": "model.workday.stg_workday__organization_role_worker_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_worker_base"], "alias": "stg_workday__organization_role_worker_base", "checksum": {"name": "sha256", "checksum": "74e858892ef8851aec9a06e4e05dbca91361b09939c257c69db38356d59acf05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.406373, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_role_worker_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role_worker', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role_worker',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role_worker"], ["workday", "organization_role_worker"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`organization_role_worker`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_base.sql", "unique_id": "model.workday.stg_workday__worker_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_base"], "alias": "stg_workday__worker_base", "checksum": {"name": "sha256", "checksum": "5f0f82a654f8f22d1e129cebdf87aa064125f5deeeca51c50d53f249dd0d96e1"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.415187, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_history"], ["workday", "worker_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`worker_history`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__position_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__position_job_profile_base.sql", "unique_id": "model.workday.stg_workday__position_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__position_job_profile_base"], "alias": "stg_workday__position_job_profile_base", "checksum": {"name": "sha256", "checksum": "7a2843eac9ceff71866501a413274121b15a2e8d1337b83962e0045cb1b403c5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.428263, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__position_job_profile_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_job_profile"], ["workday", "position_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`position_job_profile`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__worker_position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_base.sql", "unique_id": "model.workday.stg_workday__worker_position_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_base"], "alias": "stg_workday__worker_position_base", "checksum": {"name": "sha256", "checksum": "8a8431d94738ad8c342bba23f86ace1e658cf63ac9254481bf8463622129514e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.4424791, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_position_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_history"], ["workday", "worker_position_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`worker_position_history`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__person_name_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_name_base.sql", "original_file_path": "models/staging/base/stg_workday__person_name_base.sql", "unique_id": "model.workday.stg_workday__person_name_base", "fqn": ["workday", "staging", "base", "stg_workday__person_name_base"], "alias": "stg_workday__person_name_base", "checksum": {"name": "sha256", "checksum": "85c57cfa1fe54db08605b75e32060e1bd488a4f71eae27b2cb8a2805ac4ac655"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.453226, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__person_name_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_name', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_name',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_name"], ["workday", "person_name"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_name"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_name_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`person_name`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__military_service_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__military_service_base.sql", "original_file_path": "models/staging/base/stg_workday__military_service_base.sql", "unique_id": "model.workday.stg_workday__military_service_base", "fqn": ["workday", "staging", "base", "stg_workday__military_service_base"], "alias": "stg_workday__military_service_base", "checksum": {"name": "sha256", "checksum": "9478cb8eea5671a0261ed280e3723a9ad826ee22b77b9dfe709be5fc85fd295e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.465496, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__military_service_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='military_service', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='military_service',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "military_service"], ["workday", "military_service"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.military_service"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__military_service_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`military_service`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_base": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_stg_workday", "name": "stg_workday__personal_information_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_base.sql", "unique_id": "model.workday.stg_workday__personal_information_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_base"], "alias": "stg_workday__personal_information_base", "checksum": {"name": "sha256", "checksum": "0767af75bcb79f32dd324d8bf4e57ffc0d0014bda0609b426df78cdc17566e96"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1708457908.476165, "relation_name": "`dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__personal_information_base`", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_history"], ["workday", "personal_information_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n \n \n select * \n from `singular-vector-135519`.`erin_workday_hcm_ga`.`personal_information_history`", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_position_enriched": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_workday", "name": "int_workday__worker_position_enriched", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_position_enriched.sql", "original_file_path": "models/intermediate/int_workday__worker_position_enriched.sql", "unique_id": "model.workday.int_workday__worker_position_enriched", "fqn": ["workday", "intermediate", "int_workday__worker_position_enriched"], "alias": "int_workday__worker_position_enriched", "checksum": {"name": "sha256", "checksum": "e1edfa413e2b14d1d10b647f624db287bca53f0177c1621dbb48f8b259b9016f"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1708457908.487882, "relation_name": null, "raw_code": "with worker_position_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker_position') }}\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_at_position,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n),\n\nworker_position_measures as (\n\n select \n worker_id,\n source_relation,\n count(distinct position_id) as worker_positions,\n count(distinct management_level_code) as worker_levels,\n sum(days_at_position) as position_days\n from worker_position_data_enhanced\n group by 1, 2\n),\n\nmost_recent_position as (\n\n select *\n from worker_position_data_enhanced\n where row_number = 1\n),\n\nworker_position_enriched as (\n\n select\n most_recent_position.worker_id,\n most_recent_position.source_relation,\n most_recent_position.position_id, \n most_recent_position.business_title,\n most_recent_position.job_profile_id, \n most_recent_position.employee_type as most_recent_position_type,\n most_recent_position.position_location as most_recent_location,\n most_recent_position.management_level_code as most_recent_level,\n most_recent_position.fte_percent,\n most_recent_position.days_at_position,\n most_recent_position.position_start_date as most_recent_position_start_date,\n most_recent_position.position_end_date as most_recent_position_end_date,\n most_recent_position.position_effective_date as most_recent_position_effective_date,\n worker_position_measures.worker_positions,\n worker_position_measures.worker_levels, \n worker_position_measures.position_days\n from most_recent_position\n left join worker_position_measures \n on most_recent_position.worker_id = worker_position_measures.worker_id\n and most_recent_position.source_relation = worker_position_measures.source_relation\n)\n\nselect * \nfrom worker_position_enriched", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_position_enriched.sql", "compiled": true, "compiled_code": "with worker_position_data as (\n\n select \n *,\n current_timestamp() as current_date\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_position`\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n\n datetime_diff(\n cast(current_date as datetime),\n cast(position_start_date as datetime),\n day\n )\n\n \n else \n\n datetime_diff(\n cast(position_end_date as datetime),\n cast(position_start_date as datetime),\n day\n )\n\n \n end as days_at_position,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n),\n\nworker_position_measures as (\n\n select \n worker_id,\n source_relation,\n count(distinct position_id) as worker_positions,\n count(distinct management_level_code) as worker_levels,\n sum(days_at_position) as position_days\n from worker_position_data_enhanced\n group by 1, 2\n),\n\nmost_recent_position as (\n\n select *\n from worker_position_data_enhanced\n where row_number = 1\n),\n\nworker_position_enriched as (\n\n select\n most_recent_position.worker_id,\n most_recent_position.source_relation,\n most_recent_position.position_id, \n most_recent_position.business_title,\n most_recent_position.job_profile_id, \n most_recent_position.employee_type as most_recent_position_type,\n most_recent_position.position_location as most_recent_location,\n most_recent_position.management_level_code as most_recent_level,\n most_recent_position.fte_percent,\n most_recent_position.days_at_position,\n most_recent_position.position_start_date as most_recent_position_start_date,\n most_recent_position.position_end_date as most_recent_position_end_date,\n most_recent_position.position_effective_date as most_recent_position_effective_date,\n worker_position_measures.worker_positions,\n worker_position_measures.worker_levels, \n worker_position_measures.position_days\n from most_recent_position\n left join worker_position_measures \n on most_recent_position.worker_id = worker_position_measures.worker_id\n and most_recent_position.source_relation = worker_position_measures.source_relation\n)\n\nselect * \nfrom worker_position_enriched", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__personal_details": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_workday", "name": "int_workday__personal_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__personal_details.sql", "original_file_path": "models/intermediate/int_workday__personal_details.sql", "unique_id": "model.workday.int_workday__personal_details", "fqn": ["workday", "intermediate", "int_workday__personal_details"], "alias": "int_workday__personal_details", "checksum": {"name": "sha256", "checksum": "594516db9541d923dcc1958d6ed5747fb91aee48aaa01e0acf8fcbd2fb1a8950"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1708457908.505614, "relation_name": null, "raw_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from {{ ref('stg_workday__personal_information') }}\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from {{ ref('stg_workday__person_name') }}\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from {{ ref('stg_workday__person_contact_email_address') }}\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n {{ fivetran_utils.string_agg('distinct ethnicity_code', \"', '\" ) }} as ethnicity_codes\n from {{ ref('stg_workday__personal_information_ethnicity') }}\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from {{ ref('stg_workday__military_service') }}\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}, {"name": "stg_workday__person_name", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}, {"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.workday.stg_workday__personal_information", "model.workday.stg_workday__person_name", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__personal_information_ethnicity", "model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__personal_details.sql", "compiled": true, "compiled_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__personal_information`\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__person_name`\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__person_contact_email_address`\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__personal_information_ethnicity`\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__military_service`\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_details": {"database": "dbt-package-testing", "schema": "zz_dbt_renee_workday", "name": "int_workday__worker_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_details.sql", "original_file_path": "models/intermediate/int_workday__worker_details.sql", "unique_id": "model.workday.int_workday__worker_details", "fqn": ["workday", "intermediate", "int_workday__worker_details"], "alias": "int_workday__worker_details", "checksum": {"name": "sha256", "checksum": "98594d1ac2b7a464df705e177c7c849fd4b4514e9ecee135ba1fc1cb20c78a15"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false}, "post-hook": [], "pre-hook": []}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1708457908.5171032, "relation_name": null, "raw_code": "with worker_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker') }}\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then {{ dbt.datediff('hire_date', 'current_date', 'day') }}\n else {{ dbt.datediff('hire_date', 'termination_date', 'day') }}\n end as days_of_employment,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_details.sql", "compiled": true, "compiled_code": "with worker_data as (\n\n select \n *,\n current_timestamp() as current_date\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker`\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n\n datetime_diff(\n cast(current_date as datetime),\n cast(hire_date as datetime),\n day\n )\n\n \n else \n\n datetime_diff(\n cast(termination_date as datetime),\n cast(hire_date as datetime),\n day\n )\n\n \n end as days_of_employment,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.my_new_project.unique_my_first_dbt_model_id.16e066b321": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "id", "model": "{{ get_where_subquery(ref('my_first_dbt_model')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "unique_my_first_dbt_model_id", "resource_type": "test", "package_name": "my_new_project", "path": "unique_my_first_dbt_model_id.sql", "original_file_path": "models/example/schema.yml", "unique_id": "test.my_new_project.unique_my_first_dbt_model_id.16e066b321", "fqn": ["my_new_project", "example", "unique_my_first_dbt_model_id"], "alias": "unique_my_first_dbt_model_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.148959, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "my_first_dbt_model", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.my_new_project.my_first_dbt_model"]}, "compiled_path": "target/compiled/my_new_project/models/example/schema.yml/unique_my_first_dbt_model_id.sql", "compiled": true, "compiled_code": "\n \n \n\nwith dbt_test__target as (\n\n select id as unique_field\n from `dbt-package-testing`.`zz_dbt_renee`.`my_first_dbt_model`\n where id is not null\n\n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "id", "file_key_name": "models.my_first_dbt_model", "attached_node": "model.my_new_project.my_first_dbt_model"}, "test.my_new_project.not_null_my_first_dbt_model_id.5fb22c2710": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "id", "model": "{{ get_where_subquery(ref('my_first_dbt_model')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_my_first_dbt_model_id", "resource_type": "test", "package_name": "my_new_project", "path": "not_null_my_first_dbt_model_id.sql", "original_file_path": "models/example/schema.yml", "unique_id": "test.my_new_project.not_null_my_first_dbt_model_id.5fb22c2710", "fqn": ["my_new_project", "example", "not_null_my_first_dbt_model_id"], "alias": "not_null_my_first_dbt_model_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.152095, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "my_first_dbt_model", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.my_new_project.my_first_dbt_model"]}, "compiled_path": "target/compiled/my_new_project/models/example/schema.yml/not_null_my_first_dbt_model_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect id\nfrom `dbt-package-testing`.`zz_dbt_renee`.`my_first_dbt_model`\nwhere id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "id", "file_key_name": "models.my_first_dbt_model", "attached_node": "model.my_new_project.my_first_dbt_model"}, "test.my_new_project.unique_my_second_dbt_model_id.57a0f8c493": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "id", "model": "{{ get_where_subquery(ref('my_second_dbt_model')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "unique_my_second_dbt_model_id", "resource_type": "test", "package_name": "my_new_project", "path": "unique_my_second_dbt_model_id.sql", "original_file_path": "models/example/schema.yml", "unique_id": "test.my_new_project.unique_my_second_dbt_model_id.57a0f8c493", "fqn": ["my_new_project", "example", "unique_my_second_dbt_model_id"], "alias": "unique_my_second_dbt_model_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.154706, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "my_second_dbt_model", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.my_new_project.my_second_dbt_model"]}, "compiled_path": "target/compiled/my_new_project/models/example/schema.yml/unique_my_second_dbt_model_id.sql", "compiled": true, "compiled_code": "\n \n \n\nwith dbt_test__target as (\n\n select id as unique_field\n from `dbt-package-testing`.`zz_dbt_renee`.`my_second_dbt_model`\n where id is not null\n\n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "id", "file_key_name": "models.my_second_dbt_model", "attached_node": "model.my_new_project.my_second_dbt_model"}, "test.my_new_project.not_null_my_second_dbt_model_id.151b76d778": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "id", "model": "{{ get_where_subquery(ref('my_second_dbt_model')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_my_second_dbt_model_id", "resource_type": "test", "package_name": "my_new_project", "path": "not_null_my_second_dbt_model_id.sql", "original_file_path": "models/example/schema.yml", "unique_id": "test.my_new_project.not_null_my_second_dbt_model_id.151b76d778", "fqn": ["my_new_project", "example", "not_null_my_second_dbt_model_id"], "alias": "not_null_my_second_dbt_model_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.1574779, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "my_second_dbt_model", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.my_new_project.my_second_dbt_model"]}, "compiled_path": "target/compiled/my_new_project/models/example/schema.yml/not_null_my_second_dbt_model_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect id\nfrom `dbt-package-testing`.`zz_dbt_renee`.`my_second_dbt_model`\nwhere id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "id", "file_key_name": "models.my_second_dbt_model", "attached_node": "model.my_new_project.my_second_dbt_model"}, "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_workday__employee_overview_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_overview_worker_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "fqn": ["workday", "not_null_workday__employee_overview_worker_id"], "alias": "not_null_workday__employee_overview_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.223608, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__employee_overview_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom `dbt-package-testing`.`zz_dbt_renee_workday`.`workday__employee_overview`\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id.fc3f0049e6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_baebab87b66bee8f30aae44954be92b5.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id.fc3f0049e6", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_baebab87b66bee8f30aae44954be92b5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_baebab87b66bee8f30aae44954be92b5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_baebab87b66bee8f30aae44954be92b5"}, "created_at": 1708457909.226887, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_baebab87b66bee8f30aae44954be92b5\") }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_baebab87b66bee8f30aae44954be92b5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from `dbt-package-testing`.`zz_dbt_renee_workday`.`workday__employee_overview`\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_workday__job_overview_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__job_overview_job_profile_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "fqn": ["workday", "not_null_workday__job_overview_job_profile_id"], "alias": "not_null_workday__job_overview_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.2435882, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__job_overview_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom `dbt-package-testing`.`zz_dbt_renee_workday`.`workday__job_overview`\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656"}, "created_at": 1708457909.2460108, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656\") }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from `dbt-package-testing`.`zz_dbt_renee_workday`.`workday__job_overview`\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.not_null_workday__position_overview_position_id.603beb3f22": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_workday__position_overview_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__position_overview_position_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "fqn": ["workday", "not_null_workday__position_overview_position_id"], "alias": "not_null_workday__position_overview_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.252526, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__position_overview_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom `dbt-package-testing`.`zz_dbt_renee_workday`.`workday__position_overview`\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "position_id", "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e"}, "created_at": 1708457909.255162, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e\") }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from `dbt-package-testing`.`zz_dbt_renee_workday`.`workday__position_overview`\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "fqn": ["workday", "not_null_workday__organization_overview_organization_id"], "alias": "not_null_workday__organization_overview_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.2611682, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom `dbt-package-testing`.`zz_dbt_renee_workday`.`workday__organization_overview`\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_role_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "fqn": ["workday", "not_null_workday__organization_overview_organization_role_id"], "alias": "not_null_workday__organization_overview_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.263592, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom `dbt-package-testing`.`zz_dbt_renee_workday`.`workday__organization_overview`\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1"}, "created_at": 1708457909.266795, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1\") }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from `dbt-package-testing`.`zz_dbt_renee_workday`.`workday__organization_overview`\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "fqn": ["workday", "staging", "not_null_stg_workday__job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.514422, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_profile`\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1"}, "created_at": 1708457909.517333, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_profile`\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_family_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.524418, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_job_profile`\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.5272908, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_job_profile`\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id"], "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378"}, "created_at": 1708457909.529933, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_job_profile`\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.535962, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family`\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id"], "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd"}, "created_at": 1708457909.5388749, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family`\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_group_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.544511, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_job_family_group`\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af"}, "created_at": 1708457909.547335, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_job_family_group`\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4"}, "created_at": 1708457909.549789, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_job_family_group`\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_group_job_family_group_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_family_group_job_family_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.5565472, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_group_job_family_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_group_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_group`\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5"}, "created_at": 1708457909.559165, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_group_id\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__job_family_group`\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_id"], "alias": "not_null_stg_workday__organization_role_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.565061, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_role`\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_role_id"], "alias": "not_null_stg_workday__organization_role_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.567747, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_role`\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id"], "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908"}, "created_at": 1708457909.571003, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_role`\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_worker_code", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_worker_code", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_worker_code"], "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda"}, "created_at": 1708457909.5778172, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_worker_code\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_role_worker`\nwhere organization_worker_code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "organization_worker_code", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_id"], "alias": "not_null_stg_workday__organization_role_worker_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.580362, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_role_worker`\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_role_id"], "alias": "not_null_stg_workday__organization_role_worker_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.5829709, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect role_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_role_worker`\nwhere role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "role_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_worker_code", "organization_id", "role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id"], "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a"}, "created_at": 1708457909.585461, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_role_worker`\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_job_family_id"], "alias": "not_null_stg_workday__organization_job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.5930722, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_job_family`\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_organization_id"], "alias": "not_null_stg_workday__organization_job_family_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.5956118, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_job_family`\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id"], "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456"}, "created_at": 1708457909.598376, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization_job_family`\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_organization_id"], "alias": "not_null_stg_workday__organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.604574, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization`\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id"], "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5"}, "created_at": 1708457909.607525, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__organization`\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_organization_id"], "alias": "not_null_stg_workday__position_organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.6137862, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__position_organization`\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_position_id"], "alias": "not_null_stg_workday__position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.617035, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__position_organization`\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id"], "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc"}, "created_at": 1708457909.6196868, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__position_organization`\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "fqn": ["workday", "staging", "not_null_stg_workday__position_position_id"], "alias": "not_null_stg_workday__position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.6257112, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__position`\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32"}, "created_at": 1708457909.629258, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32\") }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__position`\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_job_profile_id"], "alias": "not_null_stg_workday__position_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.635468, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__position_job_profile`\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_position_id"], "alias": "not_null_stg_workday__position_job_profile_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.638519, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__position_job_profile`\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id"], "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62"}, "created_at": 1708457909.6412108, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__position_job_profile`\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__worker_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "fqn": ["workday", "staging", "not_null_stg_workday__worker_worker_id"], "alias": "not_null_stg_workday__worker_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.6472619, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker`\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33"}, "created_at": 1708457909.649845, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker`\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__personal_information_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_worker_id"], "alias": "not_null_stg_workday__personal_information_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.656584, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__personal_information`\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13"}, "created_at": 1708457909.659456, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__personal_information`\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__person_name_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_worker_id"], "alias": "not_null_stg_workday__person_name_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.665144, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__person_name`\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_name_type", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__person_name_person_name_type", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_person_name_type.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_person_name_type"], "alias": "not_null_stg_workday__person_name_person_name_type", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.668187, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_person_name_type.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect person_name_type\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__person_name`\nwhere person_name_type is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "person_name_type", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_name_type"], "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type"], "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574"}, "created_at": 1708457909.671028, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__person_name`\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_worker_id"], "alias": "not_null_stg_workday__personal_information_ethnicity_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.677804, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__personal_information_ethnicity`\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ethnicity_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_ethnicity_id"], "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5"}, "created_at": 1708457909.6808288, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ethnicity_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__personal_information_ethnicity`\nwhere ethnicity_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "ethnicity_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "ethnicity_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id"], "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5"}, "created_at": 1708457909.684293, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__personal_information_ethnicity`\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__military_service_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__military_service_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "fqn": ["workday", "staging", "not_null_stg_workday__military_service_worker_id"], "alias": "not_null_stg_workday__military_service_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.691474, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__military_service_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__military_service`\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9"}, "created_at": 1708457909.6939662, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9\") }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__military_service`\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_contact_email_address_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id"], "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08"}, "created_at": 1708457909.699994, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect person_contact_email_address_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__person_contact_email_address`\nwhere person_contact_email_address_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "person_contact_email_address_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_contact_email_address_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_worker_id"], "alias": "not_null_stg_workday__person_contact_email_address_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.70256, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_contact_email_address_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__person_contact_email_address`\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_contact_email_address_id"], "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id"], "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb"}, "created_at": 1708457909.7051451, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__person_contact_email_address`\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__worker_position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_position_id"], "alias": "not_null_stg_workday__worker_position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.711762, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_position`\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__worker_position_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_worker_id"], "alias": "not_null_stg_workday__worker_position_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.714331, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_position`\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7"}, "created_at": 1708457909.716963, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_position`\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "leave_request_event_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_leave_request_event_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_leave_request_event_id"], "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308"}, "created_at": 1708457909.724502, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect leave_request_event_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_leave_status`\nwhere leave_request_event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "leave_request_event_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_leave_status_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_worker_id"], "alias": "not_null_stg_workday__worker_leave_status_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.726979, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_leave_status_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_leave_status`\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "leave_request_event_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id"], "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f"}, "created_at": 1708457909.729755, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_leave_status`\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_position_id"], "alias": "not_null_stg_workday__worker_position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.735578, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_position_organization`\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_worker_id"], "alias": "not_null_stg_workday__worker_position_organization_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1708457909.738647, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_position_organization`\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_organization_id"], "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23"}, "created_at": 1708457909.741168, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_position_organization`\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "position_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "dbt-package-testing", "schema": "zz_dbt_renee_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id"], "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926"}, "created_at": 1708457909.743711, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from `dbt-package-testing`.`zz_dbt_renee_stg_workday`.`stg_workday__worker_position_organization`\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}}, "sources": {"source.workday.workday.job_profile": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_profile", "fqn": ["workday", "staging", "workday", "job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "job_profile", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"id": {"name": "id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_job_code_in_name": {"name": "include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "public_job": {"name": "public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "title": {"name": "title", "description": "Title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`job_profile`", "created_at": 1708457909.7503428}, "source.workday.workday.job_family_job_profile": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "job_family_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_profile", "fqn": ["workday", "staging", "workday", "job_family_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "job_family_job_profile", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`job_family_job_profile`", "created_at": 1708457909.7506711}, "source.workday.workday.job_family": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family", "fqn": ["workday", "staging", "workday", "job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "job_family", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`job_family`", "created_at": 1708457909.7509608}, "source.workday.workday.job_family_job_family_group": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "job_family_job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_family_group", "fqn": ["workday", "staging", "workday", "job_family_job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "job_family_job_family_group", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`job_family_job_family_group`", "created_at": 1708457909.751225}, "source.workday.workday.job_family_group": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_group", "fqn": ["workday", "staging", "workday", "job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "job_family_group", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"id": {"name": "id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`job_family_group`", "created_at": 1708457909.751499}, "source.workday.workday.organization_role": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "organization_role", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role", "fqn": ["workday", "staging", "workday", "organization_role"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "organization_role", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`organization_role`", "created_at": 1708457909.751764}, "source.workday.workday.organization_role_worker": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "organization_role_worker", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role_worker", "fqn": ["workday", "staging", "workday", "organization_role_worker"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "organization_role_worker", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"associated_worker_id": {"name": "associated_worker_id", "description": "Identifier for the worker associated with the organization role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`organization_role_worker`", "created_at": 1708457909.752034}, "source.workday.workday.organization_job_family": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "organization_job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_job_family", "fqn": ["workday", "staging", "workday", "organization_job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "organization_job_family", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`organization_job_family`", "created_at": 1708457909.7523}, "source.workday.workday.organization": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization", "fqn": ["workday", "staging", "workday", "organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "organization", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Identifier for the organization.", "columns": {"id": {"name": "id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_manager_in_name": {"name": "include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_organization_code_in_name": {"name": "include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location": {"name": "location", "description": "Location associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sub_type": {"name": "sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`organization`", "created_at": 1708457909.7526379}, "source.workday.workday.position_organization": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "position_organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_organization", "fqn": ["workday", "staging", "workday", "position_organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "position_organization", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`position_organization`", "created_at": 1708457909.752907}, "source.workday.workday.position": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "position", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position", "fqn": ["workday", "staging", "workday", "position"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "position", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_eligible": {"name": "academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_overlap": {"name": "available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_recruiting": {"name": "available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`position`", "created_at": 1708457909.753577}, "source.workday.workday.position_job_profile": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "position_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_job_profile", "fqn": ["workday", "staging", "workday", "position_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "position_job_profile", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`position_job_profile`", "created_at": 1708457909.753878}, "source.workday.workday.worker_history": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "worker_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_history", "fqn": ["workday", "staging", "workday", "worker_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "worker_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"id": {"name": "id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "has_international_assignment": {"name": "has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_rescinded": {"name": "hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "not_returning": {"name": "not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regrettable_termination": {"name": "regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rehire": {"name": "rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retired": {"name": "retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "return_unknown": {"name": "return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "terminated": {"name": "terminated", "description": "Flag indicating whether the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_involuntary": {"name": "termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`worker_history`", "created_at": 1708457909.754385}, "source.workday.workday.personal_information_history": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "personal_information_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_history", "fqn": ["workday", "staging", "workday", "personal_information_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "personal_information_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The personal information associated with each worker.", "columns": {"id": {"name": "id", "description": "The identifier for each personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hispanic_or_latino": {"name": "hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_hukou": {"name": "local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tobacco_use": {"name": "tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`personal_information_history`", "created_at": 1708457909.7547631}, "source.workday.workday.person_name": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "person_name", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_name", "fqn": ["workday", "staging", "workday", "person_name"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "person_name", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the name information for an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`person_name`", "created_at": 1708457909.755182}, "source.workday.workday.personal_information_ethnicity": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "personal_information_ethnicity", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_ethnicity", "fqn": ["workday", "staging", "workday", "personal_information_ethnicity"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "personal_information_ethnicity", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`personal_information_ethnicity`", "created_at": 1708457909.755472}, "source.workday.workday.military_service": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "military_service", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.military_service", "fqn": ["workday", "staging", "workday", "military_service"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "military_service", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about an individual's military service in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`military_service`", "created_at": 1708457909.755758}, "source.workday.workday.person_contact_email_address": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "person_contact_email_address", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_contact_email_address", "fqn": ["workday", "staging", "workday", "person_contact_email_address"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "person_contact_email_address", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`person_contact_email_address`", "created_at": 1708457909.756035}, "source.workday.workday.worker_position_history": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "worker_position_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_history", "fqn": ["workday", "staging", "workday", "worker_position_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "worker_position_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the positions held by workers in the Workday system", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location": {"name": "business_site_summary_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "exclude_from_head_count": {"name": "exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_exempt": {"name": "job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_paid_fte": {"name": "specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_working_fte": {"name": "specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`worker_position_history`", "created_at": 1708457909.7564669}, "source.workday.workday.worker_leave_status": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "worker_leave_status", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_leave_status", "fqn": ["workday", "staging", "workday", "worker_leave_status"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "worker_leave_status", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the leave status of workers in the Workday system.", "columns": {"leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_effect": {"name": "benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caesarean_section_birth": {"name": "caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "multiple_child_indicator": {"name": "multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_leave": {"name": "on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_effect": {"name": "payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "single_parent_indicator": {"name": "single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stock_vesting_effect": {"name": "stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_related": {"name": "work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`worker_leave_status`", "created_at": 1708457909.756905}, "source.workday.workday.worker_position_organization_history": {"database": "singular-vector-135519", "schema": "erin_workday_hcm_ga", "name": "worker_position_organization_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_organization_history", "fqn": ["workday", "staging", "workday", "worker_position_organization_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "worker_position_organization_history", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "`singular-vector-135519`.`erin_workday_hcm_ga`.`worker_position_organization_history`", "created_at": 1708457909.757199}}, "macros": {"macro.dbt_bigquery.date_sharded_table": {"name": "date_sharded_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "unique_id": "macro.dbt_bigquery.date_sharded_table", "macro_sql": "{% macro date_sharded_table(base_name) %}\n {{ return(base_name ~ \"[DBT__PARTITION_DATE]\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.4695702, "supported_languages": null}, "macro.dbt_bigquery.grant_access_to": {"name": "grant_access_to", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "unique_id": "macro.dbt_bigquery.grant_access_to", "macro_sql": "{% macro grant_access_to(entity, entity_type, role, grant_target_dict) -%}\n {% do adapter.grant_access_to(entity, entity_type, role, grant_target_dict) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.470342, "supported_languages": null}, "macro.dbt_bigquery.get_partitions_metadata": {"name": "get_partitions_metadata", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/etc.sql", "original_file_path": "macros/etc.sql", "unique_id": "macro.dbt_bigquery.get_partitions_metadata", "macro_sql": "\n\n{%- macro get_partitions_metadata(table) -%}\n {%- if execute -%}\n {%- set res = adapter.get_partitions_metadata(table) -%}\n {{- return(res) -}}\n {%- endif -%}\n {{- return(None) -}}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.471402, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_catalog": {"name": "bigquery__get_catalog", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_catalog", "macro_sql": "{% macro bigquery__get_catalog(information_schema, schemas) -%}\n\n {%- if (schemas | length) == 0 -%}\n {# Hopefully nothing cares about the columns we return when there are no rows #}\n {%- set query = \"select 1 as id limit 0\" -%}\n {%- else -%}\n\n {%- set query -%}\n with tables as (\n select\n project_id as table_database,\n dataset_id as table_schema,\n table_id as original_table_name,\n\n concat(project_id, '.', dataset_id, '.', table_id) as relation_id,\n\n row_count,\n size_bytes as size_bytes,\n case\n when type = 1 then 'table'\n when type = 2 then 'view'\n else 'external'\n end as table_type,\n\n REGEXP_CONTAINS(table_id, '^.+[0-9]{8}$') and coalesce(type, 0) = 1 as is_date_shard,\n REGEXP_EXTRACT(table_id, '^(.+)[0-9]{8}$') as shard_base_name,\n REGEXP_EXTRACT(table_id, '^.+([0-9]{8})$') as shard_name\n\n from {{ information_schema.replace(information_schema_view='__TABLES__') }}\n where (\n {%- for schema in schemas -%}\n upper(dataset_id) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n ),\n\n table_options as (\n select\n concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n JSON_VALUE(option_value) as table_comment\n\n from {{ information_schema.replace(information_schema_view='TABLE_OPTIONS') }}\n where option_name = 'description'\n ),\n extracted as (\n\n select *,\n case\n when is_date_shard then shard_base_name\n else original_table_name\n end as table_name\n\n from tables\n\n ),\n\n unsharded_tables as (\n\n select\n table_database,\n table_schema,\n table_name,\n coalesce(table_type, 'external') as table_type,\n is_date_shard,\n\n struct(\n min(shard_name) as shard_min,\n max(shard_name) as shard_max,\n count(*) as shard_count\n ) as table_shards,\n\n sum(size_bytes) as size_bytes,\n sum(row_count) as row_count,\n\n max(relation_id) as relation_id\n\n from extracted\n group by 1,2,3,4,5\n\n ),\n\n info_schema_columns as (\n\n select\n concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n table_catalog as table_database,\n table_schema,\n table_name,\n\n -- use the \"real\" column name from the paths query below\n column_name as base_column_name,\n ordinal_position as column_index,\n\n is_partitioning_column,\n clustering_ordinal_position\n\n from {{ information_schema.replace(information_schema_view='COLUMNS') }}\n where ordinal_position is not null\n\n ),\n\n info_schema_column_paths as (\n\n select\n concat(table_catalog, '.', table_schema, '.', table_name) as relation_id,\n field_path as column_name,\n data_type as column_type,\n column_name as base_column_name,\n description as column_comment\n\n from {{ information_schema.replace(information_schema_view='COLUMN_FIELD_PATHS') }}\n\n ),\n\n columns as (\n\n select * except (base_column_name)\n from info_schema_columns\n join info_schema_column_paths using (relation_id, base_column_name)\n\n ),\n\n column_stats as (\n\n select\n table_database,\n table_schema,\n table_name,\n max(relation_id) as relation_id,\n max(case when is_partitioning_column = 'YES' then 1 else 0 end) = 1 as is_partitioned,\n max(case when is_partitioning_column = 'YES' then column_name else null end) as partition_column,\n max(case when clustering_ordinal_position is not null then 1 else 0 end) = 1 as is_clustered,\n array_to_string(\n array_agg(\n case\n when clustering_ordinal_position is not null then column_name\n else null\n end ignore nulls\n order by clustering_ordinal_position\n ), ', '\n ) as clustering_columns\n\n from columns\n group by 1,2,3\n\n )\n\n select\n unsharded_tables.table_database,\n unsharded_tables.table_schema,\n case\n when is_date_shard then concat(unsharded_tables.table_name, '*')\n else unsharded_tables.table_name\n end as table_name,\n unsharded_tables.table_type,\n table_options.table_comment,\n\n -- coalesce name and type for External tables - these columns are not\n -- present in the COLUMN_FIELD_PATHS resultset\n coalesce(columns.column_name, '') as column_name,\n -- invent a row number to account for nested fields -- BQ does\n -- not treat these nested properties as independent fields\n row_number() over (\n partition by relation_id\n order by columns.column_index, columns.column_name\n ) as column_index,\n coalesce(columns.column_type, '') as column_type,\n columns.column_comment,\n\n 'Shard count' as `stats__date_shards__label`,\n table_shards.shard_count as `stats__date_shards__value`,\n 'The number of date shards in this table' as `stats__date_shards__description`,\n is_date_shard as `stats__date_shards__include`,\n\n 'Shard (min)' as `stats__date_shard_min__label`,\n table_shards.shard_min as `stats__date_shard_min__value`,\n 'The first date shard in this table' as `stats__date_shard_min__description`,\n is_date_shard as `stats__date_shard_min__include`,\n\n 'Shard (max)' as `stats__date_shard_max__label`,\n table_shards.shard_max as `stats__date_shard_max__value`,\n 'The last date shard in this table' as `stats__date_shard_max__description`,\n is_date_shard as `stats__date_shard_max__include`,\n\n '# Rows' as `stats__num_rows__label`,\n row_count as `stats__num_rows__value`,\n 'Approximate count of rows in this table' as `stats__num_rows__description`,\n (unsharded_tables.table_type = 'table') as `stats__num_rows__include`,\n\n 'Approximate Size' as `stats__num_bytes__label`,\n size_bytes as `stats__num_bytes__value`,\n 'Approximate size of table as reported by BigQuery' as `stats__num_bytes__description`,\n (unsharded_tables.table_type = 'table') as `stats__num_bytes__include`,\n\n 'Partitioned By' as `stats__partitioning_type__label`,\n partition_column as `stats__partitioning_type__value`,\n 'The partitioning column for this table' as `stats__partitioning_type__description`,\n is_partitioned as `stats__partitioning_type__include`,\n\n 'Clustered By' as `stats__clustering_fields__label`,\n clustering_columns as `stats__clustering_fields__value`,\n 'The clustering columns for this table' as `stats__clustering_fields__description`,\n is_clustered as `stats__clustering_fields__include`\n\n -- join using relation_id (an actual relation, not a shard prefix) to make\n -- sure that column metadata is picked up through the join. This will only\n -- return the column information for the \"max\" table in a date-sharded table set\n from unsharded_tables\n left join table_options using (relation_id)\n left join columns using (relation_id)\n left join column_stats using (relation_id)\n {%- endset -%}\n\n {%- endif -%}\n\n {{ return(run_query(query)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.480615, "supported_languages": null}, "macro.dbt_bigquery.partition_by": {"name": "partition_by", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.partition_by", "macro_sql": "{% macro partition_by(partition_config) -%}\n {%- if partition_config is none -%}\n {% do return('') %}\n {%- elif partition_config.time_ingestion_partitioning -%}\n partition by {{ partition_config.render_wrapped() }}\n {%- elif partition_config.data_type | lower in ('date','timestamp','datetime') -%}\n partition by {{ partition_config.render() }}\n {%- elif partition_config.data_type | lower in ('int64') -%}\n {%- set range = partition_config.range -%}\n partition by range_bucket(\n {{ partition_config.field }},\n generate_array({{ range.start}}, {{ range.end }}, {{ range.interval }})\n )\n {%- endif -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.4933271, "supported_languages": null}, "macro.dbt_bigquery.cluster_by": {"name": "cluster_by", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.cluster_by", "macro_sql": "{% macro cluster_by(raw_cluster_by) %}\n {%- if raw_cluster_by is not none -%}\n cluster by {% if raw_cluster_by is string -%}\n {% set raw_cluster_by = [raw_cluster_by] %}\n {%- endif -%}\n {%- for cluster in raw_cluster_by -%}\n {{ cluster }}\n {%- if not loop.last -%}, {% endif -%}\n {%- endfor -%}\n\n {% endif %}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.49471, "supported_languages": null}, "macro.dbt_bigquery.bigquery_options": {"name": "bigquery_options", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery_options", "macro_sql": "{% macro bigquery_options(opts) %}\n {% set options -%}\n OPTIONS({% for opt_key, opt_val in opts.items() %}\n {{ opt_key }}={{ opt_val }}{{ \",\" if not loop.last }}\n {% endfor %})\n {%- endset %}\n {%- do return(options) -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.495865, "supported_languages": null}, "macro.dbt_bigquery.bigquery_table_options": {"name": "bigquery_table_options", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery_table_options", "macro_sql": "{% macro bigquery_table_options(config, node, temporary) %}\n {% set opts = adapter.get_table_options(config, node, temporary) %}\n {%- do return(bigquery_options(opts)) -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.4966831, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_table_as": {"name": "bigquery__create_table_as", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__create_table_as", "macro_sql": "{% macro bigquery__create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {%- if language == 'sql' -%}\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set raw_cluster_by = config.get('cluster_by', none) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {%- set partition_config = adapter.parse_partition_by(raw_partition_by) -%}\n {%- if partition_config.time_ingestion_partitioning -%}\n {%- set columns = get_columns_with_types_in_query_sql(sql) -%}\n {%- set table_dest_columns_csv = columns_without_partition_fields_csv(partition_config, columns) -%}\n {%- set columns = '(' ~ table_dest_columns_csv ~ ')' -%}\n {%- endif -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {%- set contract_config = config.get('contract') -%}\n {%- if contract_config.enforced -%}\n {{ get_assert_columns_equivalent(compiled_code) }}\n {{ get_table_columns_and_constraints() }}\n {%- set compiled_code = get_select_subquery(compiled_code) %}\n {% else %}\n {#-- cannot do contracts at the same time as time ingestion partitioning -#}\n {{ columns }}\n {% endif %}\n {{ partition_by(partition_config) }}\n {{ cluster_by(raw_cluster_by) }}\n\n {{ bigquery_table_options(config, model, temporary) }}\n\n {#-- PARTITION BY cannot be used with the AS query_statement clause.\n https://cloud.google.com/bigquery/docs/reference/standard-sql/data-definition-language#partition_expression\n -#}\n {%- if not partition_config.time_ingestion_partitioning %}\n as (\n {{ compiled_code }}\n );\n {%- endif %}\n {%- elif language == 'python' -%}\n {#--\n N.B. Python models _can_ write to temp views HOWEVER they use a different session\n and have already expired by the time they need to be used (I.E. in merges for incremental models)\n\n TODO: Deep dive into spark sessions to see if we can reuse a single session for an entire\n dbt invocation.\n --#}\n\n {#-- when a user wants to change the schema of an existing relation, they must intentionally drop the table in the dataset --#}\n {%- set old_relation = adapter.get_relation(database=relation.database, schema=relation.schema, identifier=relation.identifier) -%}\n {%- if (old_relation.is_table and (should_full_refresh())) -%}\n {% do adapter.drop_relation(relation) %}\n {%- endif -%}\n {{ py_write_table(compiled_code=compiled_code, target_relation=relation.quote(database=False, schema=False, identifier=False)) }}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"bigquery__create_table_as macro didn't get supported language, it got %s\" % language) %}\n {%- endif -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_bigquery.get_columns_with_types_in_query_sql", "macro.dbt_bigquery.columns_without_partition_fields_csv", "macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery", "macro.dbt_bigquery.partition_by", "macro.dbt_bigquery.cluster_by", "macro.dbt_bigquery.bigquery_table_options", "macro.dbt.should_full_refresh", "macro.dbt_bigquery.py_write_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.502552, "supported_languages": null}, "macro.dbt_bigquery.bigquery_view_options": {"name": "bigquery_view_options", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery_view_options", "macro_sql": "{% macro bigquery_view_options(config, node) %}\n {% set opts = adapter.get_view_options(config, node) %}\n {%- do return(bigquery_options(opts)) -%}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5033941, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_view_as": {"name": "bigquery__create_view_as", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__create_view_as", "macro_sql": "{% macro bigquery__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {{ bigquery_view_options(config, model) }}\n {%- set contract_config = config.get('contract') -%}\n {%- if contract_config.enforced -%}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as {{ sql }};\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery_view_options", "macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.504885, "supported_languages": null}, "macro.dbt_bigquery.bigquery__drop_schema": {"name": "bigquery__drop_schema", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__drop_schema", "macro_sql": "{% macro bigquery__drop_schema(relation) -%}\n {{ adapter.drop_schema(relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.505337, "supported_languages": null}, "macro.dbt_bigquery.bigquery__drop_relation": {"name": "bigquery__drop_relation", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__drop_relation", "macro_sql": "{% macro bigquery__drop_relation(relation) -%}\n {% call statement('drop_relation') -%}\n drop {{ relation.type }} if exists {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.505953, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_columns_in_relation": {"name": "bigquery__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_columns_in_relation", "macro_sql": "{% macro bigquery__get_columns_in_relation(relation) -%}\n {{ return(adapter.get_columns_in_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5065029, "supported_languages": null}, "macro.dbt_bigquery.bigquery__list_relations_without_caching": {"name": "bigquery__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__list_relations_without_caching", "macro_sql": "{% macro bigquery__list_relations_without_caching(schema_relation) -%}\n {{ return(adapter.list_relations_without_caching(schema_relation)) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.506999, "supported_languages": null}, "macro.dbt_bigquery.bigquery__list_schemas": {"name": "bigquery__list_schemas", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__list_schemas", "macro_sql": "{% macro bigquery__list_schemas(database) -%}\n {{ return(adapter.list_schemas(database)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.507657, "supported_languages": null}, "macro.dbt_bigquery.bigquery__check_schema_exists": {"name": "bigquery__check_schema_exists", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__check_schema_exists", "macro_sql": "{% macro bigquery__check_schema_exists(information_schema, schema) %}\n {{ return(adapter.check_schema_exists(information_schema.database, schema)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5082629, "supported_languages": null}, "macro.dbt_bigquery.bigquery__persist_docs": {"name": "bigquery__persist_docs", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__persist_docs", "macro_sql": "{% macro bigquery__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do alter_column_comment(relation, model.columns) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.509126, "supported_languages": null}, "macro.dbt_bigquery.bigquery__alter_column_comment": {"name": "bigquery__alter_column_comment", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__alter_column_comment", "macro_sql": "{% macro bigquery__alter_column_comment(relation, column_dict) -%}\n {% do adapter.update_columns(relation, column_dict) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.509629, "supported_languages": null}, "macro.dbt_bigquery.bigquery__rename_relation": {"name": "bigquery__rename_relation", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__rename_relation", "macro_sql": "{% macro bigquery__rename_relation(from_relation, to_relation) -%}\n {% do adapter.rename_relation(from_relation, to_relation) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.510119, "supported_languages": null}, "macro.dbt_bigquery.bigquery__alter_relation_add_columns": {"name": "bigquery__alter_relation_add_columns", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__alter_relation_add_columns", "macro_sql": "{% macro bigquery__alter_relation_add_columns(relation, add_columns) %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {{ return(run_query(sql)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5113358, "supported_languages": null}, "macro.dbt_bigquery.bigquery__alter_relation_drop_columns": {"name": "bigquery__alter_relation_drop_columns", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__alter_relation_drop_columns", "macro_sql": "{% macro bigquery__alter_relation_drop_columns(relation, drop_columns) %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in drop_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {{ return(run_query(sql)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5124722, "supported_languages": null}, "macro.dbt_bigquery.bigquery__alter_column_type": {"name": "bigquery__alter_column_type", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__alter_column_type", "macro_sql": "{% macro bigquery__alter_column_type(relation, column_name, new_column_type) -%}\n {#-- Changing a column's data type using a query requires you to scan the entire table.\n The query charges can be significant if the table is very large.\n\n https://cloud.google.com/bigquery/docs/manually-changing-schemas#changing_a_columns_data_type\n #}\n {% set relation_columns = get_columns_in_relation(relation) %}\n\n {% set sql %}\n select\n {%- for col in relation_columns -%}\n {% if col.column == column_name %}\n CAST({{ col.quoted }} AS {{ new_column_type }}) AS {{ col.quoted }}\n {%- else %}\n {{ col.quoted }}\n {%- endif %}\n {%- if not loop.last %},{% endif -%}\n {%- endfor %}\n from {{ relation }}\n {% endset %}\n\n {% call statement('alter_column_type') %}\n {{ create_table_as(False, relation, sql)}}\n {%- endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_relation", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5148008, "supported_languages": null}, "macro.dbt_bigquery.bigquery__test_unique": {"name": "bigquery__test_unique", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__test_unique", "macro_sql": "{% macro bigquery__test_unique(model, column_name) %}\n\nwith dbt_test__target as (\n\n select {{ column_name }} as unique_field\n from {{ model }}\n where {{ column_name }} is not null\n\n)\n\nselect\n unique_field,\n count(*) as n_records\n\nfrom dbt_test__target\ngroup by unique_field\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5156732, "supported_languages": null}, "macro.dbt_bigquery.bigquery__upload_file": {"name": "bigquery__upload_file", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_bigquery.bigquery__upload_file", "macro_sql": "{% macro bigquery__upload_file(local_file_path, database, table_schema, table_name) %}\n\n {{ log(\"kwargs: \" ~ kwargs) }}\n\n {% do adapter.upload_file(local_file_path, database, table_schema, table_name, kwargs=kwargs) %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.516659, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_csv_table": {"name": "bigquery__create_csv_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "unique_id": "macro.dbt_bigquery.bigquery__create_csv_table", "macro_sql": "{% macro bigquery__create_csv_table(model, agate_table) %}\n -- no-op\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.517638, "supported_languages": null}, "macro.dbt_bigquery.bigquery__reset_csv_table": {"name": "bigquery__reset_csv_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "unique_id": "macro.dbt_bigquery.bigquery__reset_csv_table", "macro_sql": "{% macro bigquery__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.518145, "supported_languages": null}, "macro.dbt_bigquery.bigquery__load_csv_rows": {"name": "bigquery__load_csv_rows", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/seed.sql", "original_file_path": "macros/materializations/seed.sql", "unique_id": "macro.dbt_bigquery.bigquery__load_csv_rows", "macro_sql": "{% macro bigquery__load_csv_rows(model, agate_table) %}\n\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {{ adapter.load_dataframe(model['database'], model['schema'], model['alias'],\n \t\t\t\t\t\t\tagate_table, column_override) }}\n\n {% call statement() %}\n alter table {{ this.render() }} set {{ bigquery_table_options(config, model) }}\n {% endcall %}\n\n {% if config.persist_relation_docs() and 'description' in model %}\n\n \t{{ adapter.update_table_description(model['database'], model['schema'], model['alias'], model['description']) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_bigquery.bigquery_table_options"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.520975, "supported_languages": null}, "macro.dbt_bigquery.bigquery__handle_existing_table": {"name": "bigquery__handle_existing_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "unique_id": "macro.dbt_bigquery.bigquery__handle_existing_table", "macro_sql": "{% macro bigquery__handle_existing_table(full_refresh, old_relation) %}\n {%- if full_refresh -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- else -%}\n {{ exceptions.relation_wrong_type(old_relation, 'view') }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.522482, "supported_languages": null}, "macro.dbt_bigquery.materialization_view_bigquery": {"name": "materialization_view_bigquery", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/view.sql", "original_file_path": "macros/materializations/view.sql", "unique_id": "macro.dbt_bigquery.materialization_view_bigquery", "macro_sql": "{% materialization view, adapter='bigquery' -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {% set to_return = create_or_replace_view() %}\n\n {% set target_relation = this.incorporate(type='view') %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if config.get('grant_access_to') %}\n {% for grant_target_dict in config.get('grant_access_to') %}\n {% do adapter.grant_access_to(this, 'view', None, grant_target_dict) %}\n {% endfor %}\n {% endif %}\n\n {% do return(to_return) %}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.create_or_replace_view", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5250702, "supported_languages": ["sql"]}, "macro.dbt_bigquery.materialization_table_bigquery": {"name": "materialization_table_bigquery", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "unique_id": "macro.dbt_bigquery.materialization_table_bigquery", "macro_sql": "{% materialization table, adapter='bigquery', supported_languages=['sql', 'python']-%}\n\n {%- set language = model['language'] -%}\n {%- set identifier = model['alias'] -%}\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n {%- set target_relation = api.Relation.create(database=database, schema=schema, identifier=identifier, type='table') -%}\n\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {{ run_hooks(pre_hooks) }}\n\n {#\n We only need to drop this thing if it is not a table.\n If it _is_ already a table, then we can overwrite it without downtime\n Unlike table -> view, no need for `--full-refresh`: dropping a view is no big deal\n #}\n {%- if exists_not_as_table -%}\n {{ adapter.drop_relation(old_relation) }}\n {%- endif -%}\n\n -- build model\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set cluster_by = config.get('cluster_by', none) -%}\n {% if not adapter.is_replaceable(old_relation, partition_by, cluster_by) %}\n {% do log(\"Hard refreshing \" ~ old_relation ~ \" because it is not replaceable\") %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n -- build model\n {%- call statement('main', language=language) -%}\n {{ create_table_as(False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {{ run_hooks(post_hooks) }}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5337112, "supported_languages": ["sql", "python"]}, "macro.dbt_bigquery.py_write_table": {"name": "py_write_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/table.sql", "original_file_path": "macros/materializations/table.sql", "unique_id": "macro.dbt_bigquery.py_write_table", "macro_sql": "{% macro py_write_table(compiled_code, target_relation) %}\nfrom pyspark.sql import SparkSession\n\nspark = SparkSession.builder.appName('smallTest').getOrCreate()\n\nspark.conf.set(\"viewsEnabled\",\"true\")\nspark.conf.set(\"temporaryGcsBucket\",\"{{target.gcs_bucket}}\")\n\n{{ compiled_code }}\ndbt = dbtObj(spark.read.format(\"bigquery\").load)\ndf = model(dbt, spark)\n\n# COMMAND ----------\n# this is materialization code dbt generated, please do not modify\n\nimport pyspark\n# make sure pandas exists before using it\ntry:\n import pandas\n pandas_available = True\nexcept ImportError:\n pandas_available = False\n\n# make sure pyspark.pandas exists before using it\ntry:\n import pyspark.pandas\n pyspark_pandas_api_available = True\nexcept ImportError:\n pyspark_pandas_api_available = False\n\n# make sure databricks.koalas exists before using it\ntry:\n import databricks.koalas\n koalas_available = True\nexcept ImportError:\n koalas_available = False\n\n# preferentially convert pandas DataFrames to pandas-on-Spark or Koalas DataFrames first\n# since they know how to convert pandas DataFrames better than `spark.createDataFrame(df)`\n# and converting from pandas-on-Spark to Spark DataFrame has no overhead\nif pyspark_pandas_api_available and pandas_available and isinstance(df, pandas.core.frame.DataFrame):\n df = pyspark.pandas.frame.DataFrame(df)\nelif koalas_available and pandas_available and isinstance(df, pandas.core.frame.DataFrame):\n df = databricks.koalas.frame.DataFrame(df)\n\n# convert to pyspark.sql.dataframe.DataFrame\nif isinstance(df, pyspark.sql.dataframe.DataFrame):\n pass # since it is already a Spark DataFrame\nelif pyspark_pandas_api_available and isinstance(df, pyspark.pandas.frame.DataFrame):\n df = df.to_spark()\nelif koalas_available and isinstance(df, databricks.koalas.frame.DataFrame):\n df = df.to_spark()\nelif pandas_available and isinstance(df, pandas.core.frame.DataFrame):\n df = spark.createDataFrame(df)\nelse:\n msg = f\"{type(df)} is not a supported type for dbt Python materialization\"\n raise Exception(msg)\n\ndf.write \\\n .mode(\"overwrite\") \\\n .format(\"bigquery\") \\\n .option(\"writeMethod\", \"direct\").option(\"writeDisposition\", 'WRITE_TRUNCATE') \\\n .save(\"{{target_relation}}\")\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.534573, "supported_languages": null}, "macro.dbt_bigquery.materialization_copy_bigquery": {"name": "materialization_copy_bigquery", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/copy.sql", "original_file_path": "macros/materializations/copy.sql", "unique_id": "macro.dbt_bigquery.materialization_copy_bigquery", "macro_sql": "{% materialization copy, adapter='bigquery' -%}\n\n {# Setup #}\n {{ run_hooks(pre_hooks) }}\n\n {% set destination = this.incorporate(type='table') %}\n\n {# there can be several ref() or source() according to BQ copy API docs #}\n {# cycle over ref() and source() to create source tables array #}\n {% set source_array = [] %}\n {% for ref_table in model.refs %}\n {{ source_array.append(ref(*ref_table)) }}\n {% endfor %}\n\n {% for src_table in model.sources %}\n {{ source_array.append(source(*src_table)) }}\n {% endfor %}\n\n {# Call adapter copy_table function #}\n {%- set result_str = adapter.copy_table(\n source_array,\n destination,\n config.get('copy_materialization', default = 'table')) -%}\n\n {{ store_result('main', response=result_str) }}\n\n {# Clean up #}\n {{ run_hooks(post_hooks) }}\n {%- do apply_grants(target_relation, grant_config) -%}\n {{ adapter.commit() }}\n\n {{ return({'relations': [destination]}) }}\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5382469, "supported_languages": ["sql"]}, "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy": {"name": "dbt_bigquery_validate_get_incremental_strategy", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy", "macro_sql": "{% macro dbt_bigquery_validate_get_incremental_strategy(config) %}\n {#-- Find and validate the incremental strategy #}\n {%- set strategy = config.get(\"incremental_strategy\") or 'merge' -%}\n\n {% set invalid_strategy_msg -%}\n Invalid incremental strategy provided: {{ strategy }}\n Expected one of: 'merge', 'insert_overwrite'\n {%- endset %}\n {% if strategy not in ['merge', 'insert_overwrite'] %}\n {% do exceptions.raise_compiler_error(invalid_strategy_msg) %}\n {% endif %}\n\n {% do return(strategy) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.543254, "supported_languages": null}, "macro.dbt_bigquery.source_sql_with_partition": {"name": "source_sql_with_partition", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_bigquery.source_sql_with_partition", "macro_sql": "{% macro source_sql_with_partition(partition_by, source_sql) %}\n\n {%- if partition_by.time_ingestion_partitioning %}\n {{ return(wrap_with_time_ingestion_partitioning_sql(partition_by, source_sql, False)) }}\n {% else %}\n {{ return(source_sql) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.544107, "supported_languages": null}, "macro.dbt_bigquery.bq_create_table_as": {"name": "bq_create_table_as", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_bigquery.bq_create_table_as", "macro_sql": "{% macro bq_create_table_as(partition_by, temporary, relation, compiled_code, language='sql') %}\n {%- set _dbt_max_partition = declare_dbt_max_partition(this, partition_by, compiled_code, language) -%}\n {% if partition_by.time_ingestion_partitioning and language == 'python' %}\n {% do exceptions.raise_compiler_error(\n \"Python models do not support ingestion time partitioning\"\n ) %}\n {% elif partition_by.time_ingestion_partitioning and language == 'sql' %}\n {#-- Create the table before inserting data as ingestion time partitioned tables can't be created with the transformed data --#}\n {% do run_query(create_table_as(temporary, relation, compiled_code)) %}\n {{ return(_dbt_max_partition + bq_insert_into_ingestion_time_partitioned_table_sql(relation, compiled_code)) }}\n {% else %}\n {{ return(_dbt_max_partition + create_table_as(temporary, relation, compiled_code, language)) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.declare_dbt_max_partition", "macro.dbt.run_query", "macro.dbt.create_table_as", "macro.dbt_bigquery.bq_insert_into_ingestion_time_partitioned_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.546292, "supported_languages": null}, "macro.dbt_bigquery.bq_generate_incremental_build_sql": {"name": "bq_generate_incremental_build_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_bigquery.bq_generate_incremental_build_sql", "macro_sql": "{% macro bq_generate_incremental_build_sql(\n strategy, tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions, incremental_predicates\n) %}\n {#-- if partitioned, use BQ scripting to get the range of partition values to be updated --#}\n {% if strategy == 'insert_overwrite' %}\n\n {% set build_sql = bq_generate_incremental_insert_overwrite_build_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions\n ) %}\n\n {% else %} {# strategy == 'merge' #}\n\n {% set build_sql = bq_generate_incremental_merge_build_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, incremental_predicates\n ) %}\n\n {% endif %}\n\n {{ return(build_sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bq_generate_incremental_insert_overwrite_build_sql", "macro.dbt_bigquery.bq_generate_incremental_merge_build_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.548157, "supported_languages": null}, "macro.dbt_bigquery.materialization_incremental_bigquery": {"name": "materialization_incremental_bigquery", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental.sql", "original_file_path": "macros/materializations/incremental.sql", "unique_id": "macro.dbt_bigquery.materialization_incremental_bigquery", "macro_sql": "{% materialization incremental, adapter='bigquery', supported_languages=['sql', 'python'] -%}\n\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n {%- set language = model['language'] %}\n\n {%- set target_relation = this %}\n {%- set existing_relation = load_relation(this) %}\n {%- set tmp_relation = make_temp_relation(this) %}\n\n {#-- Validate early so we don't run SQL if the strategy is invalid --#}\n {% set strategy = dbt_bigquery_validate_get_incremental_strategy(config) -%}\n\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {%- set partitions = config.get('partitions', none) -%}\n {%- set cluster_by = config.get('cluster_by', none) -%}\n\n {% set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') %}\n {% set incremental_predicates = config.get('predicates', default=none) or config.get('incremental_predicates', default=none) %}\n\n -- grab current tables grants config for comparison later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n {% if partition_by.copy_partitions is true and strategy != 'insert_overwrite' %} {#-- We can't copy partitions with merge strategy --#}\n {% set wrong_strategy_msg -%}\n The 'copy_partitions' option requires the 'incremental_strategy' option to be set to 'insert_overwrite'.\n {%- endset %}\n {% do exceptions.raise_compiler_error(wrong_strategy_msg) %}\n\n {% elif existing_relation is none %}\n {%- call statement('main', language=language) -%}\n {{ bq_create_table_as(partition_by, False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% elif existing_relation.is_view %}\n {#-- There's no way to atomically replace a view with a table on BQ --#}\n {{ adapter.drop_relation(existing_relation) }}\n {%- call statement('main', language=language) -%}\n {{ bq_create_table_as(partition_by, False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% elif full_refresh_mode %}\n {#-- If the partition/cluster config has changed, then we must drop and recreate --#}\n {% if not adapter.is_replaceable(existing_relation, partition_by, cluster_by) %}\n {% do log(\"Hard refreshing \" ~ existing_relation ~ \" because it is not replaceable\") %}\n {{ adapter.drop_relation(existing_relation) }}\n {% endif %}\n {%- call statement('main', language=language) -%}\n {{ bq_create_table_as(partition_by, False, target_relation, compiled_code, language) }}\n {%- endcall -%}\n\n {% else %}\n {%- if language == 'python' and strategy == 'insert_overwrite' -%}\n {#-- This lets us move forward assuming no python will be directly templated into a query --#}\n {%- set python_unsupported_msg -%}\n The 'insert_overwrite' strategy is not yet supported for python models.\n {%- endset %}\n {% do exceptions.raise_compiler_error(python_unsupported_msg) %}\n {%- endif -%}\n\n {% set tmp_relation_exists = false %}\n {% if on_schema_change != 'ignore' or language == 'python' %}\n {#-- Check first, since otherwise we may not build a temp table --#}\n {#-- Python always needs to create a temp table --#}\n {%- call statement('create_tmp_relation', language=language) -%}\n {{ bq_create_table_as(partition_by, True, tmp_relation, compiled_code, language) }}\n {%- endcall -%}\n {% set tmp_relation_exists = true %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, tmp_relation, existing_relation) %}\n {% endif %}\n\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n {#-- Add time ingestion pseudo column to destination column as not part of the 'schema' but still need it for actual data insertion --#}\n {% if partition_by.time_ingestion_partitioning %}\n {% set dest_columns = adapter.add_time_ingestion_partition_column(partition_by, dest_columns) %}\n {% endif %}\n\n {% set build_sql = bq_generate_incremental_build_sql(\n strategy, tmp_relation, target_relation, compiled_code, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, partition_by.copy_partitions, incremental_predicates\n ) %}\n\n {%- call statement('main') -%}\n {{ build_sql }}\n {% endcall %}\n\n {%- if language == 'python' and tmp_relation -%}\n {{ adapter.drop_relation(tmp_relation) }}\n {%- endif -%}\n\n {% endif %}\n\n {{ run_hooks(post_hooks) }}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.load_relation", "macro.dbt.make_temp_relation", "macro.dbt_bigquery.dbt_bigquery_validate_get_incremental_strategy", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt_bigquery.bq_create_table_as", "macro.dbt.process_schema_changes", "macro.dbt_bigquery.bq_generate_incremental_build_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5594711, "supported_languages": ["sql", "python"]}, "macro.dbt_bigquery.bigquery__snapshot_hash_arguments": {"name": "bigquery__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "unique_id": "macro.dbt_bigquery.bigquery__snapshot_hash_arguments", "macro_sql": "{% macro bigquery__snapshot_hash_arguments(args) -%}\n to_hex(md5(concat({%- for arg in args -%}\n coalesce(cast({{ arg }} as string), ''){% if not loop.last %}, '|',{% endif -%}\n {%- endfor -%}\n )))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.560534, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_columns": {"name": "bigquery__create_columns", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "unique_id": "macro.dbt_bigquery.bigquery__create_columns", "macro_sql": "{% macro bigquery__create_columns(relation, columns) %}\n {{ adapter.alter_table_add_columns(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5609658, "supported_languages": null}, "macro.dbt_bigquery.bigquery__post_snapshot": {"name": "bigquery__post_snapshot", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/snapshot.sql", "original_file_path": "macros/materializations/snapshot.sql", "unique_id": "macro.dbt_bigquery.bigquery__post_snapshot", "macro_sql": "{% macro bigquery__post_snapshot(staging_relation) %}\n -- Clean up the snapshot temp table\n {% do drop_relation(staging_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.561343, "supported_languages": null}, "macro.dbt_bigquery.bigquery__can_clone_table": {"name": "bigquery__can_clone_table", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/clone.sql", "original_file_path": "macros/materializations/clone.sql", "unique_id": "macro.dbt_bigquery.bigquery__can_clone_table", "macro_sql": "{% macro bigquery__can_clone_table() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.561933, "supported_languages": null}, "macro.dbt_bigquery.bigquery__create_or_replace_clone": {"name": "bigquery__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/clone.sql", "original_file_path": "macros/materializations/clone.sql", "unique_id": "macro.dbt_bigquery.bigquery__create_or_replace_clone", "macro_sql": "{% macro bigquery__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace\n table {{ this_relation }}\n clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5622962, "supported_languages": null}, "macro.dbt_bigquery.bq_generate_incremental_merge_build_sql": {"name": "bq_generate_incremental_merge_build_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/merge.sql", "original_file_path": "macros/materializations/incremental_strategy/merge.sql", "unique_id": "macro.dbt_bigquery.bq_generate_incremental_merge_build_sql", "macro_sql": "{% macro bq_generate_incremental_merge_build_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, incremental_predicates\n) %}\n {%- set source_sql -%}\n {%- if tmp_relation_exists -%}\n (\n select\n {% if partition_by.time_ingestion_partitioning -%}\n {{ partition_by.insertable_time_partitioning_field() }},\n {%- endif -%}\n * from {{ tmp_relation }}\n )\n {%- else -%} {#-- wrap sql in parens to make it a subquery --#}\n (\n {%- if partition_by.time_ingestion_partitioning -%}\n {{ wrap_with_time_ingestion_partitioning_sql(partition_by, sql, True) }}\n {%- else -%}\n {{sql}}\n {%- endif %}\n )\n {%- endif -%}\n {%- endset -%}\n\n {% set build_sql = get_merge_sql(target_relation, source_sql, unique_key, dest_columns, incremental_predicates) %}\n\n {{ return(build_sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql", "macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5644522, "supported_languages": null}, "macro.dbt_bigquery.declare_dbt_max_partition": {"name": "declare_dbt_max_partition", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/common.sql", "original_file_path": "macros/materializations/incremental_strategy/common.sql", "unique_id": "macro.dbt_bigquery.declare_dbt_max_partition", "macro_sql": "{% macro declare_dbt_max_partition(relation, partition_by, compiled_code, language='sql') %}\n\n {#-- TODO: revisit partitioning with python models --#}\n {%- if '_dbt_max_partition' in compiled_code and language == 'sql' -%}\n\n declare _dbt_max_partition {{ partition_by.data_type_for_partition() }} default (\n select max({{ partition_by.field }}) from {{ this }}\n where {{ partition_by.field }} is not null\n );\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5656488, "supported_languages": null}, "macro.dbt_bigquery.bq_generate_incremental_insert_overwrite_build_sql": {"name": "bq_generate_incremental_insert_overwrite_build_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_generate_incremental_insert_overwrite_build_sql", "macro_sql": "{% macro bq_generate_incremental_insert_overwrite_build_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions\n) %}\n {% if partition_by is none %}\n {% set missing_partition_msg -%}\n The 'insert_overwrite' strategy requires the `partition_by` config.\n {%- endset %}\n {% do exceptions.raise_compiler_error(missing_partition_msg) %}\n {% endif %}\n\n {% set build_sql = bq_insert_overwrite_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions\n ) %}\n\n {{ return(build_sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bq_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.571094, "supported_languages": null}, "macro.dbt_bigquery.bq_copy_partitions": {"name": "bq_copy_partitions", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_copy_partitions", "macro_sql": "{% macro bq_copy_partitions(tmp_relation, target_relation, partitions, partition_by) %}\n\n {% for partition in partitions %}\n {% if partition_by.granularity == 'hour' %}\n {% set partition = partition.strftime(\"%Y%m%d%H\") %}\n {% elif partition_by.granularity == 'day' %}\n {% set partition = partition.strftime(\"%Y%m%d\") %}\n {% elif partition_by.granularity == 'month' %}\n {% set partition = partition.strftime(\"%Y%m\") %}\n {% elif partition_by.granularity == 'year' %}\n {% set partition = partition.strftime(\"%Y\") %}\n {% endif %}\n {% set tmp_relation_partitioned = api.Relation.create(database=tmp_relation.database, schema=tmp_relation.schema, identifier=tmp_relation.table ~ '$' ~ partition, type=tmp_relation.type) %}\n {% set target_relation_partitioned = api.Relation.create(database=target_relation.database, schema=target_relation.schema, identifier=target_relation.table ~ '$' ~ partition, type=target_relation.type) %}\n {% do adapter.copy_table(tmp_relation_partitioned, target_relation_partitioned, \"table\") %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.574333, "supported_languages": null}, "macro.dbt_bigquery.bq_insert_overwrite_sql": {"name": "bq_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_insert_overwrite_sql", "macro_sql": "{% macro bq_insert_overwrite_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions\n) %}\n {% if partitions is not none and partitions != [] %} {# static #}\n {{ bq_static_insert_overwrite_sql(tmp_relation, target_relation, sql, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions) }}\n {% else %} {# dynamic #}\n {{ bq_dynamic_insert_overwrite_sql(tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, copy_partitions) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bq_static_insert_overwrite_sql", "macro.dbt_bigquery.bq_dynamic_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.575818, "supported_languages": null}, "macro.dbt_bigquery.bq_static_insert_overwrite_sql": {"name": "bq_static_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_static_insert_overwrite_sql", "macro_sql": "{% macro bq_static_insert_overwrite_sql(\n tmp_relation, target_relation, sql, partition_by, partitions, dest_columns, tmp_relation_exists, copy_partitions\n) %}\n\n {% set predicate -%}\n {{ partition_by.render_wrapped(alias='DBT_INTERNAL_DEST') }} in (\n {{ partitions | join (', ') }}\n )\n {%- endset %}\n\n {%- set source_sql -%}\n (\n {% if partition_by.time_ingestion_partitioning and tmp_relation_exists -%}\n select\n {{ partition_by.insertable_time_partitioning_field() }},\n * from {{ tmp_relation }}\n {% elif tmp_relation_exists -%}\n select\n * from {{ tmp_relation }}\n {%- elif partition_by.time_ingestion_partitioning -%}\n {{ wrap_with_time_ingestion_partitioning_sql(partition_by, sql, True) }}\n {%- else -%}\n {{sql}}\n {%- endif -%}\n\n )\n {%- endset -%}\n\n {% if copy_partitions %}\n {% do bq_copy_partitions(tmp_relation, target_relation, partitions, partition_by) %}\n {% else %}\n\n {#-- In case we're putting the model SQL _directly_ into the MERGE statement,\n we need to prepend the MERGE statement with the user-configured sql_header,\n which may be needed to resolve that model SQL (e.g. referencing a variable or UDF in the header)\n in the \"temporary table exists\" case, we save the model SQL result as a temp table first, wherein the\n sql_header is included by the create_table_as macro.\n #}\n -- 1. run the merge statement\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate], include_sql_header = not tmp_relation_exists) }};\n\n {%- if tmp_relation_exists -%}\n -- 2. clean up the temp table\n drop table if exists {{ tmp_relation }};\n {%- endif -%}\n\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql", "macro.dbt_bigquery.bq_copy_partitions", "macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5783849, "supported_languages": null}, "macro.dbt_bigquery.bq_dynamic_copy_partitions_insert_overwrite_sql": {"name": "bq_dynamic_copy_partitions_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_dynamic_copy_partitions_insert_overwrite_sql", "macro_sql": "{% macro bq_dynamic_copy_partitions_insert_overwrite_sql(\n tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, copy_partitions\n ) %}\n {# We run temp table creation in a separated script to move to partitions copy #}\n {%- call statement('create_tmp_relation_for_copy', language='sql') -%}\n {{ bq_create_table_as(partition_by, True, tmp_relation, sql, 'sql')\n }}\n {%- endcall %}\n {%- set partitions_sql -%}\n select distinct {{ partition_by.render_wrapped() }}\n from {{ tmp_relation }}\n {%- endset -%}\n {%- set partitions = run_query(partitions_sql).columns[0].values() -%}\n {# We copy the partitions #}\n {%- do bq_copy_partitions(tmp_relation, target_relation, partitions, partition_by) -%}\n -- Clean up the temp table\n drop table if exists {{ tmp_relation }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_bigquery.bq_create_table_as", "macro.dbt.run_query", "macro.dbt_bigquery.bq_copy_partitions"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5800488, "supported_languages": null}, "macro.dbt_bigquery.bq_dynamic_insert_overwrite_sql": {"name": "bq_dynamic_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "original_file_path": "macros/materializations/incremental_strategy/insert_overwrite.sql", "unique_id": "macro.dbt_bigquery.bq_dynamic_insert_overwrite_sql", "macro_sql": "{% macro bq_dynamic_insert_overwrite_sql(tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, copy_partitions) %}\n {%- if copy_partitions is true %}\n {{ bq_dynamic_copy_partitions_insert_overwrite_sql(tmp_relation, target_relation, sql, unique_key, partition_by, dest_columns, tmp_relation_exists, copy_partitions) }}\n {% else -%}\n {% set predicate -%}\n {{ partition_by.render_wrapped(alias='DBT_INTERNAL_DEST') }} in unnest(dbt_partitions_for_replacement)\n {%- endset %}\n\n {%- set source_sql -%}\n (\n select\n {% if partition_by.time_ingestion_partitioning -%}\n {{ partition_by.insertable_time_partitioning_field() }},\n {%- endif -%}\n * from {{ tmp_relation }}\n )\n {%- endset -%}\n\n -- generated script to merge partitions into {{ target_relation }}\n declare dbt_partitions_for_replacement array<{{ partition_by.data_type_for_partition() }}>;\n\n {# have we already created the temp table to check for schema changes? #}\n {% if not tmp_relation_exists %}\n -- 1. create a temp table with model data\n {{ bq_create_table_as(partition_by, True, tmp_relation, sql, 'sql') }}\n {% else %}\n -- 1. temp table already exists, we used it to check for schema changes\n {% endif %}\n {%- set partition_field = partition_by.time_partitioning_field() if partition_by.time_ingestion_partitioning else partition_by.render_wrapped() -%}\n\n -- 2. define partitions to update\n set (dbt_partitions_for_replacement) = (\n select as struct\n -- IGNORE NULLS: this needs to be aligned to _dbt_max_partition, which ignores null\n array_agg(distinct {{ partition_field }} IGNORE NULLS)\n from {{ tmp_relation }}\n );\n\n -- 3. run the merge statement\n {{ get_insert_overwrite_merge_sql(target_relation, source_sql, dest_columns, [predicate]) }};\n\n -- 4. clean up the temp table\n drop table if exists {{ tmp_relation }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bq_dynamic_copy_partitions_insert_overwrite_sql", "macro.dbt_bigquery.bq_create_table_as", "macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.583808, "supported_languages": null}, "macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql": {"name": "wrap_with_time_ingestion_partitioning_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql", "macro_sql": "{% macro wrap_with_time_ingestion_partitioning_sql(partition_by, sql, is_nested) %}\n\n select TIMESTAMP({{ partition_by.field }}) as {{ partition_by.insertable_time_partitioning_field() }}, * EXCEPT({{ partition_by.field }}) from (\n {{ sql }}\n ){%- if not is_nested -%};{%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.586904, "supported_languages": null}, "macro.dbt_bigquery.get_quoted_with_types_csv": {"name": "get_quoted_with_types_csv", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.get_quoted_with_types_csv", "macro_sql": "{% macro get_quoted_with_types_csv(columns) %}\n {% set quoted = [] %}\n {% for col in columns -%}\n {%- do quoted.append(adapter.quote(col.name) ~ \" \" ~ col.data_type) -%}\n {%- endfor %}\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5880141, "supported_languages": null}, "macro.dbt_bigquery.columns_without_partition_fields_csv": {"name": "columns_without_partition_fields_csv", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.columns_without_partition_fields_csv", "macro_sql": "{% macro columns_without_partition_fields_csv(partition_config, columns) -%}\n {%- set columns_no_partition = partition_config.reject_partition_field_column(columns) -%}\n {% set columns_names = get_quoted_with_types_csv(columns_no_partition) %}\n {{ return(columns_names) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_bigquery.get_quoted_with_types_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5886989, "supported_languages": null}, "macro.dbt_bigquery.bq_insert_into_ingestion_time_partitioned_table_sql": {"name": "bq_insert_into_ingestion_time_partitioned_table_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.bq_insert_into_ingestion_time_partitioned_table_sql", "macro_sql": "{% macro bq_insert_into_ingestion_time_partitioned_table_sql(target_relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n {%- set raw_partition_by = config.get('partition_by', none) -%}\n {%- set partition_by = adapter.parse_partition_by(raw_partition_by) -%}\n {% set dest_columns = adapter.get_columns_in_relation(target_relation) %}\n {%- set dest_columns_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ partition_by.insertable_time_partitioning_field() }}, {{ dest_columns_csv }})\n {{ wrap_with_time_ingestion_partitioning_sql(partition_by, sql, False) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt_bigquery.wrap_with_time_ingestion_partitioning_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.590527, "supported_languages": null}, "macro.dbt_bigquery.get_columns_with_types_in_query_sql": {"name": "get_columns_with_types_in_query_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "original_file_path": "macros/materializations/incremental_strategy/time_ingestion_tables.sql", "unique_id": "macro.dbt_bigquery.get_columns_with_types_in_query_sql", "macro_sql": "{% macro get_columns_with_types_in_query_sql(select_sql) %}\n {% set sql %}\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endset %}\n {{ return(adapter.get_columns_in_select_sql(sql)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5914738, "supported_languages": null}, "macro.dbt_bigquery.bigquery__except": {"name": "bigquery__except", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt_bigquery.bigquery__except", "macro_sql": "{% macro bigquery__except() %}\n\n except distinct\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5917819, "supported_languages": null}, "macro.dbt_bigquery.bigquery__dateadd": {"name": "bigquery__dateadd", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_bigquery.bigquery__dateadd", "macro_sql": "{% macro bigquery__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n datetime_add(\n cast( {{ from_date_or_timestamp }} as datetime),\n interval {{ interval }} {{ datepart }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.592448, "supported_languages": null}, "macro.dbt_bigquery.bigquery__current_timestamp": {"name": "bigquery__current_timestamp", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_bigquery.bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() -%}\n current_timestamp()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.592872, "supported_languages": null}, "macro.dbt_bigquery.bigquery__snapshot_string_as_time": {"name": "bigquery__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_bigquery.bigquery__snapshot_string_as_time", "macro_sql": "{% macro bigquery__snapshot_string_as_time(timestamp) -%}\n {%- set result = 'TIMESTAMP(\"' ~ timestamp ~ '\")' -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.593357, "supported_languages": null}, "macro.dbt_bigquery.bigquery__current_timestamp_backcompat": {"name": "bigquery__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/timestamps.sql", "original_file_path": "macros/utils/timestamps.sql", "unique_id": "macro.dbt_bigquery.bigquery__current_timestamp_backcompat", "macro_sql": "{% macro bigquery__current_timestamp_backcompat() -%}\n current_timestamp\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.593573, "supported_languages": null}, "macro.dbt_bigquery.bigquery__intersect": {"name": "bigquery__intersect", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt_bigquery.bigquery__intersect", "macro_sql": "{% macro bigquery__intersect() %}\n\n intersect distinct\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.593846, "supported_languages": null}, "macro.dbt_bigquery.bigquery__escape_single_quotes": {"name": "bigquery__escape_single_quotes", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt_bigquery.bigquery__escape_single_quotes", "macro_sql": "{% macro bigquery__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.594335, "supported_languages": null}, "macro.dbt_bigquery.bigquery__format_column": {"name": "bigquery__format_column", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/get_columns_spec_ddl.sql", "original_file_path": "macros/utils/get_columns_spec_ddl.sql", "unique_id": "macro.dbt_bigquery.bigquery__format_column", "macro_sql": "{% macro bigquery__format_column(column) -%}\n {% set data_type = column.data_type %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.596204, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_empty_schema_sql": {"name": "bigquery__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/get_columns_spec_ddl.sql", "original_file_path": "macros/utils/get_columns_spec_ddl.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_empty_schema_sql", "macro_sql": "{% macro bigquery__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {% for col in columns.values() %}\n {%- if col['data_type'] is not defined -%}\n {{ col_err.append(col['name']) }}\n {%- endif -%}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- endif -%}\n\n {%- set columns = adapter.nest_column_data_types(columns) -%}\n {{ return(dbt.default__get_empty_schema_sql(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5978408, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_select_subquery": {"name": "bigquery__get_select_subquery", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/get_columns_spec_ddl.sql", "original_file_path": "macros/utils/get_columns_spec_ddl.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_select_subquery", "macro_sql": "{% macro bigquery__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.598308, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_column_names": {"name": "bigquery__get_column_names", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/get_columns_spec_ddl.sql", "original_file_path": "macros/utils/get_columns_spec_ddl.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_column_names", "macro_sql": "{% macro bigquery__get_column_names() %}\n {#- loop through nested user_provided_columns to get column names -#}\n {%- set user_provided_columns = adapter.nest_column_data_types(model['columns']) -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.5995672, "supported_languages": null}, "macro.dbt_bigquery.bigquery__right": {"name": "bigquery__right", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt_bigquery.bigquery__right", "macro_sql": "{% macro bigquery__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0\n then ''\n else\n substr(\n {{ string_text }},\n -1 * ({{ length_expression }})\n )\n end\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6001549, "supported_languages": null}, "macro.dbt_bigquery.bigquery__listagg": {"name": "bigquery__listagg", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_bigquery.bigquery__listagg", "macro_sql": "{% macro bigquery__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n {% if limit_num -%}\n limit {{ limit_num }}\n {%- endif %}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.601121, "supported_languages": null}, "macro.dbt_bigquery.bigquery__datediff": {"name": "bigquery__datediff", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_bigquery.bigquery__datediff", "macro_sql": "{% macro bigquery__datediff(first_date, second_date, datepart) -%}\n\n {% if dbt_version[0] == 1 and dbt_version[2] >= 2 %}\n {{ return(dbt.datediff(first_date, second_date, datepart)) }}\n {% else %}\n\n datetime_diff(\n cast({{second_date}} as datetime),\n cast({{first_date}} as datetime),\n {{datepart}}\n )\n\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6023521, "supported_languages": null}, "macro.dbt_bigquery.bigquery__safe_cast": {"name": "bigquery__safe_cast", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt_bigquery.bigquery__safe_cast", "macro_sql": "{% macro bigquery__safe_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.602803, "supported_languages": null}, "macro.dbt_bigquery.bigquery__hash": {"name": "bigquery__hash", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt_bigquery.bigquery__hash", "macro_sql": "{% macro bigquery__hash(field) -%}\n to_hex({{dbt.default__hash(field)}})\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.60349, "supported_languages": null}, "macro.dbt_bigquery.bigquery__position": {"name": "bigquery__position", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt_bigquery.bigquery__position", "macro_sql": "{% macro bigquery__position(substring_text, string_text) %}\n\n strpos(\n {{ string_text }},\n {{ substring_text }}\n\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.604394, "supported_languages": null}, "macro.dbt_bigquery.bigquery__array_concat": {"name": "bigquery__array_concat", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt_bigquery.bigquery__array_concat", "macro_sql": "{% macro bigquery__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.604885, "supported_languages": null}, "macro.dbt_bigquery.bigquery__bool_or": {"name": "bigquery__bool_or", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt_bigquery.bigquery__bool_or", "macro_sql": "{% macro bigquery__bool_or(expression) -%}\n\n logical_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.605263, "supported_languages": null}, "macro.dbt_bigquery.bigquery__split_part": {"name": "bigquery__split_part", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_bigquery.bigquery__split_part", "macro_sql": "{% macro bigquery__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset({{ part_number - 1 }})]\n {% else %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset(\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 1 + {{ part_number }}\n )]\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.606961, "supported_languages": null}, "macro.dbt_bigquery.bigquery__date_trunc": {"name": "bigquery__date_trunc", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt_bigquery.bigquery__date_trunc", "macro_sql": "{% macro bigquery__date_trunc(datepart, date) -%}\n timestamp_trunc(\n cast({{date}} as timestamp),\n {{datepart}}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6074922, "supported_languages": null}, "macro.dbt_bigquery.bigquery__array_construct": {"name": "bigquery__array_construct", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt_bigquery.bigquery__array_construct", "macro_sql": "{% macro bigquery__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n [ {{ inputs|join(' , ') }} ]\n {% else %}\n ARRAY<{{data_type}}>[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6082828, "supported_languages": null}, "macro.dbt_bigquery.bigquery__array_append": {"name": "bigquery__array_append", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt_bigquery.bigquery__array_append", "macro_sql": "{% macro bigquery__array_append(array, new_element) -%}\n {{ array_concat(array, array_construct([new_element])) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.array_concat", "macro.dbt.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6088269, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_show_grant_sql": {"name": "bigquery__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_show_grant_sql", "macro_sql": "{% macro bigquery__get_show_grant_sql(relation) %}\n {% set location = adapter.get_dataset_location(relation) %}\n {% set relation = relation.incorporate(location=location) %}\n\n select privilege_type, grantee\n from {{ relation.information_schema(\"OBJECT_PRIVILEGES\") }}\n where object_schema = \"{{ relation.dataset }}\"\n and object_name = \"{{ relation.identifier }}\"\n -- filter out current user\n and split(grantee, ':')[offset(1)] != session_user()\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.610274, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_grant_sql": {"name": "bigquery__get_grant_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_grant_sql", "macro_sql": "\n\n\n{%- macro bigquery__get_grant_sql(relation, privilege, grantee) -%}\n grant `{{ privilege }}` on {{ relation.type }} {{ relation }} to {{ '\\\"' + grantee|join('\\\", \\\"') + '\\\"' }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.610919, "supported_languages": null}, "macro.dbt_bigquery.bigquery__get_revoke_sql": {"name": "bigquery__get_revoke_sql", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt_bigquery.bigquery__get_revoke_sql", "macro_sql": "{%- macro bigquery__get_revoke_sql(relation, privilege, grantee) -%}\n revoke `{{ privilege }}` on {{ relation.type }} {{ relation }} from {{ '\\\"' + grantee|join('\\\", \\\"') + '\\\"' }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6115541, "supported_languages": null}, "macro.dbt_bigquery.bigquery__resolve_model_name": {"name": "bigquery__resolve_model_name", "resource_type": "macro", "package_name": "dbt_bigquery", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt_bigquery.bigquery__resolve_model_name", "macro_sql": "{% macro bigquery__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('`', '') | replace('\"', '\\\"') }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.612158, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.614631, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6151512, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6156118, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.61602, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.616472, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.61745, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.618762, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6197991, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.620846, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6215591, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6293912, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6298869, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.630503, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.632447, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.632894, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.633354, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6372201, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6407611, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6477408, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.648522, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.64899, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.649261, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6496708, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.650007, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6507719, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6531441, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.653701, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.654382, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6555111, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.669801, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.675105, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6762109, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.67704, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.677938, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.678962, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.682244, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.683908, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.6856499, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.686365, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.688597, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.699421, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.7038789, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.704603, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.707325, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.708044, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.709641, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.7111669, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.712966, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.7135842, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.7140899, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.714866, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.715364, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.716192, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.716939, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.7176802, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.718242, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.719052, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.719845, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.731812, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.741847, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.745044, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.748225, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.7509718, "supported_languages": null}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.760544, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.761556, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.7622101, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_materialized_view_as_sql(target_relation, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_materialized_view_as_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.7659972, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.766643, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.768343, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/get_materialized_view_configuration_changes.sql", "original_file_path": "macros/materializations/models/materialized_view/get_materialized_view_configuration_changes.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.769409, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/get_materialized_view_configuration_changes.sql", "original_file_path": "macros/materializations/models/materialized_view/get_materialized_view_configuration_changes.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.769821, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/alter_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/alter_materialized_view.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.770984, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/alter_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/alter_materialized_view.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.7714849, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/refresh_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/refresh_materialized_view.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.772245, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/refresh_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/refresh_materialized_view.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.772616, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_as_sql": {"name": "get_replace_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/replace_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/replace_materialized_view.sql", "unique_id": "macro.dbt.get_replace_materialized_view_as_sql", "macro_sql": "{% macro get_replace_materialized_view_as_sql(relation, sql, existing_relation, backup_relation, intermediate_relation) %}\n {{- log('Applying REPLACE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_replace_materialized_view_as_sql', 'dbt')(relation, sql, existing_relation, backup_relation, intermediate_relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.773634, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_as_sql": {"name": "default__get_replace_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/replace_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/replace_materialized_view.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_as_sql", "macro_sql": "{% macro default__get_replace_materialized_view_as_sql(relation, sql, existing_relation, backup_relation, intermediate_relation) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.774139, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/create_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/create_materialized_view.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.774838, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view/create_materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view/create_materialized_view.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.775161, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.77567, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.7761369, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.7768488, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation }} clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.777198, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.784477, "supported_languages": ["sql"]}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.786625, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.786967, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.788358, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.789004, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.789471, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.792882, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.7941508, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/columns_spec_ddl.sql", "original_file_path": "macros/materializations/models/table/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.7951329, "supported_languages": null}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.8022668, "supported_languages": ["sql"]}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.804137, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.804641, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.806026, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.807971, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.809237, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.809767, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.810265, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.817368, "supported_languages": ["sql"]}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.818625, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.81926, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.823232, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.82426, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.824702, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.825183, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.8262951, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.834273, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.842975, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.8453271, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.845939, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.847399, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.8479319, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.848303, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.848686, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.8490171, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.849458, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.849797, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.851156, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.8516638, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.855009, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.8563159, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.8574238, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.858633, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.859346, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.860111, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.8610518, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.8617349, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.862554, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.8633149, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.8639371, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.865324, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.8693278, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.871088, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.871958, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.875606, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.879196, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.8814158, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.882071, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.882731, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.882976, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.88412, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.8846111, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.885261, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.885618, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.886273, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.8865988, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.887518, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.887994, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.88859, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.88882, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.889527, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.889947, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.890708, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.891083, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.8924391, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.8935099, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.894329, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.89479, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.896126, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.896526, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.897182, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.89763, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.898249, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.898676, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.899429, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.899741, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.900578, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.901071, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.901811, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.902105, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.904188, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.904613, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9051242, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.905659, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.906197, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.90671, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.907516, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9080598, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.908514, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.908936, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9095721, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9099789, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.910422, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9108229, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.91155, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.911923, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.912575, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9128692, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.913713, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.914477, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.914886, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.916325, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.916818, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.917949, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.918742, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.919123, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.920097, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.92077, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9215, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.922187, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9233239, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.923877, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9243362, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.924851, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.926147, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.926591, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.926998, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.927302, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9277701, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.927995, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9284549, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_bigquery.bigquery__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.928923, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.93075, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9311612, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9316669, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.932896, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.933442, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.933834, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.93435, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9347332, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9403698, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9408908, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9415529, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.942417, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.943112, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.944222, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9447591, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.945187, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9457521, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.946622, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9473238, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9488661, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9498398, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.95052, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.951081, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9521, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.953332, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.954071, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.954705, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.958431, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.958776, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9592378, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.95957, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.960469, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9609668, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.96125, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9618402, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.962346, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.963135, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9636428, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9642398, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.966472, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9670668, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9679842, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.96895, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.972049, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.97357, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.974056, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9746182, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9751081, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.975845, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.977419, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.980596, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9815302, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.982177, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.982795, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.983757, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.98458, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.985211, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9862761, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9868858, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9877, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.989844, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {%- if relation.is_table -%}\n {{- drop_table(relation) -}}\n {%- elif relation.is_view -%}\n {{- drop_view(relation) -}}\n {%- elif relation.is_materialized_view -%}\n {{- drop_materialized_view(relation) -}}\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endif -%}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.drop_table", "macro.dbt.drop_view", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9912288, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{ return(adapter.dispatch('drop_table', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.991776, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.992104, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{ return(adapter.dispatch('drop_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.992633, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.992956, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{ return(adapter.dispatch('drop_materialized_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.993492, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/drop_relation.sql", "original_file_path": "macros/adapters/drop_relation.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.993824, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.9984598, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457905.998983, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.000392, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.001077, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.00172, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.0022678, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {{ col_err.append(col['name']) }}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n cast(null as {{ col['data_type'] }}) as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.004446, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.005429, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.0059662, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.007044, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.008107, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.0096881, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.0103738, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.0124469, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.015543, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.016137, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.018594, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.019673, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.021324, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.022659, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.022902, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_bigquery.bigquery__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.0241, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.024742, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.025509, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.026251, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.027196, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.0284328, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.029543, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.03113, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.0319118, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.032767, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.03483, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.037694, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.039554, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.0423849, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.043828, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.044717, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.046274, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.04844, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.049634, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.050905, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.052417, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.053728, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.055087, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.056295, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.0578308, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n where {{ column_name }} is not null\n limit 1\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.0599391, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.061289, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.062965, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.064138, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.0650308, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.065977, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.067174, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.069056, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.071275, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.073199, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.075577, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.077141, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.0794308, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.080539, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.0813131, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.087845, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.091918, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.092722, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.093179, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.094285, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.094976, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.095486, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.096116, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.096631, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.098273, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.100252, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.1018019, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.1036181, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.104254, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.105196, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.106107, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.1075299, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.108305, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.109217, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.110702, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.11293, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.1146162, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.115686, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.116734, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.118402, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.120074, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.12232, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.123592, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.124348, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.127025, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.1310232, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.133708, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.138334, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.139141, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.1395159, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.145231, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.1563919, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.1574268, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.158151, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.bigquery__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.159699, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.16027, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.160804, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.161328, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.161783, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.162247, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.163181, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.1638038, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.164852, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.1664371, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.16747, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.168519, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.bigquery__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.172748, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.173868, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.1768682, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.178761, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.1819808, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.1908128, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.1938019, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.196446, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.197886, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.200325, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.202423, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.204125, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.2048059, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.2060008, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.207938, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.2091782, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.211582, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.default__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.213186, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.213695, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.214278, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.214725, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.2160609, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.2202911, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.2243268, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.bigquery__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.225278, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.227499, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.230331, "supported_languages": null}, "macro.workday.get_person_contact_email_address_columns": {"name": "get_person_contact_email_address_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_contact_email_address_columns.sql", "original_file_path": "macros/get_person_contact_email_address_columns.sql", "unique_id": "macro.workday.get_person_contact_email_address_columns", "macro_sql": "{% macro get_person_contact_email_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_address\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_comment\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.233349, "supported_languages": null}, "macro.workday.get_military_service_columns": {"name": "get_military_service_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_military_service_columns.sql", "original_file_path": "macros/get_military_service_columns.sql", "unique_id": "macro.workday.get_military_service_columns", "macro_sql": "{% macro get_military_service_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"discharge_date\", \"datatype\": \"date\"},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"rank\", \"datatype\": dbt.type_string()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status_begin_date\", \"datatype\": \"date\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.236862, "supported_languages": null}, "macro.workday.get_position_job_profile_columns": {"name": "get_position_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_job_profile_columns.sql", "original_file_path": "macros/get_position_job_profile_columns.sql", "unique_id": "macro.workday.get_position_job_profile_columns", "macro_sql": "{% macro get_position_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.2402828, "supported_languages": null}, "macro.workday.get_job_family_job_family_group_columns": {"name": "get_job_family_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_job_family_group_columns", "macro_sql": "{% macro get_job_family_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.2420511, "supported_languages": null}, "macro.workday.get_worker_history_columns": {"name": "get_worker_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_history_columns.sql", "original_file_path": "macros/get_worker_history_columns.sql", "unique_id": "macro.workday.get_worker_history_columns", "macro_sql": "{% macro get_worker_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_date\", \"datatype\": \"date\"},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"active_status_date\", \"datatype\": \"date\"},\n {\"name\": \"annual_currency_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_service_date\", \"datatype\": \"date\"},\n {\"name\": \"company_service_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_effective_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"continuous_service_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_assignment_details\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_end_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_frequency_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_pay_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"contract_vendor_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_entered_workforce\", \"datatype\": \"date\"},\n {\"name\": \"days_unemployed\", \"datatype\": dbt.type_float()},\n {\"name\": \"eligible_for_hire\", \"datatype\": dbt.type_string()},\n {\"name\": \"eligible_for_rehire_on_latest_termination\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_date_of_return\", \"datatype\": \"date\"},\n {\"name\": \"expected_retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"has_international_assignment\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hire_date\", \"datatype\": \"date\"},\n {\"name\": \"hire_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"hire_rescinded\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_datefor_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"local_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"months_continuous_prior_employment\", \"datatype\": dbt.type_float()},\n {\"name\": \"not_returning\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"original_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"pay_group_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"primary_termination_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"probation_end_date\", \"datatype\": \"date\"},\n {\"name\": \"probation_start_date\", \"datatype\": \"date\"},\n {\"name\": \"reason_reference_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regrettable_termination\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"rehire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"resignation_date\", \"datatype\": \"date\"},\n {\"name\": \"retired\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"retirement_eligibility_date\", \"datatype\": \"date\"},\n {\"name\": \"return_unknown\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"seniority_date\", \"datatype\": \"date\"},\n {\"name\": \"severance_date\", \"datatype\": \"date\"},\n {\"name\": \"terminated\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_date\", \"datatype\": \"date\"},\n {\"name\": \"termination_involuntary\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"time_off_service_date\", \"datatype\": \"date\"},\n {\"name\": \"universal_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vesting_date\", \"datatype\": \"date\"},\n {\"name\": \"worker_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.270236, "supported_languages": null}, "macro.workday.get_job_family_group_columns": {"name": "get_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_group_columns", "macro_sql": "{% macro get_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_group_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.2728052, "supported_languages": null}, "macro.workday.get_worker_leave_status_columns": {"name": "get_worker_leave_status_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_leave_status_columns.sql", "original_file_path": "macros/get_worker_leave_status_columns.sql", "unique_id": "macro.workday.get_worker_leave_status_columns", "macro_sql": "{% macro get_worker_leave_status_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"adoption_notification_date\", \"datatype\": \"date\"},\n {\"name\": \"adoption_placement_date\", \"datatype\": \"date\"},\n {\"name\": \"age_of_dependent\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"caesarean_section_birth\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"child_birth_date\", \"datatype\": \"date\"},\n {\"name\": \"child_sdate_of_death\", \"datatype\": \"date\"},\n {\"name\": \"continuous_service_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"date_baby_arrived_home_from_hospital\", \"datatype\": \"date\"},\n {\"name\": \"date_child_entered_country\", \"datatype\": \"date\"},\n {\"name\": \"date_of_recall\", \"datatype\": \"date\"},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimated_leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_due_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"last_date_for_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_entitlement_override\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"leave_of_absence_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_request_event_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_return_event\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_start_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_status_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_type_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_during_leave\", \"datatype\": dbt.type_string()},\n {\"name\": \"multiple_child_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"number_of_babies_adopted_children\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_child_dependents\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_births\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_maternity_leaves\", \"datatype\": dbt.type_float()},\n {\"name\": \"on_leave\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"paid_time_off_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"payroll_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"single_parent_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"social_security_disability_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"stock_vesting_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"stop_payment_date\", \"datatype\": \"date\"},\n {\"name\": \"week_of_confinement\", \"datatype\": \"date\"},\n {\"name\": \"work_related\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.2850401, "supported_languages": null}, "macro.workday.get_organization_role_worker_columns": {"name": "get_organization_role_worker_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_worker_columns.sql", "original_file_path": "macros/get_organization_role_worker_columns.sql", "unique_id": "macro.workday.get_organization_role_worker_columns", "macro_sql": "{% macro get_organization_role_worker_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"associated_worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.286963, "supported_languages": null}, "macro.workday.get_job_profile_columns": {"name": "get_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_profile_columns.sql", "original_file_path": "macros/get_job_profile_columns.sql", "unique_id": "macro.workday.get_job_profile_columns", "macro_sql": "{% macro get_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_job_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"public_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"referral_payment_plan\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_membership_requirement\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_study_award_source_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_study_requirement_option_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.294027, "supported_languages": null}, "macro.workday.get_organization_role_columns": {"name": "get_organization_role_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_columns.sql", "original_file_path": "macros/get_organization_role_columns.sql", "unique_id": "macro.workday.get_organization_role_columns", "macro_sql": "{% macro get_organization_role_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_role_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.295809, "supported_languages": null}, "macro.workday.get_person_name_columns": {"name": "get_person_name_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_name_columns.sql", "original_file_path": "macros/get_person_name_columns.sql", "unique_id": "macro.workday.get_person_name_columns", "macro_sql": "{% macro get_person_name_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"additional_name_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name_singapore_malaysia\", \"datatype\": dbt.type_string()},\n {\"name\": \"hereditary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"honorary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_salutation\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"professional_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"religious_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"royal_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tertiary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.3055182, "supported_languages": null}, "macro.workday.get_job_family_job_profile_columns": {"name": "get_job_family_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_profile_columns.sql", "original_file_path": "macros/get_job_family_job_profile_columns.sql", "unique_id": "macro.workday.get_job_family_job_profile_columns", "macro_sql": "{% macro get_job_family_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.307192, "supported_languages": null}, "macro.workday.get_worker_position_history_columns": {"name": "get_worker_position_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_history_columns.sql", "original_file_path": "macros/get_worker_position_history_columns.sql", "unique_id": "macro.workday.get_worker_position_history_columns", "macro_sql": "{% macro get_worker_position_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_pay_setup_data_annual_work_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_work_percent_of_year\", \"datatype\": dbt.type_float()},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"business_site_summary_display_language\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_local\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"business_site_summary_time_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"default_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"employee_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"exclude_from_head_count\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"expected_assignment_end_date\", \"datatype\": \"date\"},\n {\"name\": \"external_employee\", \"datatype\": dbt.type_string()},\n {\"name\": \"federal_withholding_fein\", \"datatype\": dbt.type_string()},\n {\"name\": \"frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_time_equivalent_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"headcount_restriction_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"host_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"international_assignment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_primary_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"paid_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"payroll_entity\", \"datatype\": dbt.type_string()},\n {\"name\": \"payroll_file_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regular_paid_equivalent_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"specify_paid_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"specify_working_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"start_international_assignment_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_hours_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_space\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_hours_profile_classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"working_time_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.327086, "supported_languages": null}, "macro.workday.get_personal_information_ethnicity_columns": {"name": "get_personal_information_ethnicity_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_ethnicity_columns.sql", "original_file_path": "macros/get_personal_information_ethnicity_columns.sql", "unique_id": "macro.workday.get_personal_information_ethnicity_columns", "macro_sql": "{% macro get_personal_information_ethnicity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ethnicity_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"ethnicity_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.3295941, "supported_languages": null}, "macro.workday.get_personal_information_history_columns": {"name": "get_personal_information_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_history_columns.sql", "original_file_path": "macros/get_personal_information_history_columns.sql", "unique_id": "macro.workday.get_personal_information_history_columns", "macro_sql": "{% macro get_personal_information_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"blood_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"citizenship_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_birth\", \"datatype\": \"date\"},\n {\"name\": \"date_of_death\", \"datatype\": \"date\"},\n {\"name\": \"gender\", \"datatype\": dbt.type_string()},\n {\"name\": \"hispanic_or_latino\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hukou_locality\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_subregion\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_medical_exam_date\", \"datatype\": \"date\"},\n {\"name\": \"last_medical_exam_valid_to\", \"datatype\": \"date\"},\n {\"name\": \"local_hukou\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"marital_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"marital_status_date\", \"datatype\": \"date\"},\n {\"name\": \"medical_exam_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"personnel_file_agency\", \"datatype\": dbt.type_string()},\n {\"name\": \"political_affiliation\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"religion\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_benefit\", \"datatype\": dbt.type_string()},\n {\"name\": \"tobacco_use\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.340922, "supported_languages": null}, "macro.workday.get_worker_position_organization_history_columns": {"name": "get_worker_position_organization_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_organization_history_columns.sql", "original_file_path": "macros/get_worker_position_organization_history_columns.sql", "unique_id": "macro.workday.get_worker_position_organization_history_columns", "macro_sql": "{% macro get_worker_position_organization_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_pay_group_assignment\", \"datatype\": \"date\"},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_business_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"used_in_change_organization_assignments\", \"datatype\": dbt.type_boolean()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.344408, "supported_languages": null}, "macro.workday.get_organization_job_family_columns": {"name": "get_organization_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_job_family_columns.sql", "original_file_path": "macros/get_organization_job_family_columns.sql", "unique_id": "macro.workday.get_organization_job_family_columns", "macro_sql": "{% macro get_organization_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.346228, "supported_languages": null}, "macro.workday.get_job_family_columns": {"name": "get_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_columns.sql", "original_file_path": "macros/get_job_family_columns.sql", "unique_id": "macro.workday.get_job_family_columns", "macro_sql": "{% macro get_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.348653, "supported_languages": null}, "macro.workday.get_organization_columns": {"name": "get_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_columns.sql", "original_file_path": "macros/get_organization_columns.sql", "unique_id": "macro.workday.get_organization_columns", "macro_sql": "{% macro get_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"availability_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"external_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"inactive_date\", \"datatype\": \"date\"},\n {\"name\": \"include_manager_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_organization_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"last_updated_date_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"location\", \"datatype\": dbt.type_string()},\n {\"name\": \"manager_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_owner_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"staffing_model\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"superior_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_availability_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_time_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_worker_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"top_level_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"visibility\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.356432, "supported_languages": null}, "macro.workday.get_position_organization_columns": {"name": "get_position_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_organization_columns.sql", "original_file_path": "macros/get_position_organization_columns.sql", "unique_id": "macro.workday.get_position_organization_columns", "macro_sql": "{% macro get_position_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.358349, "supported_languages": null}, "macro.workday.get_position_columns": {"name": "get_position_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_columns.sql", "original_file_path": "macros/get_position_columns.sql", "unique_id": "macro.workday.get_position_columns", "macro_sql": "{% macro get_position_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_eligible\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"availability_date\", \"datatype\": \"date\"},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_overlap\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_recruiting\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"closed\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"compensation_grade_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_package_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_step_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"earliest_overlap_date\", \"datatype\": \"date\"},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_posting_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_time_type_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_amount_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_percent_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"supervisory_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_for_filled_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_type_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.367477, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.368681, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.370996, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.371511, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.371962, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.372405, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.372799, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.373246, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.375221, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.376925, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.379516, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.380193, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.380984, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.381653, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.382297, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.38303, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.384049, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.3847868, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.385579, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.385874, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.386278, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.38665, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.3878138, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.389683, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.3927848, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.39431, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.3964102, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.397608, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.397983, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.398345, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.3987, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.3991401, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.404981, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.4055328, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.4060018, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.4065, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.411077, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.41295, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.413325, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.414103, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.414857, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.415463, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.415909, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.41627, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.416648, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.418041, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.419699, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.4211771, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.421932, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.4225512, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.423317, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.430412, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.454609, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.457267, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.459566, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.465188, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.471138, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.474448, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.474992, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.475574, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.476095, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.47661, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.4771168, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.479166, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.4848819, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.bigquery__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.488469, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.489065, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.4896052, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.4901388, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.49069, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.491724, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.4929018, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.493286, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.4936378, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.496991, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.501781, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.5032032, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.507052, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.515297, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.531274, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.5355918, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.5366158, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.537236, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.538018, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.539096, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.53985, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.540729, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.5411499, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.5415812, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.542398, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.542749, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.5430882, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.544255, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1708457906.5454102, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.workday._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_deleted", "block_contents": "Indicates if the record was soft-deleted by Fivetran."}, "doc.workday._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_synced", "block_contents": "Timestamp the record was synced by Fivetran."}, "doc.workday._fivetran_start": {"name": "_fivetran_start", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_start", "block_contents": "Timestamp when the record was first created or modified in the source."}, "doc.workday._fivetran_end": {"name": "_fivetran_end", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_end", "block_contents": "Timestamp marking the end of a record being active."}, "doc.workday._fivetran_active": {"name": "_fivetran_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_active", "block_contents": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE."}, "doc.workday.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.source_relation", "block_contents": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "doc.workday.academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_end_date", "block_contents": "The end date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_start_date", "block_contents": "The start date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year", "block_contents": "The work percentage of the year in the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date", "block_contents": "The end date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date", "block_contents": "The start date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_suffix": {"name": "academic_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_suffix", "block_contents": "The academic suffix, if applicable (e.g., PhD, MD)."}, "doc.workday.academic_tenure_date": {"name": "academic_tenure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_date", "block_contents": "Date when academic tenure is achieved."}, "doc.workday.academic_tenure_eligible": {"name": "academic_tenure_eligible", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_eligible", "block_contents": "Flag indicating whether the position is eligible for academic tenure."}, "doc.workday.active": {"name": "active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active", "block_contents": "Flag indicating the current active status of the worker."}, "doc.workday.active_status_date": {"name": "active_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active_status_date", "block_contents": "Date when the active status was last updated."}, "doc.workday.additional_job_description": {"name": "additional_job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_job_description", "block_contents": "Additional details or information about the job."}, "doc.workday.additional_name_type": {"name": "additional_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_name_type", "block_contents": "Additional type or category for the person name."}, "doc.workday.additional_nationality": {"name": "additional_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_nationality", "block_contents": "Additional nationality associated with the individual."}, "doc.workday.adoption_notification_date": {"name": "adoption_notification_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_notification_date", "block_contents": "The date of adoption notification."}, "doc.workday.adoption_placement_date": {"name": "adoption_placement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_placement_date", "block_contents": "The date of adoption placement."}, "doc.workday.age_of_dependent": {"name": "age_of_dependent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.age_of_dependent", "block_contents": "The age of the dependent associated with the leave status."}, "doc.workday.annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_currency", "block_contents": "Currency used for annual compensation summaries."}, "doc.workday.annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_frequency", "block_contents": "Frequency of currency for annual compensation summaries."}, "doc.workday.annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual compensation summaries."}, "doc.workday.annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.annual_summary_currency": {"name": "annual_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_currency", "block_contents": "Currency used for annual summaries."}, "doc.workday.annual_summary_frequency": {"name": "annual_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_frequency", "block_contents": "Frequency of currency for annual summaries."}, "doc.workday.annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual summaries."}, "doc.workday.annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.associated_worker_id": {"name": "associated_worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.associated_worker_id", "block_contents": "Identifier for the worker associated with the organization role."}, "doc.workday.availability_date": {"name": "availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.availability_date", "block_contents": "Date when the organization becomes available."}, "doc.workday.available_for_hire": {"name": "available_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_hire", "block_contents": "Flag indicating whether the organization is available for hiring."}, "doc.workday.available_for_overlap": {"name": "available_for_overlap", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_overlap", "block_contents": "Flag indicating whether the position is available for overlap with other positions."}, "doc.workday.available_for_recruiting": {"name": "available_for_recruiting", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_recruiting", "block_contents": "Flag indicating whether the position is available for recruiting."}, "doc.workday.benefits_effect": {"name": "benefits_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_effect", "block_contents": "The effect of leave on benefits."}, "doc.workday.benefits_service_date": {"name": "benefits_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_service_date", "block_contents": "Date when the worker's benefits service starts."}, "doc.workday.blood_type": {"name": "blood_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.blood_type", "block_contents": "The blood type of the individual."}, "doc.workday.business_site_summary_display_language": {"name": "business_site_summary_display_language", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_display_language", "block_contents": "The display language of the business site summary."}, "doc.workday.business_site_summary_local": {"name": "business_site_summary_local", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_local", "block_contents": "Local information related to the business site summary."}, "doc.workday.business_site_summary_location": {"name": "business_site_summary_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location", "block_contents": "The location of the business site summary."}, "doc.workday.business_site_summary_location_type": {"name": "business_site_summary_location_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location_type", "block_contents": "The type of location for the business site summary."}, "doc.workday.business_site_summary_name": {"name": "business_site_summary_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_name", "block_contents": "The name associated with the business site summary."}, "doc.workday.business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the business site summary."}, "doc.workday.business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_time_profile", "block_contents": "The time profile associated with the business site summary."}, "doc.workday.business_title": {"name": "business_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_title", "block_contents": "The business title associated with the worker position."}, "doc.workday.caesarean_section_birth": {"name": "caesarean_section_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.caesarean_section_birth", "block_contents": "Indicator for Caesarean section birth."}, "doc.workday.child_birth_date": {"name": "child_birth_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_birth_date", "block_contents": "The date of child birth."}, "doc.workday.child_sdate_of_death": {"name": "child_sdate_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_sdate_of_death", "block_contents": "The start date of child death.>"}, "doc.workday.citizenship_status": {"name": "citizenship_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.citizenship_status", "block_contents": "The citizenship status of the individual."}, "doc.workday.city_of_birth": {"name": "city_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth", "block_contents": "The city of birth of the individual."}, "doc.workday.city_of_birth_code": {"name": "city_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth_code", "block_contents": "The city of birth code of the individual."}, "doc.workday.closed": {"name": "closed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.closed", "block_contents": "Flag indicating whether the position is closed."}, "doc.workday.code": {"name": "code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.code", "block_contents": "Code assigned to the organization for reference and categorization."}, "doc.workday.company_service_date": {"name": "company_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.company_service_date", "block_contents": "Date when the worker's service with the company started."}, "doc.workday.compensation_effective_date": {"name": "compensation_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_effective_date", "block_contents": "Effective date when changes to the worker's compensation take effect."}, "doc.workday.compensation_grade_code": {"name": "compensation_grade_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_code", "block_contents": "Code associated with the compensation grade of the position."}, "doc.workday.compensation_grade_id": {"name": "compensation_grade_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_id", "block_contents": "Identifier for the compensation grade."}, "doc.workday.compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_code", "block_contents": "Code associated with the compensation grade profile of the position."}, "doc.workday.compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_id", "block_contents": "Unique identifier for the compensation grade profile associated with the worker."}, "doc.workday.compensation_package_code": {"name": "compensation_package_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_package_code", "block_contents": "Code associated with the compensation package of the position."}, "doc.workday.compensation_step_code": {"name": "compensation_step_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_step_code", "block_contents": "Code associated with the compensation step of the position."}, "doc.workday.continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_accrual_effect", "block_contents": "The effect of leave on continuous service accrual."}, "doc.workday.continuous_service_date": {"name": "continuous_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_date", "block_contents": "Date when the worker's continuous service with the organization started."}, "doc.workday.contract_assignment_details": {"name": "contract_assignment_details", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_assignment_details", "block_contents": "Details of the worker's contract assignment."}, "doc.workday.contract_currency_code": {"name": "contract_currency_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_currency_code", "block_contents": "Currency code used for the worker's contract."}, "doc.workday.contract_end_date": {"name": "contract_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_end_date", "block_contents": "Date when the worker's contract is scheduled to end."}, "doc.workday.contract_frequency_name": {"name": "contract_frequency_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_frequency_name", "block_contents": "Frequency of payment for the worker's contract."}, "doc.workday.contract_pay_rate": {"name": "contract_pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_pay_rate", "block_contents": "Pay rate associated with the worker's contract."}, "doc.workday.contract_vendor_name": {"name": "contract_vendor_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_vendor_name", "block_contents": "Name of the vendor associated with the worker's contract."}, "doc.workday.country": {"name": "country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country", "block_contents": "The country associated with the person name."}, "doc.workday.country_of_birth": {"name": "country_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country_of_birth", "block_contents": "The country of birth of the individual."}, "doc.workday.critical_job": {"name": "critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.critical_job", "block_contents": "Flag indicating whether the job is critical."}, "doc.workday.date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_baby_arrived_home_from_hospital", "block_contents": "The date when the baby arrived home from the hospital."}, "doc.workday.date_child_entered_country": {"name": "date_child_entered_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_child_entered_country", "block_contents": "The date when the child entered the country."}, "doc.workday.date_entered_workforce": {"name": "date_entered_workforce", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_entered_workforce", "block_contents": "Date when the worker entered the workforce."}, "doc.workday.date_of_birth": {"name": "date_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_birth", "block_contents": "The date of birth of the individual."}, "doc.workday.date_of_death": {"name": "date_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_death", "block_contents": "The date of death of the individual."}, "doc.workday.date_of_recall": {"name": "date_of_recall", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_recall", "block_contents": "The date of recall."}, "doc.workday.days_at_position": {"name": "days_at_position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_at_position", "block_contents": "The number of days the worker has held their most recent position."}, "doc.workday.days_of_employment": {"name": "days_of_employment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_of_employment", "block_contents": "Number of days employed by the worker."}, "doc.workday.days_unemployed": {"name": "days_unemployed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_unemployed", "block_contents": "Number of days the worker has been unemployed."}, "doc.workday.default_weekly_hours": {"name": "default_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.default_weekly_hours", "block_contents": "The default weekly hours associated with the worker position."}, "doc.workday.departure_date": {"name": "departure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.departure_date", "block_contents": "The departure date for the employee."}, "doc.workday.difficulty_to_fill": {"name": "difficulty_to_fill", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill", "block_contents": "Indication of the difficulty level in filling the job."}, "doc.workday.difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill_code", "block_contents": "Code indicating the difficulty level in filling the position."}, "doc.workday.discharge_date": {"name": "discharge_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.discharge_date", "block_contents": "The date on which the individual was discharged from military service."}, "doc.workday.earliest_hire_date": {"name": "earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_hire_date", "block_contents": "Earliest date when the position can be filled."}, "doc.workday.earliest_overlap_date": {"name": "earliest_overlap_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_overlap_date", "block_contents": "Earliest date when the position can overlap with other positions."}, "doc.workday.effective_date": {"name": "effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.effective_date", "block_contents": "Date when the job profile becomes effective."}, "doc.workday.eligible_for_hire": {"name": "eligible_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_hire", "block_contents": "Flag indicating whether the worker is eligible for hire."}, "doc.workday.eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_rehire_on_latest_termination", "block_contents": "Flag indicating whether the worker is eligible for rehire based on the latest termination."}, "doc.workday.email_address": {"name": "email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_address", "block_contents": "The actual email address of the person."}, "doc.workday.email_code": {"name": "email_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_code", "block_contents": "A code or label associated with the type or purpose of the email address."}, "doc.workday.email_comment": {"name": "email_comment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_comment", "block_contents": "Any additional comments or notes related to the email address."}, "doc.workday.employed_five_years": {"name": "employed_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_five_years", "block_contents": "Tracks whether a worker was employed at least five years."}, "doc.workday.employed_one_year": {"name": "employed_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_one_year", "block_contents": "Tracks whether a worker was employed at least one year."}, "doc.workday.employed_ten_years": {"name": "employed_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_ten_years", "block_contents": "Tracks whether a worker was employed at least ten years."}, "doc.workday.employed_thirty_years": {"name": "employed_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_thirty_years", "block_contents": "Tracks whether a worker was employed at least thirty years."}, "doc.workday.employed_twenty_years": {"name": "employed_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_twenty_years", "block_contents": "Tracks whether a worker was employed at least twenty years."}, "doc.workday.employee_compensation_currency": {"name": "employee_compensation_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_currency", "block_contents": "Currency code used for the worker's employee compensation."}, "doc.workday.employee_compensation_frequency": {"name": "employee_compensation_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_frequency", "block_contents": "Frequency of payment for the worker's employee compensation."}, "doc.workday.employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's employee compensation."}, "doc.workday.employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_base_pay", "block_contents": "Total base pay for the worker's employee compensation."}, "doc.workday.employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's employee compensation."}, "doc.workday.employee_type": {"name": "employee_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_type", "block_contents": "The type of employee associated with the worker position."}, "doc.workday.end_date": {"name": "end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_date", "block_contents": "The end date of the worker position."}, "doc.workday.end_employment_date": {"name": "end_employment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_employment_date", "block_contents": "Date when the worker's employment is scheduled to end."}, "doc.workday.estimated_leave_end_date": {"name": "estimated_leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.estimated_leave_end_date", "block_contents": "The estimated end date of the leave."}, "doc.workday.ethnicity_code": {"name": "ethnicity_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_code", "block_contents": "The code representing the ethnicity of the individual."}, "doc.workday.ethnicity_codes": {"name": "ethnicity_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_codes", "block_contents": "String aggregation of all ethnicity codes associated with an individual."}, "doc.workday.ethnicity_id": {"name": "ethnicity_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_id", "block_contents": "The identifier associated with the ethnicity."}, "doc.workday.exclude_from_head_count": {"name": "exclude_from_head_count", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.exclude_from_head_count", "block_contents": "Flag indicating whether the position is excluded from headcount."}, "doc.workday.expected_assignment_end_date": {"name": "expected_assignment_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_assignment_end_date", "block_contents": "The expected end date of the assignment associated with the worker position."}, "doc.workday.expected_date_of_return": {"name": "expected_date_of_return", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_date_of_return", "block_contents": "Expected date of the worker's return."}, "doc.workday.expected_due_date": {"name": "expected_due_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_due_date", "block_contents": "The expected due date."}, "doc.workday.expected_retirement_date": {"name": "expected_retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_retirement_date", "block_contents": "Expected date of the worker's retirement."}, "doc.workday.external_employee": {"name": "external_employee", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_employee", "block_contents": "Flag indicating whether the worker is an external employee."}, "doc.workday.external_url": {"name": "external_url", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_url", "block_contents": "External URL associated with the organization."}, "doc.workday.federal_withholding_fein": {"name": "federal_withholding_fein", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.federal_withholding_fein", "block_contents": "The Federal Employer Identification Number (FEIN) for federal withholding."}, "doc.workday.first_day_of_work": {"name": "first_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_day_of_work", "block_contents": "The date when the worker started their first day of work."}, "doc.workday.first_name": {"name": "first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_name", "block_contents": "The first name of the individual."}, "doc.workday.frequency": {"name": "frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.frequency", "block_contents": "The frequency associated with the worker position."}, "doc.workday.fte_percent": {"name": "fte_percent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.fte_percent", "block_contents": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek"}, "doc.workday.full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_name_singapore_malaysia", "block_contents": "The full name as used in Singapore and Malaysia."}, "doc.workday.full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_time_equivalent_percentage", "block_contents": "The full-time equivalent (FTE) percentage associated with the worker position."}, "doc.workday.gender": {"name": "gender", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.gender", "block_contents": "The gender of the individual."}, "doc.workday.has_international_assignment": {"name": "has_international_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.has_international_assignment", "block_contents": "Flag indicating whether the worker has an international assignment."}, "doc.workday.headcount_restriction_code": {"name": "headcount_restriction_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.headcount_restriction_code", "block_contents": "The code associated with headcount restriction for the worker position."}, "doc.workday.hereditary_suffix": {"name": "hereditary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hereditary_suffix", "block_contents": "The hereditary suffix, if applicable (e.g., Jr, Sr)."}, "doc.workday.hire_date": {"name": "hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_date", "block_contents": "The date when the worker was hired."}, "doc.workday.hire_reason": {"name": "hire_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_reason", "block_contents": "The reason for hiring the worker."}, "doc.workday.hire_rescinded": {"name": "hire_rescinded", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_rescinded", "block_contents": "Flag indicating whether the worker's hire was rescinded."}, "doc.workday.hiring_freeze": {"name": "hiring_freeze", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hiring_freeze", "block_contents": "Flag indicating whether the organization is under a hiring freeze."}, "doc.workday.hispanic_or_latino": {"name": "hispanic_or_latino", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hispanic_or_latino", "block_contents": "lag indicating whether the individual is Hispanic or Latino."}, "doc.workday.home_country": {"name": "home_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.home_country", "block_contents": "The home country of the worker."}, "doc.workday.honorary_suffix": {"name": "honorary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.honorary_suffix", "block_contents": "The honorary suffix, if applicable."}, "doc.workday.host_country": {"name": "host_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.host_country", "block_contents": "The host country associated with the worker."}, "doc.workday.hourly_frequency_currency": {"name": "hourly_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_currency", "block_contents": "Currency code used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_frequency", "block_contents": "Frequency of payment for the worker's hourly compensation."}, "doc.workday.hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_base_pay", "block_contents": "Total base pay for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's hourly compensation."}, "doc.workday.hukou_locality": {"name": "hukou_locality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_locality", "block_contents": "The locality associated with the Hukou."}, "doc.workday.hukou_postal_code": {"name": "hukou_postal_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_postal_code", "block_contents": "The postal code associated with the Hukou."}, "doc.workday.hukou_region": {"name": "hukou_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_region", "block_contents": "The region associated with the Hukou."}, "doc.workday.hukou_subregion": {"name": "hukou_subregion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_subregion", "block_contents": "The subregion associated with the Hukou."}, "doc.workday.hukou_type": {"name": "hukou_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_type", "block_contents": "The type of Hukou."}, "doc.workday.id": {"name": "id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.id", "block_contents": "Unique identifier."}, "doc.workday.inactive": {"name": "inactive", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive", "block_contents": "Flag indicating whether this is inactive."}, "doc.workday.inactive_date": {"name": "inactive_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive_date", "block_contents": "Date when the organization becomes inactive"}, "doc.workday.include_job_code_in_name": {"name": "include_job_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_job_code_in_name", "block_contents": "Flag indicating whether to include the job code in the job profile name."}, "doc.workday.include_manager_in_name": {"name": "include_manager_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_manager_in_name", "block_contents": "Flag indicating whether to include the manager in the organization name."}, "doc.workday.include_organization_code_in_name": {"name": "include_organization_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_organization_code_in_name", "block_contents": "Flag indicating whether to include the organization code in the name."}, "doc.workday.index": {"name": "index", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.index", "block_contents": "An index for a particular identifier."}, "doc.workday.international_assignment_type": {"name": "international_assignment_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.international_assignment_type", "block_contents": "The type of international assignment associated with the worker position."}, "doc.workday.is_critical_job": {"name": "is_critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_critical_job", "block_contents": "Flag indicating whether the position is considered critical based on the job profile."}, "doc.workday.is_current_employee_five_years": {"name": "is_current_employee_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_five_years", "block_contents": "Tracks whether a worker is active for more than five years."}, "doc.workday.is_current_employee_one_year": {"name": "is_current_employee_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_one_year", "block_contents": "Tracks whether a worker is active for more than a year."}, "doc.workday.is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_ten_years", "block_contents": "Tracks whether a worker is active for more than ten years."}, "doc.workday.is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_thirty_years", "block_contents": "Tracks whether a worker is active for more than thirty years."}, "doc.workday.is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_twenty_years", "block_contents": "Tracks whether a worker is active for more than twenty years."}, "doc.workday.is_employed": {"name": "is_employed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_employed", "block_contents": "Is the worker currently employed?"}, "doc.workday.is_military_service": {"name": "is_military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_military_service", "block_contents": "Whether the employee served in the military."}, "doc.workday.is_primary_job": {"name": "is_primary_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_primary_job", "block_contents": "Flag indicating whether the job is the primary job for the worker."}, "doc.workday.is_regrettable_termination": {"name": "is_regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_regrettable_termination", "block_contents": "Has the worker been regrettably terminated?"}, "doc.workday.is_terminated": {"name": "is_terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_terminated", "block_contents": "Has the worker been terminated?"}, "doc.workday.is_user_active": {"name": "is_user_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_user_active", "block_contents": "Is the user currently active."}, "doc.workday.job_category_code": {"name": "job_category_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_code", "block_contents": "Code indicating the category of the job profile associated with the position."}, "doc.workday.job_category_id": {"name": "job_category_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_id", "block_contents": "Identifier for the job category."}, "doc.workday.job_description": {"name": "job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description", "block_contents": "Detailed description of the job associated with the position."}, "doc.workday.job_description_summary": {"name": "job_description_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description_summary", "block_contents": "Summary or overview of the job description for the position."}, "doc.workday.job_exempt": {"name": "job_exempt", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_exempt", "block_contents": "Indicates whether the job is exempt from certain regulations."}, "doc.workday.job_family": {"name": "job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family", "block_contents": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles."}, "doc.workday.job_family_code": {"name": "job_family_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_code", "block_contents": "Code assigned to the job family"}, "doc.workday.job_family_codes": {"name": "job_family_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_codes", "block_contents": "String array of all job family codes assigned to a job profile."}, "doc.workday.job_family_group": {"name": "job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group", "block_contents": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics."}, "doc.workday.job_family_group_code": {"name": "job_family_group_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_code", "block_contents": "Code assigned to the job family group for reference and categorization."}, "doc.workday.job_family_group_codes": {"name": "job_family_group_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_codes", "block_contents": "String array of all job family group codes assigned to a job profile."}, "doc.workday.job_family_group_id": {"name": "job_family_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_id", "block_contents": "Identifier for the job family group."}, "doc.workday.job_family_group_summary": {"name": "job_family_group_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summary", "block_contents": "The summary of the job family group."}, "doc.workday.job_family_group_summaries": {"name": "job_family_group_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summaries", "block_contents": "String array of all job family group summaries assigned to a job profile."}, "doc.workday.job_family_id": {"name": "job_family_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_id", "block_contents": "Identifier for the job family."}, "doc.workday.job_family_job_family_group": {"name": "job_family_job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_family_group", "block_contents": "Represents the relationship between job families and job family groups in the Workday dataset."}, "doc.workday.job_family_job_profile": {"name": "job_family_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_profile", "block_contents": "Represents the relationship between job families and job profiles in the Workday dataset."}, "doc.workday.job_family_summary": {"name": "job_family_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summary", "block_contents": "The summary of the job family."}, "doc.workday.job_family_summaries": {"name": "job_family_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summaries", "block_contents": "String array of all job family summaries assigned to a job profile."}, "doc.workday.job_group_id": {"name": "job_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_group_id", "block_contents": "The unique identifier for the job group."}, "doc.workday.job_posting_title": {"name": "job_posting_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_posting_title", "block_contents": "Title used for job postings associated with the position."}, "doc.workday.job_private_title": {"name": "job_private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_private_title", "block_contents": "The private title associated with the job."}, "doc.workday.job_profile": {"name": "job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile", "block_contents": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes."}, "doc.workday.job_profile_code": {"name": "job_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_code", "block_contents": "Code assigned to the job profile."}, "doc.workday.job_profile_description": {"name": "job_profile_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_description", "block_contents": "Brief description of the job profile."}, "doc.workday.job_profile_id": {"name": "job_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_id", "block_contents": "Identifier for the job profile."}, "doc.workday.job_summary": {"name": "job_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_summary", "block_contents": "The summary of the job."}, "doc.workday.job_title": {"name": "job_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_title", "block_contents": "The title of the job for the worker."}, "doc.workday.last_date_for_which_paid": {"name": "last_date_for_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_date_for_which_paid", "block_contents": "The last date being paid before leave."}, "doc.workday.last_datefor_which_paid": {"name": "last_datefor_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_datefor_which_paid", "block_contents": "Last date for which the worker was paid."}, "doc.workday.last_medical_exam_date": {"name": "last_medical_exam_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_date", "block_contents": "The date of the last medical exam."}, "doc.workday.last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_valid_to", "block_contents": "The validity date of the last medical exam."}, "doc.workday.last_name": {"name": "last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_name", "block_contents": "The last name or surname of the individual."}, "doc.workday.last_updated_date_time": {"name": "last_updated_date_time", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_updated_date_time", "block_contents": "Date and time when the organization record was last updated."}, "doc.workday.leave_description": {"name": "leave_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_description", "block_contents": "Description of the type of leave"}, "doc.workday.leave_end_date": {"name": "leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_end_date", "block_contents": "The end date of the leave."}, "doc.workday.leave_entitlement_override": {"name": "leave_entitlement_override", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_entitlement_override", "block_contents": "Override for leave entitlement."}, "doc.workday.leave_last_day_of_work": {"name": "leave_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_last_day_of_work", "block_contents": "The last day of work associated with the leave status."}, "doc.workday.leave_of_absence_type": {"name": "leave_of_absence_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_of_absence_type", "block_contents": "The type of leave of absence."}, "doc.workday.leave_percentage": {"name": "leave_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_percentage", "block_contents": "The percentage of leave."}, "doc.workday.leave_request_event_id": {"name": "leave_request_event_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_request_event_id", "block_contents": "The unique identifier for the leave request event."}, "doc.workday.leave_return_event": {"name": "leave_return_event", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_return_event", "block_contents": "The event associated with the return from leave."}, "doc.workday.leave_start_date": {"name": "leave_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_start_date", "block_contents": "The start date of the leave."}, "doc.workday.leave_status_code": {"name": "leave_status_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_status_code", "block_contents": "The code indicating the status of the leave."}, "doc.workday.leave_type_reason": {"name": "leave_type_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_type_reason", "block_contents": "The reason for the leave type."}, "doc.workday.level": {"name": "level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.level", "block_contents": "Level associated with the job profile."}, "doc.workday.local_first_name": {"name": "local_first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name", "block_contents": "The local or native first name of the individual."}, "doc.workday.local_first_name_2": {"name": "local_first_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name_2", "block_contents": "Additional local or native first name, if applicable."}, "doc.workday.local_hukou": {"name": "local_hukou", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_hukou", "block_contents": "Flag indicating whether the Hukou is local."}, "doc.workday.local_last_name": {"name": "local_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name", "block_contents": "The local or native last name of the individual."}, "doc.workday.local_last_name_2": {"name": "local_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name_2", "block_contents": "Additional local or native last name, if applicable."}, "doc.workday.local_middle_name": {"name": "local_middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name", "block_contents": "The local or native middle name of the individual."}, "doc.workday.local_middle_name_2": {"name": "local_middle_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name_2", "block_contents": "Additional local or native middle name, if applicable."}, "doc.workday.local_secondary_last_name": {"name": "local_secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name", "block_contents": "Secondary local or native last name or surname, if applicable."}, "doc.workday.local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name_2", "block_contents": "Additional secondary local or native last name, if applicable."}, "doc.workday.local_termination_reason": {"name": "local_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_termination_reason", "block_contents": "The reason for local termination of the worker."}, "doc.workday.location": {"name": "location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location", "block_contents": "Location associated with the organization."}, "doc.workday.location_during_leave": {"name": "location_during_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location_during_leave", "block_contents": "The location during the leave."}, "doc.workday.management_level": {"name": "management_level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level", "block_contents": "Management level associated with the job profile."}, "doc.workday.management_level_code": {"name": "management_level_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level_code", "block_contents": "Code indicating the management level associated with the job profile."}, "doc.workday.manager_id": {"name": "manager_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.manager_id", "block_contents": "Identifier for the manager associated with the organization."}, "doc.workday.marital_status": {"name": "marital_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status", "block_contents": "The marital status of the individual."}, "doc.workday.marital_status_date": {"name": "marital_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status_date", "block_contents": "The date of the marital status."}, "doc.workday.medical_exam_notes": {"name": "medical_exam_notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.medical_exam_notes", "block_contents": "Notes from the medical exam."}, "doc.workday.middle_name": {"name": "middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.middle_name", "block_contents": "The middle name of the individual."}, "doc.workday.military_service": {"name": "military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_service", "block_contents": "Represents information about an individual's military service in the Workday system."}, "doc.workday.military_status": {"name": "military_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_status", "block_contents": "The military status of the worker."}, "doc.workday.months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.months_continuous_prior_employment", "block_contents": "Number of months of continuous prior employment."}, "doc.workday.most_recent_level": {"name": "most_recent_level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_level", "block_contents": "The most recent level of the worker."}, "doc.workday.most_recent_location": {"name": "most_recent_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_location", "block_contents": "The most recent location of the worker."}, "doc.workday.most_recent_position_effective_date": {"name": "most_recent_position_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_position_effective_date", "block_contents": "The most recent position effective date for the employee."}, "doc.workday.most_recent_position_end_date": {"name": "most_recent_position_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_position_end_date", "block_contents": "The most recent position end date for the employee."}, "doc.workday.most_recent_position_start_date": {"name": "most_recent_position_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_position_start_date", "block_contents": "The most recent position start date for the employee."}, "doc.workday.most_recent_position_type": {"name": "most_recent_position_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_position_type", "block_contents": "The most recent position type of the worker."}, "doc.workday.multiple_child_indicator": {"name": "multiple_child_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.multiple_child_indicator", "block_contents": "Indicator for multiple children."}, "doc.workday.native_region": {"name": "native_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region", "block_contents": "The native region of the individual."}, "doc.workday.native_region_code": {"name": "native_region_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region_code", "block_contents": "The code of the native region."}, "doc.workday.not_returning": {"name": "not_returning", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.not_returning", "block_contents": "Flag indicating whether the worker is not returning."}, "doc.workday.notes": {"name": "notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.notes", "block_contents": "Additional notes or comments related to the military service record."}, "doc.workday.number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_babies_adopted_children", "block_contents": "The number of babies adopted by the worker."}, "doc.workday.number_of_child_dependents": {"name": "number_of_child_dependents", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_child_dependents", "block_contents": "The number of child dependents."}, "doc.workday.number_of_previous_births": {"name": "number_of_previous_births", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_births", "block_contents": "The number of previous births."}, "doc.workday.number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_maternity_leaves", "block_contents": "The number of previous maternity leaves."}, "doc.workday.on_leave": {"name": "on_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.on_leave", "block_contents": "Indicator for whether the worker is on leave."}, "doc.workday.organization": {"name": "organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization", "block_contents": "Identifier for the organization."}, "doc.workday.organization_code": {"name": "organization_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_code", "block_contents": "Code associated with the organization."}, "doc.workday.organization_description": {"name": "organization_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_description", "block_contents": "The description of the organization."}, "doc.workday.organization_id": {"name": "organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_id", "block_contents": "Identifier for the organization."}, "doc.workday.organization_job_family": {"name": "organization_job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_job_family", "block_contents": "Captures the associations between different organizational entities and the job families they are linked to."}, "doc.workday.organization_location": {"name": "organization_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_location", "block_contents": "The location of the organization."}, "doc.workday.organization_name": {"name": "organization_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_name", "block_contents": "Name of the organization."}, "doc.workday.organization_owner_id": {"name": "organization_owner_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_owner_id", "block_contents": "Identifier for the owner of the organization."}, "doc.workday.organization_role": {"name": "organization_role", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role", "block_contents": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities."}, "doc.workday.organization_role_code": {"name": "organization_role_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_code", "block_contents": "Code assigned to the organization role for reference and categorization."}, "doc.workday.organization_role_id": {"name": "organization_role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_id", "block_contents": "The role id associated with the organization."}, "doc.workday.organization_role_worker": {"name": "organization_role_worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_worker", "block_contents": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill."}, "doc.workday.organization_sub_type": {"name": "organization_sub_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_sub_type", "block_contents": "Subtype or classification of the organization."}, "doc.workday.organization_type": {"name": "organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_type", "block_contents": "Type or category of the organization."}, "doc.workday.organization_worker_code": {"name": "organization_worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_worker_code", "block_contents": "The worker code associated with the organization."}, "doc.workday.original_hire_date": {"name": "original_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.original_hire_date", "block_contents": "The original date when the worker was hired."}, "doc.workday.paid_fte": {"name": "paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_fte", "block_contents": "The paid full-time equivalent (FTE) associated with the worker position."}, "doc.workday.paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_time_off_accrual_effect", "block_contents": "The effect of leave on paid time off accrual."}, "doc.workday.pay_group": {"name": "pay_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group", "block_contents": "The pay group associated with the worker position."}, "doc.workday.pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_currency", "block_contents": "Currency code used for the worker's pay group frequency."}, "doc.workday.pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_frequency", "block_contents": "Frequency of payment for the worker's pay group."}, "doc.workday.pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's pay group."}, "doc.workday.pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_base_pay", "block_contents": "Total base pay for the worker's pay group."}, "doc.workday.pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's pay group."}, "doc.workday.pay_rate": {"name": "pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate", "block_contents": "The pay rate associated with the worker position."}, "doc.workday.pay_rate_type": {"name": "pay_rate_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate_type", "block_contents": "The type of pay rate associated with the worker position."}, "doc.workday.pay_through_date": {"name": "pay_through_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_through_date", "block_contents": "The date through which the worker is paid."}, "doc.workday.payroll_effect": {"name": "payroll_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_effect", "block_contents": "The effect of leave on payroll."}, "doc.workday.payroll_entity": {"name": "payroll_entity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_entity", "block_contents": "The payroll entity associated with the worker position."}, "doc.workday.payroll_file_number": {"name": "payroll_file_number", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_file_number", "block_contents": "The file number associated with payroll for the worker position."}, "doc.workday.person_contact_email_address": {"name": "person_contact_email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address", "block_contents": "Represents the email addresses associated with a person in the Workday system."}, "doc.workday.person_contact_email_address_id": {"name": "person_contact_email_address_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address_id", "block_contents": "The identifier of the personal contact email address."}, "doc.workday.person_name": {"name": "person_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name", "block_contents": "Represents the name information for an individual in the Workday system."}, "doc.workday.person_name_type": {"name": "person_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name_type", "block_contents": "The type or category of the person name (e.g., legal name, preferred name)."}, "doc.workday.personal_info_system_id": {"name": "personal_info_system_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_info_system_id", "block_contents": "The system ID associated with the personal information of the individual."}, "doc.workday.personal_information": {"name": "personal_information", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information", "block_contents": "The personal information associated with each worker."}, "doc.workday.personal_information_ethnicity": {"name": "personal_information_ethnicity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_ethnicity", "block_contents": "Represents information about the ethnicity of an individual in the Workday system."}, "doc.workday.personal_information_id": {"name": "personal_information_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_id", "block_contents": "The identifier for each personal information record."}, "doc.workday.personal_information_type": {"name": "personal_information_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_type", "block_contents": "The type of personal information record."}, "doc.workday.personnel_file_agency": {"name": "personnel_file_agency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personnel_file_agency", "block_contents": "The agency associated with the personnel file."}, "doc.workday.political_affiliation": {"name": "political_affiliation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.political_affiliation", "block_contents": "The political affiliation of the individual."}, "doc.workday.position": {"name": "position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position", "block_contents": "Resource for understanding the details and attributes associated with each position."}, "doc.workday.position_code": {"name": "position_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_code", "block_contents": "Code associated with the position for reference and categorization."}, "doc.workday.position_days": {"name": "position_days", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_days", "block_contents": "The days the worker held positions at the company."}, "doc.workday.position_id": {"name": "position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_id", "block_contents": "Identifier for the specific position."}, "doc.workday.position_job_profile": {"name": "position_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile", "block_contents": "Captures the associations between specific positions and the job profiles they are linked to."}, "doc.workday.position_job_profile_name": {"name": "position_job_profile_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile_name", "block_contents": "Name associated with the job profile linked to the position."}, "doc.workday.position_organization": {"name": "position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization", "block_contents": "Captures the associations between specific positions and the organizations to which they belong."}, "doc.workday.position_organization_type": {"name": "position_organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization_type", "block_contents": "Type or category of the position within the organization."}, "doc.workday.position_time_type_code": {"name": "position_time_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_time_type_code", "block_contents": "Code indicating the time type associated with the position."}, "doc.workday.prefix_salutation": {"name": "prefix_salutation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_salutation", "block_contents": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.)."}, "doc.workday.prefix_title": {"name": "prefix_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title", "block_contents": "The prefix or title associated with the name (e.g., Professor)."}, "doc.workday.prefix_title_code": {"name": "prefix_title_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title_code", "block_contents": "The code associated with the prefix or title."}, "doc.workday.primary_compensation_basis": {"name": "primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis", "block_contents": "Primary basis of compensation for the position."}, "doc.workday.primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_amount_change", "block_contents": "Change in the amount of the primary compensation basis."}, "doc.workday.primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_percent_change", "block_contents": "Change in the percentage of the primary compensation basis."}, "doc.workday.primary_nationality": {"name": "primary_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_nationality", "block_contents": "The primary nationality of the individual."}, "doc.workday.primary_termination_category": {"name": "primary_termination_category", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_category", "block_contents": "The primary termination category for the worker."}, "doc.workday.primary_termination_reason": {"name": "primary_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_reason", "block_contents": "The primary termination reason for the worker."}, "doc.workday.private_title": {"name": "private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.private_title", "block_contents": "Private title associated with the job profile."}, "doc.workday.probation_end_date": {"name": "probation_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_end_date", "block_contents": "The date when the worker's probation ends."}, "doc.workday.probation_start_date": {"name": "probation_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_start_date", "block_contents": "The date when the worker's probation starts."}, "doc.workday.professional_suffix": {"name": "professional_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.professional_suffix", "block_contents": "The professional suffix, if applicable (e.g., Esq., CPA)."}, "doc.workday.public_job": {"name": "public_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.public_job", "block_contents": "Flag indicating whether the job is public."}, "doc.workday.rank": {"name": "rank", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rank", "block_contents": "The rank achieved by the individual during military service."}, "doc.workday.reason_reference_id": {"name": "reason_reference_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.reason_reference_id", "block_contents": "The reference ID for the termination reason."}, "doc.workday.referral_payment_plan": {"name": "referral_payment_plan", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.referral_payment_plan", "block_contents": "Referral payment plan associated with the job profile."}, "doc.workday.region_of_birth": {"name": "region_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth", "block_contents": "The region of birth of the individual."}, "doc.workday.region_of_birth_code": {"name": "region_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth_code", "block_contents": "The code of the region of birth."}, "doc.workday.regrettable_termination": {"name": "regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regrettable_termination", "block_contents": "Flag indicating whether the worker's termination is regrettable."}, "doc.workday.regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regular_paid_equivalent_hours", "block_contents": "The regular paid equivalent hours associated with the worker position."}, "doc.workday.rehire": {"name": "rehire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rehire", "block_contents": "Flag indicating whether the worker is eligible for rehire."}, "doc.workday.religion": {"name": "religion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religion", "block_contents": "The religion of the individual."}, "doc.workday.religious_suffix": {"name": "religious_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religious_suffix", "block_contents": "The religious suffix, if applicable."}, "doc.workday.resignation_date": {"name": "resignation_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.resignation_date", "block_contents": "The date when the worker resigned."}, "doc.workday.retired": {"name": "retired", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retired", "block_contents": "Flag indicating whether the worker is retired."}, "doc.workday.retirement_date": {"name": "retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_date", "block_contents": "The date when the worker retired."}, "doc.workday.retirement_eligibility_date": {"name": "retirement_eligibility_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_eligibility_date", "block_contents": "The date when the worker becomes eligible for retirement."}, "doc.workday.return_unknown": {"name": "return_unknown", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.return_unknown", "block_contents": "Flag indicating whether the worker's return status is unknown."}, "doc.workday.role_id": {"name": "role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.role_id", "block_contents": "Identifier for the specific role."}, "doc.workday.royal_suffix": {"name": "royal_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.royal_suffix", "block_contents": "The royal suffix, if applicable."}, "doc.workday.scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the worker position."}, "doc.workday.secondary_last_name": {"name": "secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.secondary_last_name", "block_contents": "Secondary last name or surname, if applicable."}, "doc.workday.seniority_date": {"name": "seniority_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.seniority_date", "block_contents": "The date when the worker's seniority is recorded."}, "doc.workday.service": {"name": "service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service", "block_contents": "The specific military service branch in which the individual served."}, "doc.workday.service_type": {"name": "service_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service_type", "block_contents": "The type or category of military service (e.g., active duty, reserve, etc.)."}, "doc.workday.severance_date": {"name": "severance_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.severance_date", "block_contents": "The date when the worker's severance is recorded."}, "doc.workday.single_parent_indicator": {"name": "single_parent_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.single_parent_indicator", "block_contents": "Indicator for a single parent."}, "doc.workday.social_benefit": {"name": "social_benefit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_benefit", "block_contents": "The social benefit associated with the individual."}, "doc.workday.social_security_disability_code": {"name": "social_security_disability_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_security_disability_code", "block_contents": "The code indicating social security disability."}, "doc.workday.social_suffix": {"name": "social_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix", "block_contents": "The social suffix, if applicable."}, "doc.workday.social_suffix_id": {"name": "social_suffix_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix_id", "block_contents": "The identifier for the social suffix."}, "doc.workday.specify_paid_fte": {"name": "specify_paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_paid_fte", "block_contents": "Flag indicating whether to specify paid FTE for the worker position."}, "doc.workday.specify_working_fte": {"name": "specify_working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_working_fte", "block_contents": "Flag indicating whether to specify working FTE for the worker position."}, "doc.workday.staffing_model": {"name": "staffing_model", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.staffing_model", "block_contents": "Staffing model associated with the organization"}, "doc.workday.start_date": {"name": "start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_date", "block_contents": "The start date of the worker position."}, "doc.workday.start_international_assignment_reason": {"name": "start_international_assignment_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_international_assignment_reason", "block_contents": "The reason for starting an international assignment associated with the worker position."}, "doc.workday.status": {"name": "status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status", "block_contents": "The status of the individual's military service (e.g., active, inactive, retired)."}, "doc.workday.status_begin_date": {"name": "status_begin_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status_begin_date", "block_contents": "The date on which the current military service status began."}, "doc.workday.stock_vesting_effect": {"name": "stock_vesting_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stock_vesting_effect", "block_contents": "The effect of leave on stock vesting."}, "doc.workday.stop_payment_date": {"name": "stop_payment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stop_payment_date", "block_contents": "The date when stop payment occurs."}, "doc.workday.summary": {"name": "summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.summary", "block_contents": "Summary or overview of the job profile."}, "doc.workday.superior_organization_id": {"name": "superior_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.superior_organization_id", "block_contents": "Identifier for the superior organization, if applicable."}, "doc.workday.supervisory_organization_id": {"name": "supervisory_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_organization_id", "block_contents": "Identifier for the supervisory organization associated with the position."}, "doc.workday.supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_availability_date", "block_contents": "Availability date for supervisory positions within the organization."}, "doc.workday.supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_earliest_hire_date", "block_contents": "Earliest hire date for supervisory positions within the organization."}, "doc.workday.supervisory_position_time_type": {"name": "supervisory_position_time_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_time_type", "block_contents": "Time type associated with supervisory positions."}, "doc.workday.supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_worker_type", "block_contents": "Worker type associated with supervisory positions."}, "doc.workday.terminated": {"name": "terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.terminated", "block_contents": "Flag indicating whether the worker is terminated."}, "doc.workday.termination_date": {"name": "termination_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_date", "block_contents": "The date when the worker is terminated."}, "doc.workday.termination_involuntary": {"name": "termination_involuntary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_involuntary", "block_contents": "Flag indicating whether the termination is involuntary."}, "doc.workday.termination_last_day_of_work": {"name": "termination_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_last_day_of_work", "block_contents": "The last day of work for the worker during termination."}, "doc.workday.tertiary_last_name": {"name": "tertiary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tertiary_last_name", "block_contents": "Tertiary last name or surname, if applicable."}, "doc.workday.time_off_service_date": {"name": "time_off_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.time_off_service_date", "block_contents": "The date when the worker's time-off service starts."}, "doc.workday.title": {"name": "title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.title", "block_contents": "Title associated with the job profile."}, "doc.workday.tobacco_use": {"name": "tobacco_use", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tobacco_use", "block_contents": "Flag indicating whether the individual uses tobacco."}, "doc.workday.top_level_organization_id": {"name": "top_level_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.top_level_organization_id", "block_contents": "Identifier for the top-level organization, if applicable."}, "doc.workday.union_code": {"name": "union_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_code", "block_contents": "Code associated with the union related to the job profile."}, "doc.workday.union_membership_requirement": {"name": "union_membership_requirement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_membership_requirement", "block_contents": "Flag indicating whether union membership is a requirement for the job profile."}, "doc.workday.universal_id": {"name": "universal_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.universal_id", "block_contents": "The universal ID associated with the worker."}, "doc.workday.user_id": {"name": "user_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.user_id", "block_contents": "The identifier for the user associated with the worker."}, "doc.workday.vesting_date": {"name": "vesting_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.vesting_date", "block_contents": "The date when the worker's vesting starts."}, "doc.workday.visibility": {"name": "visibility", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.visibility", "block_contents": "Visibility level of the organization."}, "doc.workday.week_of_confinement": {"name": "week_of_confinement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.week_of_confinement", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_hours_profile": {"name": "work_hours_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_hours_profile", "block_contents": "The work hours profile associated with the worker position."}, "doc.workday.work_related": {"name": "work_related", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_related", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_shift": {"name": "work_shift", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift", "block_contents": "The work shift associated with the worker position."}, "doc.workday.work_shift_required": {"name": "work_shift_required", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift_required", "block_contents": "Flag indicating whether a work shift is required."}, "doc.workday.work_space": {"name": "work_space", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_space", "block_contents": "The work space associated with the worker position."}, "doc.workday.work_study_award_source_code": {"name": "work_study_award_source_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_award_source_code", "block_contents": "Code associated with the source of work study awards."}, "doc.workday.work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_requirement_option_code", "block_contents": "Code associated with work study requirement options."}, "doc.workday.workday__employee_overview": {"name": "workday__employee_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__employee_overview", "block_contents": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees."}, "doc.workday.workday__job_overview": {"name": "workday__job_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__job_overview", "block_contents": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings."}, "doc.workday.workday__role_overview": {"name": "workday__role_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__role_overview", "block_contents": "Each record represents a role in an organization, enhanced with additional organizational details."}, "doc.workday.workday__organization_overview": {"name": "workday__organization_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__organization_overview", "block_contents": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures."}, "doc.workday.workday__position_overview": {"name": "workday__position_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__position_overview", "block_contents": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts."}, "doc.workday.worker": {"name": "worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker", "block_contents": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker."}, "doc.workday.worker_code": {"name": "worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_code", "block_contents": "The code associated with the worker."}, "doc.workday.worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_for_filled_position_id", "block_contents": "Identifier for the worker filling the position, if applicable."}, "doc.workday.worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_hours_profile_classification", "block_contents": "The classification of worker hours profile associated with the worker position."}, "doc.workday.worker_id": {"name": "worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_id", "block_contents": "Unique identifier for the worker."}, "doc.workday.worker_leave_status": {"name": "worker_leave_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_leave_status", "block_contents": "Represents the leave status of workers in the Workday system."}, "doc.workday.worker_levels": {"name": "worker_levels", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_levels", "block_contents": "The number of levels the worker has worked at."}, "doc.workday.worker_position": {"name": "worker_position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position", "block_contents": "Represents the positions held by workers in the Workday system"}, "doc.workday.worker_position_organization": {"name": "worker_position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_organization", "block_contents": "Ties together workers to the positions and organizations they hold in the Workday system."}, "doc.workday.worker_position_id": {"name": "worker_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_id", "block_contents": "Identifier for the worker associated with the position."}, "doc.workday.worker_positions": {"name": "worker_positions", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_positions", "block_contents": "The number of positions the worker has held"}, "doc.workday.worker_type_code": {"name": "worker_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_type_code", "block_contents": "Code indicating the type of worker associated with the position."}, "doc.workday.working_fte": {"name": "working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_fte", "block_contents": "The working full-time equivalent (FTE) associated with the worker position."}, "doc.workday.working_time_frequency": {"name": "working_time_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_frequency", "block_contents": "The frequency of working time associated with the worker position."}, "doc.workday.working_time_unit": {"name": "working_time_unit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_unit", "block_contents": "The unit of working time associated with the worker position."}, "doc.workday.working_time_value": {"name": "working_time_value", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_value", "block_contents": "The value of working time associated with the worker position."}, "doc.workday.date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_pay_group_assignment", "block_contents": "Date a group's pay is assigned to be processed."}, "doc.workday.primary_business_site": {"name": "primary_business_site", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_business_site", "block_contents": "Primary location a worker's business is situated."}, "doc.workday.used_in_change_organization_assignments": {"name": "used_in_change_organization_assignments", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.used_in_change_organization_assignments", "block_contents": "If a worker has opted to change these organization assignments."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {}, "parent_map": {"model.my_new_project.my_first_dbt_model": [], "model.my_new_project.my_second_dbt_model": ["model.my_new_project.my_first_dbt_model"], "model.workday.workday__employee_overview": ["model.workday.int_workday__personal_details", "model.workday.int_workday__worker_details", "model.workday.int_workday__worker_position_enriched"], "model.workday.workday__job_overview": ["model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_group", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_profile"], "model.workday.workday__position_overview": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"], "model.workday.workday__organization_overview": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"], "model.workday.stg_workday__position": ["model.workday.stg_workday__position_base"], "model.workday.stg_workday__job_family_group": ["model.workday.stg_workday__job_family_group_base"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "model.workday.stg_workday__organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "model.workday.stg_workday__organization_role": ["model.workday.stg_workday__organization_role_base"], "model.workday.stg_workday__worker_position": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "model.workday.stg_workday__position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "model.workday.stg_workday__worker_position_organization": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.stg_workday__job_profile": ["model.workday.stg_workday__job_profile_base"], "model.workday.stg_workday__position_organization": ["model.workday.stg_workday__position_organization_base"], "model.workday.stg_workday__worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "model.workday.stg_workday__person_name": ["model.workday.stg_workday__person_name_base"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "model.workday.stg_workday__organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "model.workday.stg_workday__job_family": ["model.workday.stg_workday__job_family_base"], "model.workday.stg_workday__military_service": ["model.workday.stg_workday__military_service_base"], "model.workday.stg_workday__personal_information": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "model.workday.stg_workday__worker": ["model.workday.stg_workday__worker_base"], "model.workday.stg_workday__organization": ["model.workday.stg_workday__organization_base"], "model.workday.stg_workday__job_family_job_family_group_base": ["source.workday.workday.job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["source.workday.workday.personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["source.workday.workday.job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["source.workday.workday.worker_position_organization_history"], "model.workday.stg_workday__position_base": ["source.workday.workday.position"], "model.workday.stg_workday__person_contact_email_address_base": ["source.workday.workday.person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["source.workday.workday.organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["source.workday.workday.job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["source.workday.workday.position_organization"], "model.workday.stg_workday__organization_role_base": ["source.workday.workday.organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["source.workday.workday.worker_leave_status"], "model.workday.stg_workday__job_family_base": ["source.workday.workday.job_family"], "model.workday.stg_workday__job_profile_base": ["source.workday.workday.job_profile"], "model.workday.stg_workday__organization_base": ["source.workday.workday.organization"], "model.workday.stg_workday__organization_role_worker_base": ["source.workday.workday.organization_role_worker"], "model.workday.stg_workday__worker_base": ["source.workday.workday.worker_history"], "model.workday.stg_workday__position_job_profile_base": ["source.workday.workday.position_job_profile"], "model.workday.stg_workday__worker_position_base": ["source.workday.workday.worker_position_history"], "model.workday.stg_workday__person_name_base": ["source.workday.workday.person_name"], "model.workday.stg_workday__military_service_base": ["source.workday.workday.military_service"], "model.workday.stg_workday__personal_information_base": ["source.workday.workday.personal_information_history"], "model.workday.int_workday__worker_position_enriched": ["model.workday.stg_workday__worker_position"], "model.workday.int_workday__personal_details": ["model.workday.stg_workday__military_service", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__person_name", "model.workday.stg_workday__personal_information", "model.workday.stg_workday__personal_information_ethnicity"], "model.workday.int_workday__worker_details": ["model.workday.stg_workday__worker"], "test.my_new_project.unique_my_first_dbt_model_id.16e066b321": ["model.my_new_project.my_first_dbt_model"], "test.my_new_project.not_null_my_first_dbt_model_id.5fb22c2710": ["model.my_new_project.my_first_dbt_model"], "test.my_new_project.unique_my_second_dbt_model_id.57a0f8c493": ["model.my_new_project.my_second_dbt_model"], "test.my_new_project.not_null_my_second_dbt_model_id.151b76d778": ["model.my_new_project.my_second_dbt_model"], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": ["model.workday.workday__employee_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id.fc3f0049e6": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": ["model.workday.workday__job_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": ["model.workday.workday__job_overview"], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": ["model.workday.workday__position_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": ["model.workday.workday__position_overview"], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": ["model.workday.workday__organization_overview"], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": ["model.workday.workday__organization_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": ["model.workday.workday__organization_overview"], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": ["model.workday.stg_workday__job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": ["model.workday.stg_workday__job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": ["model.workday.stg_workday__job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": ["model.workday.stg_workday__job_family"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": ["model.workday.stg_workday__job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": ["model.workday.stg_workday__job_family_group"], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": ["model.workday.stg_workday__organization_role"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": ["model.workday.stg_workday__organization_role_worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": ["model.workday.stg_workday__organization_job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": ["model.workday.stg_workday__organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": ["model.workday.stg_workday__organization"], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": ["model.workday.stg_workday__position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": ["model.workday.stg_workday__position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": ["model.workday.stg_workday__position"], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": ["model.workday.stg_workday__position_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": ["model.workday.stg_workday__worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": ["model.workday.stg_workday__worker"], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": ["model.workday.stg_workday__personal_information"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": ["model.workday.stg_workday__personal_information"], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": ["model.workday.stg_workday__person_name"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": ["model.workday.stg_workday__military_service"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": ["model.workday.stg_workday__military_service"], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": ["model.workday.stg_workday__worker_position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": ["model.workday.stg_workday__worker_leave_status"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": ["model.workday.stg_workday__worker_position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": ["model.workday.stg_workday__worker_position_organization"], "source.workday.workday.job_profile": [], "source.workday.workday.job_family_job_profile": [], "source.workday.workday.job_family": [], "source.workday.workday.job_family_job_family_group": [], "source.workday.workday.job_family_group": [], "source.workday.workday.organization_role": [], "source.workday.workday.organization_role_worker": [], "source.workday.workday.organization_job_family": [], "source.workday.workday.organization": [], "source.workday.workday.position_organization": [], "source.workday.workday.position": [], "source.workday.workday.position_job_profile": [], "source.workday.workday.worker_history": [], "source.workday.workday.personal_information_history": [], "source.workday.workday.person_name": [], "source.workday.workday.personal_information_ethnicity": [], "source.workday.workday.military_service": [], "source.workday.workday.person_contact_email_address": [], "source.workday.workday.worker_position_history": [], "source.workday.workday.worker_leave_status": [], "source.workday.workday.worker_position_organization_history": []}, "child_map": {"model.my_new_project.my_first_dbt_model": ["model.my_new_project.my_second_dbt_model", "test.my_new_project.not_null_my_first_dbt_model_id.5fb22c2710", "test.my_new_project.unique_my_first_dbt_model_id.16e066b321"], "model.my_new_project.my_second_dbt_model": ["test.my_new_project.not_null_my_second_dbt_model_id.151b76d778", "test.my_new_project.unique_my_second_dbt_model_id.57a0f8c493"], "model.workday.workday__employee_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id.fc3f0049e6", "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97"], "model.workday.workday__job_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857"], "model.workday.workday__position_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "test.workday.not_null_workday__position_overview_position_id.603beb3f22"], "model.workday.workday__organization_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412"], "model.workday.stg_workday__position": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e"], "model.workday.stg_workday__job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c"], "model.workday.stg_workday__organization_role_worker": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72"], "model.workday.stg_workday__organization_role": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f"], "model.workday.stg_workday__worker_position": ["model.workday.int_workday__worker_position_enriched", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755"], "model.workday.stg_workday__position_job_profile": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7"], "model.workday.stg_workday__worker_position_organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b"], "model.workday.stg_workday__job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa"], "model.workday.stg_workday__position_organization": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7"], "model.workday.stg_workday__worker_leave_status": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61"], "model.workday.stg_workday__person_name": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd"], "model.workday.stg_workday__organization_job_family": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e"], "model.workday.stg_workday__job_family": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f"], "model.workday.stg_workday__military_service": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38"], "model.workday.stg_workday__personal_information": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b"], "model.workday.stg_workday__worker": ["model.workday.int_workday__worker_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "test.workday.not_null_stg_workday__worker_worker_id.8dae310560"], "model.workday.stg_workday__organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7"], "model.workday.stg_workday__job_family_job_family_group_base": ["model.workday.stg_workday__job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["model.workday.stg_workday__personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["model.workday.stg_workday__job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["model.workday.stg_workday__worker_position_organization"], "model.workday.stg_workday__position_base": ["model.workday.stg_workday__position"], "model.workday.stg_workday__person_contact_email_address_base": ["model.workday.stg_workday__person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["model.workday.stg_workday__organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["model.workday.stg_workday__job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["model.workday.stg_workday__position_organization"], "model.workday.stg_workday__organization_role_base": ["model.workday.stg_workday__organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["model.workday.stg_workday__worker_leave_status"], "model.workday.stg_workday__job_family_base": ["model.workday.stg_workday__job_family"], "model.workday.stg_workday__job_profile_base": ["model.workday.stg_workday__job_profile"], "model.workday.stg_workday__organization_base": ["model.workday.stg_workday__organization"], "model.workday.stg_workday__organization_role_worker_base": ["model.workday.stg_workday__organization_role_worker"], "model.workday.stg_workday__worker_base": ["model.workday.stg_workday__worker"], "model.workday.stg_workday__position_job_profile_base": ["model.workday.stg_workday__position_job_profile"], "model.workday.stg_workday__worker_position_base": ["model.workday.stg_workday__worker_position"], "model.workday.stg_workday__person_name_base": ["model.workday.stg_workday__person_name"], "model.workday.stg_workday__military_service_base": ["model.workday.stg_workday__military_service"], "model.workday.stg_workday__personal_information_base": ["model.workday.stg_workday__personal_information"], "model.workday.int_workday__worker_position_enriched": ["model.workday.workday__employee_overview"], "model.workday.int_workday__personal_details": ["model.workday.workday__employee_overview"], "model.workday.int_workday__worker_details": ["model.workday.workday__employee_overview"], "test.my_new_project.unique_my_first_dbt_model_id.16e066b321": [], "test.my_new_project.not_null_my_first_dbt_model_id.5fb22c2710": [], "test.my_new_project.unique_my_second_dbt_model_id.57a0f8c493": [], "test.my_new_project.not_null_my_second_dbt_model_id.151b76d778": [], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id.fc3f0049e6": [], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": [], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": [], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": [], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": [], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": [], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": [], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": [], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": [], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": [], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": [], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": [], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": [], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": [], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": [], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": [], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": [], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": [], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": [], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": [], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": [], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": [], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": [], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": [], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": [], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": [], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": [], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": [], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": [], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": [], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": [], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": [], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": [], "source.workday.workday.job_profile": ["model.workday.stg_workday__job_profile_base"], "source.workday.workday.job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "source.workday.workday.job_family": ["model.workday.stg_workday__job_family_base"], "source.workday.workday.job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "source.workday.workday.job_family_group": ["model.workday.stg_workday__job_family_group_base"], "source.workday.workday.organization_role": ["model.workday.stg_workday__organization_role_base"], "source.workday.workday.organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "source.workday.workday.organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "source.workday.workday.organization": ["model.workday.stg_workday__organization_base"], "source.workday.workday.position_organization": ["model.workday.stg_workday__position_organization_base"], "source.workday.workday.position": ["model.workday.stg_workday__position_base"], "source.workday.workday.position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "source.workday.workday.worker_history": ["model.workday.stg_workday__worker_base"], "source.workday.workday.personal_information_history": ["model.workday.stg_workday__personal_information_base"], "source.workday.workday.person_name": ["model.workday.stg_workday__person_name_base"], "source.workday.workday.personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "source.workday.workday.military_service": ["model.workday.stg_workday__military_service_base"], "source.workday.workday.person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "source.workday.workday.worker_position_history": ["model.workday.stg_workday__worker_position_base"], "source.workday.workday.worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "source.workday.workday.worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base"]}, "group_map": {}, "semantic_models": {}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v11.json", "dbt_version": "1.7.8", "generated_at": "2024-03-07T00:45:45.702709Z", "invocation_id": "218a7437-3e28-4317-8406-f68aa2b0221b", "env": {}, "project_name": "workday_integration_tests", "project_id": "457920b1e5594993369a050db836d437", "user_id": "81581f81-d5af-4143-8fbf-c2f0001e4f56", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_job_family_group_data"], "alias": "workday_job_family_job_family_group_data", "checksum": {"name": "sha256", "checksum": "a4c9b0101811381ac698bec0ba8dd2474fa563f2d2dc6bdf1e072bd3f890313f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.729731, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_history_data.csv", "original_file_path": "seeds/workday_personal_information_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "fqn": ["workday_integration_tests", "workday_personal_information_history_data"], "alias": "workday_personal_information_history_data", "checksum": {"name": "sha256", "checksum": "2810574ec93fc886e6f1faa097951c8d7c96336fbd1a03b75a22b5a7bb85d13a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.7375412, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_ethnicity_data.csv", "original_file_path": "seeds/workday_personal_information_ethnicity_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "fqn": ["workday_integration_tests", "workday_personal_information_ethnicity_data"], "alias": "workday_personal_information_ethnicity_data", "checksum": {"name": "sha256", "checksum": "986222e9224bcca39693358ca9829277b4f6a2c56111ba9aa2db56734d128e9a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.738745, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_group_data"], "alias": "workday_job_family_group_data", "checksum": {"name": "sha256", "checksum": "394c43d528af65ce740ba8ebd24d6d14e6ea99f5d57abcdd2690070f408378f9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.739891, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_leave_status_data.csv", "original_file_path": "seeds/workday_worker_leave_status_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "fqn": ["workday_integration_tests", "workday_worker_leave_status_data"], "alias": "workday_worker_leave_status_data", "checksum": {"name": "sha256", "checksum": "bec6fe9af70bc7bebcfebbd12d41d1674fa78fc88497783bf7be995f1290b901"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "age_of_dependent": "float", "leave_entitlement_override": "float", "leave_percentage": "float", "number_of_babies_adopted_children": "float", "number_of_child_dependents": "float", "number_of_previous_births": "float", "number_of_previous_maternity_leaves": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "age_of_dependent": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_entitlement_override": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_percentage": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_babies_adopted_children": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_child_dependents": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_births": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_maternity_leaves": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1709769127.743006, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_organization_history_data.csv", "original_file_path": "seeds/workday_worker_position_organization_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_organization_history_data"], "alias": "workday_worker_position_organization_history_data", "checksum": {"name": "sha256", "checksum": "79d43cf1c2b3425d03d23b014705613022d55eb282108d972cbeb58bf55ed0d3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.7441761, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_data.csv", "original_file_path": "seeds/workday_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_data", "fqn": ["workday_integration_tests", "workday_job_family_data"], "alias": "workday_job_family_data", "checksum": {"name": "sha256", "checksum": "727b3c01934259786bd85a1bed73ac70611363839a611bdea640bf9bd95cba2d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.745304, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_name_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_name_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_name_data.csv", "original_file_path": "seeds/workday_person_name_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_name_data", "fqn": ["workday_integration_tests", "workday_person_name_data"], "alias": "workday_person_name_data", "checksum": {"name": "sha256", "checksum": "104b5d938091b1587548c91aa46a0e5b38ebccec81cbc569993b8a971b116881"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.747802, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_data.csv", "original_file_path": "seeds/workday_organization_role_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "fqn": ["workday_integration_tests", "workday_organization_role_data"], "alias": "workday_organization_role_data", "checksum": {"name": "sha256", "checksum": "b3e1187179e8afc95fbf180efac810d5a8f4f57e118393c60fca2c2c7f09e024"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.748922, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_military_service_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_military_service_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_military_service_data.csv", "original_file_path": "seeds/workday_military_service_data.csv", "unique_id": "seed.workday_integration_tests.workday_military_service_data", "fqn": ["workday_integration_tests", "workday_military_service_data"], "alias": "workday_military_service_data", "checksum": {"name": "sha256", "checksum": "f3d25deafee7b4188b4bdfe815b40397bdd80cd135db866b9ddf2b3a0b346b07"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.750037, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_data.csv", "original_file_path": "seeds/workday_position_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_data", "fqn": ["workday_integration_tests", "workday_position_data"], "alias": "workday_position_data", "checksum": {"name": "sha256", "checksum": "f31ec8364b56eb931ab406b25be5cfc0301bba65908bc448aeb170ed79805894"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "primary_compensation_basis": "float", "primary_compensation_basis_amount_change": "float", "primary_compensation_basis_percent_change": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_amount_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_percent_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1709769127.751175, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_data.csv", "original_file_path": "seeds/workday_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_data", "fqn": ["workday_integration_tests", "workday_organization_data"], "alias": "workday_organization_data", "checksum": {"name": "sha256", "checksum": "e0ece91ba5a270a01be9bbe91ea46b49c9e5c3c56e7234b5a597c9d81f63b4cc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.752321, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_organization_data.csv", "original_file_path": "seeds/workday_position_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "fqn": ["workday_integration_tests", "workday_position_organization_data"], "alias": "workday_position_organization_data", "checksum": {"name": "sha256", "checksum": "c0cd526bcf4b91f1842484875ce4fe803d510862d4d4ddba72c6d1724c8e9ea8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.7535849, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_profile_data.csv", "original_file_path": "seeds/workday_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_profile_data"], "alias": "workday_job_profile_data", "checksum": {"name": "sha256", "checksum": "677a184272cdd2e0d746d5616d33ad4ce394c74e759f73bf0e51f8dda5cc96e4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.754795, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_contact_email_address_data.csv", "original_file_path": "seeds/workday_person_contact_email_address_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "fqn": ["workday_integration_tests", "workday_person_contact_email_address_data"], "alias": "workday_person_contact_email_address_data", "checksum": {"name": "sha256", "checksum": "4641c91d789ed134081a55cf0aaafc5a61a7ea075904691a353389552038dbe9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.756, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_job_family_data.csv", "original_file_path": "seeds/workday_organization_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "fqn": ["workday_integration_tests", "workday_organization_job_family_data"], "alias": "workday_organization_job_family_data", "checksum": {"name": "sha256", "checksum": "2db2016b7eea202409836faff94ba2f168ce13dfd9e00ee1d1591eb85315cd47"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.7571359, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_profile_data.csv", "original_file_path": "seeds/workday_job_family_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_family_job_profile_data"], "alias": "workday_job_family_job_profile_data", "checksum": {"name": "sha256", "checksum": "bc99975db9382af8f66fd46976db4cca2a987b1e9de24d17ceeb1ebf6e5ecb68"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.758463, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_job_profile_data.csv", "original_file_path": "seeds/workday_position_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "fqn": ["workday_integration_tests", "workday_position_job_profile_data"], "alias": "workday_position_job_profile_data", "checksum": {"name": "sha256", "checksum": "e5d675b82b521d6856d8f516209642745a595a31d88d147f6561bcbc970433b3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.7595918, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_worker_data.csv", "original_file_path": "seeds/workday_organization_role_worker_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "fqn": ["workday_integration_tests", "workday_organization_role_worker_data"], "alias": "workday_organization_role_worker_data", "checksum": {"name": "sha256", "checksum": "e24079f7ed64c407174d546132b71c69a9b1eaa9951b5a91772a3da7b3ff95f8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.760703, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "model.workday.workday__employee_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "resource_type": "model", "package_name": "workday", "path": "workday__employee_overview.sql", "original_file_path": "models/workday__employee_overview.sql", "unique_id": "model.workday.workday__employee_overview", "fqn": ["workday", "workday__employee_overview"], "alias": "workday__employee_overview", "checksum": {"name": "sha256", "checksum": "eff8d6b950b1b59e7845025528a596ceeb2e6fc22dfed0b55cf098aefd3b0ccc"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_user_active": {"name": "is_user_active", "description": "Is the user currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed": {"name": "is_employed", "description": "Is the worker currently employed?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "departure_date": {"name": "departure_date", "description": "The departure date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_of_employment": {"name": "days_of_employment", "description": "Number of days employed by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Has the worker been regrettably terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_codes": {"name": "ethnicity_codes", "description": "String aggregation of all ethnicity codes associated with an individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The military status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_position_type": {"name": "most_recent_position_type", "description": "The most recent position type of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_location": {"name": "most_recent_location", "description": "The most recent location of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_level": {"name": "most_recent_level", "description": "The most recent level of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_at_position": {"name": "days_at_position", "description": "The number of days the worker has held their most recent position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_position_start_date": {"name": "most_recent_position_start_date", "description": "The most recent position start date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_position_end_date": {"name": "most_recent_position_end_date", "description": "The most recent position end date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_position_effective_date": {"name": "most_recent_position_effective_date", "description": "The most recent position effective date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_positions": {"name": "worker_positions", "description": "The number of positions the worker has held", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_levels": {"name": "worker_levels", "description": "The number of levels the worker has worked at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_days": {"name": "position_days", "description": "The days the worker held positions at the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_one_year": {"name": "is_employed_one_year", "description": "Tracks whether a worker was employed at least one year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_five_years": {"name": "is_employed_five_years", "description": "Tracks whether a worker was employed at least five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_ten_years": {"name": "is_employed_ten_years", "description": "Tracks whether a worker was employed at least ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_twenty_years": {"name": "is_employed_twenty_years", "description": "Tracks whether a worker was employed at least twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_thirty_years": {"name": "is_employed_thirty_years", "description": "Tracks whether a worker was employed at least thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_one_year": {"name": "is_current_employee_one_year", "description": "Tracks whether a worker is active for more than a year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_five_years": {"name": "is_current_employee_five_years", "description": "Tracks whether a worker is active for more than five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "description": "Tracks whether a worker is active for more than ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "description": "Tracks whether a worker is active for more than twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "description": "Tracks whether a worker is active for more than thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709769128.6857522, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"", "raw_code": "with employee_surrogate_key as (\n \n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'position_start_date']) }} as employee_id,\n worker_id,\n position_id,\n position_start_date,\n {{ dbt_utils.star(from=ref('int_workday__worker_employee_enhanced'), except=['worker_id', 'position_id', 'position_start_date']) }}\n from {{ ref('int_workday__worker_employee_enhanced') }} \n)\n\nselect * \nfrom employee_surrogate_key", "language": "sql", "refs": [{"name": "int_workday__worker_employee_enhanced", "package": null, "version": null}, {"name": "int_workday__worker_employee_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt_utils.star"], "nodes": ["model.workday.int_workday__worker_employee_enhanced"]}, "compiled_path": "target/compiled/workday/models/workday__employee_overview.sql", "compiled": true, "compiled_code": "with employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n position_id,\n position_start_date,\n \"source_relation\",\n \"worker_code\",\n \"user_id\",\n \"universal_id\",\n \"is_user_active\",\n \"is_employed\",\n \"hire_date\",\n \"departure_date\",\n \"days_of_employment\",\n \"is_terminated\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"is_regrettable_termination\",\n \"compensation_effective_date\",\n \"employee_compensation_frequency\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_summary_currency\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_primary_compensation_basis\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"first_name\",\n \"last_name\",\n \"date_of_birth\",\n \"gender\",\n \"is_hispanic_or_latino\",\n \"email_address\",\n \"ethnicity_codes\",\n \"military_status\",\n \"business_title\",\n \"job_profile_id\",\n \"employee_type\",\n \"position_location\",\n \"management_level_code\",\n \"fte_percent\",\n \"days_at_position\",\n \"position_end_date\",\n \"position_effective_date\",\n \"worker_positions\",\n \"worker_levels\",\n \"position_days\",\n \"is_employed_one_year\",\n \"is_employed_five_years\",\n \"is_employed_ten_years\",\n \"is_employed_twenty_years\",\n \"is_employed_thirty_years\",\n \"is_current_employee_one_year\",\n \"is_current_employee_five_years\",\n \"is_current_employee_ten_years\",\n \"is_current_employee_twenty_years\",\n \"is_current_employee_thirty_years\"\n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_employee_enhanced\" \n)\n\nselect * \nfrom employee_surrogate_key", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__job_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "resource_type": "model", "package_name": "workday", "path": "workday__job_overview.sql", "original_file_path": "models/workday__job_overview.sql", "unique_id": "model.workday.workday__job_overview", "fqn": ["workday", "workday__job_overview"], "alias": "workday__job_overview", "checksum": {"name": "sha256", "checksum": "b50072f5be5632d10a64a1e777aa62ae6f2283f22244bd033fea5fc20ce66165"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "The private title associated with the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "The summary of the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_codes": {"name": "job_family_codes", "description": "String array of all job family codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summaries": {"name": "job_family_summaries", "description": "String array of all job family summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_codes": {"name": "job_family_group_codes", "description": "String array of all job family group codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summaries": {"name": "job_family_group_summaries", "description": "String array of all job family group summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709769128.6874309, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"", "raw_code": "with job_profile_data as (\n\n select * \n from {{ ref('stg_workday__job_profile') }}\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_profile') }}\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from {{ ref('stg_workday__job_family') }}\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_family_group') }}\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from {{ ref('stg_workday__job_family_group') }}\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_code', \"', '\" ) }} as job_family_codes,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_summary', \"', '\" ) }} as job_family_summaries, \n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_code', \"', '\" ) }} as job_family_group_codes,\n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_summary', \"', '\" ) }} as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom job_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}, {"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg", "macro.dbt_utils.group_by"], "nodes": ["model.workday.stg_workday__job_profile", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/workday__job_overview.sql", "compiled": true, "compiled_code": "with job_profile_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__position_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "resource_type": "model", "package_name": "workday", "path": "workday__position_overview.sql", "original_file_path": "models/workday__position_overview.sql", "unique_id": "model.workday.workday__position_overview", "fqn": ["workday", "workday__position_overview"], "alias": "workday__position_overview", "checksum": {"name": "sha256", "checksum": "567db8a61cd72c8faec1aac1963cbf05b776d0fe170a7f8c0ae8ea3d076464d3"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts.", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709769128.690084, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"", "raw_code": "with position_data as (\n\n select *\n from {{ ref('stg_workday__position') }}\n),\n\nposition_job_profile_data as (\n\n select *\n from {{ ref('stg_workday__position_job_profile') }}\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}, {"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/workday__position_overview.sql", "compiled": true, "compiled_code": "with position_data as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\n),\n\nposition_job_profile_data as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__organization_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "resource_type": "model", "package_name": "workday", "path": "workday__organization_overview.sql", "original_file_path": "models/workday__organization_overview.sql", "unique_id": "model.workday.workday__organization_overview", "fqn": ["workday", "workday__organization_overview"], "alias": "workday__organization_overview", "checksum": {"name": "sha256", "checksum": "0df19685be8a2ffee5d5e16069cbc9771cc639372004929a73f500f9d7c59798"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709769128.691703, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"", "raw_code": "with organization_data as (\n\n select * \n from {{ ref('stg_workday__organization') }}\n),\n\norganization_role_data as (\n\n select * \n from {{ ref('stg_workday__organization_role') }}\n),\n\nworker_position_organization as (\n\n select *\n from {{ ref('stg_workday__worker_position_organization') }}\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}, {"name": "stg_workday__organization_role", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/workday__organization_overview.sql", "compiled": true, "compiled_code": "with organization_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\n),\n\norganization_role_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\n),\n\nworker_position_organization as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position.sql", "original_file_path": "models/staging/stg_workday__position.sql", "unique_id": "model.workday.stg_workday__position", "fqn": ["workday", "staging", "stg_workday__position"], "alias": "stg_workday__position", "checksum": {"name": "sha256", "checksum": "a8eea235110df116f941d206b25f965ace56ec776662153af05d70a2bdf1cd4b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_academic_tenure_eligible": {"name": "is_academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.853346, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_base')),\n staging_columns=get_position_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_base", "package": null, "version": null}, {"name": "stg_workday__position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_group"], "alias": "stg_workday__job_family_group", "checksum": {"name": "sha256", "checksum": "91495541dd20c1e46fd9fc7074605bd8d766196513173eb2e6d6d2abd779474a"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summary": {"name": "job_family_group_summary", "description": "The summary of the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.849737, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_group_base')),\n staging_columns=get_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_profile.sql", "original_file_path": "models/staging/stg_workday__job_family_job_profile.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile", "fqn": ["workday", "staging", "stg_workday__job_family_job_profile"], "alias": "stg_workday__job_family_job_profile", "checksum": {"name": "sha256", "checksum": "22f926dc89704581204ef1db5906e7fc184c404d53dc5141b47056de357d6066"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.847691, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_profile_base')),\n staging_columns=get_job_family_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role_worker.sql", "original_file_path": "models/staging/stg_workday__organization_role_worker.sql", "unique_id": "model.workday.stg_workday__organization_role_worker", "fqn": ["workday", "staging", "stg_workday__organization_role_worker"], "alias": "stg_workday__organization_role_worker", "checksum": {"name": "sha256", "checksum": "6cbf3f20ac378d061a6c9034bd75c08e7cf7079ac12c8b167c31e6e1c0e54fa6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_worker_code": {"name": "organization_worker_code", "description": "The worker code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.85057, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_worker_base')),\n staging_columns=get_organization_role_worker_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_worker_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role_worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role.sql", "original_file_path": "models/staging/stg_workday__organization_role.sql", "unique_id": "model.workday.stg_workday__organization_role", "fqn": ["workday", "staging", "stg_workday__organization_role"], "alias": "stg_workday__organization_role", "checksum": {"name": "sha256", "checksum": "d20118b8c8234cda8e96b2df978fdce2aa46bbdb356ebac5b29680663d105e05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.850084, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_base')),\n staging_columns=get_organization_role_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position.sql", "original_file_path": "models/staging/stg_workday__worker_position.sql", "unique_id": "model.workday.stg_workday__worker_position", "fqn": ["workday", "staging", "stg_workday__worker_position"], "alias": "stg_workday__worker_position", "checksum": {"name": "sha256", "checksum": "f812d4b0a33146284f402362816bc05ca7a5e85fa228207ea0df356396906025"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the positions held by workers in the Workday system", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.8623738, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_base')),\n staging_columns=get_worker_position_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_contact_email_address.sql", "original_file_path": "models/staging/stg_workday__person_contact_email_address.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address", "fqn": ["workday", "staging", "stg_workday__person_contact_email_address"], "alias": "stg_workday__person_contact_email_address", "checksum": {"name": "sha256", "checksum": "fc93cd7747b3087ad994ab34f0feec9a8293e02f719a8ddb64bf652d786f50e5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_contact_email_address_id": {"name": "person_contact_email_address_id", "description": "The identifier of the personal contact email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.860289, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_contact_email_address_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_contact_email_address_base')),\n staging_columns=get_person_contact_email_address_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_contact_email_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_contact_email_address_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_contact_email_address.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_job_profile.sql", "original_file_path": "models/staging/stg_workday__position_job_profile.sql", "unique_id": "model.workday.stg_workday__position_job_profile", "fqn": ["workday", "staging", "stg_workday__position_job_profile"], "alias": "stg_workday__position_job_profile", "checksum": {"name": "sha256", "checksum": "1bd56f05d8c66dff4d5741a2ca3963cd4859341229686f1e9155289aa86ca3f3"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_job_profile_name": {"name": "position_job_profile_name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.8539011, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_job_profile_base')),\n staging_columns=get_position_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__position_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position_organization.sql", "original_file_path": "models/staging/stg_workday__worker_position_organization.sql", "unique_id": "model.workday.stg_workday__worker_position_organization", "fqn": ["workday", "staging", "stg_workday__worker_position_organization"], "alias": "stg_workday__worker_position_organization", "checksum": {"name": "sha256", "checksum": "c06c632d0c5bc211074ad78e1d36ea19e68ad03423068316bd207e3978472684"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.864972, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_organization_base')),\n staging_columns=get_worker_position_organization_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_profile.sql", "original_file_path": "models/staging/stg_workday__job_profile.sql", "unique_id": "model.workday.stg_workday__job_profile", "fqn": ["workday", "staging", "stg_workday__job_profile"], "alias": "stg_workday__job_profile", "checksum": {"name": "sha256", "checksum": "c58fefde4e2bab4dfcc7d23f270ba41e4b3a785de9c0f221854b44ce088753d6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_job_code_in_name": {"name": "is_include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_public_job": {"name": "is_public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.8472152, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_profile_base')),\n staging_columns=get_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_organization.sql", "original_file_path": "models/staging/stg_workday__position_organization.sql", "unique_id": "model.workday.stg_workday__position_organization", "fqn": ["workday", "staging", "stg_workday__position_organization"], "alias": "stg_workday__position_organization", "checksum": {"name": "sha256", "checksum": "3e066e026cb6c5a57a3780d60185e331275a40666ec842bd51a9f5214c8106f0"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.852439, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_organization_base')),\n staging_columns=get_position_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_organization_base", "package": null, "version": null}, {"name": "stg_workday__position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_leave_status.sql", "original_file_path": "models/staging/stg_workday__worker_leave_status.sql", "unique_id": "model.workday.stg_workday__worker_leave_status", "fqn": ["workday", "staging", "stg_workday__worker_leave_status"], "alias": "stg_workday__worker_leave_status", "checksum": {"name": "sha256", "checksum": "7a780769764a426e346115891309d38326b383297d43976f5b368feefe555e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the leave status of workers in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_benefits_effect": {"name": "is_benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_caesarean_section_birth": {"name": "is_caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_continuous_service_accrual_effect": {"name": "is_continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_multiple_child_indicator": {"name": "is_multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_on_leave": {"name": "is_on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_paid_time_off_accrual_effect": {"name": "is_paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_payroll_effect": {"name": "is_payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_single_parent_indicator": {"name": "is_single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_stock_vesting_effect": {"name": "is_stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_related": {"name": "is_work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.864518, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_leave_status_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_leave_status_base')),\n staging_columns=get_worker_leave_status_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}, {"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_leave_status_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__worker_leave_status_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_leave_status.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_name.sql", "original_file_path": "models/staging/stg_workday__person_name.sql", "unique_id": "model.workday.stg_workday__person_name", "fqn": ["workday", "staging", "stg_workday__person_name"], "alias": "stg_workday__person_name", "checksum": {"name": "sha256", "checksum": "da74b8517c3659e32fa4600075b2c78fd9edf3b9d67b062a39aceeb7007a8106"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the name information for an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_name_type": {"name": "person_name_type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.8590562, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_name_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_name_base')),\n staging_columns=get_person_name_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_name_base", "package": null, "version": null}, {"name": "stg_workday__person_name_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_name_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_name_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_name.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information_ethnicity.sql", "original_file_path": "models/staging/stg_workday__personal_information_ethnicity.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity", "fqn": ["workday", "staging", "stg_workday__personal_information_ethnicity"], "alias": "stg_workday__personal_information_ethnicity", "checksum": {"name": "sha256", "checksum": "1cddb347cc063152fdf7519ab20008979c18819cf57eda40f40b5c0ae4df795c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.8594, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_ethnicity_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_ethnicity_base')),\n staging_columns=get_personal_information_ethnicity_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_ethnicity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information_ethnicity.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_job_family.sql", "original_file_path": "models/staging/stg_workday__organization_job_family.sql", "unique_id": "model.workday.stg_workday__organization_job_family", "fqn": ["workday", "staging", "stg_workday__organization_job_family"], "alias": "stg_workday__organization_job_family", "checksum": {"name": "sha256", "checksum": "25a30264c730bb3d4ed427d08d7262415aa13c72bda44f292aef305dabadb4dc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.850899, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_job_family_base')),\n staging_columns=get_organization_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family_base", "package": null, "version": null}, {"name": "stg_workday__organization_job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family.sql", "original_file_path": "models/staging/stg_workday__job_family.sql", "unique_id": "model.workday.stg_workday__job_family", "fqn": ["workday", "staging", "stg_workday__job_family"], "alias": "stg_workday__job_family", "checksum": {"name": "sha256", "checksum": "2b55aade2b7c5f3aaa66b8689637aecadf3960de67f0df66ecd9d511ec3f4a2c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summary": {"name": "job_family_summary", "description": "The summary of the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.848887, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_base')),\n staging_columns=get_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_base", "package": null, "version": null}, {"name": "stg_workday__job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__military_service.sql", "original_file_path": "models/staging/stg_workday__military_service.sql", "unique_id": "model.workday.stg_workday__military_service", "fqn": ["workday", "staging", "stg_workday__military_service"], "alias": "stg_workday__military_service", "checksum": {"name": "sha256", "checksum": "2723e93ad3a6b887aa7d9b8c5d97bee2714a4b0d8ff0c80decb8be429e77b709"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about an individual's military service in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.859809, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__military_service_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__military_service_base')),\n staging_columns=get_military_service_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__military_service_base", "package": null, "version": null}, {"name": "stg_workday__military_service_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_military_service_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__military_service_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__military_service.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information.sql", "original_file_path": "models/staging/stg_workday__personal_information.sql", "unique_id": "model.workday.stg_workday__personal_information", "fqn": ["workday", "staging", "stg_workday__personal_information"], "alias": "stg_workday__personal_information", "checksum": {"name": "sha256", "checksum": "99c2547b9cba3b9798c54da22173f0f4e2d0db3f9623673fc37f0c6f081646bd"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "The personal information associated with each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.8581, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_base')),\n staging_columns=get_personal_information_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__personal_information_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_job_family_group"], "alias": "stg_workday__job_family_job_family_group", "checksum": {"name": "sha256", "checksum": "6fd4740d69f85753d0bf54a02768c8d9b8887e6e58481511bb3067f6dbe9b7eb"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.849239, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_family_group_base')),\n staging_columns=get_job_family_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker.sql", "original_file_path": "models/staging/stg_workday__worker.sql", "unique_id": "model.workday.stg_workday__worker", "fqn": ["workday", "staging", "stg_workday__worker"], "alias": "stg_workday__worker", "checksum": {"name": "sha256", "checksum": "eabb44e7218212b2cfa0ed153715acd2cd920d91f48a20884f237d3307a8d88d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.8569212, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_base')),\n staging_columns=get_worker_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization.sql", "original_file_path": "models/staging/stg_workday__organization.sql", "unique_id": "model.workday.stg_workday__organization", "fqn": ["workday", "staging", "stg_workday__organization"], "alias": "stg_workday__organization", "checksum": {"name": "sha256", "checksum": "ddc0897b633fd79f01412ef8b78788ca8168409bbdd6a076e7ae77eae46e5b4c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Identifier for the organization.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_description": {"name": "organization_description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_manager_in_name": {"name": "is_include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_organization_code_in_name": {"name": "is_include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_location": {"name": "organization_location", "description": "The location of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.852118, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_base')),\n staging_columns=get_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_base", "package": null, "version": null}, {"name": "stg_workday__organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_family_group_base"], "alias": "stg_workday__job_family_job_family_group_base", "checksum": {"name": "sha256", "checksum": "e2032528b0352adb9b447a62934a158666a681a00bfd8821c454342850710217"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.1628768, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_family_group"], ["workday", "job_family_job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_ethnicity_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_ethnicity_base"], "alias": "stg_workday__personal_information_ethnicity_base", "checksum": {"name": "sha256", "checksum": "83d4f52d542558f35ac9c4bca924abf5d50bd6d060b57de257d9b3a8011375bc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.180563, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_ethnicity', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_ethnicity',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_ethnicity"], ["workday", "personal_information_ethnicity"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_group_base"], "alias": "stg_workday__job_family_group_base", "checksum": {"name": "sha256", "checksum": "bea26ff96c14d3e08fd64f97fbc8fbefc3cc6cc6726f7eb27132f966e3ace85d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.18402, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_group"], ["workday", "job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_organization_base.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_organization_base"], "alias": "stg_workday__worker_position_organization_base", "checksum": {"name": "sha256", "checksum": "42729b33f262620d892e95707fef1e711b95c66a4df3fb612d1eb73d024a7e38"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.187336, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_organization_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_organization_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_organization_history"], ["workday", "worker_position_organization_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_base.sql", "original_file_path": "models/staging/base/stg_workday__position_base.sql", "unique_id": "model.workday.stg_workday__position_base", "fqn": ["workday", "staging", "base", "stg_workday__position_base"], "alias": "stg_workday__position_base", "checksum": {"name": "sha256", "checksum": "4ccfff02ed1a6e0e94868985aa08ad5eaac5c78e608ae24eb36ebeb3da3b1443"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.1905239, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position"], ["workday", "position"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_contact_email_address_base.sql", "original_file_path": "models/staging/base/stg_workday__person_contact_email_address_base.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "fqn": ["workday", "staging", "base", "stg_workday__person_contact_email_address_base"], "alias": "stg_workday__person_contact_email_address_base", "checksum": {"name": "sha256", "checksum": "2bfb4c913c999795db2691f4b3bc115fbae9bbad6e4eb59ad305bc057e7e0e5b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.1936908, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_contact_email_address', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_contact_email_address',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_contact_email_address"], ["workday", "person_contact_email_address"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_contact_email_address_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_job_family_base.sql", "unique_id": "model.workday.stg_workday__organization_job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_job_family_base"], "alias": "stg_workday__organization_job_family_base", "checksum": {"name": "sha256", "checksum": "8a999ebe4367e8c4e6994124834c09f9d1eeb411d6e00353c9995bc0900ee1ea"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.197622, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_job_family"], ["workday", "organization_job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_profile_base"], "alias": "stg_workday__job_family_job_profile_base", "checksum": {"name": "sha256", "checksum": "61149fbd447008acfc11c0cce919a3dcdfc878b1e43f1a904bed99cd0e12e934"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.200774, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_profile"], ["workday", "job_family_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__position_organization_base.sql", "unique_id": "model.workday.stg_workday__position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__position_organization_base"], "alias": "stg_workday__position_organization_base", "checksum": {"name": "sha256", "checksum": "e9e1144f5ba976bda0612b7899e5c418c8f2880a69bb98c7bd61826b438cf705"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.204009, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_organization"], ["workday", "position_organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_base.sql", "unique_id": "model.workday.stg_workday__organization_role_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_base"], "alias": "stg_workday__organization_role_base", "checksum": {"name": "sha256", "checksum": "7da1ae4c5e420c6a429f6082802496377da44449aefb62728c64e31c64923832"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.20715, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role"], ["workday", "organization_role"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_leave_status_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_leave_status_base.sql", "unique_id": "model.workday.stg_workday__worker_leave_status_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_leave_status_base"], "alias": "stg_workday__worker_leave_status_base", "checksum": {"name": "sha256", "checksum": "25de6c8505c09d17787931dd2ad7fb497ee4fcc6ad9c076417ac327d38b2cee5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.210281, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_leave_status', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_leave_status',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_leave_status"], ["workday", "worker_leave_status"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_leave_status_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_base.sql", "unique_id": "model.workday.stg_workday__job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_base"], "alias": "stg_workday__job_family_base", "checksum": {"name": "sha256", "checksum": "a6d51501e8a9f185408e2c8c963b04ed89e1f87260216f3e994f324119a0f804"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.214175, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family"], ["workday", "job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_profile_base"], "alias": "stg_workday__job_profile_base", "checksum": {"name": "sha256", "checksum": "ddeb40a89a0b03a8748dae6a224bade7705498441a9f295682bd24ef643fc563"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.2173738, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_profile"], ["workday", "job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_base.sql", "unique_id": "model.workday.stg_workday__organization_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_base"], "alias": "stg_workday__organization_base", "checksum": {"name": "sha256", "checksum": "ee0cb72047f2c7760251317c86318a9f46c5a8be9113fcb7d81b269e1b4b4e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.221036, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization"], ["workday", "organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_worker_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_worker_base.sql", "unique_id": "model.workday.stg_workday__organization_role_worker_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_worker_base"], "alias": "stg_workday__organization_role_worker_base", "checksum": {"name": "sha256", "checksum": "74e858892ef8851aec9a06e4e05dbca91361b09939c257c69db38356d59acf05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.224381, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role_worker', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role_worker',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role_worker"], ["workday", "organization_role_worker"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_base.sql", "unique_id": "model.workday.stg_workday__worker_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_base"], "alias": "stg_workday__worker_base", "checksum": {"name": "sha256", "checksum": "5f0f82a654f8f22d1e129cebdf87aa064125f5deeeca51c50d53f249dd0d96e1"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.2276201, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_history"], ["workday", "worker_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__position_job_profile_base.sql", "unique_id": "model.workday.stg_workday__position_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__position_job_profile_base"], "alias": "stg_workday__position_job_profile_base", "checksum": {"name": "sha256", "checksum": "7a2843eac9ceff71866501a413274121b15a2e8d1337b83962e0045cb1b403c5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.231694, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_job_profile"], ["workday", "position_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_base.sql", "unique_id": "model.workday.stg_workday__worker_position_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_base"], "alias": "stg_workday__worker_position_base", "checksum": {"name": "sha256", "checksum": "8a8431d94738ad8c342bba23f86ace1e658cf63ac9254481bf8463622129514e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.2350368, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_history"], ["workday", "worker_position_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_name_base.sql", "original_file_path": "models/staging/base/stg_workday__person_name_base.sql", "unique_id": "model.workday.stg_workday__person_name_base", "fqn": ["workday", "staging", "base", "stg_workday__person_name_base"], "alias": "stg_workday__person_name_base", "checksum": {"name": "sha256", "checksum": "85c57cfa1fe54db08605b75e32060e1bd488a4f71eae27b2cb8a2805ac4ac655"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.2386088, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_name', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_name',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_name"], ["workday", "person_name"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_name"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_name_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__military_service_base.sql", "original_file_path": "models/staging/base/stg_workday__military_service_base.sql", "unique_id": "model.workday.stg_workday__military_service_base", "fqn": ["workday", "staging", "base", "stg_workday__military_service_base"], "alias": "stg_workday__military_service_base", "checksum": {"name": "sha256", "checksum": "9478cb8eea5671a0261ed280e3723a9ad826ee22b77b9dfe709be5fc85fd295e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.242344, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='military_service', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='military_service',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "military_service"], ["workday", "military_service"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.military_service"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__military_service_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_base.sql", "unique_id": "model.workday.stg_workday__personal_information_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_base"], "alias": "stg_workday__personal_information_base", "checksum": {"name": "sha256", "checksum": "0767af75bcb79f32dd324d8bf4e57ffc0d0014bda0609b426df78cdc17566e96"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.2461739, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_history"], ["workday", "personal_information_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__employee_daily_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__employee_daily_history.sql", "original_file_path": "models/workday_history/workday__employee_daily_history.sql", "unique_id": "model.workday.workday__employee_daily_history", "fqn": ["workday", "workday_history", "workday__employee_daily_history"], "alias": "workday__employee_daily_history", "checksum": {"name": "sha256", "checksum": "4ada61bc97ed0ac5a3bed2eb2d588ec01b390123e0a226993d24b72d579c27e2"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709769128.2586591, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"", "raw_code": "{% if execute %}\n {% set date_query %}\n select \n {{ dbt.date_trunc('day', dbt.current_timestamp_backcompat()) }} as max_date\n {% endset %}\n\n {% set last_date = run_query(date_query).columns[0][0]|string %}\n\n {# If only compiling, creates range going back 1 year #}\n {% else %} \n {% set last_date = dbt.dateadd(\"year\", \"-1\", \"current_date\") %}\n {% endif %}\n\n\nwith spine as (\n {# Prioritizes variables over calculated dates #}\n {% set first_date = var('worker_history_start_date', '2020-01-01')|string %}\n {% set last_date = last_date|string %}\n\n {{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date = \"cast('\" ~ first_date[0:10] ~ \"'as date)\",\n end_date = \"cast('\" ~ last_date[0:10] ~ \"'as date)\"\n )\n }}\n),\n\nemployee_history as (\n\n select * \n from {{ ref('int_workday__employee_history') }}\n {% if is_incremental() %}\n where _fivetran_start >= (select max(cast((_fivetran_start) as {{ dbt.type_timestamp() }})) from {{ this }} )\n {% endif %} \n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['spine.date_day','get_latest_daily_value.employee_id']) }} as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }})\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }})\n)\n\nselect * \nfrom daily_history", "language": "sql", "refs": [{"name": "int_workday__employee_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp", "macro.dbt.current_timestamp_backcompat", "macro.dbt.date_trunc", "macro.dbt.run_query"], "nodes": ["model.workday.int_workday__employee_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__employee_daily_history.sql", "compiled": true, "compiled_code": "\n \n\n \n\n \n \n\n\nwith spine as (\n \n \n \n\n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 1527\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2020-01-01'as date) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-03-07'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n \n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.employee_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_position_enriched": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_position_enriched", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_position_enriched.sql", "original_file_path": "models/intermediate/int_workday__worker_position_enriched.sql", "unique_id": "model.workday.int_workday__worker_position_enriched", "fqn": ["workday", "intermediate", "int_workday__worker_position_enriched"], "alias": "int_workday__worker_position_enriched", "checksum": {"name": "sha256", "checksum": "44e13b82d0ec37c3dfb879d36d894d9ee8f54e88d2ac941221438b7223047b89"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709769128.278348, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_position_enriched\"", "raw_code": "with worker_position_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker_position') }}\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_at_position,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n),\n\nworker_position_measures as (\n\n select \n worker_id,\n source_relation,\n count(distinct position_id) as worker_positions,\n count(distinct management_level_code) as worker_levels,\n sum(days_at_position) as position_days\n from worker_position_data_enhanced\n group by 1, 2\n),\n\nmost_recent_position as (\n\n select *\n from worker_position_data_enhanced\n where row_number = 1\n),\n\nworker_position_enriched as (\n\n select\n {{ dbt_utils.generate_surrogate_key(['worker_position_data_enhanced.worker_id', \n 'position_id', 'position_start_date']) }} as employee_id,\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_at_position,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date,\n worker_position_measures.worker_positions,\n worker_position_measures.worker_levels, \n worker_position_measures.position_days\n from worker_position_data_enhanced\n left join worker_position_measures \n on worker_position_data_enhanced.worker_id = worker_position_measures.worker_id\n and worker_position_data_enhanced.source_relation = worker_position_measures.source_relation\n)\n\nselect * \nfrom worker_position_enriched", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_position_enriched.sql", "compiled": true, "compiled_code": "with worker_position_data as (\n\n select \n *,\n now() as current_date\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_at_position,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n),\n\nworker_position_measures as (\n\n select \n worker_id,\n source_relation,\n count(distinct position_id) as worker_positions,\n count(distinct management_level_code) as worker_levels,\n sum(days_at_position) as position_days\n from worker_position_data_enhanced\n group by 1, 2\n),\n\nmost_recent_position as (\n\n select *\n from worker_position_data_enhanced\n where row_number = 1\n),\n\nworker_position_enriched as (\n\n select\n md5(cast(coalesce(cast(worker_position_data_enhanced.worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_at_position,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date,\n worker_position_measures.worker_positions,\n worker_position_measures.worker_levels, \n worker_position_measures.position_days\n from worker_position_data_enhanced\n left join worker_position_measures \n on worker_position_data_enhanced.worker_id = worker_position_measures.worker_id\n and worker_position_data_enhanced.source_relation = worker_position_measures.source_relation\n)\n\nselect * \nfrom worker_position_enriched", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__personal_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__personal_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__personal_details.sql", "original_file_path": "models/intermediate/int_workday__personal_details.sql", "unique_id": "model.workday.int_workday__personal_details", "fqn": ["workday", "intermediate", "int_workday__personal_details"], "alias": "int_workday__personal_details", "checksum": {"name": "sha256", "checksum": "594516db9541d923dcc1958d6ed5747fb91aee48aaa01e0acf8fcbd2fb1a8950"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709769128.287209, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__personal_details\"", "raw_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from {{ ref('stg_workday__personal_information') }}\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from {{ ref('stg_workday__person_name') }}\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from {{ ref('stg_workday__person_contact_email_address') }}\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n {{ fivetran_utils.string_agg('distinct ethnicity_code', \"', '\" ) }} as ethnicity_codes\n from {{ ref('stg_workday__personal_information_ethnicity') }}\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from {{ ref('stg_workday__military_service') }}\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}, {"name": "stg_workday__person_name", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}, {"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.workday.stg_workday__personal_information", "model.workday.stg_workday__person_name", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__personal_information_ethnicity", "model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__personal_details.sql", "compiled": true, "compiled_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_details.sql", "original_file_path": "models/intermediate/int_workday__worker_details.sql", "unique_id": "model.workday.int_workday__worker_details", "fqn": ["workday", "intermediate", "int_workday__worker_details"], "alias": "int_workday__worker_details", "checksum": {"name": "sha256", "checksum": "98594d1ac2b7a464df705e177c7c849fd4b4514e9ecee135ba1fc1cb20c78a15"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709769128.291425, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_details\"", "raw_code": "with worker_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker') }}\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then {{ dbt.datediff('hire_date', 'current_date', 'day') }}\n else {{ dbt.datediff('hire_date', 'termination_date', 'day') }}\n end as days_of_employment,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_details.sql", "compiled": true, "compiled_code": "with worker_data as (\n\n select \n *,\n now() as current_date\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_of_employment,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_employee_enhanced": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_employee_enhanced", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_employee_enhanced.sql", "original_file_path": "models/intermediate/int_workday__worker_employee_enhanced.sql", "unique_id": "model.workday.int_workday__worker_employee_enhanced", "fqn": ["workday", "intermediate", "int_workday__worker_employee_enhanced"], "alias": "int_workday__worker_employee_enhanced", "checksum": {"name": "sha256", "checksum": "bd26b685c21ba0956dccd0699129c1236ea6f764cde5f8fcc2dbeece75bd123a"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709769128.2949681, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_employee_enhanced\"", "raw_code": "with int_worker_base as (\n\n select * \n from {{ ref('int_workday__worker_details') }} \n),\n\nint_worker_personal_details as (\n\n select * \n from {{ ref('int_workday__personal_details') }} \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from {{ ref('int_workday__worker_position_enriched') }} \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n days_at_position,\n position_start_date,\n position_end_date,\n position_effective_date,\n worker_positions,\n worker_levels,\n position_days,\n case when days_of_employment >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_of_employment >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_of_employment >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_of_employment >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_of_employment >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_of_employment >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_of_employment >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_of_employment >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_of_employment >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_of_employment >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "language": "sql", "refs": [{"name": "int_workday__worker_details", "package": null, "version": null}, {"name": "int_workday__personal_details", "package": null, "version": null}, {"name": "int_workday__worker_position_enriched", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.int_workday__worker_details", "model.workday.int_workday__personal_details", "model.workday.int_workday__worker_position_enriched"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_employee_enhanced.sql", "compiled": true, "compiled_code": "with int_worker_base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_details\" \n),\n\nint_worker_personal_details as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__personal_details\" \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_position_enriched\" \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n days_at_position,\n position_start_date,\n position_end_date,\n position_effective_date,\n worker_positions,\n worker_levels,\n position_days,\n case when days_of_employment >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_of_employment >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_of_employment >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_of_employment >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_of_employment >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_of_employment >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_of_employment >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_of_employment >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_of_employment >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_of_employment >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__employee_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "resource_type": "model", "package_name": "workday", "path": "intermediate/workday_history/int_workday__employee_history.sql", "original_file_path": "models/intermediate/workday_history/int_workday__employee_history.sql", "unique_id": "model.workday.int_workday__employee_history", "fqn": ["workday", "intermediate", "workday_history", "int_workday__employee_history"], "alias": "int_workday__employee_history", "checksum": {"name": "sha256", "checksum": "151b3ea2521e48c1117d2b168f5a7d357d05caae5c4a4a50a29fe1103a4833d9"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709769128.296414, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"", "raw_code": "with worker_history as (\n\n select *\n from {{ ref('stg_workday__worker_history') }}\n),\n\nworker_position_history as (\n\n select *\n from {{ ref('stg_workday__worker_position_history') }}\n),\n\npersonal_information_history as (\n\n select *\n from {{ ref('stg_workday__personal_information_history') }}\n),\n\nworker_start_records as (\n\n select worker_id, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n _fivetran_start\n from personal_information_history\n order by worker_id, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead({{ dbt.dateadd('microsecond', -1, '_fivetran_start') }} ) over(partition by worker_id order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as {{ dbt.type_timestamp() }}),\n cast('9999-12-31 23:59:59.999000' as {{ dbt.type_timestamp() }})) as _fivetran_end\n from worker_history_end_values\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_history_scd as (\n\n select worker_history_scd.worker_id, \n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as wh_active,\n worker_position_history._fivetran_active as wph_active,\n worker_history.end_employment_date as wh_end_employment_date,\n worker_position_history.end_employment_date as wph_end_employment_date,\n worker_history.pay_through_date as wh_pay_through_date,\n worker_position_history.pay_through_date as wph_pay_through_date,\n {{ dbt_utils.star(from=ref('stg_workday__worker_history'), except=[\"worker_id\", \"_fivetran_start\", \"_fivetran_end\", \"_fivetran_synced\", \"_fivetran_active\", \"_fivetran_date\", \"history_unique_key\", \"end_employment_date\", \"pay_through_date\"]) }},\n {{ dbt_utils.star(from=ref('stg_workday__worker_position_history'), except=[\"worker_id\", \"position_id\", \"_fivetran_start\", \"_fivetran_end\", \"_fivetran_synced\", \"_fivetran_active\", \"_fivetran_date\", \"history_unique_key\", \"end_employment_date\", \"pay_through_date\"])}},\n {{ dbt_utils.star(from=ref('stg_workday__personal_information_history'), except=[\"worker_id\", \"_fivetran_start\", \"_fivetran_end\", \"_fivetran_synced\", \"_fivetran_active\", \"_fivetran_date\", \"history_unique_key\"])}}\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_key as (\n\n select {{ dbt_utils.generate_surrogate_key(['worker_id','position_id','start_date']) }} as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n)\n\nselect * \nfrom employee_key", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}, {"name": "stg_workday__worker_position_history", "package": null, "version": null}, {"name": "stg_workday__personal_information_history", "package": null, "version": null}, {"name": "stg_workday__worker_history", "package": null, "version": null}, {"name": "stg_workday__worker_position_history", "package": null, "version": null}, {"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.type_timestamp", "macro.dbt_utils.star", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history", "model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/intermediate/workday_history/int_workday__employee_history.sql", "compiled": true, "compiled_code": "with worker_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\n),\n\nworker_position_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\n),\n\npersonal_information_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\n),\n\nworker_start_records as (\n\n select worker_id, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n _fivetran_start\n from personal_information_history\n order by worker_id, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_history_scd as (\n\n select worker_history_scd.worker_id, \n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as wh_active,\n worker_position_history._fivetran_active as wph_active,\n worker_history.end_employment_date as wh_end_employment_date,\n worker_position_history.end_employment_date as wph_end_employment_date,\n worker_history.pay_through_date as wh_pay_through_date,\n worker_position_history.pay_through_date as wph_pay_through_date,\n \"termination_date\",\n \"academic_tenure_date\",\n \"active\",\n \"active_status_date\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_frequency\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_total_salary_and_allowances\",\n \"annual_summary_currency\",\n \"annual_summary_frequency\",\n \"annual_summary_primary_compensation_basis\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_total_salary_and_allowances\",\n \"benefits_service_date\",\n \"company_service_date\",\n \"compensation_effective_date\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"continuous_service_date\",\n \"contract_assignment_details\",\n \"contract_currency_code\",\n \"contract_end_date\",\n \"contract_frequency_name\",\n \"contract_pay_rate\",\n \"contract_vendor_name\",\n \"date_entered_workforce\",\n \"days_unemployed\",\n \"eligible_for_hire\",\n \"eligible_for_rehire_on_latest_termination\",\n \"employee_compensation_currency\",\n \"employee_compensation_frequency\",\n \"employee_compensation_primary_compensation_basis\",\n \"employee_compensation_total_base_pay\",\n \"employee_compensation_total_salary_and_allowances\",\n \"expected_date_of_return\",\n \"expected_retirement_date\",\n \"first_day_of_work\",\n \"has_international_assignment\",\n \"hire_date\",\n \"hire_reason\",\n \"hire_rescinded\",\n \"hourly_frequency_currency\",\n \"hourly_frequency_frequency\",\n \"hourly_frequency_primary_compensation_basis\",\n \"hourly_frequency_total_base_pay\",\n \"hourly_frequency_total_salary_and_allowances\",\n \"last_datefor_which_paid\",\n \"local_termination_reason\",\n \"months_continuous_prior_employment\",\n \"not_returning\",\n \"original_hire_date\",\n \"pay_group_frequency_currency\",\n \"pay_group_frequency_frequency\",\n \"pay_group_frequency_primary_compensation_basis\",\n \"pay_group_frequency_total_base_pay\",\n \"pay_group_frequency_total_salary_and_allowances\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"probation_end_date\",\n \"probation_start_date\",\n \"reason_reference_id\",\n \"regrettable_termination\",\n \"rehire\",\n \"resignation_date\",\n \"retired\",\n \"retirement_date\",\n \"retirement_eligibility_date\",\n \"return_unknown\",\n \"seniority_date\",\n \"severance_date\",\n \"terminated\",\n \"termination_involuntary\",\n \"termination_last_day_of_work\",\n \"time_off_service_date\",\n \"universal_id\",\n \"user_id\",\n \"vesting_date\",\n \"worker_code\",\n \"effective_date\",\n \"academic_pay_setup_data_annual_work_period_end_date\",\n \"academic_pay_setup_data_annual_work_period_start_date\",\n \"academic_pay_setup_data_annual_work_period_work_percent_of_year\",\n \"academic_pay_setup_data_disbursement_plan_period_end_date\",\n \"academic_pay_setup_data_disbursement_plan_period_start_date\",\n \"business_site_summary_display_language\",\n \"business_site_summary_local\",\n \"business_site_summary_location\",\n \"business_site_summary_location_type\",\n \"business_site_summary_name\",\n \"business_site_summary_scheduled_weekly_hours\",\n \"business_site_summary_time_profile\",\n \"business_title\",\n \"critical_job\",\n \"default_weekly_hours\",\n \"difficulty_to_fill\",\n \"employee_type\",\n \"end_date\",\n \"exclude_from_head_count\",\n \"expected_assignment_end_date\",\n \"external_employee\",\n \"federal_withholding_fein\",\n \"frequency\",\n \"full_time_equivalent_percentage\",\n \"headcount_restriction_code\",\n \"host_country\",\n \"international_assignment_type\",\n \"is_primary_job\",\n \"job_exempt\",\n \"job_profile_id\",\n \"management_level_code\",\n \"paid_fte\",\n \"pay_group\",\n \"pay_rate\",\n \"pay_rate_type\",\n \"payroll_entity\",\n \"payroll_file_number\",\n \"regular_paid_equivalent_hours\",\n \"scheduled_weekly_hours\",\n \"specify_paid_fte\",\n \"specify_working_fte\",\n \"start_date\",\n \"start_international_assignment_reason\",\n \"work_hours_profile\",\n \"work_shift\",\n \"work_shift_required\",\n \"work_space\",\n \"worker_hours_profile_classification\",\n \"working_fte\",\n \"working_time_frequency\",\n \"working_time_unit\",\n \"working_time_value\",\n \"type\",\n \"additional_nationality\",\n \"blood_type\",\n \"citizenship_status\",\n \"city_of_birth\",\n \"city_of_birth_code\",\n \"country_of_birth\",\n \"date_of_birth\",\n \"date_of_death\",\n \"gender\",\n \"hispanic_or_latino\",\n \"hukou_locality\",\n \"hukou_postal_code\",\n \"hukou_region\",\n \"hukou_subregion\",\n \"hukou_type\",\n \"last_medical_exam_date\",\n \"last_medical_exam_valid_to\",\n \"local_hukou\",\n \"marital_status\",\n \"marital_status_date\",\n \"medical_exam_notes\",\n \"native_region\",\n \"native_region_code\",\n \"personnel_file_agency\",\n \"political_affiliation\",\n \"primary_nationality\",\n \"region_of_birth\",\n \"region_of_birth_code\",\n \"religion\",\n \"social_benefit\",\n \"tobacco_use\",\n \"ll\"\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n)\n\nselect * \nfrom employee_key", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_overview_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_overview_worker_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "fqn": ["workday", "not_null_workday__employee_overview_worker_id"], "alias": "not_null_workday__employee_overview_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.7372139, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__employee_overview_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "position_id", "position_start_date"], "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date"], "alias": "dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d"}, "created_at": 1709769128.7385468, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d\") }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, position_id, position_start_date\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\n group by source_relation, worker_id, position_id, position_start_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__job_overview_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__job_overview_job_profile_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "fqn": ["workday", "not_null_workday__job_overview_job_profile_id"], "alias": "not_null_workday__job_overview_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.745672, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__job_overview_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656"}, "created_at": 1709769128.7468412, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656\") }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.not_null_workday__position_overview_position_id.603beb3f22": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__position_overview_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__position_overview_position_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "fqn": ["workday", "not_null_workday__position_overview_position_id"], "alias": "not_null_workday__position_overview_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.749557, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__position_overview_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e"}, "created_at": 1709769128.750697, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e\") }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "fqn": ["workday", "not_null_workday__organization_overview_organization_id"], "alias": "not_null_workday__organization_overview_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.7534568, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_role_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "fqn": ["workday", "not_null_workday__organization_overview_organization_role_id"], "alias": "not_null_workday__organization_overview_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.754408, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1"}, "created_at": 1709769128.75549, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1\") }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "fqn": ["workday", "staging", "not_null_stg_workday__job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.865663, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1"}, "created_at": 1709769128.8669271, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_family_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.869706, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.870822, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id"], "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378"}, "created_at": 1709769128.8720782, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.875057, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id"], "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd"}, "created_at": 1709769128.8762932, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_group_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.8789551, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af"}, "created_at": 1709769128.880009, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_group_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4"}, "created_at": 1709769128.880975, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_group_job_family_group_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_family_group_job_family_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.883553, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_group_job_family_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_group_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5"}, "created_at": 1709769128.884532, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_group_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_id"], "alias": "not_null_stg_workday__organization_role_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.887742, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_role_id"], "alias": "not_null_stg_workday__organization_role_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.888801, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id"], "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908"}, "created_at": 1709769128.889706, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_worker_code", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_worker_code", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_worker_code"], "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda"}, "created_at": 1709769128.892212, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_worker_code\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere organization_worker_code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_worker_code", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_id"], "alias": "not_null_stg_workday__organization_role_worker_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.893121, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_role_id"], "alias": "not_null_stg_workday__organization_role_worker_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.8940082, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect role_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "role_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_worker_code", "organization_id", "role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id"], "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a"}, "created_at": 1709769128.895159, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_job_family_id"], "alias": "not_null_stg_workday__organization_job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.8976362, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_organization_id"], "alias": "not_null_stg_workday__organization_job_family_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.898579, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id"], "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456"}, "created_at": 1709769128.899717, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_organization_id"], "alias": "not_null_stg_workday__organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.902037, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id"], "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5"}, "created_at": 1709769128.903168, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_organization_id"], "alias": "not_null_stg_workday__position_organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.9052641, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_position_id"], "alias": "not_null_stg_workday__position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.906796, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id"], "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc"}, "created_at": 1709769128.907897, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "fqn": ["workday", "staging", "not_null_stg_workday__position_position_id"], "alias": "not_null_stg_workday__position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.9101691, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32"}, "created_at": 1709769128.911335, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32\") }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_job_profile_id"], "alias": "not_null_stg_workday__position_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.913815, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_position_id"], "alias": "not_null_stg_workday__position_job_profile_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.914919, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id"], "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62"}, "created_at": 1709769128.9161751, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "fqn": ["workday", "staging", "not_null_stg_workday__worker_worker_id"], "alias": "not_null_stg_workday__worker_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.918952, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33"}, "created_at": 1709769128.919984, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_worker_id"], "alias": "not_null_stg_workday__personal_information_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.923177, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13"}, "created_at": 1709769128.9242399, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_worker_id"], "alias": "not_null_stg_workday__person_name_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.926744, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_name_type", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_person_name_type", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_person_name_type.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_person_name_type"], "alias": "not_null_stg_workday__person_name_person_name_type", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.927904, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_person_name_type.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect person_name_type\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\nwhere person_name_type is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_name_type", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_name_type"], "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type"], "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574"}, "created_at": 1709769128.929205, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_worker_id"], "alias": "not_null_stg_workday__personal_information_ethnicity_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.931842, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ethnicity_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_ethnicity_id"], "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5"}, "created_at": 1709769128.932752, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ethnicity_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\nwhere ethnicity_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ethnicity_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "ethnicity_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id"], "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5"}, "created_at": 1709769128.933666, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__military_service_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__military_service_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "fqn": ["workday", "staging", "not_null_stg_workday__military_service_worker_id"], "alias": "not_null_stg_workday__military_service_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.93604, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__military_service_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9"}, "created_at": 1709769128.937, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9\") }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_contact_email_address_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id"], "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08"}, "created_at": 1709769128.939892, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect person_contact_email_address_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\nwhere person_contact_email_address_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_contact_email_address_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_contact_email_address_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_worker_id"], "alias": "not_null_stg_workday__person_contact_email_address_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.940952, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_contact_email_address_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_contact_email_address_id"], "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id"], "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb"}, "created_at": 1709769128.941994, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_position_id"], "alias": "not_null_stg_workday__worker_position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.944851, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_worker_id"], "alias": "not_null_stg_workday__worker_position_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.945786, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7"}, "created_at": 1709769128.946798, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "leave_request_event_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_leave_request_event_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_leave_request_event_id"], "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308"}, "created_at": 1709769128.949762, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect leave_request_event_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\nwhere leave_request_event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "leave_request_event_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_leave_status_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_worker_id"], "alias": "not_null_stg_workday__worker_leave_status_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.950735, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_leave_status_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "leave_request_event_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id"], "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f"}, "created_at": 1709769128.951707, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_position_id"], "alias": "not_null_stg_workday__worker_position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.954626, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_worker_id"], "alias": "not_null_stg_workday__worker_position_organization_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.955565, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_organization_id"], "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23"}, "created_at": 1709769128.9564679, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "position_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id"], "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926"}, "created_at": 1709769128.9575639, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "model.workday.stg_workday__personal_information_history": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_history", "resource_type": "model", "package_name": "workday", "path": "staging/workday_history/stg_workday__personal_information_history.sql", "original_file_path": "models/staging/workday_history/stg_workday__personal_information_history.sql", "unique_id": "model.workday.stg_workday__personal_information_history", "fqn": ["workday", "staging", "workday_history", "stg_workday__personal_information_history"], "alias": "stg_workday__personal_information_history", "checksum": {"name": "sha256", "checksum": "d1614bdab8a62008ed9a9ed765578a6a4625df1276c2dfa2faab600b6ab66570"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/workday_history/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709771512.614976, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"", "raw_code": "with base as (\n\n select * \n from {{ source('workday','personal_information_history') }}\n {% if var('personal_information_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('personal_information_history_start_date') }}\"\n {% endif %} \n),\n\nfinal as (\n\n select \n id as worker_id,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key,\n {{ dbt_utils.star(from=source('workday','personal_information_history'),\n except=[\"id\", \"_fivetran_start\", \"_fivetran_end\"]) }}\n from base\n)\n\nselect *\nfrom final", "language": "sql", "refs": [], "sources": [["workday", "personal_information_history"], ["workday", "personal_information_history"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key", "macro.dbt_utils.star"], "nodes": ["source.workday.workday.personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday__personal_information_history.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"\n \n),\n\nfinal as (\n\n select \n id as worker_id,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"type\",\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"additional_nationality\",\n \"blood_type\",\n \"citizenship_status\",\n \"city_of_birth\",\n \"city_of_birth_code\",\n \"country_of_birth\",\n \"date_of_birth\",\n \"date_of_death\",\n \"gender\",\n \"hispanic_or_latino\",\n \"hukou_locality\",\n \"hukou_postal_code\",\n \"hukou_region\",\n \"hukou_subregion\",\n \"hukou_type\",\n \"last_medical_exam_date\",\n \"last_medical_exam_valid_to\",\n \"local_hukou\",\n \"marital_status\",\n \"marital_status_date\",\n \"medical_exam_notes\",\n \"native_region\",\n \"native_region_code\",\n \"personnel_file_agency\",\n \"political_affiliation\",\n \"primary_nationality\",\n \"region_of_birth\",\n \"region_of_birth_code\",\n \"religion\",\n \"social_benefit\",\n \"tobacco_use\",\n \"ll\"\n from base\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_history", "resource_type": "model", "package_name": "workday", "path": "staging/workday_history/stg_workday__worker_position_organization_history.sql", "original_file_path": "models/staging/workday_history/stg_workday__worker_position_organization_history.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_history", "fqn": ["workday", "staging", "workday_history", "stg_workday__worker_position_organization_history"], "alias": "stg_workday__worker_position_organization_history", "checksum": {"name": "sha256", "checksum": "a62832915d38a47324eaad70aa7536684364ef0d5de33e971fad56f29ae87f41"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/workday_history/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709771512.61637, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"", "raw_code": "with base as (\n\n select * \n from {{ source('workday','worker_position_organization_history') }}\n {% if var('worker_position_organization_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('worker_position_organization_history_start_date') }}\"\n {% endif %} \n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id, \n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'organization_id', '_fivetran_start']) }} as history_unique_key,\n {{ dbt_utils.star(from=source('workday','worker_position_organization_history'),\n except=[\"worker_id\", \"position_id\", \"organization_id\", \"_fivetran_start\", \"_fivetran_end\"]) }}\n from base\n)\n\nselect *\nfrom final", "language": "sql", "refs": [], "sources": [["workday", "worker_position_organization_history"], ["workday", "worker_position_organization_history"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key", "macro.dbt_utils.star"], "nodes": ["source.workday.workday.worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday__worker_position_organization_history.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"\n \n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id, \n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"index\",\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"date_of_pay_group_assignment\",\n \"primary_business_site\",\n \"used_in_change_organization_assignments\"\n from base\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__monthly_summary": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__monthly_summary.sql", "original_file_path": "models/workday_history/workday__monthly_summary.sql", "unique_id": "model.workday.workday__monthly_summary", "fqn": ["workday", "workday_history", "workday__monthly_summary"], "alias": "workday__monthly_summary", "checksum": {"name": "sha256", "checksum": "9a3ea829c9169045078660cae00104b4c747fdf8e1ac47f7f405a9f4de9f5833"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709771512.558947, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"", "raw_code": "with row_month_partition as (\n\n select *, \n {{ dbt.date_trunc(\"month\", \"date_day\") }} as date_month,\n row_number() over (partition by employee_id, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from {{ ref('workday__employee_daily_history') }}\n order by employee_id, date_day\n),\n\nend_of_month_history as (\n \n select *\n from row_month_partition\n where recent_dom_row = 1\n order by employee_id, date_day\n),\n\nmonthly_employee_metrics as (\n\n select date_month,\n sum(case when date_month = {{ dbt.date_trunc(\"month\", \"effective_date\") }} then 1 else 0 end) as new_employees,\n sum(case when date_month = {{ dbt.date_trunc(\"month\", \"termination_date\") }} then 1 else 0 end) as churned_employees,\n sum(case when date_month = {{ dbt.date_trunc(\"month\", \"wh_end_employment_date\") }} then 1 else 0 end) as churned_workers\n from end_of_month_history\n group by 1\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees\n from end_of_month_history\n where date_month >= {{ dbt.date_trunc(\"month\", \"effective_date\") }}\n and (date_month <= {{ dbt.date_trunc(\"month\", \"wph_end_employment_date\") }}\n or wph_end_employment_date is null)\n group by 1\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n count(distinct worker_id) as active_workers\n from end_of_month_history\n where (date_month >= {{ dbt.date_trunc(\"month\", \"effective_date\") }}\n and date_month <= {{ dbt.date_trunc(\"month\", \"wh_end_employment_date\") }})\n or wh_end_employment_date is null\n group by 1\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_worker_metrics.active_workers\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n)\n\nselect *\nfrom monthly_summary", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__monthly_summary.sql", "compiled": true, "compiled_code": "with row_month_partition as (\n\n select *, \n date_trunc('month', date_day) as date_month,\n row_number() over (partition by employee_id, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n order by employee_id, date_day\n),\n\nend_of_month_history as (\n \n select *\n from row_month_partition\n where recent_dom_row = 1\n order by employee_id, date_day\n),\n\nmonthly_employee_metrics as (\n\n select date_month,\n sum(case when date_month = date_trunc('month', effective_date) then 1 else 0 end) as new_employees,\n sum(case when date_month = date_trunc('month', termination_date) then 1 else 0 end) as churned_employees,\n sum(case when date_month = date_trunc('month', wh_end_employment_date) then 1 else 0 end) as churned_workers\n from end_of_month_history\n group by 1\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees\n from end_of_month_history\n where date_month >= date_trunc('month', effective_date)\n and (date_month <= date_trunc('month', wph_end_employment_date)\n or wph_end_employment_date is null)\n group by 1\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n count(distinct worker_id) as active_workers\n from end_of_month_history\n where (date_month >= date_trunc('month', effective_date)\n and date_month <= date_trunc('month', wh_end_employment_date))\n or wh_end_employment_date is null\n group by 1\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_worker_metrics.active_workers\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n)\n\nselect *\nfrom monthly_summary", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_history_worker_id.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__personal_information_history_worker_id"], "alias": "not_null_stg_workday__personal_information_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709771512.682732, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__personal_information_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "fqn": ["workday", "staging", "workday_history", "unique_stg_workday__personal_information_history_history_unique_key"], "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2"}, "created_at": 1709771512.683669, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__personal_information_history_history_unique_key"], "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3"}, "created_at": 1709771512.685021, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c", "fqn": ["workday", "staging", "workday_history", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523"}, "created_at": 1709771512.686107, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_organization_history_worker_id"], "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a"}, "created_at": 1709771512.689112, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_organization_history_position_id"], "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441"}, "created_at": 1709771512.690179, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_organization_history_organization_id"], "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0"}, "created_at": 1709771512.691145, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "fqn": ["workday", "staging", "workday_history", "unique_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22"}, "created_at": 1709771512.6923342, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6"}, "created_at": 1709771512.693284, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "position_id", "organization_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888", "fqn": ["workday", "staging", "workday_history", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71"}, "created_at": 1709771512.694432, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, position_id, organization_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\n group by worker_id, position_id, organization_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "model.workday.stg_workday__worker_history": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_history", "resource_type": "model", "package_name": "workday", "path": "staging/workday_history/stg_workday__worker_history.sql", "original_file_path": "models/staging/workday_history/stg_workday__worker_history.sql", "unique_id": "model.workday.stg_workday__worker_history", "fqn": ["workday", "staging", "workday_history", "stg_workday__worker_history"], "alias": "stg_workday__worker_history", "checksum": {"name": "sha256", "checksum": "871811f2dcd4a997793484169f24940ad34de633860b6d696cb67f34ae4c7f06"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/workday_history/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709771780.2239208, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"", "raw_code": "with base as (\n\n select * \n from {{ source('workday','worker_history') }} \n {% if var('worker_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('worker_history_start_date') }}\"\n {% endif %} \n),\n\nfinal as (\n\n select \n id as worker_id, \n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date,\n cast(termination_date as {{ dbt.type_timestamp() }}) as termination_date,\n {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key,\n {{ dbt_utils.star(from=source('workday','worker_history'),\n except=[\"id\", \"_fivetran_start\", \"_fivetran_end\", \"home_country\", \"end_employment_date\", \"termination_date\"]) }}\n from base\n)\n\nselect *\nfrom final", "language": "sql", "refs": [], "sources": [["workday", "worker_history"], ["workday", "worker_history"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key", "macro.dbt_utils.star"], "nodes": ["source.workday.workday.worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday__worker_history.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\" \n \n),\n\nfinal as (\n\n select \n id as worker_id, \n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n cast(termination_date as timestamp) as termination_date,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"academic_tenure_date\",\n \"active\",\n \"active_status_date\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_frequency\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_total_salary_and_allowances\",\n \"annual_summary_currency\",\n \"annual_summary_frequency\",\n \"annual_summary_primary_compensation_basis\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_total_salary_and_allowances\",\n \"benefits_service_date\",\n \"company_service_date\",\n \"compensation_effective_date\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"continuous_service_date\",\n \"contract_assignment_details\",\n \"contract_currency_code\",\n \"contract_end_date\",\n \"contract_frequency_name\",\n \"contract_pay_rate\",\n \"contract_vendor_name\",\n \"date_entered_workforce\",\n \"days_unemployed\",\n \"eligible_for_hire\",\n \"eligible_for_rehire_on_latest_termination\",\n \"employee_compensation_currency\",\n \"employee_compensation_frequency\",\n \"employee_compensation_primary_compensation_basis\",\n \"employee_compensation_total_base_pay\",\n \"employee_compensation_total_salary_and_allowances\",\n \"expected_date_of_return\",\n \"expected_retirement_date\",\n \"first_day_of_work\",\n \"has_international_assignment\",\n \"hire_date\",\n \"hire_reason\",\n \"hire_rescinded\",\n \"hourly_frequency_currency\",\n \"hourly_frequency_frequency\",\n \"hourly_frequency_primary_compensation_basis\",\n \"hourly_frequency_total_base_pay\",\n \"hourly_frequency_total_salary_and_allowances\",\n \"last_datefor_which_paid\",\n \"local_termination_reason\",\n \"months_continuous_prior_employment\",\n \"not_returning\",\n \"original_hire_date\",\n \"pay_group_frequency_currency\",\n \"pay_group_frequency_frequency\",\n \"pay_group_frequency_primary_compensation_basis\",\n \"pay_group_frequency_total_base_pay\",\n \"pay_group_frequency_total_salary_and_allowances\",\n \"pay_through_date\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"probation_end_date\",\n \"probation_start_date\",\n \"reason_reference_id\",\n \"regrettable_termination\",\n \"rehire\",\n \"resignation_date\",\n \"retired\",\n \"retirement_date\",\n \"retirement_eligibility_date\",\n \"return_unknown\",\n \"seniority_date\",\n \"severance_date\",\n \"terminated\",\n \"termination_involuntary\",\n \"termination_last_day_of_work\",\n \"time_off_service_date\",\n \"universal_id\",\n \"user_id\",\n \"vesting_date\",\n \"worker_code\"\n from base\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_history": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_history", "resource_type": "model", "package_name": "workday", "path": "staging/workday_history/stg_workday__worker_position_history.sql", "original_file_path": "models/staging/workday_history/stg_workday__worker_position_history.sql", "unique_id": "model.workday.stg_workday__worker_position_history", "fqn": ["workday", "staging", "workday_history", "stg_workday__worker_position_history"], "alias": "stg_workday__worker_position_history", "checksum": {"name": "sha256", "checksum": "f2206be46ef04dee39276586e37ce448a8c2070f54b8a0a4b232c0a51410a659"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id` and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/workday_history/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709771780.232699, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"", "raw_code": "with base as (\n\n select * \n from {{ source('workday','worker_position_history') }}\n {% if var('worker_position_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('worker_position_history_start_date') }}\"\n {% endif %}\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(effective_date as {{ dbt.type_timestamp() }}) as effective_date,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date,\n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', '_fivetran_start']) }} as history_unique_key,\n {{ dbt_utils.star(from=source('workday','worker_position_history'),\n except=[\"worker_id\", \"position_id\", \"_fivetran_start\", \"_fivetran_end\", \"home_country\", \"effective_date\", \"end_employment_date\"]) }}\n from base\n)\n\nselect *\nfrom final", "language": "sql", "refs": [], "sources": [["workday", "worker_position_history"], ["workday", "worker_position_history"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key", "macro.dbt_utils.star"], "nodes": ["source.workday.workday.worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday__worker_position_history.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"\n \n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(effective_date as timestamp) as effective_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"academic_pay_setup_data_annual_work_period_end_date\",\n \"academic_pay_setup_data_annual_work_period_start_date\",\n \"academic_pay_setup_data_annual_work_period_work_percent_of_year\",\n \"academic_pay_setup_data_disbursement_plan_period_end_date\",\n \"academic_pay_setup_data_disbursement_plan_period_start_date\",\n \"business_site_summary_display_language\",\n \"business_site_summary_local\",\n \"business_site_summary_location\",\n \"business_site_summary_location_type\",\n \"business_site_summary_name\",\n \"business_site_summary_scheduled_weekly_hours\",\n \"business_site_summary_time_profile\",\n \"business_title\",\n \"critical_job\",\n \"default_weekly_hours\",\n \"difficulty_to_fill\",\n \"employee_type\",\n \"end_date\",\n \"exclude_from_head_count\",\n \"expected_assignment_end_date\",\n \"external_employee\",\n \"federal_withholding_fein\",\n \"frequency\",\n \"full_time_equivalent_percentage\",\n \"headcount_restriction_code\",\n \"host_country\",\n \"international_assignment_type\",\n \"is_primary_job\",\n \"job_exempt\",\n \"job_profile_id\",\n \"management_level_code\",\n \"paid_fte\",\n \"pay_group\",\n \"pay_rate\",\n \"pay_rate_type\",\n \"pay_through_date\",\n \"payroll_entity\",\n \"payroll_file_number\",\n \"regular_paid_equivalent_hours\",\n \"scheduled_weekly_hours\",\n \"specify_paid_fte\",\n \"specify_working_fte\",\n \"start_date\",\n \"start_international_assignment_reason\",\n \"work_hours_profile\",\n \"work_shift\",\n \"work_shift_required\",\n \"work_space\",\n \"worker_hours_profile_classification\",\n \"working_fte\",\n \"working_time_frequency\",\n \"working_time_unit\",\n \"working_time_value\"\n from base\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_worker_id.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_history_worker_id"], "alias": "not_null_stg_workday__worker_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709771780.2775, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "fqn": ["workday", "staging", "workday_history", "unique_stg_workday__worker_history_history_unique_key"], "alias": "unique_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709771780.2787268, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/unique_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_history_history_unique_key"], "alias": "not_null_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709771780.27986, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df", "fqn": ["workday", "staging", "workday_history", "dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135"}, "created_at": 1709771780.281367, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_worker_id.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_history_worker_id"], "alias": "not_null_stg_workday__worker_position_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709771780.2884328, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_position_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_position_id.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_history_position_id"], "alias": "not_null_stg_workday__worker_position_history_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709771780.2894971, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_position_history_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_position_history_history_unique_key.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "fqn": ["workday", "staging", "workday_history", "unique_stg_workday__worker_position_history_history_unique_key"], "alias": "unique_stg_workday__worker_position_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709771780.2904918, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/unique_stg_workday__worker_position_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9"}, "created_at": 1709771780.29163, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "position_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b", "fqn": ["workday", "staging", "workday_history", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412"}, "created_at": 1709771780.2925959, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, position_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\n group by worker_id, position_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "seed.workday_integration_tests.workday_worker_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_history_data.csv", "original_file_path": "seeds/workday_worker_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "fqn": ["workday_integration_tests", "workday_worker_history_data"], "alias": "workday_worker_history_data", "checksum": {"name": "sha256", "checksum": "b3b80c42d748789791fca4630504aafa22afd1dca315e0d63bc0f9f9fe33a68d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "annual_currency_summary_primary_compensation_basis": "float", "annual_currency_summary_total_base_pay": "float", "annual_currency_summary_total_salary_and_allowances": "float", "annual_summary_primary_compensation_basis": "float", "annual_summary_total_base_pay": "float", "annual_summary_total_salary_and_allowances": "float", "contract_pay_rate": "float", "days_unemployed": "float", "employee_compensation_primary_compensation_basis": "float", "employee_compensation_total_base_pay": "float", "employee_compensation_total_salary_and_allowances": "float", "hourly_frequency_primary_compensation_basis": "float", "hourly_frequency_total_base_pay": "float", "hourly_frequency_total_salary_and_allowances": "float", "months_continuous_prior_employment": "float", "pay_group_frequency_primary_compensation_basis": "float", "pay_group_frequency_total_base_pay": "float", "pay_group_frequency_total_salary_and_allowances": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "annual_currency_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "contract_pay_rate": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "days_unemployed": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "months_continuous_prior_employment": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1709772001.5614889, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_history_data.csv", "original_file_path": "seeds/workday_worker_position_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_history_data"], "alias": "workday_worker_position_history_data", "checksum": {"name": "sha256", "checksum": "434f6ed5606c6606bbbf41d1427584a275a825ae285f88c1b12d2c3d7da3c07d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "float", "business_site_summary_scheduled_weekly_hours": "float", "default_weekly_hours": "float", "start_date": "timestamp", "end_date": "timestamp"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "business_site_summary_scheduled_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "default_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "start_date": "timestamp", "end_date": "timestamp"}, "created_at": 1709772262.209337, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}}, "sources": {"source.workday.workday.job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_profile", "fqn": ["workday", "staging", "workday", "job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"id": {"name": "id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_job_code_in_name": {"name": "include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "public_job": {"name": "public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "title": {"name": "title", "description": "Title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "created_at": 1709769128.994891}, "source.workday.workday.job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_profile", "fqn": ["workday", "staging", "workday", "job_family_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "created_at": 1709769128.9950101}, "source.workday.workday.job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family", "fqn": ["workday", "staging", "workday", "job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "created_at": 1709769128.9950988}, "source.workday.workday.job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_family_group", "fqn": ["workday", "staging", "workday", "job_family_job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "created_at": 1709769128.995182}, "source.workday.workday.job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_group", "fqn": ["workday", "staging", "workday", "job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"id": {"name": "id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "created_at": 1709769128.995268}, "source.workday.workday.organization_role": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role", "fqn": ["workday", "staging", "workday", "organization_role"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "created_at": 1709769128.995351}, "source.workday.workday.organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role_worker", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role_worker", "fqn": ["workday", "staging", "workday", "organization_role_worker"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_worker_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"associated_worker_id": {"name": "associated_worker_id", "description": "Identifier for the worker associated with the organization role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "created_at": 1709769128.995434}, "source.workday.workday.organization_job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_job_family", "fqn": ["workday", "staging", "workday", "organization_job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "created_at": 1709769128.995518}, "source.workday.workday.organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization", "fqn": ["workday", "staging", "workday", "organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Identifier for the organization.", "columns": {"id": {"name": "id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_manager_in_name": {"name": "include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_organization_code_in_name": {"name": "include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location": {"name": "location", "description": "Location associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sub_type": {"name": "sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "created_at": 1709769128.9956338}, "source.workday.workday.position_organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_organization", "fqn": ["workday", "staging", "workday", "position_organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "created_at": 1709769128.995714}, "source.workday.workday.position": {"database": "postgres", "schema": "workday_integration_tests", "name": "position", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position", "fqn": ["workday", "staging", "workday", "position"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_eligible": {"name": "academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_overlap": {"name": "available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_recruiting": {"name": "available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "created_at": 1709769128.9958332}, "source.workday.workday.position_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_job_profile", "fqn": ["workday", "staging", "workday", "position_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "created_at": 1709769128.996001}, "source.workday.workday.worker_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_history", "fqn": ["workday", "staging", "workday", "worker_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"id": {"name": "id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "has_international_assignment": {"name": "has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_rescinded": {"name": "hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "not_returning": {"name": "not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regrettable_termination": {"name": "regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rehire": {"name": "rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retired": {"name": "retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "return_unknown": {"name": "return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "terminated": {"name": "terminated", "description": "Flag indicating whether the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_involuntary": {"name": "termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "created_at": 1709769128.996199}, "source.workday.workday.personal_information_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_history", "fqn": ["workday", "staging", "workday", "personal_information_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The personal information associated with each worker.", "columns": {"id": {"name": "id", "description": "The identifier for each personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hispanic_or_latino": {"name": "hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_hukou": {"name": "local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tobacco_use": {"name": "tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "created_at": 1709769128.9963179}, "source.workday.workday.person_name": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_name", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_name", "fqn": ["workday", "staging", "workday", "person_name"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_name_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the name information for an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "created_at": 1709769128.9964328}, "source.workday.workday.personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_ethnicity", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_ethnicity", "fqn": ["workday", "staging", "workday", "personal_information_ethnicity"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_ethnicity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "created_at": 1709769128.996532}, "source.workday.workday.military_service": {"database": "postgres", "schema": "workday_integration_tests", "name": "military_service", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.military_service", "fqn": ["workday", "staging", "workday", "military_service"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_military_service_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about an individual's military service in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "created_at": 1709769128.99662}, "source.workday.workday.person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_contact_email_address", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_contact_email_address", "fqn": ["workday", "staging", "workday", "person_contact_email_address"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_contact_email_address_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "created_at": 1709769128.996701}, "source.workday.workday.worker_position_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_history", "fqn": ["workday", "staging", "workday", "worker_position_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the positions held by workers in the Workday system", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location": {"name": "business_site_summary_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "exclude_from_head_count": {"name": "exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_exempt": {"name": "job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_paid_fte": {"name": "specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_working_fte": {"name": "specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "created_at": 1709769128.9968472}, "source.workday.workday.worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_leave_status", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_leave_status", "fqn": ["workday", "staging", "workday", "worker_leave_status"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_leave_status_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the leave status of workers in the Workday system.", "columns": {"leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_effect": {"name": "benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caesarean_section_birth": {"name": "caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "multiple_child_indicator": {"name": "multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_leave": {"name": "on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_effect": {"name": "payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "single_parent_indicator": {"name": "single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stock_vesting_effect": {"name": "stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_related": {"name": "work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "created_at": 1709769128.996972}, "source.workday.workday.worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_organization_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_organization_history", "fqn": ["workday", "staging", "workday", "worker_position_organization_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_organization_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "created_at": 1709769128.997055}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.026647, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.026858, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.02696, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0270588, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.027154, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n when 'm' then 'MATERIALIZED VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.028525, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0289202, "supported_languages": null}, "macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.029522, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.029643, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.03743, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0379, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.038186, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.038461, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.038887, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.039277, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.03943, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.039744, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.040097, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.041048, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0412512, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.041558, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.041822, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.042219, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.042486, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.043104, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.043314, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0434308, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0435998, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0437288, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.044111, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.044775, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.044905, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0451689, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.045297, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.045454, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0462909, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }};\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0467489, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.047023, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.047383, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0475268, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.04823, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.04839, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.048511, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.049021, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.049184, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.049381, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.049935, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.052759, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.052902, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0533628, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.053731, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.054979, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0551949, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.055337, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.055466, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.055597, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0561159, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.056438, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.056911, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.057371, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0576372, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.060875, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.061045, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.061245, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.061897, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.062048, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.06221, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0634508, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.064678, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.068267, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.068534, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.068685, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0687628, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0688908, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.068994, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.069195, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.070017, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.070205, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0704389, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.070836, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0761359, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.078502, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0789042, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0791821, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.07951, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.079838, "supported_languages": null}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.084275, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.084705, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.084954, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0863, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.08656, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0871701, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0898051, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0925791, "supported_languages": ["sql"]}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0941088, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.094707, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.095371, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.095606, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0963259, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1017652, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1032078, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.103445, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.104334, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.104578, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.105153, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.105739, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.106536, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1067588, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1069381, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.10721, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.107488, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.107759, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1079419, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.108187, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.108373, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.10851, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.108768, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.113697, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.118459, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.119652, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1209118, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.121807, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.122061, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.122169, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.122443, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation }} clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.122571, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {% if target_relation and defer_relation and target_relation == defer_relation %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation) }}\n {% else %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endif %}\n\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.126237, "supported_languages": ["sql"]}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.129087, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.133573, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.134448, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.134729, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1352818, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.135493, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.135626, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.135772, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.135943, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.136109, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.136224, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.136807, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1370308, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.138485, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.138915, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.139255, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.139908, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1401868, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.140476, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1408691, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1411068, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1417458, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.142105, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.142277, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1424708, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1426592, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1434188, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation_type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1738229, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.174294, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1745331, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.174838, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.175047, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1757, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.176121, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.176327, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1766012, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1769369, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.177191, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1776261, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1780522, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1783738, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.178677, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{ return(adapter.dispatch('drop_materialized_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.178984, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1790998, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.179378, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.179519, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.17997, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.180105, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.180366, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1805031, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.181052, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1812181, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.181474, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.181605, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1818528, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.181982, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1828952, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.183011, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.183558, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.183733, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.183861, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.185109, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.185456, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.185771, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{ return(adapter.dispatch('drop_table', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.186025, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.18612, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1864069, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.186547, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1868029, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.18694, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.187892, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1880808, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.188503, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.189158, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.189594, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.189763, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.190065, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{ return(adapter.dispatch('drop_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.190397, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.190515, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.191355, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.191516, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.192845, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.193047, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.193252, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.193523, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.193658, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.19403, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.194182, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.194348, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.19475, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1950989, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.195382, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.195617, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.196139, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1974452, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.197983, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.198252, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.199848, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.201052, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.201761, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.201973, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.202188, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.202256, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.203016, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.203556, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.203768, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.204113, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2044108, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.204561, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2047842, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.204896, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.205618, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.206, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2061682, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.206632, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.206861, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.206953, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.207257, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2074099, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.207616, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.207768, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.20802, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2081568, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.208426, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.208549, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.209088, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.209446, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.20974, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2098858, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2101629, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.210291, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.210515, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.210662, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.210882, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.211025, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.211243, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.211335, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2115872, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.211709, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.211927, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.212081, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.212909, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.213045, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.213192, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.213325, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2134678, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2136042, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2137501, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.213918, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.214069, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2142131, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2143638, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2145002, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2146409, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2147672, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.215016, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.215134, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2153542, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2154508, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.215816, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2160692, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.216206, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.216682, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.216838, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2170508, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.21731, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.21744, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.217804, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.218034, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.218305, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.21843, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.218859, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.219042, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.219191, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.219352, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.219789, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.219927, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.220056, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.22015, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.220385, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.220459, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.220609, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2207549, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.221482, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.221605, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.221747, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2221172, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.222288, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.222409, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.222548, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.222662, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2243571, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.224515, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.224719, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2249951, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2252119, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.225492, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.225655, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2258759, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2260962, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.226608, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2268212, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.226954, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.227402, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.227808, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2280939, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2283049, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2299142, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.230029, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.230186, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2302961, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2306519, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.230869, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.230974, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.231192, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.231373, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.231586, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.231852, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2321122, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2327669, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2329578, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.233189, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.233404, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.234426, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header -%}\n {{ sql_header }}\n {%- endif -%}\n {%- if limit is not none -%}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n {%- else -%}\n {{ compiled_code }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.234914, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "{% macro get_limit_subquery_sql(sql, limit) %}\n {{ adapter.dispatch('get_limit_subquery_sql', 'dbt')(sql, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2350888, "supported_languages": null}, "macro.dbt.default__get_limit_subquery_sql": {"name": "default__get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_subquery_sql", "macro_sql": "{% macro default__get_limit_subquery_sql(sql, limit) %}\n select *\n from (\n {{ sql }}\n ) as model_limit_subq\n limit {{ limit }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2352152, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.235818, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.235981, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.236172, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.236319, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.236557, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2369869, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.239427, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.239664, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2398562, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.240169, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.240342, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2404869, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.240688, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.24092, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.241119, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.241417, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.241604, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.241756, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.241917, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2420638, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2422552, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2424178, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.244697, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.244881, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.245279, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.245493, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.245684, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.245852, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n cast(null as {{ col['data_type'] }}) as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.247186, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2474911, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.247652, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2479649, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2481658, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.248683, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.248914, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.249603, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.251263, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.251442, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.252248, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.252647, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.253197, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.253663, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.253737, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2542248, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2544582, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.25473, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.254991, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.255311, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.25585, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.256288, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2568982, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.257206, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.257631, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.258668, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.259598, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.260374, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.261538, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.262217, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.262541, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.263187, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.26395, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.264362, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.264776, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2653272, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2657542, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2662468, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2667022, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.267324, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n where {{ column_name }} is not null\n limit 1\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.268165, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2687922, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.269429, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.26998, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.270314, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.270709, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.271082, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.271704, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.27246, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.273261, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.27407, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.274762, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.275576, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.276031, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2762969, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.279294, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.280882, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.281225, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.281395, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2818182, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.282084, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.282269, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.282563, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.282754, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.283381, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.284193, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.284893, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.285472, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2857442, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.286161, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.286568, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2871199, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2874382, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.287758, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.288353, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.289202, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.289933, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2903, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.290465, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2910469, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2917042, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.292534, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.29291, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.293173, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2942789, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.295655, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.296865, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2982788, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2985642, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.298683, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.301524, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.304747, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.30504, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.305279, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.306008, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.306228, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3064132, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.306592, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3067589, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.306925, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.30731, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3076138, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.308026, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.308544, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.308885, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.309196, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.310636, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.310988, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.311778, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.312263, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.313279, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.314631, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.315563, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3163252, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3167622, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.31742, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3180978, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.31851, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3187141, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.319069, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.31969, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.320141, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3207538, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.321246, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.321384, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.321512, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3216388, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3221061, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3229241, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.324026, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.324314, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.324975, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.325783, "supported_languages": null}, "macro.workday.get_person_contact_email_address_columns": {"name": "get_person_contact_email_address_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_contact_email_address_columns.sql", "original_file_path": "macros/get_person_contact_email_address_columns.sql", "unique_id": "macro.workday.get_person_contact_email_address_columns", "macro_sql": "{% macro get_person_contact_email_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_address\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_comment\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.326616, "supported_languages": null}, "macro.workday.get_military_service_columns": {"name": "get_military_service_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_military_service_columns.sql", "original_file_path": "macros/get_military_service_columns.sql", "unique_id": "macro.workday.get_military_service_columns", "macro_sql": "{% macro get_military_service_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"discharge_date\", \"datatype\": \"date\"},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"rank\", \"datatype\": dbt.type_string()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status_begin_date\", \"datatype\": \"date\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.327732, "supported_languages": null}, "macro.workday.get_position_job_profile_columns": {"name": "get_position_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_job_profile_columns.sql", "original_file_path": "macros/get_position_job_profile_columns.sql", "unique_id": "macro.workday.get_position_job_profile_columns", "macro_sql": "{% macro get_position_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.328786, "supported_languages": null}, "macro.workday.get_job_family_job_family_group_columns": {"name": "get_job_family_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_job_family_group_columns", "macro_sql": "{% macro get_job_family_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3293068, "supported_languages": null}, "macro.workday.get_worker_history_columns": {"name": "get_worker_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_history_columns.sql", "original_file_path": "macros/get_worker_history_columns.sql", "unique_id": "macro.workday.get_worker_history_columns", "macro_sql": "{% macro get_worker_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_date\", \"datatype\": \"date\"},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"active_status_date\", \"datatype\": \"date\"},\n {\"name\": \"annual_currency_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_service_date\", \"datatype\": \"date\"},\n {\"name\": \"company_service_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_effective_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"continuous_service_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_assignment_details\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_end_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_frequency_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_pay_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"contract_vendor_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_entered_workforce\", \"datatype\": \"date\"},\n {\"name\": \"days_unemployed\", \"datatype\": dbt.type_float()},\n {\"name\": \"eligible_for_hire\", \"datatype\": dbt.type_string()},\n {\"name\": \"eligible_for_rehire_on_latest_termination\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_date_of_return\", \"datatype\": \"date\"},\n {\"name\": \"expected_retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"has_international_assignment\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hire_date\", \"datatype\": \"date\"},\n {\"name\": \"hire_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"hire_rescinded\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_datefor_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"local_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"months_continuous_prior_employment\", \"datatype\": dbt.type_float()},\n {\"name\": \"not_returning\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"original_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"pay_group_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"primary_termination_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"probation_end_date\", \"datatype\": \"date\"},\n {\"name\": \"probation_start_date\", \"datatype\": \"date\"},\n {\"name\": \"reason_reference_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regrettable_termination\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"rehire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"resignation_date\", \"datatype\": \"date\"},\n {\"name\": \"retired\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"retirement_eligibility_date\", \"datatype\": \"date\"},\n {\"name\": \"return_unknown\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"seniority_date\", \"datatype\": \"date\"},\n {\"name\": \"severance_date\", \"datatype\": \"date\"},\n {\"name\": \"terminated\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_date\", \"datatype\": \"date\"},\n {\"name\": \"termination_involuntary\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"time_off_service_date\", \"datatype\": \"date\"},\n {\"name\": \"universal_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vesting_date\", \"datatype\": \"date\"},\n {\"name\": \"worker_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.341262, "supported_languages": null}, "macro.workday.get_job_family_group_columns": {"name": "get_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_group_columns", "macro_sql": "{% macro get_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_group_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3421938, "supported_languages": null}, "macro.workday.get_worker_leave_status_columns": {"name": "get_worker_leave_status_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_leave_status_columns.sql", "original_file_path": "macros/get_worker_leave_status_columns.sql", "unique_id": "macro.workday.get_worker_leave_status_columns", "macro_sql": "{% macro get_worker_leave_status_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"adoption_notification_date\", \"datatype\": \"date\"},\n {\"name\": \"adoption_placement_date\", \"datatype\": \"date\"},\n {\"name\": \"age_of_dependent\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"caesarean_section_birth\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"child_birth_date\", \"datatype\": \"date\"},\n {\"name\": \"child_sdate_of_death\", \"datatype\": \"date\"},\n {\"name\": \"continuous_service_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"date_baby_arrived_home_from_hospital\", \"datatype\": \"date\"},\n {\"name\": \"date_child_entered_country\", \"datatype\": \"date\"},\n {\"name\": \"date_of_recall\", \"datatype\": \"date\"},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimated_leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_due_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"last_date_for_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_entitlement_override\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"leave_of_absence_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_request_event_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_return_event\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_start_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_status_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_type_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_during_leave\", \"datatype\": dbt.type_string()},\n {\"name\": \"multiple_child_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"number_of_babies_adopted_children\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_child_dependents\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_births\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_maternity_leaves\", \"datatype\": dbt.type_float()},\n {\"name\": \"on_leave\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"paid_time_off_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"payroll_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"single_parent_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"social_security_disability_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"stock_vesting_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"stop_payment_date\", \"datatype\": \"date\"},\n {\"name\": \"week_of_confinement\", \"datatype\": \"date\"},\n {\"name\": \"work_related\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3470771, "supported_languages": null}, "macro.workday.get_organization_role_worker_columns": {"name": "get_organization_role_worker_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_worker_columns.sql", "original_file_path": "macros/get_organization_role_worker_columns.sql", "unique_id": "macro.workday.get_organization_role_worker_columns", "macro_sql": "{% macro get_organization_role_worker_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"associated_worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.347761, "supported_languages": null}, "macro.workday.get_job_profile_columns": {"name": "get_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_profile_columns.sql", "original_file_path": "macros/get_job_profile_columns.sql", "unique_id": "macro.workday.get_job_profile_columns", "macro_sql": "{% macro get_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_job_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"public_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"referral_payment_plan\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_membership_requirement\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_study_award_source_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_study_requirement_option_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.350461, "supported_languages": null}, "macro.workday.get_organization_role_columns": {"name": "get_organization_role_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_columns.sql", "original_file_path": "macros/get_organization_role_columns.sql", "unique_id": "macro.workday.get_organization_role_columns", "macro_sql": "{% macro get_organization_role_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_role_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.351205, "supported_languages": null}, "macro.workday.get_person_name_columns": {"name": "get_person_name_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_name_columns.sql", "original_file_path": "macros/get_person_name_columns.sql", "unique_id": "macro.workday.get_person_name_columns", "macro_sql": "{% macro get_person_name_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"additional_name_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name_singapore_malaysia\", \"datatype\": dbt.type_string()},\n {\"name\": \"hereditary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"honorary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_salutation\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"professional_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"religious_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"royal_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tertiary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.354849, "supported_languages": null}, "macro.workday.get_job_family_job_profile_columns": {"name": "get_job_family_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_profile_columns.sql", "original_file_path": "macros/get_job_family_job_profile_columns.sql", "unique_id": "macro.workday.get_job_family_job_profile_columns", "macro_sql": "{% macro get_job_family_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.355382, "supported_languages": null}, "macro.workday.get_worker_position_history_columns": {"name": "get_worker_position_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_history_columns.sql", "original_file_path": "macros/get_worker_position_history_columns.sql", "unique_id": "macro.workday.get_worker_position_history_columns", "macro_sql": "{% macro get_worker_position_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_pay_setup_data_annual_work_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_work_percent_of_year\", \"datatype\": dbt.type_float()},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"business_site_summary_display_language\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_local\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"business_site_summary_time_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"default_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"employee_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"exclude_from_head_count\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"expected_assignment_end_date\", \"datatype\": \"date\"},\n {\"name\": \"external_employee\", \"datatype\": dbt.type_string()},\n {\"name\": \"federal_withholding_fein\", \"datatype\": dbt.type_string()},\n {\"name\": \"frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_time_equivalent_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"headcount_restriction_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"host_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"international_assignment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_primary_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"paid_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"payroll_entity\", \"datatype\": dbt.type_string()},\n {\"name\": \"payroll_file_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regular_paid_equivalent_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"specify_paid_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"specify_working_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"start_international_assignment_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_hours_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_space\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_hours_profile_classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"working_time_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.362988, "supported_languages": null}, "macro.workday.get_personal_information_ethnicity_columns": {"name": "get_personal_information_ethnicity_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_ethnicity_columns.sql", "original_file_path": "macros/get_personal_information_ethnicity_columns.sql", "unique_id": "macro.workday.get_personal_information_ethnicity_columns", "macro_sql": "{% macro get_personal_information_ethnicity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ethnicity_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"ethnicity_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.363829, "supported_languages": null}, "macro.workday.get_personal_information_history_columns": {"name": "get_personal_information_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_history_columns.sql", "original_file_path": "macros/get_personal_information_history_columns.sql", "unique_id": "macro.workday.get_personal_information_history_columns", "macro_sql": "{% macro get_personal_information_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"blood_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"citizenship_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_birth\", \"datatype\": \"date\"},\n {\"name\": \"date_of_death\", \"datatype\": \"date\"},\n {\"name\": \"gender\", \"datatype\": dbt.type_string()},\n {\"name\": \"hispanic_or_latino\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hukou_locality\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_subregion\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_medical_exam_date\", \"datatype\": \"date\"},\n {\"name\": \"last_medical_exam_valid_to\", \"datatype\": \"date\"},\n {\"name\": \"local_hukou\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"marital_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"marital_status_date\", \"datatype\": \"date\"},\n {\"name\": \"medical_exam_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"personnel_file_agency\", \"datatype\": dbt.type_string()},\n {\"name\": \"political_affiliation\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"religion\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_benefit\", \"datatype\": dbt.type_string()},\n {\"name\": \"tobacco_use\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3679008, "supported_languages": null}, "macro.workday.get_worker_position_organization_history_columns": {"name": "get_worker_position_organization_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_organization_history_columns.sql", "original_file_path": "macros/get_worker_position_organization_history_columns.sql", "unique_id": "macro.workday.get_worker_position_organization_history_columns", "macro_sql": "{% macro get_worker_position_organization_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_pay_group_assignment\", \"datatype\": \"date\"},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_business_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"used_in_change_organization_assignments\", \"datatype\": dbt.type_boolean()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.369088, "supported_languages": null}, "macro.workday.get_organization_job_family_columns": {"name": "get_organization_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_job_family_columns.sql", "original_file_path": "macros/get_organization_job_family_columns.sql", "unique_id": "macro.workday.get_organization_job_family_columns", "macro_sql": "{% macro get_organization_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.369718, "supported_languages": null}, "macro.workday.get_job_family_columns": {"name": "get_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_columns.sql", "original_file_path": "macros/get_job_family_columns.sql", "unique_id": "macro.workday.get_job_family_columns", "macro_sql": "{% macro get_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3705, "supported_languages": null}, "macro.workday.get_organization_columns": {"name": "get_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_columns.sql", "original_file_path": "macros/get_organization_columns.sql", "unique_id": "macro.workday.get_organization_columns", "macro_sql": "{% macro get_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"availability_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"external_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"inactive_date\", \"datatype\": \"date\"},\n {\"name\": \"include_manager_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_organization_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"last_updated_date_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"location\", \"datatype\": dbt.type_string()},\n {\"name\": \"manager_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_owner_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"staffing_model\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"superior_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_availability_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_time_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_worker_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"top_level_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"visibility\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.37368, "supported_languages": null}, "macro.workday.get_position_organization_columns": {"name": "get_position_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_organization_columns.sql", "original_file_path": "macros/get_position_organization_columns.sql", "unique_id": "macro.workday.get_position_organization_columns", "macro_sql": "{% macro get_position_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3743548, "supported_languages": null}, "macro.workday.get_position_columns": {"name": "get_position_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_columns.sql", "original_file_path": "macros/get_position_columns.sql", "unique_id": "macro.workday.get_position_columns", "macro_sql": "{% macro get_position_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_eligible\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"availability_date\", \"datatype\": \"date\"},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_overlap\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_recruiting\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"closed\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"compensation_grade_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_package_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_step_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"earliest_overlap_date\", \"datatype\": \"date\"},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_posting_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_time_type_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_amount_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_percent_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"supervisory_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_for_filled_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_type_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3777869, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3781729, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.379, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.379151, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3792949, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3794382, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.379568, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.37972, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3804312, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.381002, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.382163, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.382379, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.382593, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.382805, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.38309, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.383451, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3837152, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.384056, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.384415, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.384518, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.384608, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3846989, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.385037, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3856928, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.386683, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.387218, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.387949, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.388414, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.388541, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.388659, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.388788, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3889122, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.391586, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.391752, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3918998, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3920472, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.393704, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.394548, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.394676, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.394916, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3951669, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.395282, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.395394, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3955069, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.395623, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.396058, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.396568, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.397011, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.397193, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.397387, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3976178, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.398664, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.402483, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.402865, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.403262, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.404704, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.405246, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.405814, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.405962, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.4061189, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.40633, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.406483, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.406624, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.407358, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.408582, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.409222, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.409371, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.409516, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.4096582, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.409801, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.409955, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.4101892, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.410283, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.410372, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.410929, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.412093, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.4122581, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.41313, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.416405, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.420906, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.422247, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.422564, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.422702, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.423041, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.4234428, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.423559, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.423677, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.423766, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.423854, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.424103, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.424206, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.4243042, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.4246888, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.425076, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.workday._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_deleted", "block_contents": "Indicates if the record was soft-deleted by Fivetran."}, "doc.workday._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_synced", "block_contents": "Timestamp the record was synced by Fivetran."}, "doc.workday._fivetran_start": {"name": "_fivetran_start", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_start", "block_contents": "Timestamp when the record was first created or modified in the source."}, "doc.workday._fivetran_end": {"name": "_fivetran_end", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_end", "block_contents": "Timestamp marking the end of a record being active."}, "doc.workday._fivetran_date": {"name": "_fivetran_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_date", "block_contents": "Date when the record was first created or modified in the source."}, "doc.workday._fivetran_active": {"name": "_fivetran_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_active", "block_contents": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE."}, "doc.workday.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.source_relation", "block_contents": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "doc.workday.academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_end_date", "block_contents": "The end date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_start_date", "block_contents": "The start date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year", "block_contents": "The work percentage of the year in the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date", "block_contents": "The end date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date", "block_contents": "The start date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_suffix": {"name": "academic_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_suffix", "block_contents": "The academic suffix, if applicable (e.g., PhD, MD)."}, "doc.workday.academic_tenure_date": {"name": "academic_tenure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_date", "block_contents": "Date when academic tenure is achieved."}, "doc.workday.academic_tenure_eligible": {"name": "academic_tenure_eligible", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_eligible", "block_contents": "Flag indicating whether the position is eligible for academic tenure."}, "doc.workday.active": {"name": "active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active", "block_contents": "Flag indicating the current active status of the worker."}, "doc.workday.active_status_date": {"name": "active_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active_status_date", "block_contents": "Date when the active status was last updated."}, "doc.workday.additional_job_description": {"name": "additional_job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_job_description", "block_contents": "Additional details or information about the job."}, "doc.workday.additional_name_type": {"name": "additional_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_name_type", "block_contents": "Additional type or category for the person name."}, "doc.workday.additional_nationality": {"name": "additional_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_nationality", "block_contents": "Additional nationality associated with the individual."}, "doc.workday.adoption_notification_date": {"name": "adoption_notification_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_notification_date", "block_contents": "The date of adoption notification."}, "doc.workday.adoption_placement_date": {"name": "adoption_placement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_placement_date", "block_contents": "The date of adoption placement."}, "doc.workday.age_of_dependent": {"name": "age_of_dependent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.age_of_dependent", "block_contents": "The age of the dependent associated with the leave status."}, "doc.workday.annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_currency", "block_contents": "Currency used for annual compensation summaries."}, "doc.workday.annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_frequency", "block_contents": "Frequency of currency for annual compensation summaries."}, "doc.workday.annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual compensation summaries."}, "doc.workday.annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.annual_summary_currency": {"name": "annual_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_currency", "block_contents": "Currency used for annual summaries."}, "doc.workday.annual_summary_frequency": {"name": "annual_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_frequency", "block_contents": "Frequency of currency for annual summaries."}, "doc.workday.annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual summaries."}, "doc.workday.annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.associated_worker_id": {"name": "associated_worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.associated_worker_id", "block_contents": "Identifier for the worker associated with the organization role."}, "doc.workday.availability_date": {"name": "availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.availability_date", "block_contents": "Date when the organization becomes available."}, "doc.workday.available_for_hire": {"name": "available_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_hire", "block_contents": "Flag indicating whether the organization is available for hiring."}, "doc.workday.available_for_overlap": {"name": "available_for_overlap", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_overlap", "block_contents": "Flag indicating whether the position is available for overlap with other positions."}, "doc.workday.available_for_recruiting": {"name": "available_for_recruiting", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_recruiting", "block_contents": "Flag indicating whether the position is available for recruiting."}, "doc.workday.benefits_effect": {"name": "benefits_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_effect", "block_contents": "The effect of leave on benefits."}, "doc.workday.benefits_service_date": {"name": "benefits_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_service_date", "block_contents": "Date when the worker's benefits service starts."}, "doc.workday.blood_type": {"name": "blood_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.blood_type", "block_contents": "The blood type of the individual."}, "doc.workday.business_site_summary_display_language": {"name": "business_site_summary_display_language", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_display_language", "block_contents": "The display language of the business site summary."}, "doc.workday.business_site_summary_local": {"name": "business_site_summary_local", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_local", "block_contents": "Local information related to the business site summary."}, "doc.workday.business_site_summary_location": {"name": "business_site_summary_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location", "block_contents": "The location of the business site summary."}, "doc.workday.business_site_summary_location_type": {"name": "business_site_summary_location_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location_type", "block_contents": "The type of location for the business site summary."}, "doc.workday.business_site_summary_name": {"name": "business_site_summary_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_name", "block_contents": "The name associated with the business site summary."}, "doc.workday.business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the business site summary."}, "doc.workday.business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_time_profile", "block_contents": "The time profile associated with the business site summary."}, "doc.workday.business_title": {"name": "business_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_title", "block_contents": "The business title associated with the worker position."}, "doc.workday.caesarean_section_birth": {"name": "caesarean_section_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.caesarean_section_birth", "block_contents": "Indicator for Caesarean section birth."}, "doc.workday.child_birth_date": {"name": "child_birth_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_birth_date", "block_contents": "The date of child birth."}, "doc.workday.child_sdate_of_death": {"name": "child_sdate_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_sdate_of_death", "block_contents": "The start date of child death.>"}, "doc.workday.citizenship_status": {"name": "citizenship_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.citizenship_status", "block_contents": "The citizenship status of the individual."}, "doc.workday.city_of_birth": {"name": "city_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth", "block_contents": "The city of birth of the individual."}, "doc.workday.city_of_birth_code": {"name": "city_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth_code", "block_contents": "The city of birth code of the individual."}, "doc.workday.closed": {"name": "closed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.closed", "block_contents": "Flag indicating whether the position is closed."}, "doc.workday.code": {"name": "code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.code", "block_contents": "Code assigned to the organization for reference and categorization."}, "doc.workday.company_service_date": {"name": "company_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.company_service_date", "block_contents": "Date when the worker's service with the company started."}, "doc.workday.compensation_effective_date": {"name": "compensation_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_effective_date", "block_contents": "Effective date when changes to the worker's compensation take effect."}, "doc.workday.compensation_grade_code": {"name": "compensation_grade_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_code", "block_contents": "Code associated with the compensation grade of the position."}, "doc.workday.compensation_grade_id": {"name": "compensation_grade_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_id", "block_contents": "Identifier for the compensation grade."}, "doc.workday.compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_code", "block_contents": "Code associated with the compensation grade profile of the position."}, "doc.workday.compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_id", "block_contents": "Unique identifier for the compensation grade profile associated with the worker."}, "doc.workday.compensation_package_code": {"name": "compensation_package_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_package_code", "block_contents": "Code associated with the compensation package of the position."}, "doc.workday.compensation_step_code": {"name": "compensation_step_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_step_code", "block_contents": "Code associated with the compensation step of the position."}, "doc.workday.continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_accrual_effect", "block_contents": "The effect of leave on continuous service accrual."}, "doc.workday.continuous_service_date": {"name": "continuous_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_date", "block_contents": "Date when the worker's continuous service with the organization started."}, "doc.workday.contract_assignment_details": {"name": "contract_assignment_details", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_assignment_details", "block_contents": "Details of the worker's contract assignment."}, "doc.workday.contract_currency_code": {"name": "contract_currency_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_currency_code", "block_contents": "Currency code used for the worker's contract."}, "doc.workday.contract_end_date": {"name": "contract_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_end_date", "block_contents": "Date when the worker's contract is scheduled to end."}, "doc.workday.contract_frequency_name": {"name": "contract_frequency_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_frequency_name", "block_contents": "Frequency of payment for the worker's contract."}, "doc.workday.contract_pay_rate": {"name": "contract_pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_pay_rate", "block_contents": "Pay rate associated with the worker's contract."}, "doc.workday.contract_vendor_name": {"name": "contract_vendor_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_vendor_name", "block_contents": "Name of the vendor associated with the worker's contract."}, "doc.workday.country": {"name": "country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country", "block_contents": "The country associated with the person name."}, "doc.workday.country_of_birth": {"name": "country_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country_of_birth", "block_contents": "The country of birth of the individual."}, "doc.workday.critical_job": {"name": "critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.critical_job", "block_contents": "Flag indicating whether the job is critical."}, "doc.workday.date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_baby_arrived_home_from_hospital", "block_contents": "The date when the baby arrived home from the hospital."}, "doc.workday.date_child_entered_country": {"name": "date_child_entered_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_child_entered_country", "block_contents": "The date when the child entered the country."}, "doc.workday.date_entered_workforce": {"name": "date_entered_workforce", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_entered_workforce", "block_contents": "Date when the worker entered the workforce."}, "doc.workday.date_of_birth": {"name": "date_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_birth", "block_contents": "The date of birth of the individual."}, "doc.workday.date_of_death": {"name": "date_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_death", "block_contents": "The date of death of the individual."}, "doc.workday.date_of_recall": {"name": "date_of_recall", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_recall", "block_contents": "The date of recall."}, "doc.workday.days_at_position": {"name": "days_at_position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_at_position", "block_contents": "The number of days the worker has held their most recent position."}, "doc.workday.days_of_employment": {"name": "days_of_employment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_of_employment", "block_contents": "Number of days employed by the worker."}, "doc.workday.days_unemployed": {"name": "days_unemployed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_unemployed", "block_contents": "Number of days the worker has been unemployed."}, "doc.workday.default_weekly_hours": {"name": "default_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.default_weekly_hours", "block_contents": "The default weekly hours associated with the worker position."}, "doc.workday.departure_date": {"name": "departure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.departure_date", "block_contents": "The departure date for the employee."}, "doc.workday.difficulty_to_fill": {"name": "difficulty_to_fill", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill", "block_contents": "Indication of the difficulty level in filling the job."}, "doc.workday.difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill_code", "block_contents": "Code indicating the difficulty level in filling the position."}, "doc.workday.discharge_date": {"name": "discharge_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.discharge_date", "block_contents": "The date on which the individual was discharged from military service."}, "doc.workday.earliest_hire_date": {"name": "earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_hire_date", "block_contents": "Earliest date when the position can be filled."}, "doc.workday.earliest_overlap_date": {"name": "earliest_overlap_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_overlap_date", "block_contents": "Earliest date when the position can overlap with other positions."}, "doc.workday.effective_date": {"name": "effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.effective_date", "block_contents": "Date when the job profile becomes effective."}, "doc.workday.eligible_for_hire": {"name": "eligible_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_hire", "block_contents": "Flag indicating whether the worker is eligible for hire."}, "doc.workday.eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_rehire_on_latest_termination", "block_contents": "Flag indicating whether the worker is eligible for rehire based on the latest termination."}, "doc.workday.email_address": {"name": "email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_address", "block_contents": "The actual email address of the person."}, "doc.workday.email_code": {"name": "email_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_code", "block_contents": "A code or label associated with the type or purpose of the email address."}, "doc.workday.email_comment": {"name": "email_comment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_comment", "block_contents": "Any additional comments or notes related to the email address."}, "doc.workday.employed_five_years": {"name": "employed_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_five_years", "block_contents": "Tracks whether a worker was employed at least five years."}, "doc.workday.employed_one_year": {"name": "employed_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_one_year", "block_contents": "Tracks whether a worker was employed at least one year."}, "doc.workday.employed_ten_years": {"name": "employed_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_ten_years", "block_contents": "Tracks whether a worker was employed at least ten years."}, "doc.workday.employed_thirty_years": {"name": "employed_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_thirty_years", "block_contents": "Tracks whether a worker was employed at least thirty years."}, "doc.workday.employed_twenty_years": {"name": "employed_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_twenty_years", "block_contents": "Tracks whether a worker was employed at least twenty years."}, "doc.workday.employee_compensation_currency": {"name": "employee_compensation_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_currency", "block_contents": "Currency code used for the worker's employee compensation."}, "doc.workday.employee_compensation_frequency": {"name": "employee_compensation_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_frequency", "block_contents": "Frequency of payment for the worker's employee compensation."}, "doc.workday.employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's employee compensation."}, "doc.workday.employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_base_pay", "block_contents": "Total base pay for the worker's employee compensation."}, "doc.workday.employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's employee compensation."}, "doc.workday.employee_type": {"name": "employee_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_type", "block_contents": "The type of employee associated with the worker position."}, "doc.workday.end_date": {"name": "end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_date", "block_contents": "The end date of the worker position."}, "doc.workday.end_employment_date": {"name": "end_employment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_employment_date", "block_contents": "Date when the worker's employment is scheduled to end."}, "doc.workday.estimated_leave_end_date": {"name": "estimated_leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.estimated_leave_end_date", "block_contents": "The estimated end date of the leave."}, "doc.workday.ethnicity_code": {"name": "ethnicity_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_code", "block_contents": "The code representing the ethnicity of the individual."}, "doc.workday.ethnicity_codes": {"name": "ethnicity_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_codes", "block_contents": "String aggregation of all ethnicity codes associated with an individual."}, "doc.workday.ethnicity_id": {"name": "ethnicity_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_id", "block_contents": "The identifier associated with the ethnicity."}, "doc.workday.exclude_from_head_count": {"name": "exclude_from_head_count", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.exclude_from_head_count", "block_contents": "Flag indicating whether the position is excluded from headcount."}, "doc.workday.expected_assignment_end_date": {"name": "expected_assignment_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_assignment_end_date", "block_contents": "The expected end date of the assignment associated with the worker position."}, "doc.workday.expected_date_of_return": {"name": "expected_date_of_return", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_date_of_return", "block_contents": "Expected date of the worker's return."}, "doc.workday.expected_due_date": {"name": "expected_due_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_due_date", "block_contents": "The expected due date."}, "doc.workday.expected_retirement_date": {"name": "expected_retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_retirement_date", "block_contents": "Expected date of the worker's retirement."}, "doc.workday.external_employee": {"name": "external_employee", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_employee", "block_contents": "Flag indicating whether the worker is an external employee."}, "doc.workday.external_url": {"name": "external_url", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_url", "block_contents": "External URL associated with the organization."}, "doc.workday.federal_withholding_fein": {"name": "federal_withholding_fein", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.federal_withholding_fein", "block_contents": "The Federal Employer Identification Number (FEIN) for federal withholding."}, "doc.workday.first_day_of_work": {"name": "first_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_day_of_work", "block_contents": "The date when the worker started their first day of work."}, "doc.workday.first_name": {"name": "first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_name", "block_contents": "The first name of the individual."}, "doc.workday.frequency": {"name": "frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.frequency", "block_contents": "The frequency associated with the worker position."}, "doc.workday.fte_percent": {"name": "fte_percent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.fte_percent", "block_contents": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek"}, "doc.workday.full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_name_singapore_malaysia", "block_contents": "The full name as used in Singapore and Malaysia."}, "doc.workday.full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_time_equivalent_percentage", "block_contents": "The full-time equivalent (FTE) percentage associated with the worker position."}, "doc.workday.gender": {"name": "gender", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.gender", "block_contents": "The gender of the individual."}, "doc.workday.has_international_assignment": {"name": "has_international_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.has_international_assignment", "block_contents": "Flag indicating whether the worker has an international assignment."}, "doc.workday.headcount_restriction_code": {"name": "headcount_restriction_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.headcount_restriction_code", "block_contents": "The code associated with headcount restriction for the worker position."}, "doc.workday.hereditary_suffix": {"name": "hereditary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hereditary_suffix", "block_contents": "The hereditary suffix, if applicable (e.g., Jr, Sr)."}, "doc.workday.hire_date": {"name": "hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_date", "block_contents": "The date when the worker was hired."}, "doc.workday.hire_reason": {"name": "hire_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_reason", "block_contents": "The reason for hiring the worker."}, "doc.workday.hire_rescinded": {"name": "hire_rescinded", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_rescinded", "block_contents": "Flag indicating whether the worker's hire was rescinded."}, "doc.workday.hiring_freeze": {"name": "hiring_freeze", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hiring_freeze", "block_contents": "Flag indicating whether the organization is under a hiring freeze."}, "doc.workday.hispanic_or_latino": {"name": "hispanic_or_latino", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hispanic_or_latino", "block_contents": "lag indicating whether the individual is Hispanic or Latino."}, "doc.workday.home_country": {"name": "home_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.home_country", "block_contents": "The home country of the worker."}, "doc.workday.honorary_suffix": {"name": "honorary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.honorary_suffix", "block_contents": "The honorary suffix, if applicable."}, "doc.workday.host_country": {"name": "host_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.host_country", "block_contents": "The host country associated with the worker."}, "doc.workday.hourly_frequency_currency": {"name": "hourly_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_currency", "block_contents": "Currency code used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_frequency", "block_contents": "Frequency of payment for the worker's hourly compensation."}, "doc.workday.hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_base_pay", "block_contents": "Total base pay for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's hourly compensation."}, "doc.workday.hukou_locality": {"name": "hukou_locality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_locality", "block_contents": "The locality associated with the Hukou."}, "doc.workday.hukou_postal_code": {"name": "hukou_postal_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_postal_code", "block_contents": "The postal code associated with the Hukou."}, "doc.workday.hukou_region": {"name": "hukou_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_region", "block_contents": "The region associated with the Hukou."}, "doc.workday.hukou_subregion": {"name": "hukou_subregion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_subregion", "block_contents": "The subregion associated with the Hukou."}, "doc.workday.hukou_type": {"name": "hukou_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_type", "block_contents": "The type of Hukou."}, "doc.workday.id": {"name": "id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.id", "block_contents": "Unique identifier."}, "doc.workday.inactive": {"name": "inactive", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive", "block_contents": "Flag indicating whether this is inactive."}, "doc.workday.inactive_date": {"name": "inactive_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive_date", "block_contents": "Date when the organization becomes inactive"}, "doc.workday.include_job_code_in_name": {"name": "include_job_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_job_code_in_name", "block_contents": "Flag indicating whether to include the job code in the job profile name."}, "doc.workday.include_manager_in_name": {"name": "include_manager_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_manager_in_name", "block_contents": "Flag indicating whether to include the manager in the organization name."}, "doc.workday.include_organization_code_in_name": {"name": "include_organization_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_organization_code_in_name", "block_contents": "Flag indicating whether to include the organization code in the name."}, "doc.workday.index": {"name": "index", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.index", "block_contents": "An index for a particular identifier."}, "doc.workday.international_assignment_type": {"name": "international_assignment_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.international_assignment_type", "block_contents": "The type of international assignment associated with the worker position."}, "doc.workday.is_critical_job": {"name": "is_critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_critical_job", "block_contents": "Flag indicating whether the position is considered critical based on the job profile."}, "doc.workday.is_current_employee_five_years": {"name": "is_current_employee_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_five_years", "block_contents": "Tracks whether a worker is active for more than five years."}, "doc.workday.is_current_employee_one_year": {"name": "is_current_employee_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_one_year", "block_contents": "Tracks whether a worker is active for more than a year."}, "doc.workday.is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_ten_years", "block_contents": "Tracks whether a worker is active for more than ten years."}, "doc.workday.is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_thirty_years", "block_contents": "Tracks whether a worker is active for more than thirty years."}, "doc.workday.is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_twenty_years", "block_contents": "Tracks whether a worker is active for more than twenty years."}, "doc.workday.is_employed": {"name": "is_employed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_employed", "block_contents": "Is the worker currently employed?"}, "doc.workday.is_military_service": {"name": "is_military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_military_service", "block_contents": "Whether the employee served in the military."}, "doc.workday.is_primary_job": {"name": "is_primary_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_primary_job", "block_contents": "Flag indicating whether the job is the primary job for the worker."}, "doc.workday.is_regrettable_termination": {"name": "is_regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_regrettable_termination", "block_contents": "Has the worker been regrettably terminated?"}, "doc.workday.is_terminated": {"name": "is_terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_terminated", "block_contents": "Has the worker been terminated?"}, "doc.workday.is_user_active": {"name": "is_user_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_user_active", "block_contents": "Is the user currently active."}, "doc.workday.job_category_code": {"name": "job_category_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_code", "block_contents": "Code indicating the category of the job profile associated with the position."}, "doc.workday.job_category_id": {"name": "job_category_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_id", "block_contents": "Identifier for the job category."}, "doc.workday.job_description": {"name": "job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description", "block_contents": "Detailed description of the job associated with the position."}, "doc.workday.job_description_summary": {"name": "job_description_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description_summary", "block_contents": "Summary or overview of the job description for the position."}, "doc.workday.job_exempt": {"name": "job_exempt", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_exempt", "block_contents": "Indicates whether the job is exempt from certain regulations."}, "doc.workday.job_family": {"name": "job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family", "block_contents": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles."}, "doc.workday.job_family_code": {"name": "job_family_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_code", "block_contents": "Code assigned to the job family"}, "doc.workday.job_family_codes": {"name": "job_family_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_codes", "block_contents": "String array of all job family codes assigned to a job profile."}, "doc.workday.job_family_group": {"name": "job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group", "block_contents": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics."}, "doc.workday.job_family_group_code": {"name": "job_family_group_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_code", "block_contents": "Code assigned to the job family group for reference and categorization."}, "doc.workday.job_family_group_codes": {"name": "job_family_group_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_codes", "block_contents": "String array of all job family group codes assigned to a job profile."}, "doc.workday.job_family_group_id": {"name": "job_family_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_id", "block_contents": "Identifier for the job family group."}, "doc.workday.job_family_group_summary": {"name": "job_family_group_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summary", "block_contents": "The summary of the job family group."}, "doc.workday.job_family_group_summaries": {"name": "job_family_group_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summaries", "block_contents": "String array of all job family group summaries assigned to a job profile."}, "doc.workday.job_family_id": {"name": "job_family_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_id", "block_contents": "Identifier for the job family."}, "doc.workday.job_family_job_family_group": {"name": "job_family_job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_family_group", "block_contents": "Represents the relationship between job families and job family groups in the Workday dataset."}, "doc.workday.job_family_job_profile": {"name": "job_family_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_profile", "block_contents": "Represents the relationship between job families and job profiles in the Workday dataset."}, "doc.workday.job_family_summary": {"name": "job_family_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summary", "block_contents": "The summary of the job family."}, "doc.workday.job_family_summaries": {"name": "job_family_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summaries", "block_contents": "String array of all job family summaries assigned to a job profile."}, "doc.workday.job_group_id": {"name": "job_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_group_id", "block_contents": "The unique identifier for the job group."}, "doc.workday.job_posting_title": {"name": "job_posting_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_posting_title", "block_contents": "Title used for job postings associated with the position."}, "doc.workday.job_private_title": {"name": "job_private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_private_title", "block_contents": "The private title associated with the job."}, "doc.workday.job_profile": {"name": "job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile", "block_contents": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes."}, "doc.workday.job_profile_code": {"name": "job_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_code", "block_contents": "Code assigned to the job profile."}, "doc.workday.job_profile_description": {"name": "job_profile_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_description", "block_contents": "Brief description of the job profile."}, "doc.workday.job_profile_id": {"name": "job_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_id", "block_contents": "Identifier for the job profile."}, "doc.workday.job_summary": {"name": "job_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_summary", "block_contents": "The summary of the job."}, "doc.workday.job_title": {"name": "job_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_title", "block_contents": "The title of the job for the worker."}, "doc.workday.last_date_for_which_paid": {"name": "last_date_for_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_date_for_which_paid", "block_contents": "The last date being paid before leave."}, "doc.workday.last_datefor_which_paid": {"name": "last_datefor_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_datefor_which_paid", "block_contents": "Last date for which the worker was paid."}, "doc.workday.last_medical_exam_date": {"name": "last_medical_exam_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_date", "block_contents": "The date of the last medical exam."}, "doc.workday.last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_valid_to", "block_contents": "The validity date of the last medical exam."}, "doc.workday.last_name": {"name": "last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_name", "block_contents": "The last name or surname of the individual."}, "doc.workday.last_updated_date_time": {"name": "last_updated_date_time", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_updated_date_time", "block_contents": "Date and time when the organization record was last updated."}, "doc.workday.leave_description": {"name": "leave_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_description", "block_contents": "Description of the type of leave"}, "doc.workday.leave_end_date": {"name": "leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_end_date", "block_contents": "The end date of the leave."}, "doc.workday.leave_entitlement_override": {"name": "leave_entitlement_override", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_entitlement_override", "block_contents": "Override for leave entitlement."}, "doc.workday.leave_last_day_of_work": {"name": "leave_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_last_day_of_work", "block_contents": "The last day of work associated with the leave status."}, "doc.workday.leave_of_absence_type": {"name": "leave_of_absence_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_of_absence_type", "block_contents": "The type of leave of absence."}, "doc.workday.leave_percentage": {"name": "leave_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_percentage", "block_contents": "The percentage of leave."}, "doc.workday.leave_request_event_id": {"name": "leave_request_event_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_request_event_id", "block_contents": "The unique identifier for the leave request event."}, "doc.workday.leave_return_event": {"name": "leave_return_event", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_return_event", "block_contents": "The event associated with the return from leave."}, "doc.workday.leave_start_date": {"name": "leave_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_start_date", "block_contents": "The start date of the leave."}, "doc.workday.leave_status_code": {"name": "leave_status_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_status_code", "block_contents": "The code indicating the status of the leave."}, "doc.workday.leave_type_reason": {"name": "leave_type_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_type_reason", "block_contents": "The reason for the leave type."}, "doc.workday.level": {"name": "level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.level", "block_contents": "Level associated with the job profile."}, "doc.workday.local_first_name": {"name": "local_first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name", "block_contents": "The local or native first name of the individual."}, "doc.workday.local_first_name_2": {"name": "local_first_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name_2", "block_contents": "Additional local or native first name, if applicable."}, "doc.workday.local_hukou": {"name": "local_hukou", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_hukou", "block_contents": "Flag indicating whether the Hukou is local."}, "doc.workday.local_last_name": {"name": "local_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name", "block_contents": "The local or native last name of the individual."}, "doc.workday.local_last_name_2": {"name": "local_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name_2", "block_contents": "Additional local or native last name, if applicable."}, "doc.workday.local_middle_name": {"name": "local_middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name", "block_contents": "The local or native middle name of the individual."}, "doc.workday.local_middle_name_2": {"name": "local_middle_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name_2", "block_contents": "Additional local or native middle name, if applicable."}, "doc.workday.local_secondary_last_name": {"name": "local_secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name", "block_contents": "Secondary local or native last name or surname, if applicable."}, "doc.workday.local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name_2", "block_contents": "Additional secondary local or native last name, if applicable."}, "doc.workday.local_termination_reason": {"name": "local_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_termination_reason", "block_contents": "The reason for local termination of the worker."}, "doc.workday.location": {"name": "location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location", "block_contents": "Location associated with the organization."}, "doc.workday.location_during_leave": {"name": "location_during_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location_during_leave", "block_contents": "The location during the leave."}, "doc.workday.management_level": {"name": "management_level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level", "block_contents": "Management level associated with the job profile."}, "doc.workday.management_level_code": {"name": "management_level_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level_code", "block_contents": "Code indicating the management level associated with the job profile."}, "doc.workday.manager_id": {"name": "manager_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.manager_id", "block_contents": "Identifier for the manager associated with the organization."}, "doc.workday.marital_status": {"name": "marital_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status", "block_contents": "The marital status of the individual."}, "doc.workday.marital_status_date": {"name": "marital_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status_date", "block_contents": "The date of the marital status."}, "doc.workday.medical_exam_notes": {"name": "medical_exam_notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.medical_exam_notes", "block_contents": "Notes from the medical exam."}, "doc.workday.middle_name": {"name": "middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.middle_name", "block_contents": "The middle name of the individual."}, "doc.workday.military_service": {"name": "military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_service", "block_contents": "Represents information about an individual's military service in the Workday system."}, "doc.workday.military_status": {"name": "military_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_status", "block_contents": "The military status of the worker."}, "doc.workday.months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.months_continuous_prior_employment", "block_contents": "Number of months of continuous prior employment."}, "doc.workday.most_recent_level": {"name": "most_recent_level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_level", "block_contents": "The most recent level of the worker."}, "doc.workday.most_recent_location": {"name": "most_recent_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_location", "block_contents": "The most recent location of the worker."}, "doc.workday.most_recent_position_effective_date": {"name": "most_recent_position_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_position_effective_date", "block_contents": "The most recent position effective date for the employee."}, "doc.workday.most_recent_position_end_date": {"name": "most_recent_position_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_position_end_date", "block_contents": "The most recent position end date for the employee."}, "doc.workday.most_recent_position_start_date": {"name": "most_recent_position_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_position_start_date", "block_contents": "The most recent position start date for the employee."}, "doc.workday.most_recent_position_type": {"name": "most_recent_position_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_position_type", "block_contents": "The most recent position type of the worker."}, "doc.workday.multiple_child_indicator": {"name": "multiple_child_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.multiple_child_indicator", "block_contents": "Indicator for multiple children."}, "doc.workday.native_region": {"name": "native_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region", "block_contents": "The native region of the individual."}, "doc.workday.native_region_code": {"name": "native_region_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region_code", "block_contents": "The code of the native region."}, "doc.workday.not_returning": {"name": "not_returning", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.not_returning", "block_contents": "Flag indicating whether the worker is not returning."}, "doc.workday.notes": {"name": "notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.notes", "block_contents": "Additional notes or comments related to the military service record."}, "doc.workday.number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_babies_adopted_children", "block_contents": "The number of babies adopted by the worker."}, "doc.workday.number_of_child_dependents": {"name": "number_of_child_dependents", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_child_dependents", "block_contents": "The number of child dependents."}, "doc.workday.number_of_previous_births": {"name": "number_of_previous_births", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_births", "block_contents": "The number of previous births."}, "doc.workday.number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_maternity_leaves", "block_contents": "The number of previous maternity leaves."}, "doc.workday.on_leave": {"name": "on_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.on_leave", "block_contents": "Indicator for whether the worker is on leave."}, "doc.workday.organization": {"name": "organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization", "block_contents": "Identifier for the organization."}, "doc.workday.organization_code": {"name": "organization_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_code", "block_contents": "Code associated with the organization."}, "doc.workday.organization_description": {"name": "organization_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_description", "block_contents": "The description of the organization."}, "doc.workday.organization_id": {"name": "organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_id", "block_contents": "Identifier for the organization."}, "doc.workday.organization_job_family": {"name": "organization_job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_job_family", "block_contents": "Captures the associations between different organizational entities and the job families they are linked to."}, "doc.workday.organization_location": {"name": "organization_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_location", "block_contents": "The location of the organization."}, "doc.workday.organization_name": {"name": "organization_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_name", "block_contents": "Name of the organization."}, "doc.workday.organization_owner_id": {"name": "organization_owner_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_owner_id", "block_contents": "Identifier for the owner of the organization."}, "doc.workday.organization_role": {"name": "organization_role", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role", "block_contents": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities."}, "doc.workday.organization_role_code": {"name": "organization_role_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_code", "block_contents": "Code assigned to the organization role for reference and categorization."}, "doc.workday.organization_role_id": {"name": "organization_role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_id", "block_contents": "The role id associated with the organization."}, "doc.workday.organization_role_worker": {"name": "organization_role_worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_worker", "block_contents": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill."}, "doc.workday.organization_sub_type": {"name": "organization_sub_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_sub_type", "block_contents": "Subtype or classification of the organization."}, "doc.workday.organization_type": {"name": "organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_type", "block_contents": "Type or category of the organization."}, "doc.workday.organization_worker_code": {"name": "organization_worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_worker_code", "block_contents": "The worker code associated with the organization."}, "doc.workday.original_hire_date": {"name": "original_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.original_hire_date", "block_contents": "The original date when the worker was hired."}, "doc.workday.paid_fte": {"name": "paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_fte", "block_contents": "The paid full-time equivalent (FTE) associated with the worker position."}, "doc.workday.paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_time_off_accrual_effect", "block_contents": "The effect of leave on paid time off accrual."}, "doc.workday.pay_group": {"name": "pay_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group", "block_contents": "The pay group associated with the worker position."}, "doc.workday.pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_currency", "block_contents": "Currency code used for the worker's pay group frequency."}, "doc.workday.pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_frequency", "block_contents": "Frequency of payment for the worker's pay group."}, "doc.workday.pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's pay group."}, "doc.workday.pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_base_pay", "block_contents": "Total base pay for the worker's pay group."}, "doc.workday.pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's pay group."}, "doc.workday.pay_rate": {"name": "pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate", "block_contents": "The pay rate associated with the worker position."}, "doc.workday.pay_rate_type": {"name": "pay_rate_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate_type", "block_contents": "The type of pay rate associated with the worker position."}, "doc.workday.pay_through_date": {"name": "pay_through_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_through_date", "block_contents": "The date through which the worker is paid."}, "doc.workday.payroll_effect": {"name": "payroll_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_effect", "block_contents": "The effect of leave on payroll."}, "doc.workday.payroll_entity": {"name": "payroll_entity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_entity", "block_contents": "The payroll entity associated with the worker position."}, "doc.workday.payroll_file_number": {"name": "payroll_file_number", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_file_number", "block_contents": "The file number associated with payroll for the worker position."}, "doc.workday.person_contact_email_address": {"name": "person_contact_email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address", "block_contents": "Represents the email addresses associated with a person in the Workday system."}, "doc.workday.person_contact_email_address_id": {"name": "person_contact_email_address_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address_id", "block_contents": "The identifier of the personal contact email address."}, "doc.workday.person_name": {"name": "person_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name", "block_contents": "Represents the name information for an individual in the Workday system."}, "doc.workday.person_name_type": {"name": "person_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name_type", "block_contents": "The type or category of the person name (e.g., legal name, preferred name)."}, "doc.workday.personal_info_system_id": {"name": "personal_info_system_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_info_system_id", "block_contents": "The system ID associated with the personal information of the individual."}, "doc.workday.personal_information": {"name": "personal_information", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information", "block_contents": "The personal information associated with each worker."}, "doc.workday.personal_information_ethnicity": {"name": "personal_information_ethnicity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_ethnicity", "block_contents": "Represents information about the ethnicity of an individual in the Workday system."}, "doc.workday.personal_information_id": {"name": "personal_information_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_id", "block_contents": "The identifier for each personal information record."}, "doc.workday.personal_information_type": {"name": "personal_information_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_type", "block_contents": "The type of personal information record."}, "doc.workday.personnel_file_agency": {"name": "personnel_file_agency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personnel_file_agency", "block_contents": "The agency associated with the personnel file."}, "doc.workday.political_affiliation": {"name": "political_affiliation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.political_affiliation", "block_contents": "The political affiliation of the individual."}, "doc.workday.position": {"name": "position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position", "block_contents": "Resource for understanding the details and attributes associated with each position."}, "doc.workday.position_code": {"name": "position_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_code", "block_contents": "Code associated with the position for reference and categorization."}, "doc.workday.position_days": {"name": "position_days", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_days", "block_contents": "The days the worker held positions at the company."}, "doc.workday.position_id": {"name": "position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_id", "block_contents": "Identifier for the specific position."}, "doc.workday.position_job_profile": {"name": "position_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile", "block_contents": "Captures the associations between specific positions and the job profiles they are linked to."}, "doc.workday.position_job_profile_name": {"name": "position_job_profile_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile_name", "block_contents": "Name associated with the job profile linked to the position."}, "doc.workday.position_organization": {"name": "position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization", "block_contents": "Captures the associations between specific positions and the organizations to which they belong."}, "doc.workday.position_organization_type": {"name": "position_organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization_type", "block_contents": "Type or category of the position within the organization."}, "doc.workday.position_time_type_code": {"name": "position_time_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_time_type_code", "block_contents": "Code indicating the time type associated with the position."}, "doc.workday.prefix_salutation": {"name": "prefix_salutation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_salutation", "block_contents": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.)."}, "doc.workday.prefix_title": {"name": "prefix_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title", "block_contents": "The prefix or title associated with the name (e.g., Professor)."}, "doc.workday.prefix_title_code": {"name": "prefix_title_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title_code", "block_contents": "The code associated with the prefix or title."}, "doc.workday.primary_compensation_basis": {"name": "primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis", "block_contents": "Primary basis of compensation for the position."}, "doc.workday.primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_amount_change", "block_contents": "Change in the amount of the primary compensation basis."}, "doc.workday.primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_percent_change", "block_contents": "Change in the percentage of the primary compensation basis."}, "doc.workday.primary_nationality": {"name": "primary_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_nationality", "block_contents": "The primary nationality of the individual."}, "doc.workday.primary_termination_category": {"name": "primary_termination_category", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_category", "block_contents": "The primary termination category for the worker."}, "doc.workday.primary_termination_reason": {"name": "primary_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_reason", "block_contents": "The primary termination reason for the worker."}, "doc.workday.private_title": {"name": "private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.private_title", "block_contents": "Private title associated with the job profile."}, "doc.workday.probation_end_date": {"name": "probation_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_end_date", "block_contents": "The date when the worker's probation ends."}, "doc.workday.probation_start_date": {"name": "probation_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_start_date", "block_contents": "The date when the worker's probation starts."}, "doc.workday.professional_suffix": {"name": "professional_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.professional_suffix", "block_contents": "The professional suffix, if applicable (e.g., Esq., CPA)."}, "doc.workday.public_job": {"name": "public_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.public_job", "block_contents": "Flag indicating whether the job is public."}, "doc.workday.rank": {"name": "rank", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rank", "block_contents": "The rank achieved by the individual during military service."}, "doc.workday.reason_reference_id": {"name": "reason_reference_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.reason_reference_id", "block_contents": "The reference ID for the termination reason."}, "doc.workday.referral_payment_plan": {"name": "referral_payment_plan", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.referral_payment_plan", "block_contents": "Referral payment plan associated with the job profile."}, "doc.workday.region_of_birth": {"name": "region_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth", "block_contents": "The region of birth of the individual."}, "doc.workday.region_of_birth_code": {"name": "region_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth_code", "block_contents": "The code of the region of birth."}, "doc.workday.regrettable_termination": {"name": "regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regrettable_termination", "block_contents": "Flag indicating whether the worker's termination is regrettable."}, "doc.workday.regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regular_paid_equivalent_hours", "block_contents": "The regular paid equivalent hours associated with the worker position."}, "doc.workday.rehire": {"name": "rehire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rehire", "block_contents": "Flag indicating whether the worker is eligible for rehire."}, "doc.workday.religion": {"name": "religion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religion", "block_contents": "The religion of the individual."}, "doc.workday.religious_suffix": {"name": "religious_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religious_suffix", "block_contents": "The religious suffix, if applicable."}, "doc.workday.resignation_date": {"name": "resignation_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.resignation_date", "block_contents": "The date when the worker resigned."}, "doc.workday.retired": {"name": "retired", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retired", "block_contents": "Flag indicating whether the worker is retired."}, "doc.workday.retirement_date": {"name": "retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_date", "block_contents": "The date when the worker retired."}, "doc.workday.retirement_eligibility_date": {"name": "retirement_eligibility_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_eligibility_date", "block_contents": "The date when the worker becomes eligible for retirement."}, "doc.workday.return_unknown": {"name": "return_unknown", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.return_unknown", "block_contents": "Flag indicating whether the worker's return status is unknown."}, "doc.workday.role_id": {"name": "role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.role_id", "block_contents": "Identifier for the specific role."}, "doc.workday.royal_suffix": {"name": "royal_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.royal_suffix", "block_contents": "The royal suffix, if applicable."}, "doc.workday.scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the worker position."}, "doc.workday.secondary_last_name": {"name": "secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.secondary_last_name", "block_contents": "Secondary last name or surname, if applicable."}, "doc.workday.seniority_date": {"name": "seniority_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.seniority_date", "block_contents": "The date when the worker's seniority is recorded."}, "doc.workday.service": {"name": "service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service", "block_contents": "The specific military service branch in which the individual served."}, "doc.workday.service_type": {"name": "service_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service_type", "block_contents": "The type or category of military service (e.g., active duty, reserve, etc.)."}, "doc.workday.severance_date": {"name": "severance_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.severance_date", "block_contents": "The date when the worker's severance is recorded."}, "doc.workday.single_parent_indicator": {"name": "single_parent_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.single_parent_indicator", "block_contents": "Indicator for a single parent."}, "doc.workday.social_benefit": {"name": "social_benefit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_benefit", "block_contents": "The social benefit associated with the individual."}, "doc.workday.social_security_disability_code": {"name": "social_security_disability_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_security_disability_code", "block_contents": "The code indicating social security disability."}, "doc.workday.social_suffix": {"name": "social_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix", "block_contents": "The social suffix, if applicable."}, "doc.workday.social_suffix_id": {"name": "social_suffix_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix_id", "block_contents": "The identifier for the social suffix."}, "doc.workday.specify_paid_fte": {"name": "specify_paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_paid_fte", "block_contents": "Flag indicating whether to specify paid FTE for the worker position."}, "doc.workday.specify_working_fte": {"name": "specify_working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_working_fte", "block_contents": "Flag indicating whether to specify working FTE for the worker position."}, "doc.workday.staffing_model": {"name": "staffing_model", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.staffing_model", "block_contents": "Staffing model associated with the organization"}, "doc.workday.start_date": {"name": "start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_date", "block_contents": "The start date of the worker position."}, "doc.workday.start_international_assignment_reason": {"name": "start_international_assignment_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_international_assignment_reason", "block_contents": "The reason for starting an international assignment associated with the worker position."}, "doc.workday.status": {"name": "status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status", "block_contents": "The status of the individual's military service (e.g., active, inactive, retired)."}, "doc.workday.status_begin_date": {"name": "status_begin_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status_begin_date", "block_contents": "The date on which the current military service status began."}, "doc.workday.stock_vesting_effect": {"name": "stock_vesting_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stock_vesting_effect", "block_contents": "The effect of leave on stock vesting."}, "doc.workday.stop_payment_date": {"name": "stop_payment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stop_payment_date", "block_contents": "The date when stop payment occurs."}, "doc.workday.summary": {"name": "summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.summary", "block_contents": "Summary or overview of the job profile."}, "doc.workday.superior_organization_id": {"name": "superior_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.superior_organization_id", "block_contents": "Identifier for the superior organization, if applicable."}, "doc.workday.supervisory_organization_id": {"name": "supervisory_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_organization_id", "block_contents": "Identifier for the supervisory organization associated with the position."}, "doc.workday.supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_availability_date", "block_contents": "Availability date for supervisory positions within the organization."}, "doc.workday.supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_earliest_hire_date", "block_contents": "Earliest hire date for supervisory positions within the organization."}, "doc.workday.supervisory_position_time_type": {"name": "supervisory_position_time_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_time_type", "block_contents": "Time type associated with supervisory positions."}, "doc.workday.supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_worker_type", "block_contents": "Worker type associated with supervisory positions."}, "doc.workday.terminated": {"name": "terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.terminated", "block_contents": "Flag indicating whether the worker is terminated."}, "doc.workday.termination_date": {"name": "termination_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_date", "block_contents": "The date when the worker is terminated."}, "doc.workday.termination_involuntary": {"name": "termination_involuntary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_involuntary", "block_contents": "Flag indicating whether the termination is involuntary."}, "doc.workday.termination_last_day_of_work": {"name": "termination_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_last_day_of_work", "block_contents": "The last day of work for the worker during termination."}, "doc.workday.tertiary_last_name": {"name": "tertiary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tertiary_last_name", "block_contents": "Tertiary last name or surname, if applicable."}, "doc.workday.time_off_service_date": {"name": "time_off_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.time_off_service_date", "block_contents": "The date when the worker's time-off service starts."}, "doc.workday.title": {"name": "title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.title", "block_contents": "Title associated with the job profile."}, "doc.workday.tobacco_use": {"name": "tobacco_use", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tobacco_use", "block_contents": "Flag indicating whether the individual uses tobacco."}, "doc.workday.top_level_organization_id": {"name": "top_level_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.top_level_organization_id", "block_contents": "Identifier for the top-level organization, if applicable."}, "doc.workday.union_code": {"name": "union_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_code", "block_contents": "Code associated with the union related to the job profile."}, "doc.workday.union_membership_requirement": {"name": "union_membership_requirement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_membership_requirement", "block_contents": "Flag indicating whether union membership is a requirement for the job profile."}, "doc.workday.universal_id": {"name": "universal_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.universal_id", "block_contents": "The universal ID associated with the worker."}, "doc.workday.user_id": {"name": "user_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.user_id", "block_contents": "The identifier for the user associated with the worker."}, "doc.workday.vesting_date": {"name": "vesting_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.vesting_date", "block_contents": "The date when the worker's vesting starts."}, "doc.workday.visibility": {"name": "visibility", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.visibility", "block_contents": "Visibility level of the organization."}, "doc.workday.week_of_confinement": {"name": "week_of_confinement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.week_of_confinement", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_hours_profile": {"name": "work_hours_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_hours_profile", "block_contents": "The work hours profile associated with the worker position."}, "doc.workday.work_related": {"name": "work_related", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_related", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_shift": {"name": "work_shift", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift", "block_contents": "The work shift associated with the worker position."}, "doc.workday.work_shift_required": {"name": "work_shift_required", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift_required", "block_contents": "Flag indicating whether a work shift is required."}, "doc.workday.work_space": {"name": "work_space", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_space", "block_contents": "The work space associated with the worker position."}, "doc.workday.work_study_award_source_code": {"name": "work_study_award_source_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_award_source_code", "block_contents": "Code associated with the source of work study awards."}, "doc.workday.work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_requirement_option_code", "block_contents": "Code associated with work study requirement options."}, "doc.workday.workday__employee_overview": {"name": "workday__employee_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__employee_overview", "block_contents": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees."}, "doc.workday.workday__job_overview": {"name": "workday__job_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__job_overview", "block_contents": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings."}, "doc.workday.workday__role_overview": {"name": "workday__role_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__role_overview", "block_contents": "Each record represents a role in an organization, enhanced with additional organizational details."}, "doc.workday.workday__organization_overview": {"name": "workday__organization_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__organization_overview", "block_contents": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures."}, "doc.workday.workday__position_overview": {"name": "workday__position_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__position_overview", "block_contents": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts."}, "doc.workday.worker": {"name": "worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker", "block_contents": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker."}, "doc.workday.worker_code": {"name": "worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_code", "block_contents": "The code associated with the worker."}, "doc.workday.worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_for_filled_position_id", "block_contents": "Identifier for the worker filling the position, if applicable."}, "doc.workday.worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_hours_profile_classification", "block_contents": "The classification of worker hours profile associated with the worker position."}, "doc.workday.worker_id": {"name": "worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_id", "block_contents": "Unique identifier for the worker."}, "doc.workday.worker_leave_status": {"name": "worker_leave_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_leave_status", "block_contents": "Represents the leave status of workers in the Workday system."}, "doc.workday.worker_levels": {"name": "worker_levels", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_levels", "block_contents": "The number of levels the worker has worked at."}, "doc.workday.worker_position": {"name": "worker_position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position", "block_contents": "Represents the positions held by workers in the Workday system"}, "doc.workday.worker_position_organization": {"name": "worker_position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_organization", "block_contents": "Ties together workers to the positions and organizations they hold in the Workday system."}, "doc.workday.worker_position_id": {"name": "worker_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_id", "block_contents": "Identifier for the worker associated with the position."}, "doc.workday.worker_positions": {"name": "worker_positions", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_positions", "block_contents": "The number of positions the worker has held"}, "doc.workday.worker_type_code": {"name": "worker_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_type_code", "block_contents": "Code indicating the type of worker associated with the position."}, "doc.workday.working_fte": {"name": "working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_fte", "block_contents": "The working full-time equivalent (FTE) associated with the worker position."}, "doc.workday.working_time_frequency": {"name": "working_time_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_frequency", "block_contents": "The frequency of working time associated with the worker position."}, "doc.workday.working_time_unit": {"name": "working_time_unit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_unit", "block_contents": "The unit of working time associated with the worker position."}, "doc.workday.working_time_value": {"name": "working_time_value", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_value", "block_contents": "The value of working time associated with the worker position."}, "doc.workday.date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_pay_group_assignment", "block_contents": "Date a group's pay is assigned to be processed."}, "doc.workday.primary_business_site": {"name": "primary_business_site", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_business_site", "block_contents": "Primary location a worker's business is situated."}, "doc.workday.used_in_change_organization_assignments": {"name": "used_in_change_organization_assignments", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.used_in_change_organization_assignments", "block_contents": "If a worker has opted to change these organization assignments."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {}, "parent_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.workday__job_overview": ["model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_group", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_profile"], "model.workday.workday__position_overview": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"], "model.workday.workday__organization_overview": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"], "model.workday.stg_workday__position": ["model.workday.stg_workday__position_base"], "model.workday.stg_workday__job_family_group": ["model.workday.stg_workday__job_family_group_base"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "model.workday.stg_workday__organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "model.workday.stg_workday__organization_role": ["model.workday.stg_workday__organization_role_base"], "model.workday.stg_workday__worker_position": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "model.workday.stg_workday__position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "model.workday.stg_workday__worker_position_organization": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.stg_workday__job_profile": ["model.workday.stg_workday__job_profile_base"], "model.workday.stg_workday__position_organization": ["model.workday.stg_workday__position_organization_base"], "model.workday.stg_workday__worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "model.workday.stg_workday__person_name": ["model.workday.stg_workday__person_name_base"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "model.workday.stg_workday__organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "model.workday.stg_workday__job_family": ["model.workday.stg_workday__job_family_base"], "model.workday.stg_workday__military_service": ["model.workday.stg_workday__military_service_base"], "model.workday.stg_workday__personal_information": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "model.workday.stg_workday__worker": ["model.workday.stg_workday__worker_base"], "model.workday.stg_workday__organization": ["model.workday.stg_workday__organization_base"], "model.workday.stg_workday__job_family_job_family_group_base": ["source.workday.workday.job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["source.workday.workday.personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["source.workday.workday.job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["source.workday.workday.worker_position_organization_history"], "model.workday.stg_workday__position_base": ["source.workday.workday.position"], "model.workday.stg_workday__person_contact_email_address_base": ["source.workday.workday.person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["source.workday.workday.organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["source.workday.workday.job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["source.workday.workday.position_organization"], "model.workday.stg_workday__organization_role_base": ["source.workday.workday.organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["source.workday.workday.worker_leave_status"], "model.workday.stg_workday__job_family_base": ["source.workday.workday.job_family"], "model.workday.stg_workday__job_profile_base": ["source.workday.workday.job_profile"], "model.workday.stg_workday__organization_base": ["source.workday.workday.organization"], "model.workday.stg_workday__organization_role_worker_base": ["source.workday.workday.organization_role_worker"], "model.workday.stg_workday__worker_base": ["source.workday.workday.worker_history"], "model.workday.stg_workday__position_job_profile_base": ["source.workday.workday.position_job_profile"], "model.workday.stg_workday__worker_position_base": ["source.workday.workday.worker_position_history"], "model.workday.stg_workday__person_name_base": ["source.workday.workday.person_name"], "model.workday.stg_workday__military_service_base": ["source.workday.workday.military_service"], "model.workday.stg_workday__personal_information_base": ["source.workday.workday.personal_information_history"], "model.workday.workday__employee_daily_history": ["model.workday.int_workday__employee_history"], "model.workday.int_workday__worker_position_enriched": ["model.workday.stg_workday__worker_position"], "model.workday.int_workday__personal_details": ["model.workday.stg_workday__military_service", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__person_name", "model.workday.stg_workday__personal_information", "model.workday.stg_workday__personal_information_ethnicity"], "model.workday.int_workday__worker_details": ["model.workday.stg_workday__worker"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.int_workday__personal_details", "model.workday.int_workday__worker_details", "model.workday.int_workday__worker_position_enriched"], "model.workday.int_workday__employee_history": ["model.workday.stg_workday__personal_information_history", "model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history"], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": ["model.workday.workday__employee_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": ["model.workday.workday__job_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": ["model.workday.workday__job_overview"], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": ["model.workday.workday__position_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": ["model.workday.workday__position_overview"], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": ["model.workday.workday__organization_overview"], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": ["model.workday.workday__organization_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": ["model.workday.workday__organization_overview"], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": ["model.workday.stg_workday__job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": ["model.workday.stg_workday__job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": ["model.workday.stg_workday__job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": ["model.workday.stg_workday__job_family"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": ["model.workday.stg_workday__job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": ["model.workday.stg_workday__job_family_group"], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": ["model.workday.stg_workday__organization_role"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": ["model.workday.stg_workday__organization_role_worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": ["model.workday.stg_workday__organization_job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": ["model.workday.stg_workday__organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": ["model.workday.stg_workday__organization"], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": ["model.workday.stg_workday__position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": ["model.workday.stg_workday__position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": ["model.workday.stg_workday__position"], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": ["model.workday.stg_workday__position_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": ["model.workday.stg_workday__worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": ["model.workday.stg_workday__worker"], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": ["model.workday.stg_workday__personal_information"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": ["model.workday.stg_workday__personal_information"], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": ["model.workday.stg_workday__person_name"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": ["model.workday.stg_workday__military_service"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": ["model.workday.stg_workday__military_service"], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": ["model.workday.stg_workday__worker_position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": ["model.workday.stg_workday__worker_leave_status"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": ["model.workday.stg_workday__worker_position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": ["model.workday.stg_workday__worker_position_organization"], "model.workday.stg_workday__personal_information_history": ["source.workday.workday.personal_information_history"], "model.workday.stg_workday__worker_position_organization_history": ["source.workday.workday.worker_position_organization_history"], "model.workday.workday__monthly_summary": ["model.workday.workday__employee_daily_history"], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": ["model.workday.stg_workday__personal_information_history"], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": ["model.workday.stg_workday__personal_information_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888": ["model.workday.stg_workday__worker_position_organization_history"], "model.workday.stg_workday__worker_history": ["source.workday.workday.worker_history"], "model.workday.stg_workday__worker_position_history": ["source.workday.workday.worker_position_history"], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": ["model.workday.stg_workday__worker_history"], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": ["model.workday.stg_workday__worker_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": ["model.workday.stg_workday__worker_position_history"], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": ["model.workday.stg_workday__worker_position_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b": ["model.workday.stg_workday__worker_position_history"], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "source.workday.workday.job_profile": [], "source.workday.workday.job_family_job_profile": [], "source.workday.workday.job_family": [], "source.workday.workday.job_family_job_family_group": [], "source.workday.workday.job_family_group": [], "source.workday.workday.organization_role": [], "source.workday.workday.organization_role_worker": [], "source.workday.workday.organization_job_family": [], "source.workday.workday.organization": [], "source.workday.workday.position_organization": [], "source.workday.workday.position": [], "source.workday.workday.position_job_profile": [], "source.workday.workday.worker_history": [], "source.workday.workday.personal_information_history": [], "source.workday.workday.person_name": [], "source.workday.workday.personal_information_ethnicity": [], "source.workday.workday.military_service": [], "source.workday.workday.person_contact_email_address": [], "source.workday.workday.worker_position_history": [], "source.workday.workday.worker_leave_status": [], "source.workday.workday.worker_position_organization_history": []}, "child_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d", "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97"], "model.workday.workday__job_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857"], "model.workday.workday__position_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "test.workday.not_null_workday__position_overview_position_id.603beb3f22"], "model.workday.workday__organization_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412"], "model.workday.stg_workday__position": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e"], "model.workday.stg_workday__job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c"], "model.workday.stg_workday__organization_role_worker": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72"], "model.workday.stg_workday__organization_role": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f"], "model.workday.stg_workday__worker_position": ["model.workday.int_workday__worker_position_enriched", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755"], "model.workday.stg_workday__position_job_profile": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7"], "model.workday.stg_workday__worker_position_organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b"], "model.workday.stg_workday__job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa"], "model.workday.stg_workday__position_organization": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7"], "model.workday.stg_workday__worker_leave_status": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61"], "model.workday.stg_workday__person_name": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd"], "model.workday.stg_workday__organization_job_family": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e"], "model.workday.stg_workday__job_family": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f"], "model.workday.stg_workday__military_service": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38"], "model.workday.stg_workday__personal_information": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b"], "model.workday.stg_workday__worker": ["model.workday.int_workday__worker_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "test.workday.not_null_stg_workday__worker_worker_id.8dae310560"], "model.workday.stg_workday__organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7"], "model.workday.stg_workday__job_family_job_family_group_base": ["model.workday.stg_workday__job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["model.workday.stg_workday__personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["model.workday.stg_workday__job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["model.workday.stg_workday__worker_position_organization"], "model.workday.stg_workday__position_base": ["model.workday.stg_workday__position"], "model.workday.stg_workday__person_contact_email_address_base": ["model.workday.stg_workday__person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["model.workday.stg_workday__organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["model.workday.stg_workday__job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["model.workday.stg_workday__position_organization"], "model.workday.stg_workday__organization_role_base": ["model.workday.stg_workday__organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["model.workday.stg_workday__worker_leave_status"], "model.workday.stg_workday__job_family_base": ["model.workday.stg_workday__job_family"], "model.workday.stg_workday__job_profile_base": ["model.workday.stg_workday__job_profile"], "model.workday.stg_workday__organization_base": ["model.workday.stg_workday__organization"], "model.workday.stg_workday__organization_role_worker_base": ["model.workday.stg_workday__organization_role_worker"], "model.workday.stg_workday__worker_base": ["model.workday.stg_workday__worker"], "model.workday.stg_workday__position_job_profile_base": ["model.workday.stg_workday__position_job_profile"], "model.workday.stg_workday__worker_position_base": ["model.workday.stg_workday__worker_position"], "model.workday.stg_workday__person_name_base": ["model.workday.stg_workday__person_name"], "model.workday.stg_workday__military_service_base": ["model.workday.stg_workday__military_service"], "model.workday.stg_workday__personal_information_base": ["model.workday.stg_workday__personal_information"], "model.workday.workday__employee_daily_history": ["model.workday.workday__monthly_summary"], "model.workday.int_workday__worker_position_enriched": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__personal_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.workday__employee_overview"], "model.workday.int_workday__employee_history": ["model.workday.workday__employee_daily_history"], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d": [], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": [], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": [], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": [], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": [], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": [], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": [], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": [], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": [], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": [], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": [], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": [], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": [], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": [], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": [], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": [], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": [], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": [], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": [], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": [], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": [], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": [], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": [], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": [], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": [], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": [], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": [], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": [], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": [], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": [], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": [], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": [], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": [], "model.workday.stg_workday__personal_information_history": ["model.workday.int_workday__employee_history", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c", "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc"], "model.workday.stg_workday__worker_position_organization_history": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888", "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398"], "model.workday.workday__monthly_summary": [], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": [], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": [], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c": [], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": [], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": [], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": [], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": [], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888": [], "model.workday.stg_workday__worker_history": ["model.workday.int_workday__employee_history", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df", "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72"], "model.workday.stg_workday__worker_position_history": ["model.workday.int_workday__employee_history", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b", "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879"], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": [], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": [], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df": [], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": [], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": [], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": [], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b": [], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "source.workday.workday.job_profile": ["model.workday.stg_workday__job_profile_base"], "source.workday.workday.job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "source.workday.workday.job_family": ["model.workday.stg_workday__job_family_base"], "source.workday.workday.job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "source.workday.workday.job_family_group": ["model.workday.stg_workday__job_family_group_base"], "source.workday.workday.organization_role": ["model.workday.stg_workday__organization_role_base"], "source.workday.workday.organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "source.workday.workday.organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "source.workday.workday.organization": ["model.workday.stg_workday__organization_base"], "source.workday.workday.position_organization": ["model.workday.stg_workday__position_organization_base"], "source.workday.workday.position": ["model.workday.stg_workday__position_base"], "source.workday.workday.position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "source.workday.workday.worker_history": ["model.workday.stg_workday__worker_base", "model.workday.stg_workday__worker_history"], "source.workday.workday.personal_information_history": ["model.workday.stg_workday__personal_information_base", "model.workday.stg_workday__personal_information_history"], "source.workday.workday.person_name": ["model.workday.stg_workday__person_name_base"], "source.workday.workday.personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "source.workday.workday.military_service": ["model.workday.stg_workday__military_service_base"], "source.workday.workday.person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "source.workday.workday.worker_position_history": ["model.workday.stg_workday__worker_position_base", "model.workday.stg_workday__worker_position_history"], "source.workday.workday.worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "source.workday.workday.worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base", "model.workday.stg_workday__worker_position_organization_history"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json index 25e3722..e203889 100644 --- a/docs/run_results.json +++ b/docs/run_results.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.6.1", "generated_at": "2024-02-20T19:38:37.026913Z", "invocation_id": "7d05597f-1e75-41df-a9b8-5eca5c835afb", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:31.821825Z", "completed_at": "2024-02-20T19:38:31.861795Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:31.863652Z", "completed_at": "2024-02-20T19:38:31.863723Z"}], "thread_id": "Thread-1", "execution_time": 0.05093574523925781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.my_new_project.my_first_dbt_model"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:31.827095Z", "completed_at": "2024-02-20T19:38:32.189052Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:32.190421Z", "completed_at": "2024-02-20T19:38:32.190436Z"}], "thread_id": "Thread-2", "execution_time": 0.37621092796325684, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:31.843736Z", "completed_at": "2024-02-20T19:38:32.220389Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:32.222231Z", "completed_at": "2024-02-20T19:38:32.222246Z"}], "thread_id": "Thread-4", "execution_time": 0.40587282180786133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:31.836303Z", "completed_at": "2024-02-20T19:38:32.239998Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:32.242676Z", "completed_at": "2024-02-20T19:38:32.242696Z"}], "thread_id": "Thread-3", "execution_time": 0.4289069175720215, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_group_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:31.868588Z", "completed_at": "2024-02-20T19:38:32.326124Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:32.327413Z", "completed_at": "2024-02-20T19:38:32.327425Z"}], "thread_id": "Thread-1", "execution_time": 0.4615459442138672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_profile_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:32.195153Z", "completed_at": "2024-02-20T19:38:32.487787Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:32.492002Z", "completed_at": "2024-02-20T19:38:32.492023Z"}], "thread_id": "Thread-2", "execution_time": 0.30062222480773926, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_profile_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:32.229360Z", "completed_at": "2024-02-20T19:38:32.529815Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:32.532681Z", "completed_at": "2024-02-20T19:38:32.532706Z"}], "thread_id": "Thread-4", "execution_time": 0.30960822105407715, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__military_service_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:32.249941Z", "completed_at": "2024-02-20T19:38:32.590396Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:32.592000Z", "completed_at": "2024-02-20T19:38:32.592019Z"}], "thread_id": "Thread-3", "execution_time": 0.34588003158569336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:32.331565Z", "completed_at": "2024-02-20T19:38:32.676131Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:32.678804Z", "completed_at": "2024-02-20T19:38:32.678819Z"}], "thread_id": "Thread-1", "execution_time": 0.35044026374816895, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_job_family_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:32.500820Z", "completed_at": "2024-02-20T19:38:32.887537Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:32.889072Z", "completed_at": "2024-02-20T19:38:32.889087Z"}], "thread_id": "Thread-2", "execution_time": 0.39357900619506836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:32.541834Z", "completed_at": "2024-02-20T19:38:32.913883Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:32.918992Z", "completed_at": "2024-02-20T19:38:32.919024Z"}], "thread_id": "Thread-4", "execution_time": 0.3847179412841797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_worker_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:32.598468Z", "completed_at": "2024-02-20T19:38:32.946814Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:32.950355Z", "completed_at": "2024-02-20T19:38:32.950378Z"}], "thread_id": "Thread-3", "execution_time": 0.35620594024658203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_contact_email_address_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:32.686114Z", "completed_at": "2024-02-20T19:38:32.986536Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:32.988422Z", "completed_at": "2024-02-20T19:38:32.988437Z"}], "thread_id": "Thread-1", "execution_time": 0.3068721294403076, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_name_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:32.931847Z", "completed_at": "2024-02-20T19:38:33.261701Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:33.262809Z", "completed_at": "2024-02-20T19:38:33.262820Z"}], "thread_id": "Thread-4", "execution_time": 0.335888147354126, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:32.896414Z", "completed_at": "2024-02-20T19:38:33.307622Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:33.308825Z", "completed_at": "2024-02-20T19:38:33.308837Z"}], "thread_id": "Thread-2", "execution_time": 0.4171879291534424, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:32.993350Z", "completed_at": "2024-02-20T19:38:33.343357Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:33.344702Z", "completed_at": "2024-02-20T19:38:33.344713Z"}], "thread_id": "Thread-1", "execution_time": 0.3544001579284668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_job_profile_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:32.958816Z", "completed_at": "2024-02-20T19:38:33.369253Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:33.371569Z", "completed_at": "2024-02-20T19:38:33.371600Z"}], "thread_id": "Thread-3", "execution_time": 0.4174351692199707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:33.313309Z", "completed_at": "2024-02-20T19:38:33.605338Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:33.607851Z", "completed_at": "2024-02-20T19:38:33.607869Z"}], "thread_id": "Thread-2", "execution_time": 0.2979278564453125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:33.268592Z", "completed_at": "2024-02-20T19:38:33.627655Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:33.629706Z", "completed_at": "2024-02-20T19:38:33.629724Z"}], "thread_id": "Thread-4", "execution_time": 0.36598992347717285, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_organization_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:33.635584Z", "completed_at": "2024-02-20T19:38:33.641951Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:33.643283Z", "completed_at": "2024-02-20T19:38:33.643298Z"}], "thread_id": "Thread-4", "execution_time": 0.011085033416748047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.my_new_project.my_second_dbt_model"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:33.378161Z", "completed_at": "2024-02-20T19:38:33.669564Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:33.672742Z", "completed_at": "2024-02-20T19:38:33.672760Z"}], "thread_id": "Thread-3", "execution_time": 0.298936128616333, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:33.650824Z", "completed_at": "2024-02-20T19:38:33.676164Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:33.680541Z", "completed_at": "2024-02-20T19:38:33.680553Z"}], "thread_id": "Thread-4", "execution_time": 0.038057804107666016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.my_new_project.not_null_my_first_dbt_model_id.5fb22c2710"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:33.351761Z", "completed_at": "2024-02-20T19:38:33.678061Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:33.683077Z", "completed_at": "2024-02-20T19:38:33.683088Z"}], "thread_id": "Thread-1", "execution_time": 0.34124302864074707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_leave_status_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:33.693309Z", "completed_at": "2024-02-20T19:38:33.723140Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:33.734379Z", "completed_at": "2024-02-20T19:38:33.734407Z"}], "thread_id": "Thread-3", "execution_time": 0.05535078048706055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.my_new_project.unique_my_first_dbt_model_id.16e066b321"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:33.613418Z", "completed_at": "2024-02-20T19:38:33.925810Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:33.927818Z", "completed_at": "2024-02-20T19:38:33.927833Z"}], "thread_id": "Thread-2", "execution_time": 0.31763291358947754, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization_base"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:33.724728Z", "completed_at": "2024-02-20T19:38:34.047453Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:34.048512Z", "completed_at": "2024-02-20T19:38:34.048523Z"}], "thread_id": "Thread-1", "execution_time": 0.3392009735107422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_family_group"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:33.713008Z", "completed_at": "2024-02-20T19:38:34.080450Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:34.084362Z", "completed_at": "2024-02-20T19:38:34.084383Z"}], "thread_id": "Thread-4", "execution_time": 0.37928080558776855, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:33.741661Z", "completed_at": "2024-02-20T19:38:34.081722Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:34.085659Z", "completed_at": "2024-02-20T19:38:34.085687Z"}], "thread_id": "Thread-3", "execution_time": 0.35183095932006836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_group"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:33.932647Z", "completed_at": "2024-02-20T19:38:34.274415Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:34.275803Z", "completed_at": "2024-02-20T19:38:34.275833Z"}], "thread_id": "Thread-2", "execution_time": 0.34638285636901855, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_profile"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:34.099437Z", "completed_at": "2024-02-20T19:38:34.419181Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:34.429190Z", "completed_at": "2024-02-20T19:38:34.429220Z"}], "thread_id": "Thread-4", "execution_time": 0.33858799934387207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__military_service"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:34.053134Z", "completed_at": "2024-02-20T19:38:34.421220Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:34.430763Z", "completed_at": "2024-02-20T19:38:34.430783Z"}], "thread_id": "Thread-1", "execution_time": 0.3861827850341797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_profile"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:34.110956Z", "completed_at": "2024-02-20T19:38:34.427321Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:34.440514Z", "completed_at": "2024-02-20T19:38:34.440583Z"}], "thread_id": "Thread-3", "execution_time": 0.35360193252563477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:34.281754Z", "completed_at": "2024-02-20T19:38:34.613415Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:34.614768Z", "completed_at": "2024-02-20T19:38:34.614782Z"}], "thread_id": "Thread-2", "execution_time": 0.3366878032684326, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_job_family"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:34.486002Z", "completed_at": "2024-02-20T19:38:34.742905Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:34.744430Z", "completed_at": "2024-02-20T19:38:34.744442Z"}], "thread_id": "Thread-3", "execution_time": 0.2849547863006592, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_contact_email_address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:34.471309Z", "completed_at": "2024-02-20T19:38:34.781502Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:34.786723Z", "completed_at": "2024-02-20T19:38:34.786782Z"}], "thread_id": "Thread-1", "execution_time": 0.33505892753601074, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_worker"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:34.461632Z", "completed_at": "2024-02-20T19:38:34.782624Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:34.788433Z", "completed_at": "2024-02-20T19:38:34.788446Z"}], "thread_id": "Thread-4", "execution_time": 0.3393421173095703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:34.622764Z", "completed_at": "2024-02-20T19:38:34.945939Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:34.947212Z", "completed_at": "2024-02-20T19:38:34.947224Z"}], "thread_id": "Thread-2", "execution_time": 0.32929301261901855, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_name"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:34.749673Z", "completed_at": "2024-02-20T19:38:35.067787Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.070165Z", "completed_at": "2024-02-20T19:38:35.070194Z"}], "thread_id": "Thread-3", "execution_time": 0.324077844619751, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_ethnicity"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:34.812188Z", "completed_at": "2024-02-20T19:38:35.107122Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.108692Z", "completed_at": "2024-02-20T19:38:35.108704Z"}], "thread_id": "Thread-4", "execution_time": 0.31221890449523926, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_job_profile"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:34.801252Z", "completed_at": "2024-02-20T19:38:35.350793Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.356479Z", "completed_at": "2024-02-20T19:38:35.356496Z"}], "thread_id": "Thread-1", "execution_time": 0.5624630451202393, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:34.951734Z", "completed_at": "2024-02-20T19:38:35.360317Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.363655Z", "completed_at": "2024-02-20T19:38:35.363667Z"}], "thread_id": "Thread-2", "execution_time": 0.4249727725982666, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.365150Z", "completed_at": "2024-02-20T19:38:35.384977Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.387142Z", "completed_at": "2024-02-20T19:38:35.387159Z"}], "thread_id": "Thread-1", "execution_time": 0.029740095138549805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.my_new_project.not_null_my_second_dbt_model_id.151b76d778"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.379631Z", "completed_at": "2024-02-20T19:38:35.401352Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.406862Z", "completed_at": "2024-02-20T19:38:35.406892Z"}], "thread_id": "Thread-2", "execution_time": 0.031742095947265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.my_new_project.unique_my_second_dbt_model_id.57a0f8c493"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.074869Z", "completed_at": "2024-02-20T19:38:35.548596Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.550143Z", "completed_at": "2024-02-20T19:38:35.550159Z"}], "thread_id": "Thread-3", "execution_time": 0.4778099060058594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.115015Z", "completed_at": "2024-02-20T19:38:35.666681Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.701935Z", "completed_at": "2024-02-20T19:38:35.701954Z"}], "thread_id": "Thread-4", "execution_time": 0.5918748378753662, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_organization"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.707647Z", "completed_at": "2024-02-20T19:38:35.715495Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.717077Z", "completed_at": "2024-02-20T19:38:35.717091Z"}], "thread_id": "Thread-4", "execution_time": 0.012644052505493164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.722402Z", "completed_at": "2024-02-20T19:38:35.731584Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.733132Z", "completed_at": "2024-02-20T19:38:35.733146Z"}], "thread_id": "Thread-4", "execution_time": 0.014187812805175781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.775797Z", "completed_at": "2024-02-20T19:38:35.792305Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.795699Z", "completed_at": "2024-02-20T19:38:35.795710Z"}], "thread_id": "Thread-4", "execution_time": 0.05961966514587402, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.413829Z", "completed_at": "2024-02-20T19:38:35.792929Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.796322Z", "completed_at": "2024-02-20T19:38:35.796330Z"}], "thread_id": "Thread-2", "execution_time": 0.38739514350891113, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_leave_status"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.394813Z", "completed_at": "2024-02-20T19:38:35.793555Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.797072Z", "completed_at": "2024-02-20T19:38:35.797082Z"}], "thread_id": "Thread-1", "execution_time": 0.4072399139404297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.808547Z", "completed_at": "2024-02-20T19:38:35.830146Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.835221Z", "completed_at": "2024-02-20T19:38:35.835233Z"}], "thread_id": "Thread-4", "execution_time": 0.04169011116027832, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.815488Z", "completed_at": "2024-02-20T19:38:35.830800Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.843430Z", "completed_at": "2024-02-20T19:38:35.843443Z"}], "thread_id": "Thread-2", "execution_time": 0.04171180725097656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.822895Z", "completed_at": "2024-02-20T19:38:35.831983Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.844210Z", "completed_at": "2024-02-20T19:38:35.844223Z"}], "thread_id": "Thread-1", "execution_time": 0.0420069694519043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.555676Z", "completed_at": "2024-02-20T19:38:35.849732Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.856695Z", "completed_at": "2024-02-20T19:38:35.856708Z"}], "thread_id": "Thread-3", "execution_time": 0.312518835067749, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.858730Z", "completed_at": "2024-02-20T19:38:35.885845Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.890963Z", "completed_at": "2024-02-20T19:38:35.890982Z"}], "thread_id": "Thread-4", "execution_time": 0.047955989837646484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.866948Z", "completed_at": "2024-02-20T19:38:35.888506Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.901236Z", "completed_at": "2024-02-20T19:38:35.901246Z"}], "thread_id": "Thread-2", "execution_time": 0.04999399185180664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.874382Z", "completed_at": "2024-02-20T19:38:35.890059Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.902089Z", "completed_at": "2024-02-20T19:38:35.902101Z"}], "thread_id": "Thread-1", "execution_time": 0.05108284950256348, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.892393Z", "completed_at": "2024-02-20T19:38:35.905006Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.911947Z", "completed_at": "2024-02-20T19:38:35.911961Z"}], "thread_id": "Thread-3", "execution_time": 0.04177403450012207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.913564Z", "completed_at": "2024-02-20T19:38:35.946016Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.951976Z", "completed_at": "2024-02-20T19:38:35.951991Z"}], "thread_id": "Thread-4", "execution_time": 0.055143117904663086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__job_overview"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.930218Z", "completed_at": "2024-02-20T19:38:35.948938Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.963366Z", "completed_at": "2024-02-20T19:38:35.963375Z"}], "thread_id": "Thread-2", "execution_time": 0.05537009239196777, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.938637Z", "completed_at": "2024-02-20T19:38:35.950768Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.964256Z", "completed_at": "2024-02-20T19:38:35.964267Z"}], "thread_id": "Thread-1", "execution_time": 0.05521202087402344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.953638Z", "completed_at": "2024-02-20T19:38:35.970009Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:35.985818Z", "completed_at": "2024-02-20T19:38:35.985837Z"}], "thread_id": "Thread-3", "execution_time": 0.04166984558105469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.975568Z", "completed_at": "2024-02-20T19:38:36.032772Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.089601Z", "completed_at": "2024-02-20T19:38:36.089619Z"}], "thread_id": "Thread-4", "execution_time": 0.12394189834594727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:35.990171Z", "completed_at": "2024-02-20T19:38:36.087362Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.094800Z", "completed_at": "2024-02-20T19:38:36.094813Z"}], "thread_id": "Thread-2", "execution_time": 0.13194990158081055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.026465Z", "completed_at": "2024-02-20T19:38:36.090425Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.104426Z", "completed_at": "2024-02-20T19:38:36.104440Z"}], "thread_id": "Thread-1", "execution_time": 0.13340497016906738, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.095606Z", "completed_at": "2024-02-20T19:38:36.109762Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.125154Z", "completed_at": "2024-02-20T19:38:36.125172Z"}], "thread_id": "Thread-3", "execution_time": 0.05015087127685547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.113509Z", "completed_at": "2024-02-20T19:38:36.137066Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.149258Z", "completed_at": "2024-02-20T19:38:36.149271Z"}], "thread_id": "Thread-4", "execution_time": 0.046746015548706055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.127288Z", "completed_at": "2024-02-20T19:38:36.151332Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.165015Z", "completed_at": "2024-02-20T19:38:36.165030Z"}], "thread_id": "Thread-2", "execution_time": 0.056291818618774414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.139694Z", "completed_at": "2024-02-20T19:38:36.152209Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.165901Z", "completed_at": "2024-02-20T19:38:36.165915Z"}], "thread_id": "Thread-1", "execution_time": 0.04758882522583008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.157023Z", "completed_at": "2024-02-20T19:38:36.172295Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.186520Z", "completed_at": "2024-02-20T19:38:36.186533Z"}], "thread_id": "Thread-3", "execution_time": 0.0392918586730957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.177416Z", "completed_at": "2024-02-20T19:38:36.190181Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.209097Z", "completed_at": "2024-02-20T19:38:36.209112Z"}], "thread_id": "Thread-4", "execution_time": 0.045966148376464844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.198349Z", "completed_at": "2024-02-20T19:38:36.211400Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.230375Z", "completed_at": "2024-02-20T19:38:36.230395Z"}], "thread_id": "Thread-1", "execution_time": 0.048954010009765625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.190963Z", "completed_at": "2024-02-20T19:38:36.213510Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.232621Z", "completed_at": "2024-02-20T19:38:36.232635Z"}], "thread_id": "Thread-2", "execution_time": 0.051772117614746094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.214229Z", "completed_at": "2024-02-20T19:38:36.233462Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.246503Z", "completed_at": "2024-02-20T19:38:36.246516Z"}], "thread_id": "Thread-3", "execution_time": 0.04170489311218262, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.238849Z", "completed_at": "2024-02-20T19:38:36.251447Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.271781Z", "completed_at": "2024-02-20T19:38:36.271808Z"}], "thread_id": "Thread-4", "execution_time": 0.04529213905334473, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.253591Z", "completed_at": "2024-02-20T19:38:36.274679Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.290382Z", "completed_at": "2024-02-20T19:38:36.290397Z"}], "thread_id": "Thread-1", "execution_time": 0.04627418518066406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.261876Z", "completed_at": "2024-02-20T19:38:36.287184Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.292438Z", "completed_at": "2024-02-20T19:38:36.292445Z"}], "thread_id": "Thread-2", "execution_time": 0.0479130744934082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.278368Z", "completed_at": "2024-02-20T19:38:36.291927Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.305625Z", "completed_at": "2024-02-20T19:38:36.305638Z"}], "thread_id": "Thread-3", "execution_time": 0.04148387908935547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.297914Z", "completed_at": "2024-02-20T19:38:36.314446Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.337081Z", "completed_at": "2024-02-20T19:38:36.337100Z"}], "thread_id": "Thread-4", "execution_time": 0.05572390556335449, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.315768Z", "completed_at": "2024-02-20T19:38:36.338183Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.351589Z", "completed_at": "2024-02-20T19:38:36.351602Z"}], "thread_id": "Thread-1", "execution_time": 0.04780292510986328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.329012Z", "completed_at": "2024-02-20T19:38:36.347945Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.353546Z", "completed_at": "2024-02-20T19:38:36.353559Z"}], "thread_id": "Thread-2", "execution_time": 0.04552292823791504, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.339022Z", "completed_at": "2024-02-20T19:38:36.350824Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.358462Z", "completed_at": "2024-02-20T19:38:36.358481Z"}], "thread_id": "Thread-3", "execution_time": 0.04444313049316406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.360041Z", "completed_at": "2024-02-20T19:38:36.377005Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.399204Z", "completed_at": "2024-02-20T19:38:36.399220Z"}], "thread_id": "Thread-4", "execution_time": 0.060913801193237305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.381137Z", "completed_at": "2024-02-20T19:38:36.411901Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.416043Z", "completed_at": "2024-02-20T19:38:36.416056Z"}], "thread_id": "Thread-1", "execution_time": 0.050818681716918945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.400311Z", "completed_at": "2024-02-20T19:38:36.416879Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.432242Z", "completed_at": "2024-02-20T19:38:36.432265Z"}], "thread_id": "Thread-3", "execution_time": 0.06553888320922852, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.389351Z", "completed_at": "2024-02-20T19:38:36.417980Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.433231Z", "completed_at": "2024-02-20T19:38:36.433244Z"}], "thread_id": "Thread-2", "execution_time": 0.07207393646240234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.434115Z", "completed_at": "2024-02-20T19:38:36.454799Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.464901Z", "completed_at": "2024-02-20T19:38:36.464917Z"}], "thread_id": "Thread-4", "execution_time": 0.07097005844116211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.465814Z", "completed_at": "2024-02-20T19:38:36.494840Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.501448Z", "completed_at": "2024-02-20T19:38:36.501463Z"}], "thread_id": "Thread-3", "execution_time": 0.061424970626831055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.479967Z", "completed_at": "2024-02-20T19:38:36.497907Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.519138Z", "completed_at": "2024-02-20T19:38:36.519161Z"}], "thread_id": "Thread-2", "execution_time": 0.06383204460144043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.502248Z", "completed_at": "2024-02-20T19:38:36.528343Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.538010Z", "completed_at": "2024-02-20T19:38:36.538047Z"}], "thread_id": "Thread-4", "execution_time": 0.05313897132873535, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__position_overview"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.510875Z", "completed_at": "2024-02-20T19:38:36.532140Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.539366Z", "completed_at": "2024-02-20T19:38:36.539376Z"}], "thread_id": "Thread-1", "execution_time": 0.06080508232116699, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.540102Z", "completed_at": "2024-02-20T19:38:36.560198Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.565756Z", "completed_at": "2024-02-20T19:38:36.565769Z"}], "thread_id": "Thread-3", "execution_time": 0.046715736389160156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.568233Z", "completed_at": "2024-02-20T19:38:36.595360Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.614823Z", "completed_at": "2024-02-20T19:38:36.614836Z"}], "thread_id": "Thread-4", "execution_time": 0.05531716346740723, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.583630Z", "completed_at": "2024-02-20T19:38:36.596911Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.615755Z", "completed_at": "2024-02-20T19:38:36.615767Z"}], "thread_id": "Thread-1", "execution_time": 0.05561184883117676, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.598949Z", "completed_at": "2024-02-20T19:38:36.618051Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.630230Z", "completed_at": "2024-02-20T19:38:36.630254Z"}], "thread_id": "Thread-2", "execution_time": 0.041673898696899414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.607120Z", "completed_at": "2024-02-20T19:38:36.622784Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.633731Z", "completed_at": "2024-02-20T19:38:36.633743Z"}], "thread_id": "Thread-3", "execution_time": 0.05010700225830078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.636358Z", "completed_at": "2024-02-20T19:38:36.655564Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.667779Z", "completed_at": "2024-02-20T19:38:36.667792Z"}], "thread_id": "Thread-4", "execution_time": 0.05777573585510254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.646229Z", "completed_at": "2024-02-20T19:38:36.659588Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.685999Z", "completed_at": "2024-02-20T19:38:36.686014Z"}], "thread_id": "Thread-1", "execution_time": 0.05763983726501465, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.660318Z", "completed_at": "2024-02-20T19:38:36.688321Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.694300Z", "completed_at": "2024-02-20T19:38:36.694313Z"}], "thread_id": "Thread-2", "execution_time": 0.05166506767272949, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.668636Z", "completed_at": "2024-02-20T19:38:36.692221Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.707400Z", "completed_at": "2024-02-20T19:38:36.707413Z"}], "thread_id": "Thread-3", "execution_time": 0.05429387092590332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.711818Z", "completed_at": "2024-02-20T19:38:36.733437Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.757547Z", "completed_at": "2024-02-20T19:38:36.757563Z"}], "thread_id": "Thread-1", "execution_time": 0.07248878479003906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.734514Z", "completed_at": "2024-02-20T19:38:36.756770Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.770391Z", "completed_at": "2024-02-20T19:38:36.770410Z"}], "thread_id": "Thread-2", "execution_time": 0.052581787109375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.747378Z", "completed_at": "2024-02-20T19:38:36.769378Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.778835Z", "completed_at": "2024-02-20T19:38:36.778860Z"}], "thread_id": "Thread-3", "execution_time": 0.05264115333557129, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.758543Z", "completed_at": "2024-02-20T19:38:36.773406Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.783892Z", "completed_at": "2024-02-20T19:38:36.783901Z"}], "thread_id": "Thread-4", "execution_time": 0.04923415184020996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__organization_overview"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.785526Z", "completed_at": "2024-02-20T19:38:36.803959Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.816651Z", "completed_at": "2024-02-20T19:38:36.816665Z"}], "thread_id": "Thread-1", "execution_time": 0.05081796646118164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.798250Z", "completed_at": "2024-02-20T19:38:36.817503Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.832009Z", "completed_at": "2024-02-20T19:38:36.832020Z"}], "thread_id": "Thread-2", "execution_time": 0.051522254943847656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.808839Z", "completed_at": "2024-02-20T19:38:36.829981Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.837694Z", "completed_at": "2024-02-20T19:38:36.837708Z"}], "thread_id": "Thread-3", "execution_time": 0.04473423957824707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.818227Z", "completed_at": "2024-02-20T19:38:36.833730Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.842013Z", "completed_at": "2024-02-20T19:38:36.842024Z"}], "thread_id": "Thread-4", "execution_time": 0.045223236083984375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.842780Z", "completed_at": "2024-02-20T19:38:36.865752Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.880808Z", "completed_at": "2024-02-20T19:38:36.880830Z"}], "thread_id": "Thread-1", "execution_time": 0.05697298049926758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.855793Z", "completed_at": "2024-02-20T19:38:36.879402Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.893671Z", "completed_at": "2024-02-20T19:38:36.893684Z"}], "thread_id": "Thread-2", "execution_time": 0.04700112342834473, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.867780Z", "completed_at": "2024-02-20T19:38:36.888731Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.895310Z", "completed_at": "2024-02-20T19:38:36.895322Z"}], "thread_id": "Thread-3", "execution_time": 0.04552197456359863, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.881745Z", "completed_at": "2024-02-20T19:38:36.896022Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.903112Z", "completed_at": "2024-02-20T19:38:36.903125Z"}], "thread_id": "Thread-4", "execution_time": 0.06827616691589355, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.904949Z", "completed_at": "2024-02-20T19:38:36.971301Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.981991Z", "completed_at": "2024-02-20T19:38:36.982004Z"}], "thread_id": "Thread-1", "execution_time": 0.08820891380310059, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_overview"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.953938Z", "completed_at": "2024-02-20T19:38:36.973516Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.987559Z", "completed_at": "2024-02-20T19:38:36.987572Z"}], "thread_id": "Thread-2", "execution_time": 0.08742880821228027, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.962588Z", "completed_at": "2024-02-20T19:38:36.980955Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.988422Z", "completed_at": "2024-02-20T19:38:36.988434Z"}], "thread_id": "Thread-3", "execution_time": 0.07568979263305664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.974765Z", "completed_at": "2024-02-20T19:38:36.989182Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:36.995879Z", "completed_at": "2024-02-20T19:38:36.995889Z"}], "thread_id": "Thread-4", "execution_time": 0.02862834930419922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:36.999699Z", "completed_at": "2024-02-20T19:38:37.014750Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:37.016583Z", "completed_at": "2024-02-20T19:38:37.016596Z"}], "thread_id": "Thread-1", "execution_time": 0.024305343627929688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id.fc3f0049e6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-02-20T19:38:37.007829Z", "completed_at": "2024-02-20T19:38:37.017278Z"}, {"name": "execute", "started_at": "2024-02-20T19:38:37.020253Z", "completed_at": "2024-02-20T19:38:37.020267Z"}], "thread_id": "Thread-2", "execution_time": 0.024487972259521484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97"}], "elapsed_time": 5.859642028808594, "args": {"compile": true, "static_parser": true, "profiles_dir": "/Users/renee.li/.dbt", "invocation_command": "dbt docs generate", "project_dir": "/Users/renee.li/Documents/dbt/workday/develop", "exclude": [], "defer": false, "strict_mode": false, "log_file_max_bytes": 10485760, "log_format": "default", "quiet": false, "use_colors": true, "log_format_file": "debug", "enable_legacy_logger": false, "macro_debugging": false, "log_level": "info", "write_json": true, "cache_selected_only": false, "which": "generate", "vars": {}, "partial_parse": true, "populate_cache": true, "introspect": true, "warn_error_options": {"include": [], "exclude": []}, "favor_state": false, "partial_parse_file_diff": true, "log_level_file": "debug", "version_check": true, "print": true, "log_path": "/Users/renee.li/Documents/dbt/workday/develop/logs", "empty_catalog": false, "use_colors_file": true, "indirect_selection": "eager", "send_anonymous_usage_stats": true, "printer_width": 80, "select": []}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v5.json", "dbt_version": "1.7.8", "generated_at": "2024-03-07T00:46:09.161696Z", "invocation_id": "218a7437-3e28-4317-8406-f68aa2b0221b", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.846769Z", "completed_at": "2024-03-07T00:45:51.906935Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.908639Z", "completed_at": "2024-03-07T00:45:51.908658Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.06975793838500977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.866943Z", "completed_at": "2024-03-07T00:45:51.907304Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.909284Z", "completed_at": "2024-03-07T00:45:51.909287Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.06956982612609863, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.885779Z", "completed_at": "2024-03-07T00:45:51.907930Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.910102Z", "completed_at": "2024-03-07T00:45:51.910108Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.06973481178283691, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.888918Z", "completed_at": "2024-03-07T00:45:51.908162Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.910411Z", "completed_at": "2024-03-07T00:45:51.910414Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.06946611404418945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.917245Z", "completed_at": "2024-03-07T00:45:51.928072Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.929247Z", "completed_at": "2024-03-07T00:45:51.929252Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01671314239501953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.920801Z", "completed_at": "2024-03-07T00:45:51.928442Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.929940Z", "completed_at": "2024-03-07T00:45:51.929943Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.015895843505859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__military_service_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.923264Z", "completed_at": "2024-03-07T00:45:51.929462Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.931854Z", "completed_at": "2024-03-07T00:45:51.931858Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016924142837524414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.925636Z", "completed_at": "2024-03-07T00:45:51.929667Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.932100Z", "completed_at": "2024-03-07T00:45:51.932103Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.016935110092163086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.935060Z", "completed_at": "2024-03-07T00:45:51.946361Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.947868Z", "completed_at": "2024-03-07T00:45:51.947873Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016331195831298828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.938800Z", "completed_at": "2024-03-07T00:45:51.946713Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.948109Z", "completed_at": "2024-03-07T00:45:51.948113Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.015516996383666992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.941702Z", "completed_at": "2024-03-07T00:45:51.947405Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.949631Z", "completed_at": "2024-03-07T00:45:51.949634Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.012670040130615234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.943999Z", "completed_at": "2024-03-07T00:45:51.947618Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.949871Z", "completed_at": "2024-03-07T00:45:51.949875Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.012765169143676758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_name_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.953876Z", "completed_at": "2024-03-07T00:45:51.971493Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.988351Z", "completed_at": "2024-03-07T00:45:51.988358Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.03793501853942871, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.956439Z", "completed_at": "2024-03-07T00:45:51.987108Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.989041Z", "completed_at": "2024-03-07T00:45:51.989044Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0383758544921875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.978293Z", "completed_at": "2024-03-07T00:45:51.988599Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.990872Z", "completed_at": "2024-03-07T00:45:51.990875Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.03837895393371582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.993198Z", "completed_at": "2024-03-07T00:45:52.001737Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:52.003114Z", "completed_at": "2024-03-07T00:45:52.003121Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01265096664428711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.996136Z", "completed_at": "2024-03-07T00:45:52.001982Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:52.003356Z", "completed_at": "2024-03-07T00:45:52.003360Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.012262105941772461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.999387Z", "completed_at": "2024-03-07T00:45:52.002231Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:52.003600Z", "completed_at": "2024-03-07T00:45:52.003603Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009099006652832031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:52.013711Z", "completed_at": "2024-03-07T00:45:52.050293Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:52.050779Z", "completed_at": "2024-03-07T00:45:52.050785Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.044867753982543945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_leave_status_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:52.015957Z", "completed_at": "2024-03-07T00:45:52.051704Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:52.052785Z", "completed_at": "2024-03-07T00:45:52.052789Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.05284571647644043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:52.061186Z", "completed_at": "2024-03-07T00:45:52.063853Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:52.064304Z", "completed_at": "2024-03-07T00:45:52.064309Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004138946533203125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.959225Z", "completed_at": "2024-03-07T00:45:53.582021Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.585419Z", "completed_at": "2024-03-07T00:45:53.585428Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.8333981037139893, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_history", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"\n \n),\n\nfinal as (\n\n select \n id as worker_id,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"type\",\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"additional_nationality\",\n \"blood_type\",\n \"citizenship_status\",\n \"city_of_birth\",\n \"city_of_birth_code\",\n \"country_of_birth\",\n \"date_of_birth\",\n \"date_of_death\",\n \"gender\",\n \"hispanic_or_latino\",\n \"hukou_locality\",\n \"hukou_postal_code\",\n \"hukou_region\",\n \"hukou_subregion\",\n \"hukou_type\",\n \"last_medical_exam_date\",\n \"last_medical_exam_valid_to\",\n \"local_hukou\",\n \"marital_status\",\n \"marital_status_date\",\n \"medical_exam_notes\",\n \"native_region\",\n \"native_region_code\",\n \"personnel_file_agency\",\n \"political_affiliation\",\n \"primary_nationality\",\n \"region_of_birth\",\n \"region_of_birth_code\",\n \"religion\",\n \"social_benefit\",\n \"tobacco_use\",\n \"ll\"\n from base\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:52.065740Z", "completed_at": "2024-03-07T00:45:53.572330Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.581461Z", "completed_at": "2024-03-07T00:45:53.581482Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.723463773727417, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization_history", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"\n \n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id, \n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"index\",\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"date_of_pay_group_assignment\",\n \"primary_business_site\",\n \"used_in_change_organization_assignments\"\n from base\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:52.053014Z", "completed_at": "2024-03-07T00:45:53.583281Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.586334Z", "completed_at": "2024-03-07T00:45:53.586340Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.7400860786437988, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_history", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"\n \n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(effective_date as timestamp) as effective_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"academic_pay_setup_data_annual_work_period_end_date\",\n \"academic_pay_setup_data_annual_work_period_start_date\",\n \"academic_pay_setup_data_annual_work_period_work_percent_of_year\",\n \"academic_pay_setup_data_disbursement_plan_period_end_date\",\n \"academic_pay_setup_data_disbursement_plan_period_start_date\",\n \"business_site_summary_display_language\",\n \"business_site_summary_local\",\n \"business_site_summary_location\",\n \"business_site_summary_location_type\",\n \"business_site_summary_name\",\n \"business_site_summary_scheduled_weekly_hours\",\n \"business_site_summary_time_profile\",\n \"business_title\",\n \"critical_job\",\n \"default_weekly_hours\",\n \"difficulty_to_fill\",\n \"employee_type\",\n \"end_date\",\n \"exclude_from_head_count\",\n \"expected_assignment_end_date\",\n \"external_employee\",\n \"federal_withholding_fein\",\n \"frequency\",\n \"full_time_equivalent_percentage\",\n \"headcount_restriction_code\",\n \"host_country\",\n \"international_assignment_type\",\n \"is_primary_job\",\n \"job_exempt\",\n \"job_profile_id\",\n \"management_level_code\",\n \"paid_fte\",\n \"pay_group\",\n \"pay_rate\",\n \"pay_rate_type\",\n \"pay_through_date\",\n \"payroll_entity\",\n \"payroll_file_number\",\n \"regular_paid_equivalent_hours\",\n \"scheduled_weekly_hours\",\n \"specify_paid_fte\",\n \"specify_working_fte\",\n \"start_date\",\n \"start_international_assignment_reason\",\n \"work_hours_profile\",\n \"work_shift\",\n \"work_shift_required\",\n \"work_space\",\n \"worker_hours_profile_classification\",\n \"working_fte\",\n \"working_time_frequency\",\n \"working_time_unit\",\n \"working_time_value\"\n from base\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:52.007551Z", "completed_at": "2024-03-07T00:45:53.584473Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.587259Z", "completed_at": "2024-03-07T00:45:53.587266Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.7875421047210693, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_history", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\" \n \n),\n\nfinal as (\n\n select \n id as worker_id, \n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n cast(termination_date as timestamp) as termination_date,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"academic_tenure_date\",\n \"active\",\n \"active_status_date\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_frequency\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_total_salary_and_allowances\",\n \"annual_summary_currency\",\n \"annual_summary_frequency\",\n \"annual_summary_primary_compensation_basis\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_total_salary_and_allowances\",\n \"benefits_service_date\",\n \"company_service_date\",\n \"compensation_effective_date\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"continuous_service_date\",\n \"contract_assignment_details\",\n \"contract_currency_code\",\n \"contract_end_date\",\n \"contract_frequency_name\",\n \"contract_pay_rate\",\n \"contract_vendor_name\",\n \"date_entered_workforce\",\n \"days_unemployed\",\n \"eligible_for_hire\",\n \"eligible_for_rehire_on_latest_termination\",\n \"employee_compensation_currency\",\n \"employee_compensation_frequency\",\n \"employee_compensation_primary_compensation_basis\",\n \"employee_compensation_total_base_pay\",\n \"employee_compensation_total_salary_and_allowances\",\n \"expected_date_of_return\",\n \"expected_retirement_date\",\n \"first_day_of_work\",\n \"has_international_assignment\",\n \"hire_date\",\n \"hire_reason\",\n \"hire_rescinded\",\n \"hourly_frequency_currency\",\n \"hourly_frequency_frequency\",\n \"hourly_frequency_primary_compensation_basis\",\n \"hourly_frequency_total_base_pay\",\n \"hourly_frequency_total_salary_and_allowances\",\n \"last_datefor_which_paid\",\n \"local_termination_reason\",\n \"months_continuous_prior_employment\",\n \"not_returning\",\n \"original_hire_date\",\n \"pay_group_frequency_currency\",\n \"pay_group_frequency_frequency\",\n \"pay_group_frequency_primary_compensation_basis\",\n \"pay_group_frequency_total_base_pay\",\n \"pay_group_frequency_total_salary_and_allowances\",\n \"pay_through_date\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"probation_end_date\",\n \"probation_start_date\",\n \"reason_reference_id\",\n \"regrettable_termination\",\n \"rehire\",\n \"resignation_date\",\n \"retired\",\n \"retirement_date\",\n \"retirement_eligibility_date\",\n \"return_unknown\",\n \"seniority_date\",\n \"severance_date\",\n \"terminated\",\n \"termination_involuntary\",\n \"termination_last_day_of_work\",\n \"time_off_service_date\",\n \"universal_id\",\n \"user_id\",\n \"vesting_date\",\n \"worker_code\"\n from base\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.798448Z", "completed_at": "2024-03-07T00:45:53.800149Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.805674Z", "completed_at": "2024-03-07T00:45:53.805685Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.015598058700561523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.806925Z", "completed_at": "2024-03-07T00:45:53.809483Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.814980Z", "completed_at": "2024-03-07T00:45:53.814986Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.015748977661132812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.809838Z", "completed_at": "2024-03-07T00:45:53.811038Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.815339Z", "completed_at": "2024-03-07T00:45:53.815343Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.015529155731201172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.812036Z", "completed_at": "2024-03-07T00:45:53.813287Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.816189Z", "completed_at": "2024-03-07T00:45:53.816193Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.015238285064697266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.820397Z", "completed_at": "2024-03-07T00:45:53.823782Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.827647Z", "completed_at": "2024-03-07T00:45:53.827653Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.016937255859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.828362Z", "completed_at": "2024-03-07T00:45:53.830001Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.836095Z", "completed_at": "2024-03-07T00:45:53.836100Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.013091802597045898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_military_service_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.830425Z", "completed_at": "2024-03-07T00:45:53.831919Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.836456Z", "completed_at": "2024-03-07T00:45:53.836460Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013055086135864258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.833068Z", "completed_at": "2024-03-07T00:45:53.834426Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.837319Z", "completed_at": "2024-03-07T00:45:53.837324Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013076066970825195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.840646Z", "completed_at": "2024-03-07T00:45:53.841931Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.844770Z", "completed_at": "2024-03-07T00:45:53.844775Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.012792110443115234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.845331Z", "completed_at": "2024-03-07T00:45:53.846603Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.852351Z", "completed_at": "2024-03-07T00:45:53.852355Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.011200666427612305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.846932Z", "completed_at": "2024-03-07T00:45:53.849092Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.852637Z", "completed_at": "2024-03-07T00:45:53.852640Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.011252880096435547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.849948Z", "completed_at": "2024-03-07T00:45:53.851032Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.853339Z", "completed_at": "2024-03-07T00:45:53.853343Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.011279106140136719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_name_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.856006Z", "completed_at": "2024-03-07T00:45:53.857121Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.859415Z", "completed_at": "2024-03-07T00:45:53.859419Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009706974029541016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.859884Z", "completed_at": "2024-03-07T00:45:53.860932Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.865923Z", "completed_at": "2024-03-07T00:45:53.865927Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009475946426391602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.861209Z", "completed_at": "2024-03-07T00:45:53.862182Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.866165Z", "completed_at": "2024-03-07T00:45:53.866168Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.009537220001220703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.863010Z", "completed_at": "2024-03-07T00:45:53.864780Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.866759Z", "completed_at": "2024-03-07T00:45:53.866762Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.009592056274414062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.868973Z", "completed_at": "2024-03-07T00:45:53.869925Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.872111Z", "completed_at": "2024-03-07T00:45:53.872115Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008577823638916016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.872529Z", "completed_at": "2024-03-07T00:45:53.873471Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.877135Z", "completed_at": "2024-03-07T00:45:53.877138Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007742881774902344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.873710Z", "completed_at": "2024-03-07T00:45:53.874580Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.877353Z", "completed_at": "2024-03-07T00:45:53.877356Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0077860355377197266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.875261Z", "completed_at": "2024-03-07T00:45:53.876131Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.877876Z", "completed_at": "2024-03-07T00:45:53.877879Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00783395767211914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.879903Z", "completed_at": "2024-03-07T00:45:53.880789Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.882706Z", "completed_at": "2024-03-07T00:45:53.882709Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.013134241104125977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.887299Z", "completed_at": "2024-03-07T00:45:56.050417Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:56.052904Z", "completed_at": "2024-03-07T00:45:56.052908Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 2.312643051147461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_group", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.883098Z", "completed_at": "2024-03-07T00:45:56.049610Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:56.052286Z", "completed_at": "2024-03-07T00:45:56.052290Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 2.314582109451294, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.890988Z", "completed_at": "2024-03-07T00:45:56.050772Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:56.053226Z", "completed_at": "2024-03-07T00:45:56.053230Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 2.3239059448242188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_family_group", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.896717Z", "completed_at": "2024-03-07T00:45:56.049179Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:56.051408Z", "completed_at": "2024-03-07T00:45:56.051416Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 2.3119778633117676, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_profile", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:56.236263Z", "completed_at": "2024-03-07T00:45:57.912632Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:57.914710Z", "completed_at": "2024-03-07T00:45:57.914713Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.8086059093475342, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:56.223960Z", "completed_at": "2024-03-07T00:45:57.911884Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:57.914155Z", "completed_at": "2024-03-07T00:45:57.914164Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.8654499053955078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__military_service", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:56.209720Z", "completed_at": "2024-03-07T00:45:57.912881Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:57.914967Z", "completed_at": "2024-03-07T00:45:57.914971Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.870391845703125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_profile", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:56.243499Z", "completed_at": "2024-03-07T00:45:57.912305Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:57.914433Z", "completed_at": "2024-03-07T00:45:57.914437Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.8365581035614014, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_job_family", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:58.043396Z", "completed_at": "2024-03-07T00:45:59.734846Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:59.736333Z", "completed_at": "2024-03-07T00:45:59.736340Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.8759820461273193, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:58.074863Z", "completed_at": "2024-03-07T00:45:59.724177Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:59.733204Z", "completed_at": "2024-03-07T00:45:59.733230Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.848228931427002, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_worker", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:58.080609Z", "completed_at": "2024-03-07T00:45:59.724717Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:59.733791Z", "completed_at": "2024-03-07T00:45:59.733800Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.8489010334014893, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_contact_email_address", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:58.085985Z", "completed_at": "2024-03-07T00:45:59.796212Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:59.796940Z", "completed_at": "2024-03-07T00:45:59.796953Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.9294161796569824, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_name", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:59.998297Z", "completed_at": "2024-03-07T00:46:01.773825Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:01.775726Z", "completed_at": "2024-03-07T00:46:01.775729Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.9938890933990479, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:59.932584Z", "completed_at": "2024-03-07T00:46:01.774586Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:01.776198Z", "completed_at": "2024-03-07T00:46:01.776202Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.9971976280212402, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:59.994699Z", "completed_at": "2024-03-07T00:46:01.763304Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:01.774107Z", "completed_at": "2024-03-07T00:46:01.774115Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.9976329803466797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_ethnicity", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:00.005234Z", "completed_at": "2024-03-07T00:46:01.773506Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:01.775280Z", "completed_at": "2024-03-07T00:46:01.775283Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.9241037368774414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_job_profile", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:01.933761Z", "completed_at": "2024-03-07T00:46:03.572962Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.635007Z", "completed_at": "2024-03-07T00:46:03.635016Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.879256248474121, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_organization", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:01.953760Z", "completed_at": "2024-03-07T00:46:03.635812Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.636855Z", "completed_at": "2024-03-07T00:46:03.636860Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.8787379264831543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:01.947605Z", "completed_at": "2024-03-07T00:46:03.636344Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.637812Z", "completed_at": "2024-03-07T00:46:03.637815Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.881014108657837, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_leave_status", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:01.941831Z", "completed_at": "2024-03-07T00:46:03.636626Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.638042Z", "completed_at": "2024-03-07T00:46:03.638045Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.882725715637207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.848116Z", "completed_at": "2024-03-07T00:46:03.855651Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.856948Z", "completed_at": "2024-03-07T00:46:03.856955Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.038478851318359375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.843641Z", "completed_at": "2024-03-07T00:46:03.856305Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.858448Z", "completed_at": "2024-03-07T00:46:03.858452Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.04072999954223633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, position_id, organization_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\n group by worker_id, position_id, organization_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.831157Z", "completed_at": "2024-03-07T00:46:03.856645Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.858749Z", "completed_at": "2024-03-07T00:46:03.858752Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0420989990234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.862847Z", "completed_at": "2024-03-07T00:46:03.872842Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.873406Z", "completed_at": "2024-03-07T00:46:03.873411Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013293981552124023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.870204Z", "completed_at": "2024-03-07T00:46:03.874144Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.875726Z", "completed_at": "2024-03-07T00:46:03.875730Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01432490348815918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.867307Z", "completed_at": "2024-03-07T00:46:03.874659Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.876182Z", "completed_at": "2024-03-07T00:46:03.876184Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017859935760498047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.876879Z", "completed_at": "2024-03-07T00:46:03.881243Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.888741Z", "completed_at": "2024-03-07T00:46:03.888745Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01412510871887207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.884599Z", "completed_at": "2024-03-07T00:46:03.892983Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.894173Z", "completed_at": "2024-03-07T00:46:03.894177Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.014069080352783203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.882064Z", "completed_at": "2024-03-07T00:46:03.893238Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.894405Z", "completed_at": "2024-03-07T00:46:03.894408Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014850139617919922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.890400Z", "completed_at": "2024-03-07T00:46:03.893939Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.895691Z", "completed_at": "2024-03-07T00:46:03.895694Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006713151931762695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.901096Z", "completed_at": "2024-03-07T00:46:03.906452Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.907581Z", "completed_at": "2024-03-07T00:46:03.907585Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011232852935791016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.898360Z", "completed_at": "2024-03-07T00:46:03.906703Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.907989Z", "completed_at": "2024-03-07T00:46:03.907992Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.012237071990966797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, position_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\n group by worker_id, position_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.903961Z", "completed_at": "2024-03-07T00:46:03.907151Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.908642Z", "completed_at": "2024-03-07T00:46:03.908646Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.011667013168334961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.911816Z", "completed_at": "2024-03-07T00:46:03.925066Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.925580Z", "completed_at": "2024-03-07T00:46:03.925585Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.016000986099243164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.914456Z", "completed_at": "2024-03-07T00:46:03.925798Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.926992Z", "completed_at": "2024-03-07T00:46:03.926996Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016865015029907227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.928513Z", "completed_at": "2024-03-07T00:46:03.934062Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.934736Z", "completed_at": "2024-03-07T00:46:03.934740Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008100032806396484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.931648Z", "completed_at": "2024-03-07T00:46:03.934529Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.935595Z", "completed_at": "2024-03-07T00:46:03.935598Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.005167245864868164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.937541Z", "completed_at": "2024-03-07T00:46:03.943240Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.943869Z", "completed_at": "2024-03-07T00:46:03.943873Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.007977962493896484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.940831Z", "completed_at": "2024-03-07T00:46:03.943669Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.944729Z", "completed_at": "2024-03-07T00:46:03.944732Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00811004638671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.946671Z", "completed_at": "2024-03-07T00:46:03.952300Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.953138Z", "completed_at": "2024-03-07T00:46:03.953142Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008135080337524414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_group_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.949876Z", "completed_at": "2024-03-07T00:46:03.952518Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.953359Z", "completed_at": "2024-03-07T00:46:03.953363Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007802009582519531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_group_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.955937Z", "completed_at": "2024-03-07T00:46:03.961882Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.962759Z", "completed_at": "2024-03-07T00:46:03.962764Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008482933044433594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.958751Z", "completed_at": "2024-03-07T00:46:03.962127Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.963004Z", "completed_at": "2024-03-07T00:46:03.963007Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008595943450927734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.965608Z", "completed_at": "2024-03-07T00:46:03.970606Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.971493Z", "completed_at": "2024-03-07T00:46:03.971498Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.007585763931274414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.968084Z", "completed_at": "2024-03-07T00:46:03.970838Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.971756Z", "completed_at": "2024-03-07T00:46:03.971760Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0077419281005859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_group_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.976996Z", "completed_at": "2024-03-07T00:46:03.979800Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.980651Z", "completed_at": "2024-03-07T00:46:03.980655Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007504940032958984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.974475Z", "completed_at": "2024-03-07T00:46:03.980020Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.980882Z", "completed_at": "2024-03-07T00:46:03.980885Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008251190185546875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.983491Z", "completed_at": "2024-03-07T00:46:03.989049Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.989912Z", "completed_at": "2024-03-07T00:46:03.989916Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008065938949584961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.986559Z", "completed_at": "2024-03-07T00:46:03.989274Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.990134Z", "completed_at": "2024-03-07T00:46:03.990137Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008166074752807617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.995298Z", "completed_at": "2024-03-07T00:46:03.997727Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.998593Z", "completed_at": "2024-03-07T00:46:03.998597Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.007147789001464844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.992738Z", "completed_at": "2024-03-07T00:46:03.997945Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.998812Z", "completed_at": "2024-03-07T00:46:03.998815Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007869958877563477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.001385Z", "completed_at": "2024-03-07T00:46:04.006286Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.006932Z", "completed_at": "2024-03-07T00:46:04.006936Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.007143974304199219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.003867Z", "completed_at": "2024-03-07T00:46:04.006699Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.007782Z", "completed_at": "2024-03-07T00:46:04.007785Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007721900939941406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.009885Z", "completed_at": "2024-03-07T00:46:04.055965Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.056396Z", "completed_at": "2024-03-07T00:46:04.056401Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0480802059173584, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__job_overview", "compiled": true, "compiled_code": "with job_profile_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.053080Z", "completed_at": "2024-03-07T00:46:04.060204Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.060739Z", "completed_at": "2024-03-07T00:46:04.060744Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.051629066467285156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.057756Z", "completed_at": "2024-03-07T00:46:04.061652Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.062611Z", "completed_at": "2024-03-07T00:46:04.062614Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00815582275390625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.062828Z", "completed_at": "2024-03-07T00:46:04.069170Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.069735Z", "completed_at": "2024-03-07T00:46:04.069742Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00833892822265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.066531Z", "completed_at": "2024-03-07T00:46:04.070965Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.072042Z", "completed_at": "2024-03-07T00:46:04.072046Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009994029998779297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.072267Z", "completed_at": "2024-03-07T00:46:04.077167Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.080572Z", "completed_at": "2024-03-07T00:46:04.080579Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009715080261230469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.077392Z", "completed_at": "2024-03-07T00:46:04.082040Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.085005Z", "completed_at": "2024-03-07T00:46:04.085009Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008765935897827148, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.082268Z", "completed_at": "2024-03-07T00:46:04.085904Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.086953Z", "completed_at": "2024-03-07T00:46:04.086956Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008539199829101562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.087185Z", "completed_at": "2024-03-07T00:46:04.091227Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.094704Z", "completed_at": "2024-03-07T00:46:04.094708Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008924245834350586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.091457Z", "completed_at": "2024-03-07T00:46:04.095589Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.096614Z", "completed_at": "2024-03-07T00:46:04.096618Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00952768325805664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.096849Z", "completed_at": "2024-03-07T00:46:04.101316Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.104356Z", "completed_at": "2024-03-07T00:46:04.104360Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008878707885742188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.101540Z", "completed_at": "2024-03-07T00:46:04.105263Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.106216Z", "completed_at": "2024-03-07T00:46:04.106219Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008323192596435547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_worker_code\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere organization_worker_code is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.106439Z", "completed_at": "2024-03-07T00:46:04.110283Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.113548Z", "completed_at": "2024-03-07T00:46:04.113552Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00845193862915039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect role_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.110517Z", "completed_at": "2024-03-07T00:46:04.114462Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.115431Z", "completed_at": "2024-03-07T00:46:04.115435Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008599996566772461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.115663Z", "completed_at": "2024-03-07T00:46:04.119480Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.122300Z", "completed_at": "2024-03-07T00:46:04.122304Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.007987022399902344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect person_contact_email_address_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\nwhere person_contact_email_address_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.119706Z", "completed_at": "2024-03-07T00:46:04.123213Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.124174Z", "completed_at": "2024-03-07T00:46:04.124177Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009491205215454102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.124390Z", "completed_at": "2024-03-07T00:46:04.129682Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.132791Z", "completed_at": "2024-03-07T00:46:04.132796Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00976705551147461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.129911Z", "completed_at": "2024-03-07T00:46:04.133726Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.134678Z", "completed_at": "2024-03-07T00:46:04.134681Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008431673049926758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect person_name_type\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\nwhere person_name_type is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.134904Z", "completed_at": "2024-03-07T00:46:04.138637Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.141643Z", "completed_at": "2024-03-07T00:46:04.141647Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008083105087280273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.138884Z", "completed_at": "2024-03-07T00:46:04.142552Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.143517Z", "completed_at": "2024-03-07T00:46:04.143521Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00836181640625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.143751Z", "completed_at": "2024-03-07T00:46:04.147598Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.151467Z", "completed_at": "2024-03-07T00:46:04.151472Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009091854095458984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.147835Z", "completed_at": "2024-03-07T00:46:04.152760Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.155839Z", "completed_at": "2024-03-07T00:46:04.155843Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00917196273803711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.153402Z", "completed_at": "2024-03-07T00:46:04.156804Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.157754Z", "completed_at": "2024-03-07T00:46:04.157757Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008201122283935547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.157981Z", "completed_at": "2024-03-07T00:46:04.164827Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.165308Z", "completed_at": "2024-03-07T00:46:04.165312Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00868988037109375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__personal_details", "compiled": true, "compiled_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__personal_details\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.161788Z", "completed_at": "2024-03-07T00:46:04.165992Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.167001Z", "completed_at": "2024-03-07T00:46:04.167004Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.006353855133056641, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.167866Z", "completed_at": "2024-03-07T00:46:04.174756Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.175229Z", "completed_at": "2024-03-07T00:46:04.175234Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008947134017944336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ethnicity_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\nwhere ethnicity_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.171380Z", "completed_at": "2024-03-07T00:46:04.176105Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.177100Z", "completed_at": "2024-03-07T00:46:04.177104Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008610725402832031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.177325Z", "completed_at": "2024-03-07T00:46:04.180383Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.183501Z", "completed_at": "2024-03-07T00:46:04.183506Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007570743560791016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__position_overview", "compiled": true, "compiled_code": "with position_data as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\n),\n\nposition_job_profile_data as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.181004Z", "completed_at": "2024-03-07T00:46:04.184492Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.185622Z", "completed_at": "2024-03-07T00:46:04.185625Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008484840393066406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.185847Z", "completed_at": "2024-03-07T00:46:04.189667Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.192549Z", "completed_at": "2024-03-07T00:46:04.192553Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008165836334228516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.189896Z", "completed_at": "2024-03-07T00:46:04.193490Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.194444Z", "completed_at": "2024-03-07T00:46:04.194447Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008468866348266602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.194678Z", "completed_at": "2024-03-07T00:46:04.198766Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.202750Z", "completed_at": "2024-03-07T00:46:04.202755Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009447097778320312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.199011Z", "completed_at": "2024-03-07T00:46:04.203658Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.204599Z", "completed_at": "2024-03-07T00:46:04.204602Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009158134460449219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.204827Z", "completed_at": "2024-03-07T00:46:04.208497Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.217089Z", "completed_at": "2024-03-07T00:46:04.217094Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.013620138168334961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.208720Z", "completed_at": "2024-03-07T00:46:04.218379Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.221795Z", "completed_at": "2024-03-07T00:46:04.221800Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01428079605102539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__worker_position_enriched", "compiled": true, "compiled_code": "with worker_position_data as (\n\n select \n *,\n now() as current_date\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_at_position,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n),\n\nworker_position_measures as (\n\n select \n worker_id,\n source_relation,\n count(distinct position_id) as worker_positions,\n count(distinct management_level_code) as worker_levels,\n sum(days_at_position) as position_days\n from worker_position_data_enhanced\n group by 1, 2\n),\n\nmost_recent_position as (\n\n select *\n from worker_position_data_enhanced\n where row_number = 1\n),\n\nworker_position_enriched as (\n\n select\n md5(cast(coalesce(cast(worker_position_data_enhanced.worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_at_position,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date,\n worker_position_measures.worker_positions,\n worker_position_measures.worker_levels, \n worker_position_measures.position_days\n from worker_position_data_enhanced\n left join worker_position_measures \n on worker_position_data_enhanced.worker_id = worker_position_measures.worker_id\n and worker_position_data_enhanced.source_relation = worker_position_measures.source_relation\n)\n\nselect * \nfrom worker_position_enriched", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_position_enriched\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.218986Z", "completed_at": "2024-03-07T00:46:04.222884Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.223839Z", "completed_at": "2024-03-07T00:46:04.223842Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008666038513183594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.224062Z", "completed_at": "2024-03-07T00:46:04.227827Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.231890Z", "completed_at": "2024-03-07T00:46:04.231894Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009183168411254883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.228064Z", "completed_at": "2024-03-07T00:46:04.233357Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.236601Z", "completed_at": "2024-03-07T00:46:04.236605Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009689807891845703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.233579Z", "completed_at": "2024-03-07T00:46:04.237501Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.238470Z", "completed_at": "2024-03-07T00:46:04.238474Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008592844009399414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.238700Z", "completed_at": "2024-03-07T00:46:04.242516Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.245454Z", "completed_at": "2024-03-07T00:46:04.245459Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008142709732055664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect leave_request_event_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\nwhere leave_request_event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.242751Z", "completed_at": "2024-03-07T00:46:04.246413Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.247370Z", "completed_at": "2024-03-07T00:46:04.247374Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008472919464111328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.247599Z", "completed_at": "2024-03-07T00:46:04.251580Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.255407Z", "completed_at": "2024-03-07T00:46:04.255411Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009185075759887695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__worker_details", "compiled": true, "compiled_code": "with worker_data as (\n\n select \n *,\n now() as current_date\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_of_employment,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_details\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.251808Z", "completed_at": "2024-03-07T00:46:04.256125Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.257158Z", "completed_at": "2024-03-07T00:46:04.257161Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.006662130355834961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.258011Z", "completed_at": "2024-03-07T00:46:04.263676Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.264158Z", "completed_at": "2024-03-07T00:46:04.264162Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007703065872192383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.261235Z", "completed_at": "2024-03-07T00:46:04.265548Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.268475Z", "completed_at": "2024-03-07T00:46:04.268479Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00819706916809082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.265770Z", "completed_at": "2024-03-07T00:46:04.269396Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.270371Z", "completed_at": "2024-03-07T00:46:04.270375Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008151054382324219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.270587Z", "completed_at": "2024-03-07T00:46:04.274287Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.277921Z", "completed_at": "2024-03-07T00:46:04.277925Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008675813674926758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.274518Z", "completed_at": "2024-03-07T00:46:04.279101Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.281860Z", "completed_at": "2024-03-07T00:46:04.281865Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008521080017089844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.279773Z", "completed_at": "2024-03-07T00:46:04.282820Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.283242Z", "completed_at": "2024-03-07T00:46:04.283245Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0048160552978515625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__worker_employee_enhanced", "compiled": true, "compiled_code": "with int_worker_base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_details\" \n),\n\nint_worker_personal_details as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__personal_details\" \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_position_enriched\" \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n days_at_position,\n position_start_date,\n position_end_date,\n position_effective_date,\n worker_positions,\n worker_levels,\n position_days,\n case when days_of_employment >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_of_employment >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_of_employment >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_of_employment >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_of_employment >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_of_employment >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_of_employment >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_of_employment >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_of_employment >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_of_employment >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_employee_enhanced\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.822220Z", "completed_at": "2024-03-07T00:46:05.981907Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:05.984101Z", "completed_at": "2024-03-07T00:46:05.984109Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 2.4985880851745605, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.284644Z", "completed_at": "2024-03-07T00:46:05.981205Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:05.983534Z", "completed_at": "2024-03-07T00:46:05.983555Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 2.035376787185669, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_overview", "compiled": true, "compiled_code": "with employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n position_id,\n position_start_date,\n \"source_relation\",\n \"worker_code\",\n \"user_id\",\n \"universal_id\",\n \"is_user_active\",\n \"is_employed\",\n \"hire_date\",\n \"departure_date\",\n \"days_of_employment\",\n \"is_terminated\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"is_regrettable_termination\",\n \"compensation_effective_date\",\n \"employee_compensation_frequency\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_summary_currency\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_primary_compensation_basis\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"first_name\",\n \"last_name\",\n \"date_of_birth\",\n \"gender\",\n \"is_hispanic_or_latino\",\n \"email_address\",\n \"ethnicity_codes\",\n \"military_status\",\n \"business_title\",\n \"job_profile_id\",\n \"employee_type\",\n \"position_location\",\n \"management_level_code\",\n \"fte_percent\",\n \"days_at_position\",\n \"position_end_date\",\n \"position_effective_date\",\n \"worker_positions\",\n \"worker_levels\",\n \"position_days\",\n \"is_employed_one_year\",\n \"is_employed_five_years\",\n \"is_employed_ten_years\",\n \"is_employed_twenty_years\",\n \"is_employed_thirty_years\",\n \"is_current_employee_one_year\",\n \"is_current_employee_five_years\",\n \"is_current_employee_ten_years\",\n \"is_current_employee_twenty_years\",\n \"is_current_employee_thirty_years\"\n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_employee_enhanced\" \n)\n\nselect * \nfrom employee_surrogate_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.331533Z", "completed_at": "2024-03-07T00:46:06.353649Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.355185Z", "completed_at": "2024-03-07T00:46:06.355198Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.03159594535827637, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__organization_overview", "compiled": true, "compiled_code": "with organization_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\n),\n\norganization_role_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\n),\n\nworker_position_organization as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.341604Z", "completed_at": "2024-03-07T00:46:06.354570Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.357457Z", "completed_at": "2024-03-07T00:46:06.357462Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.03265714645385742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.347999Z", "completed_at": "2024-03-07T00:46:06.357056Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.360257Z", "completed_at": "2024-03-07T00:46:06.360263Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.03383207321166992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.362775Z", "completed_at": "2024-03-07T00:46:06.372440Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.378506Z", "completed_at": "2024-03-07T00:46:06.378512Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.019692182540893555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.368347Z", "completed_at": "2024-03-07T00:46:06.378166Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.380036Z", "completed_at": "2024-03-07T00:46:06.380041Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.018911123275756836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.372803Z", "completed_at": "2024-03-07T00:46:06.379711Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.381848Z", "completed_at": "2024-03-07T00:46:06.381852Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01505589485168457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, position_id, position_start_date\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\n group by source_relation, worker_id, position_id, position_start_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.383599Z", "completed_at": "2024-03-07T00:46:06.391074Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.394697Z", "completed_at": "2024-03-07T00:46:06.394702Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.013956069946289062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.387831Z", "completed_at": "2024-03-07T00:46:06.394410Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.395981Z", "completed_at": "2024-03-07T00:46:06.395985Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013688802719116211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.391344Z", "completed_at": "2024-03-07T00:46:06.395719Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.397540Z", "completed_at": "2024-03-07T00:46:06.397543Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.010837078094482422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.398537Z", "completed_at": "2024-03-07T00:46:06.401454Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.401904Z", "completed_at": "2024-03-07T00:46:06.401908Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.005099058151245117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.917670Z", "completed_at": "2024-03-07T00:46:06.774535Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.777029Z", "completed_at": "2024-03-07T00:46:06.777055Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 3.0155110359191895, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__employee_history", "compiled": true, "compiled_code": "with worker_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\n),\n\nworker_position_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\n),\n\npersonal_information_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\n),\n\nworker_start_records as (\n\n select worker_id, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n _fivetran_start\n from personal_information_history\n order by worker_id, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_history_scd as (\n\n select worker_history_scd.worker_id, \n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as wh_active,\n worker_position_history._fivetran_active as wph_active,\n worker_history.end_employment_date as wh_end_employment_date,\n worker_position_history.end_employment_date as wph_end_employment_date,\n worker_history.pay_through_date as wh_pay_through_date,\n worker_position_history.pay_through_date as wph_pay_through_date,\n \"termination_date\",\n \"academic_tenure_date\",\n \"active\",\n \"active_status_date\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_frequency\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_total_salary_and_allowances\",\n \"annual_summary_currency\",\n \"annual_summary_frequency\",\n \"annual_summary_primary_compensation_basis\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_total_salary_and_allowances\",\n \"benefits_service_date\",\n \"company_service_date\",\n \"compensation_effective_date\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"continuous_service_date\",\n \"contract_assignment_details\",\n \"contract_currency_code\",\n \"contract_end_date\",\n \"contract_frequency_name\",\n \"contract_pay_rate\",\n \"contract_vendor_name\",\n \"date_entered_workforce\",\n \"days_unemployed\",\n \"eligible_for_hire\",\n \"eligible_for_rehire_on_latest_termination\",\n \"employee_compensation_currency\",\n \"employee_compensation_frequency\",\n \"employee_compensation_primary_compensation_basis\",\n \"employee_compensation_total_base_pay\",\n \"employee_compensation_total_salary_and_allowances\",\n \"expected_date_of_return\",\n \"expected_retirement_date\",\n \"first_day_of_work\",\n \"has_international_assignment\",\n \"hire_date\",\n \"hire_reason\",\n \"hire_rescinded\",\n \"hourly_frequency_currency\",\n \"hourly_frequency_frequency\",\n \"hourly_frequency_primary_compensation_basis\",\n \"hourly_frequency_total_base_pay\",\n \"hourly_frequency_total_salary_and_allowances\",\n \"last_datefor_which_paid\",\n \"local_termination_reason\",\n \"months_continuous_prior_employment\",\n \"not_returning\",\n \"original_hire_date\",\n \"pay_group_frequency_currency\",\n \"pay_group_frequency_frequency\",\n \"pay_group_frequency_primary_compensation_basis\",\n \"pay_group_frequency_total_base_pay\",\n \"pay_group_frequency_total_salary_and_allowances\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"probation_end_date\",\n \"probation_start_date\",\n \"reason_reference_id\",\n \"regrettable_termination\",\n \"rehire\",\n \"resignation_date\",\n \"retired\",\n \"retirement_date\",\n \"retirement_eligibility_date\",\n \"return_unknown\",\n \"seniority_date\",\n \"severance_date\",\n \"terminated\",\n \"termination_involuntary\",\n \"termination_last_day_of_work\",\n \"time_off_service_date\",\n \"universal_id\",\n \"user_id\",\n \"vesting_date\",\n \"worker_code\",\n \"effective_date\",\n \"academic_pay_setup_data_annual_work_period_end_date\",\n \"academic_pay_setup_data_annual_work_period_start_date\",\n \"academic_pay_setup_data_annual_work_period_work_percent_of_year\",\n \"academic_pay_setup_data_disbursement_plan_period_end_date\",\n \"academic_pay_setup_data_disbursement_plan_period_start_date\",\n \"business_site_summary_display_language\",\n \"business_site_summary_local\",\n \"business_site_summary_location\",\n \"business_site_summary_location_type\",\n \"business_site_summary_name\",\n \"business_site_summary_scheduled_weekly_hours\",\n \"business_site_summary_time_profile\",\n \"business_title\",\n \"critical_job\",\n \"default_weekly_hours\",\n \"difficulty_to_fill\",\n \"employee_type\",\n \"end_date\",\n \"exclude_from_head_count\",\n \"expected_assignment_end_date\",\n \"external_employee\",\n \"federal_withholding_fein\",\n \"frequency\",\n \"full_time_equivalent_percentage\",\n \"headcount_restriction_code\",\n \"host_country\",\n \"international_assignment_type\",\n \"is_primary_job\",\n \"job_exempt\",\n \"job_profile_id\",\n \"management_level_code\",\n \"paid_fte\",\n \"pay_group\",\n \"pay_rate\",\n \"pay_rate_type\",\n \"payroll_entity\",\n \"payroll_file_number\",\n \"regular_paid_equivalent_hours\",\n \"scheduled_weekly_hours\",\n \"specify_paid_fte\",\n \"specify_working_fte\",\n \"start_date\",\n \"start_international_assignment_reason\",\n \"work_hours_profile\",\n \"work_shift\",\n \"work_shift_required\",\n \"work_space\",\n \"worker_hours_profile_classification\",\n \"working_fte\",\n \"working_time_frequency\",\n \"working_time_unit\",\n \"working_time_value\",\n \"type\",\n \"additional_nationality\",\n \"blood_type\",\n \"citizenship_status\",\n \"city_of_birth\",\n \"city_of_birth_code\",\n \"country_of_birth\",\n \"date_of_birth\",\n \"date_of_death\",\n \"gender\",\n \"hispanic_or_latino\",\n \"hukou_locality\",\n \"hukou_postal_code\",\n \"hukou_region\",\n \"hukou_subregion\",\n \"hukou_type\",\n \"last_medical_exam_date\",\n \"last_medical_exam_valid_to\",\n \"local_hukou\",\n \"marital_status\",\n \"marital_status_date\",\n \"medical_exam_notes\",\n \"native_region\",\n \"native_region_code\",\n \"personnel_file_agency\",\n \"political_affiliation\",\n \"primary_nationality\",\n \"region_of_birth\",\n \"region_of_birth_code\",\n \"religion\",\n \"social_benefit\",\n \"tobacco_use\",\n \"ll\"\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n)\n\nselect * \nfrom employee_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.935745Z", "completed_at": "2024-03-07T00:46:08.822772Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:08.823904Z", "completed_at": "2024-03-07T00:46:08.823919Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 2.1995127201080322, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_daily_history", "compiled": true, "compiled_code": "\n \n\n \n\n \n \n\n\nwith spine as (\n \n \n \n\n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 1527\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2020-01-01'as date) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-03-07'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n \n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.employee_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:09.139804Z", "completed_at": "2024-03-07T00:46:09.156764Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:09.157710Z", "completed_at": "2024-03-07T00:46:09.157723Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.02240610122680664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__monthly_summary", "compiled": true, "compiled_code": "with row_month_partition as (\n\n select *, \n date_trunc('month', date_day) as date_month,\n row_number() over (partition by employee_id, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n order by employee_id, date_day\n),\n\nend_of_month_history as (\n \n select *\n from row_month_partition\n where recent_dom_row = 1\n order by employee_id, date_day\n),\n\nmonthly_employee_metrics as (\n\n select date_month,\n sum(case when date_month = date_trunc('month', effective_date) then 1 else 0 end) as new_employees,\n sum(case when date_month = date_trunc('month', termination_date) then 1 else 0 end) as churned_employees,\n sum(case when date_month = date_trunc('month', wh_end_employment_date) then 1 else 0 end) as churned_workers\n from end_of_month_history\n group by 1\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees\n from end_of_month_history\n where date_month >= date_trunc('month', effective_date)\n and (date_month <= date_trunc('month', wph_end_employment_date)\n or wph_end_employment_date is null)\n group by 1\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n count(distinct worker_id) as active_workers\n from end_of_month_history\n where (date_month >= date_trunc('month', effective_date)\n and date_month <= date_trunc('month', wh_end_employment_date))\n or wh_end_employment_date is null\n group by 1\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_worker_metrics.active_workers\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n)\n\nselect *\nfrom monthly_summary", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\""}], "elapsed_time": 23.243308782577515, "args": {"target": "postgres", "enable_legacy_logger": false, "use_colors": true, "vars": {}, "log_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests/logs", "static": false, "version_check": true, "profiles_dir": "/Users/avinash.kunnath/.dbt", "write_json": true, "compile": true, "use_colors_file": true, "project_dir": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "defer": false, "macro_debugging": false, "which": "generate", "favor_state": false, "cache_selected_only": false, "invocation_command": "dbt docs generate -t postgres", "empty_catalog": false, "quiet": false, "populate_cache": true, "log_format": "default", "log_format_file": "debug", "strict_mode": false, "indirect_selection": "eager", "warn_error_options": {"include": [], "exclude": []}, "exclude": [], "select": [], "static_parser": true, "partial_parse": true, "log_file_max_bytes": 10485760, "send_anonymous_usage_stats": true, "log_level_file": "debug", "print": true, "log_level": "info", "partial_parse_file_diff": true, "introspect": true, "show_resource_report": false, "printer_width": 80}} \ No newline at end of file diff --git a/integration_tests/seeds/workday_worker_history_data.csv b/integration_tests/seeds/workday_worker_history_data.csv index c7179e4..029d4a6 100644 --- a/integration_tests/seeds/workday_worker_history_data.csv +++ b/integration_tests/seeds/workday_worker_history_data.csv @@ -1,6 +1,6 @@ id,_fivetran_active,_fivetran_start,_fivetran_end,_fivetran_synced,academic_tenure_date,active,active_status_date,annual_currency_summary_currency,annual_currency_summary_frequency,annual_currency_summary_primary_compensation_basis,annual_currency_summary_total_base_pay,annual_currency_summary_total_salary_and_allowances,annual_summary_currency,annual_summary_frequency,annual_summary_primary_compensation_basis,annual_summary_total_base_pay,annual_summary_total_salary_and_allowances,benefits_service_date,company_service_date,compensation_effective_date,compensation_grade_id,compensation_grade_profile_id,continuous_service_date,contract_assignment_details,contract_currency_code,contract_end_date,contract_frequency_name,contract_pay_rate,contract_vendor_name,date_entered_workforce,days_unemployed,eligible_for_hire,eligible_for_rehire_on_latest_termination,employee_compensation_currency,employee_compensation_frequency,employee_compensation_primary_compensation_basis,employee_compensation_total_base_pay,employee_compensation_total_salary_and_allowances,end_employment_date,expected_date_of_return,expected_retirement_date,first_day_of_work,has_international_assignment,hire_date,hire_reason,hire_rescinded,home_country,hourly_frequency_currency,hourly_frequency_frequency,hourly_frequency_primary_compensation_basis,hourly_frequency_total_base_pay,hourly_frequency_total_salary_and_allowances,last_datefor_which_paid,local_termination_reason,months_continuous_prior_employment,not_returning,original_hire_date,pay_group_frequency_currency,pay_group_frequency_frequency,pay_group_frequency_primary_compensation_basis,pay_group_frequency_total_base_pay,pay_group_frequency_total_salary_and_allowances,pay_through_date,primary_termination_category,primary_termination_reason,probation_end_date,probation_start_date,reason_reference_id,regrettable_termination,rehire,resignation_date,retired,retirement_date,retirement_eligibility_date,return_unknown,seniority_date,severance_date,terminated,termination_date,termination_involuntary,termination_last_day_of_work,time_off_service_date,universal_id,user_id,vesting_date,worker_code -7687e33f1595017a1330268bd456a822,true,2000-01-01 00:00:00,9999-12-31 23:59:59,2023-10-30 05:42:38,,false,2020-11-14,USD,Annual,0.0,25000.0,25000.0,USD,Annual,0.0,25000.0,25000.0,,,2020-03-01,f07d77b56c5a4ae6bffb48fb15a69027,7860993be8d8100f8ad5ad2f8bdd106c,2020-03-01,,,,,,,,0.1,No,No,USD,Hourly,0.0,12.019231,12.019231,,,,2020-03-01,false,2020-03-01,Hire_Employee_New_Hire_Fill_Vacancy,false,,USD,Hourly,,12.019231,,,,0.1,false,2020-03-01,USD,,0.0,12.019231,12.019231,2020-11-13,Terminate_Employee_Involuntary,Terminate_Employee_Involuntary_Poor_Job_Performance,,,Hire_Employee_New_Hire_Fill_Vacancy,false,false,,false,,,false,2020-03-01,,true,2020-11-13,true,2020-11-13,,,lchin,,10010 -7687e33f1595019b167eba8cd456b424,true,2000-01-01 00:00:00,9999-12-31 23:59:59,2023-10-30 05:42:39,,false,2020-10-30,USD,Annual,66000.0,60000.0,49258.1,MXN,Annual,1448422.8,1316748.0,-3856744.79,,,2017-10-08,ba789a49556b4b8ab07f3ab78583928c,bfb3bb774248467cb761d73cb00bc162,2017-10-08,,,,,,,,0.3,No,No,MXN,Annual,1448422.8,1316748.0,-3856744.79,,,,2017-10-08,false,2017-10-08,Hire_Employee_New_Hire_Fill_Vacancy,false,,,,,,,,,0.1,false,2017-10-08,MXN,,1448422.8,1316748.0,-3856744.79,2020-10-29,Terminate_Employee_Involuntary,Terminate_Employee_Involuntary_Poor_Job_Performance,,,Hire_Employee_New_Hire_Fill_Vacancy,false,false,,false,,,false,2017-10-08,,true,2020-10-29,true,2020-10-29,,,sflores,,10017 -7687e33f159501c831d2f28cd4560225,true,2000-01-01 00:00:00,9999-12-31 23:59:59,2023-10-30 05:42:39,,false,2020-12-02,USD,Annual,20802.8,19848.54,19848.54,BRL,Annual,113541.67,108333.33,108333.33,,,2018-10-09,ba789a49556b4b8ab07f3ab78583928c,f8a88a8d5c5e494d853d8d28f9b11a06,2018-10-09,,,,,,,,0.5,Yes,Yes,BRL,Annual,113541.67,108333.33,108333.33,,,,2018-10-09,false,2018-10-09,Hire_Employee_New_Hire_Fill_Vacancy,false,,,,,,,,,0.1,false,2018-10-09,BRL,,113541.67,108333.33,108333.33,2020-12-01,Terminate_Employee_Voluntary,Terminate_Employee_Voluntary_Commute_Time,,,Hire_Employee_New_Hire_Fill_Vacancy,true,false,,false,,,false,2018-10-09,,true,2020-12-01,false,2020-12-01,,,egomes,,10018 -7687e33f159501bf83302e8dd4564a25,true,2000-01-01 00:00:00,9999-12-31 23:59:59,2023-10-30 05:42:39,,false,2021-02-27,USD,Annual,1920.25,1920.25,1920.25,USD,Annual,1920.25,1920.25,1920.25,,,2019-05-13,f07d77b56c5a4ae6bffb48fb15a69027,,2019-05-13,,,,,,,,0.2,,,USD,Hourly,0.923196,0.923196,0.923196,,,,2019-05-13,false,2019-05-13,Hire_Employee_New_Hire_Fill_Vacancy,false,,USD,Hourly,,0.923196,,,,0.1,false,2019-05-13,USD,,0.923196,0.923196,0.923196,2021-02-26,Terminate_Employee_Voluntary,Terminate_Employee_Voluntary_Dissatisfied_with_Job,,,Hire_Employee_New_Hire_Fill_Vacancy,true,false,,false,,,false,2019-05-13,,true,2021-02-26,false,2021-02-26,,,rsandeep,,10019 -7687e33f15950101562d6c8dd4569325,true,2000-01-01 00:00:00,9999-12-31 23:59:59,2023-10-30 05:42:39,,false,2021-02-06,USD,Annual,31425.55,26750.5,26750.5,EUR,Annual,25890.85,22039.17,22039.17,,,2015-08-15,ba789a49556b4b8ab07f3ab78583928c,3d3fdfacbec54de68c342d32771cb4db,2015-08-15,,,,,,,,0.4,,,EUR,Monthly,2157.57,1836.6,1836.6,,,,2015-08-15,false,2015-08-15,Hire_Employee_New_Hire_Fill_Vacancy,false,,,,,,,,,0.1,false,2015-08-15,EUR,,2157.57,1836.6,1836.6,2021-02-05,Terminate_Employee_Voluntary,Terminate_Employee_Voluntary_Other_Employment,,,Hire_Employee_New_Hire_Fill_Vacancy,true,false,,false,,,false,2015-08-15,,true,2021-02-05,false,2021-02-05,,,dconnors,,10020 \ No newline at end of file +7687e33f1595017a1330268bd456a822,true,2000-01-01 00:00:00,9999-12-31 23:59:59,2023-10-30 05:42:38,,false,2020-11-14,USD,Annual,0.0,25000.0,25000.0,USD,Annual,0.0,25000.0,25000.0,,,2020-03-01,f07d77b56c5a4ae6bffb48fb15a69027,7860993be8d8100f8ad5ad2f8bdd106c,2020-03-01,,,,,,,,0.1,No,No,USD,Hourly,0.0,12.019231,12.019231,2020-11-13,,,2020-03-01,false,2020-03-01,Hire_Employee_New_Hire_Fill_Vacancy,false,,USD,Hourly,,12.019231,,,,0.1,false,2020-03-01,USD,,0.0,12.019231,12.019231,2020-11-13,Terminate_Employee_Involuntary,Terminate_Employee_Involuntary_Poor_Job_Performance,,,Hire_Employee_New_Hire_Fill_Vacancy,false,false,,false,,,false,2020-03-01,,true,2020-11-13,true,2020-11-13,,,lchin,,10010 +7687e33f1595019b167eba8cd456b424,true,2000-01-01 00:00:00,9999-12-31 23:59:59,2023-10-30 05:42:39,,false,2020-10-30,USD,Annual,66000.0,60000.0,49258.1,MXN,Annual,1448422.8,1316748.0,-3856744.79,,,2017-10-08,ba789a49556b4b8ab07f3ab78583928c,bfb3bb774248467cb761d73cb00bc162,2017-10-08,,,,,,,,0.3,No,No,MXN,Annual,1448422.8,1316748.0,-3856744.79,2020-10-29,,,2017-10-08,false,2017-10-08,Hire_Employee_New_Hire_Fill_Vacancy,false,,,,,,,,,0.1,false,2017-10-08,MXN,,1448422.8,1316748.0,-3856744.79,2020-10-29,Terminate_Employee_Involuntary,Terminate_Employee_Involuntary_Poor_Job_Performance,,,Hire_Employee_New_Hire_Fill_Vacancy,false,false,,false,,,false,2017-10-08,,true,2020-10-29,true,2020-10-29,,,sflores,,10017 +7687e33f159501c831d2f28cd4560225,true,2000-01-01 00:00:00,9999-12-31 23:59:59,2023-10-30 05:42:39,,false,2020-12-02,USD,Annual,20802.8,19848.54,19848.54,BRL,Annual,113541.67,108333.33,108333.33,,,2018-10-09,ba789a49556b4b8ab07f3ab78583928c,f8a88a8d5c5e494d853d8d28f9b11a06,2018-10-09,,,,,,,,0.5,Yes,Yes,BRL,Annual,113541.67,108333.33,108333.33,2020-12-01,,,2018-10-09,false,2018-10-09,Hire_Employee_New_Hire_Fill_Vacancy,false,,,,,,,,,0.1,false,2018-10-09,BRL,,113541.67,108333.33,108333.33,2020-12-01,Terminate_Employee_Voluntary,Terminate_Employee_Voluntary_Commute_Time,,,Hire_Employee_New_Hire_Fill_Vacancy,true,false,,false,,,false,2018-10-09,,true,2020-12-01,false,2020-12-01,,,egomes,,10018 +7687e33f159501bf83302e8dd4564a25,true,2000-01-01 00:00:00,9999-12-31 23:59:59,2023-10-30 05:42:39,,false,2021-02-27,USD,Annual,1920.25,1920.25,1920.25,USD,Annual,1920.25,1920.25,1920.25,,,2019-05-13,f07d77b56c5a4ae6bffb48fb15a69027,,2019-05-13,,,,,,,,0.2,,,USD,Hourly,0.923196,0.923196,0.923196,2021-02-26,,,2019-05-13,false,2019-05-13,Hire_Employee_New_Hire_Fill_Vacancy,false,,USD,Hourly,,0.923196,,,,0.1,false,2019-05-13,USD,,0.923196,0.923196,0.923196,2021-02-26,Terminate_Employee_Voluntary,Terminate_Employee_Voluntary_Dissatisfied_with_Job,,,Hire_Employee_New_Hire_Fill_Vacancy,true,false,,false,,,false,2019-05-13,,true,2021-02-26,false,2021-02-26,,,rsandeep,,10019 +7687e33f15950101562d6c8dd4569325,true,2000-01-01 00:00:00,9999-12-31 23:59:59,2023-10-30 05:42:39,,false,2021-02-06,USD,Annual,31425.55,26750.5,26750.5,EUR,Annual,25890.85,22039.17,22039.17,,,2015-08-15,ba789a49556b4b8ab07f3ab78583928c,3d3fdfacbec54de68c342d32771cb4db,2015-08-15,,,,,,,,0.4,,,EUR,Monthly,2157.57,1836.6,1836.6,2021-02-05,,,2015-08-15,false,2015-08-15,Hire_Employee_New_Hire_Fill_Vacancy,false,,,,,,,,,0.1,false,2015-08-15,EUR,,2157.57,1836.6,1836.6,2021-02-05,Terminate_Employee_Voluntary,Terminate_Employee_Voluntary_Other_Employment,,,Hire_Employee_New_Hire_Fill_Vacancy,true,false,,false,,,false,2015-08-15,,true,2021-02-05,false,2021-02-05,,,dconnors,,10020 \ No newline at end of file diff --git a/integration_tests/seeds/workday_worker_position_history_data.csv b/integration_tests/seeds/workday_worker_position_history_data.csv index 3c567e7..7364877 100644 --- a/integration_tests/seeds/workday_worker_position_history_data.csv +++ b/integration_tests/seeds/workday_worker_position_history_data.csv @@ -1,6 +1,6 @@ -position_id,worker_id,_fivetran_active,_fivetran_start,_fivetran_end,,_fivetran_synced,academic_pay_setup_data_annual_work_period_end_date,academic_pay_setup_data_annual_work_period_start_date,academic_pay_setup_data_annual_work_period_work_percent_of_year,academic_pay_setup_data_disbursement_plan_period_end_date,academic_pay_setup_data_disbursement_plan_period_start_date,business_site_summary_display_language,business_site_summary_local,business_site_summary_location,business_site_summary_location_type,business_site_summary_name,business_site_summary_scheduled_weekly_hours,business_site_summary_time_profile,business_title,critical_job,default_weekly_hours,difficulty_to_fill,effective_date,employee_type,end_date,end_employment_date,exclude_from_head_count,expected_assignment_end_date,external_employee,federal_withholding_fein,frequency,full_time_equivalent_percentage,headcount_restriction_code,home_country,host_country,international_assignment_type,is_primary_job,job_exempt,job_profile_id,management_level_code,paid_fte,pay_group,pay_rate,pay_rate_type,pay_through_date,payroll_entity,payroll_file_number,regular_paid_equivalent_hours,scheduled_weekly_hours,specify_paid_fte,specify_working_fte,start_date,start_international_assignment_reason,work_hours_profile,work_shift,work_shift_required,work_space,worker_hours_profile_classification,working_fte,working_time_frequency,working_time_unit,working_time_value -d0e0ae2f7be848cb8f19178750a21564,7687e33f1595017a1330268bd456a822,true,2000-01-01 00:00:00,9999-12-31 23:59:59,2023-10-30 05:37:21,,,,,,,en_AU,Sydney,Local_Office,Sydney,32.3,Standard_Hours_38,Customer Service Representative,true,40.2,EASY,2000-01-01,Regular,2010-08-20,,false,,,,,100,,,,,true,false,15baf9003ea943a9a62332bb48f5386c,8_Individual_Contributor,0.1,,,,2010-08-20,,,,39.5,false,false,2000-01-01,2000-01-01,,,false,,,0.3,,,0, -b6704e966cc4013c8be899b8a553f6bb,7687e33f1595019b167eba8cd456b424,true,2000-01-01 00:00:00,9999-12-31 23:59:59,2023-10-30 05:42:37,,,,,,,en_AU,Sydney,Local_Office,Sydney,35.5,Standard_Hours_38,HR Manager,true,38.4,DIFFICULT,2017-10-15,Regular,2020-10-15,,false,,,,,100,,,,,true,false,0094a019bb0e100f4d0c12e7472707b8,6_Manager,0,,,,2020-10-15,,,,37.1,false,false,2017-10-15,2017-10-15,,,false,,,0,,,0, -936fdd0568cd102f5a8f3e40e86533d3,7687e33f159501c831d2f28cd4560225,true,2000-01-01 00:00:00,9999-12-31 23:59:59,2023-10-30 05:42:55,,,,,,,en_AU,Sydney,Local_Office,Sydney,35.0,Standard_Hours_38,"Senior Manager, Marketing Communications",false,38.1,HARD,2021-01-02,,,,false,,,,,100,,,,,true,false,f6fde9419d864292aee7436fc57459e8,6_Manager,0,,,,,,,,34.0,false,false,2021-01-02,2021-01-02,,,false,,,0,,,0, -1b5884fa4a3b01ddde0c6d14ba101802,7687e33f159501bf83302e8dd4564a25,true,2000-01-01 00:00:00,9999-12-31 23:59:59,2023-10-30 05:42:39,,,,,,en_US,en_AU,Melbourne,Local_Office,Melbourne,35.0,Standard_Hours_38,Senior Customer Services Representative,true,37.3,HARD,2020-01-20,Regular,2021-02-05,2021-02-05,false,,,,,100,,,,,true,false,3f0aeb406a4b417d80dcbd7881a31c29,8_Individual_Contributor,0,,,,2021-02-05,,,,33.0,false,false,2015-08-15,2015-08-15,,,false,,,0,,,0, -b6704e966cc4019288605eb8a553a1bb,7687e33f15950101562d6c8dd4569325,true,2000-01-01 00:00:00,9999-12-31 23:59:59,2023-10-30 05:37:20,,,,,,,en_AU,Sydney,Local_Office,Sydney,35.0,Standard_Hours_38,"Manager, Global Support",false,34.1,HARD,2017-01-01,Regular,,,false,,,,Monthly,100,,,,,true,false,ed64dcef46254f81a4f96daa87f7c63a,6_Manager,0,,,Salaried,,,,,39.0,false,false,2000-01-01,2000-01-01,,,false,,,0,,,0, \ No newline at end of file +position_id,worker_id,_fivetran_active,_fivetran_start,_fivetran_end,_fivetran_synced,academic_pay_setup_data_annual_work_period_end_date,academic_pay_setup_data_annual_work_period_start_date,academic_pay_setup_data_annual_work_period_work_percent_of_year,academic_pay_setup_data_disbursement_plan_period_end_date,academic_pay_setup_data_disbursement_plan_period_start_date,business_site_summary_display_language,business_site_summary_local,business_site_summary_location,business_site_summary_location_type,business_site_summary_name,business_site_summary_scheduled_weekly_hours,business_site_summary_time_profile,business_title,critical_job,default_weekly_hours,difficulty_to_fill,effective_date,employee_type,end_date,end_employment_date,exclude_from_head_count,expected_assignment_end_date,external_employee,federal_withholding_fein,frequency,full_time_equivalent_percentage,headcount_restriction_code,home_country,host_country,international_assignment_type,is_primary_job,job_exempt,job_profile_id,management_level_code,paid_fte,pay_group,pay_rate,pay_rate_type,pay_through_date,payroll_entity,payroll_file_number,regular_paid_equivalent_hours,scheduled_weekly_hours,specify_paid_fte,specify_working_fte,start_date,start_international_assignment_reason,work_hours_profile,work_shift,work_shift_required,work_space,worker_hours_profile_classification,working_fte,working_time_frequency,working_time_unit,working_time_value +d0e0ae2f7be848cb8f19178750a21564,7687e33f1595017a1330268bd456a822,true,2000-01-01 00:00:00,9999-12-31 23:59:59,2023-10-30 05:37:21,,,,,,,en_AU,Sydney,Local_Office,Sydney,32.3,Standard_Hours_38,Customer Service Representative,true,40.2,EASY,2000-01-01,Regular,2010-08-20,,false,,,,,100,,,,,true,false,15baf9003ea943a9a62332bb48f5386c,8_Individual_Contributor,0.1,,,,2010-08-20,,,,39.5,false,false,2000-01-01,2000-01-01,,,false,,,0.3,,,0 +b6704e966cc4013c8be899b8a553f6bb,7687e33f1595019b167eba8cd456b424,true,2000-01-01 00:00:00,9999-12-31 23:59:59,2023-10-30 05:42:37,,,,,,,en_AU,Sydney,Local_Office,Sydney,35.5,Standard_Hours_38,HR Manager,true,38.4,DIFFICULT,2017-10-15,Regular,2020-10-15,,false,,,,,100,,,,,true,false,0094a019bb0e100f4d0c12e7472707b8,6_Manager,0,,,,2020-10-15,,,,37.1,false,false,2017-10-15,2017-10-15,,,false,,,0,,,0 +936fdd0568cd102f5a8f3e40e86533d3,7687e33f159501c831d2f28cd4560225,true,2000-01-01 00:00:00,9999-12-31 23:59:59,2023-10-30 05:42:55,,,,,,,en_AU,Sydney,Local_Office,Sydney,35.0,Standard_Hours_38,"Senior Manager, Marketing Communications",false,38.1,HARD,2021-01-02,,,,false,,,,,100,,,,,true,false,f6fde9419d864292aee7436fc57459e8,6_Manager,0,,,,,,,,34.0,false,false,2021-01-02,2021-01-02,,,false,,,0,,,0 +1b5884fa4a3b01ddde0c6d14ba101802,7687e33f159501bf83302e8dd4564a25,true,2000-01-01 00:00:00,9999-12-31 23:59:59,2023-10-30 05:42:39,,,,,,en_US,en_AU,Melbourne,Local_Office,Melbourne,35.0,Standard_Hours_38,Senior Customer Services Representative,true,37.3,HARD,2020-01-20,Regular,2021-02-05,2021-02-05,false,,,,,100,,,,,true,false,3f0aeb406a4b417d80dcbd7881a31c29,8_Individual_Contributor,0,,,,2021-02-05,,,,33.0,false,false,2015-08-15,2015-08-15,,,false,,,0,,,0 +b6704e966cc4019288605eb8a553a1bb,7687e33f15950101562d6c8dd4569325,true,2000-01-01 00:00:00,9999-12-31 23:59:59,2023-10-30 05:37:20,,,,,,,en_AU,Sydney,Local_Office,Sydney,35.0,Standard_Hours_38,"Manager, Global Support",false,34.1,HARD,2017-01-01,Regular,,,false,,,,Monthly,100,,,,,true,false,ed64dcef46254f81a4f96daa87f7c63a,6_Manager,0,,,Salaried,,,,,39.0,false,false,2000-01-01,2000-01-01,,,false,,,0,,,0 \ No newline at end of file diff --git a/models/intermediate/workday_history/int_workday__employee_history.sql b/models/intermediate/workday_history/int_workday__employee_history.sql index 90c10aa..ad878cd 100644 --- a/models/intermediate/workday_history/int_workday__employee_history.sql +++ b/models/intermediate/workday_history/int_workday__employee_history.sql @@ -19,7 +19,7 @@ personal_information_history as ( worker_start_records as ( select worker_id, - _fivetran_start, + _fivetran_start from worker_history union distinct select worker_id, diff --git a/models/staging/workday_history/stg_workday__worker_history.sql b/models/staging/workday_history/stg_workday__worker_history.sql index 68c7cbf..01d103a 100644 --- a/models/staging/workday_history/stg_workday__worker_history.sql +++ b/models/staging/workday_history/stg_workday__worker_history.sql @@ -14,9 +14,11 @@ final as ( cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, cast(_fivetran_start as date) as _fivetran_date, + cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date, + cast(termination_date as {{ dbt.type_timestamp() }}) as termination_date, {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key, {{ dbt_utils.star(from=source('workday','worker_history'), - except=["id", "_fivetran_start", "_fivetran_end", "home_country"]) }} + except=["id", "_fivetran_start", "_fivetran_end", "home_country", "end_employment_date", "termination_date"]) }} from base ) diff --git a/models/staging/workday_history/stg_workday__worker_position_history.sql b/models/staging/workday_history/stg_workday__worker_position_history.sql index cc26999..642a3bc 100644 --- a/models/staging/workday_history/stg_workday__worker_position_history.sql +++ b/models/staging/workday_history/stg_workday__worker_position_history.sql @@ -15,9 +15,11 @@ final as ( cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, cast(_fivetran_start as date) as _fivetran_date, + cast(effective_date as {{ dbt.type_timestamp() }}) as effective_date, + cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date, {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', '_fivetran_start']) }} as history_unique_key, {{ dbt_utils.star(from=source('workday','worker_position_history'), - except=["worker_id", "position_id", "_fivetran_start", "_fivetran_end", "home_country"]) }} + except=["worker_id", "position_id", "_fivetran_start", "_fivetran_end", "home_country", "effective_date", "end_employment_date"]) }} from base ) diff --git a/models/staging/workday_history/stg_workday_history.yml b/models/staging/workday_history/stg_workday_history.yml index 20b145e..fe5b025 100644 --- a/models/staging/workday_history/stg_workday_history.yml +++ b/models/staging/workday_history/stg_workday_history.yml @@ -7,7 +7,6 @@ models: - dbt_utils.unique_combination_of_columns: combination_of_columns: - worker_id - - source_relation - _fivetran_start columns: @@ -15,9 +14,6 @@ models: description: '{{ doc("worker_id") }}' tests: - not_null - - - name: source_relation - description: '{{ doc("source_relation") }}' - name: _fivetran_start description: '{{ doc("_fivetran_start") }}' @@ -29,7 +25,7 @@ models: description: '{{ doc("_fivetran_date") }}' - name: history_unique_key - description: Surrogate key hashed on `worker_id`, `source_relation` and `_fivetran_start`. + description: Surrogate key hashed on `worker_id` and `_fivetran_start`. tests: - unique - not_null @@ -143,7 +139,6 @@ models: - dbt_utils.unique_combination_of_columns: combination_of_columns: - worker_id - - source_relation - _fivetran_start columns: @@ -152,9 +147,6 @@ models: tests: - not_null - - name: source_relation - description: '{{ doc("source_relation") }}' - - name: _fivetran_start description: '{{ doc("_fivetran_start") }}' @@ -165,7 +157,7 @@ models: description: '{{ doc("_fivetran_date") }}' - name: history_unique_key - description: Surrogate key hashed on `worker_id`, `source_relation` and `_fivetran_start`. + description: Surrogate key hashed on `worker_id` and `_fivetran_start`. tests: - unique - not_null @@ -433,13 +425,9 @@ models: combination_of_columns: - worker_id - position_id - - source_relation - _fivetran_start columns: - - name: source_relation - description: '{{ doc("source_relation") }}' - - name: worker_id description: '{{ doc("worker_id") }}' tests: @@ -460,7 +448,7 @@ models: description: '{{ doc("_fivetran_date") }}' - name: history_unique_key - description: Surrogate key hashed on `position_id`, `worker_id`, `source_relation` and `_fivetran_start` . + description: Surrogate key hashed on `position_id`, `worker_id` and `_fivetran_start` . tests: - unique - not_null @@ -649,9 +637,7 @@ models: - worker_id - position_id - organization_id - - source_relation - _fivetran_start - - _fivetran_end columns: - name: worker_id @@ -667,10 +653,7 @@ models: - name: organization_id description: '{{ doc("organization_id") }}' tests: - - not_null - - - name: source_relation - description: '{{ doc("source_relation") }}' + - not_null - name: _fivetran_start description: '{{ doc("_fivetran_start") }}' @@ -682,7 +665,7 @@ models: description: '{{ doc("_fivetran_date") }}' - name: history_unique_key - description: Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, `source_relation` and `_fivetran_start` . + description: Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, and `_fivetran_start` . tests: - unique - not_null diff --git a/models/workday_history/workday__monthly_summary.sql b/models/workday_history/workday__monthly_summary.sql index 1d221c3..6150f3d 100644 --- a/models/workday_history/workday__monthly_summary.sql +++ b/models/workday_history/workday__monthly_summary.sql @@ -1,7 +1,7 @@ with row_month_partition as ( select *, - {{ dbt.date_trunc('month', date_day) }} as date_month, + {{ dbt.date_trunc("month", "date_day") }} as date_month, row_number() over (partition by employee_id, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row from {{ ref('workday__employee_daily_history') }} order by employee_id, date_day @@ -18,9 +18,9 @@ end_of_month_history as ( monthly_employee_metrics as ( select date_month, - sum(case when date_month = {{ dbt.date_trunc('month', effective_date) }} then 1 else 0 end) as new_employees, - sum(case when date_month = {{ dbt.date_trunc('month', termination_date) }} then 1 else 0 end) as churned_employees, - sum(case when date_month = {{ dbt.date_trunc('month', wh_end_employment_date) }} then 1 else 0 end) as churned_workers_this_month + sum(case when date_month = {{ dbt.date_trunc("month", "effective_date") }} then 1 else 0 end) as new_employees, + sum(case when date_month = {{ dbt.date_trunc("month", "termination_date") }} then 1 else 0 end) as churned_employees, + sum(case when date_month = {{ dbt.date_trunc("month", "wh_end_employment_date") }} then 1 else 0 end) as churned_workers from end_of_month_history group by 1 ), @@ -28,19 +28,13 @@ monthly_employee_metrics as ( monthly_active_employee_metrics as ( select date_month, - count(distinct employee_id) as active_employees_this_month, + count(distinct employee_id) as active_employees, sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees, sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees, - sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees, - sum(case when date_month = {{ dbt.date_trunc('month', wph_end_employment_date) }} - then 1 else 0 end) as churned_employees_this_month, - sum(case when date_month >= {{ dbt.date_trunc('month', effective_date) }} - and (date_month <= {{ dbt.date_trunc('month', wh_end_employment_date) }} - or wh_end_employment_date is null) - then 1 else 0 end) as active_workers_this_month + sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees from end_of_month_history - where date_month >= {{ dbt.date_trunc('month', effective_date) }} - and (date_month <= {{ dbt.date_trunc('month', wph_end_employment_date) }} + where date_month >= {{ dbt.date_trunc("month", "effective_date") }} + and (date_month <= {{ dbt.date_trunc("month", "wph_end_employment_date") }} or wph_end_employment_date is null) group by 1 ), @@ -48,19 +42,26 @@ monthly_active_employee_metrics as ( monthly_active_worker_metrics as ( select date_month, - count(distinct worker_id) as active_workers_this_month - where (date_month >= {{ dbt.date_trunc('month', effective_date) }} - and date_month <= {{ dbt.date_trunc('month', wh_end_employment_date) }}) + count(distinct worker_id) as active_workers + from end_of_month_history + where (date_month >= {{ dbt.date_trunc("month", "effective_date") }} + and date_month <= {{ dbt.date_trunc("month", "wh_end_employment_date") }}) or wh_end_employment_date is null group by 1 ), monthly_summary as ( - select date_month, - monthly_employee_metrics.*, - monthly_active_employee_metrics.*, - monthly_active_worker_metrics.* + select + monthly_employee_metrics.date_month, + monthly_employee_metrics.new_employees, + monthly_employee_metrics.churned_employees, + monthly_employee_metrics.churned_workers, + monthly_active_employee_metrics.active_employees, + monthly_active_employee_metrics.active_male_employees, + monthly_active_employee_metrics.active_female_employees, + monthly_active_employee_metrics.active_known_gender_employees, + monthly_active_worker_metrics.active_workers from monthly_employee_metrics left join monthly_active_employee_metrics on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month From 9effe38edeb42d9574f645f7ea89fe1bb86187a5 Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Wed, 6 Mar 2024 16:53:34 -0800 Subject: [PATCH 04/20] Workday history upgrades --- .buildkite/scripts/run_models.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/.buildkite/scripts/run_models.sh b/.buildkite/scripts/run_models.sh index 90b3da3..f7fed30 100644 --- a/.buildkite/scripts/run_models.sh +++ b/.buildkite/scripts/run_models.sh @@ -19,8 +19,6 @@ dbt deps dbt seed --target "$db" --full-refresh dbt run --target "$db" --full-refresh dbt test --target "$db" -dbt run --vars '{personal_information_history_start_date: "2023-01-01", worker_position_history_start_date: "2023-01-01", worker_history_start_date: "2023-01-01", worker_position_organization_history_start_date: "2023-01-01"}' --target "$db" --full-refresh -dbt test --target "$db" dbt run --target "$db" dbt test --target "$db" From 9641fdf575e233b3e89483a30522f2a9dc8602d0 Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Thu, 7 Mar 2024 19:22:35 -0800 Subject: [PATCH 05/20] More employee monthly metrics --- .../int_workday__worker_details.sql | 2 +- .../int_workday__worker_employee_enhanced.sql | 25 ++++----- .../int_workday__worker_position_enriched.sql | 33 ++--------- .../int_workday__employee_history.sql | 2 +- .../stg_workday__worker_position_history.sql | 6 +- models/workday__employee_overview.sql | 2 +- .../workday__monthly_summary.sql | 55 ++++++++++++++++--- 7 files changed, 69 insertions(+), 56 deletions(-) diff --git a/models/intermediate/int_workday__worker_details.sql b/models/intermediate/int_workday__worker_details.sql index 6a57c9b..eb74180 100644 --- a/models/intermediate/int_workday__worker_details.sql +++ b/models/intermediate/int_workday__worker_details.sql @@ -27,7 +27,7 @@ worker_details as ( case when termination_date is null then {{ dbt.datediff('hire_date', 'current_date', 'day') }} else {{ dbt.datediff('hire_date', 'termination_date', 'day') }} - end as days_of_employment, + end as days_as_worker, is_terminated, primary_termination_category, primary_termination_reason, diff --git a/models/intermediate/int_workday__worker_employee_enhanced.sql b/models/intermediate/int_workday__worker_employee_enhanced.sql index 3a89e6e..0a86d7d 100644 --- a/models/intermediate/int_workday__worker_employee_enhanced.sql +++ b/models/intermediate/int_workday__worker_employee_enhanced.sql @@ -36,50 +36,47 @@ worker_employee_enhanced as ( position_location, management_level_code, fte_percent, - days_at_position, position_start_date, position_end_date, position_effective_date, - worker_positions, - worker_levels, - position_days, - case when days_of_employment >= 365 + days_employed, + case when days_employed >= 365 then true else false end as is_employed_one_year, - case when days_of_employment >= 365*5 + case when days_employed >= 365*5 then true else false end as is_employed_five_years, - case when days_of_employment >= 365*10 + case when days_employed >= 365*10 then true else false end as is_employed_ten_years, - case when days_of_employment >= 365*20 + case when days_employed >= 365*20 then true else false end as is_employed_twenty_years, - case when days_of_employment >= 365*30 + case when days_employed >= 365*30 then true else false end as is_employed_thirty_years, - case when days_of_employment >= 365 and is_user_active + case when days_employed >= 365 and is_user_active then true else false end as is_current_employee_one_year, - case when days_of_employment >= 365*5 and is_user_active + case when days_employed >= 365*5 and is_user_active then true else false end as is_current_employee_five_years, - case when days_of_employment >= 365*10 and is_user_active + case when days_employed >= 365*10 and is_user_active then true else false end as is_current_employee_ten_years, - case when days_of_employment >= 365*20 and is_user_active + case when days_employed >= 365*20 and is_user_active then true else false end as is_current_employee_twenty_years, - case when days_of_employment >= 365*30 and is_user_active + case when days_employed >= 365*30 and is_user_active then true else false end as is_current_employee_thirty_years diff --git a/models/intermediate/int_workday__worker_position_enriched.sql b/models/intermediate/int_workday__worker_position_enriched.sql index ce8bc5a..5fcb870 100644 --- a/models/intermediate/int_workday__worker_position_enriched.sql +++ b/models/intermediate/int_workday__worker_position_enriched.sql @@ -24,29 +24,10 @@ worker_position_data_enhanced as ( case when position_end_date is null then {{ dbt.datediff('position_start_date', 'current_date', 'day') }} else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }} - end as days_at_position, + end as days_employed, row_number() over (partition by worker_id order by position_end_date desc) as row_number from worker_position_data -), - -worker_position_measures as ( - - select - worker_id, - source_relation, - count(distinct position_id) as worker_positions, - count(distinct management_level_code) as worker_levels, - sum(days_at_position) as position_days - from worker_position_data_enhanced - group by 1, 2 -), - -most_recent_position as ( - - select * - from worker_position_data_enhanced - where row_number = 1 -), +), worker_position_enriched as ( @@ -62,17 +43,11 @@ worker_position_enriched as ( worker_position_data_enhanced.position_location, worker_position_data_enhanced.management_level_code, worker_position_data_enhanced.fte_percent, - worker_position_data_enhanced.days_at_position, + worker_position_data_enhanced.days_employed, worker_position_data_enhanced.position_start_date, worker_position_data_enhanced.position_end_date, - worker_position_data_enhanced.position_effective_date, - worker_position_measures.worker_positions, - worker_position_measures.worker_levels, - worker_position_measures.position_days + worker_position_data_enhanced.position_effective_date, from worker_position_data_enhanced - left join worker_position_measures - on worker_position_data_enhanced.worker_id = worker_position_measures.worker_id - and worker_position_data_enhanced.source_relation = worker_position_measures.source_relation ) select * diff --git a/models/intermediate/workday_history/int_workday__employee_history.sql b/models/intermediate/workday_history/int_workday__employee_history.sql index ad878cd..db34fec 100644 --- a/models/intermediate/workday_history/int_workday__employee_history.sql +++ b/models/intermediate/workday_history/int_workday__employee_history.sql @@ -85,7 +85,7 @@ employee_history_scd as ( employee_key as ( - select {{ dbt_utils.generate_surrogate_key(['worker_id','position_id','start_date']) }} as employee_id, + select {{ dbt_utils.generate_surrogate_key(['worker_id','position_id','position_start_date']) }} as employee_id, cast(_fivetran_start as date) as _fivetran_date, employee_history_scd.* from employee_history_scd diff --git a/models/staging/workday_history/stg_workday__worker_position_history.sql b/models/staging/workday_history/stg_workday__worker_position_history.sql index 642a3bc..01c41eb 100644 --- a/models/staging/workday_history/stg_workday__worker_position_history.sql +++ b/models/staging/workday_history/stg_workday__worker_position_history.sql @@ -17,9 +17,13 @@ final as ( cast(_fivetran_start as date) as _fivetran_date, cast(effective_date as {{ dbt.type_timestamp() }}) as effective_date, cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date, + cast(start_date as {{ dbt.type_timestamp() }}) as position_start_date, + cast(end_date as {{ dbt.type_timestamp() }}) as position_end_date, {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', '_fivetran_start']) }} as history_unique_key, {{ dbt_utils.star(from=source('workday','worker_position_history'), - except=["worker_id", "position_id", "_fivetran_start", "_fivetran_end", "home_country", "effective_date", "end_employment_date"]) }} + except=["worker_id", "position_id", "_fivetran_start", "_fivetran_end", + "home_country", "effective_date", "end_employment_date", + "start_date", "end_date"]) }} from base ) diff --git a/models/workday__employee_overview.sql b/models/workday__employee_overview.sql index 0078972..2c3c106 100644 --- a/models/workday__employee_overview.sql +++ b/models/workday__employee_overview.sql @@ -5,7 +5,7 @@ with employee_surrogate_key as ( worker_id, position_id, position_start_date, - {{ dbt_utils.star(from=ref('int_workday__worker_employee_enhanced'), except=['worker_id', 'position_id', 'position_start_date']) }} + {{ dbt_utils.star(ref('int_workday__worker_employee_enhanced'), except=['worker_id', 'position_id', 'position_start_date']) }} from {{ ref('int_workday__worker_employee_enhanced') }} ) diff --git a/models/workday_history/workday__monthly_summary.sql b/models/workday_history/workday__monthly_summary.sql index 6150f3d..5f3a0db 100644 --- a/models/workday_history/workday__monthly_summary.sql +++ b/models/workday_history/workday__monthly_summary.sql @@ -9,19 +9,36 @@ with row_month_partition as ( end_of_month_history as ( - select * + select *, + {{ dbt.current_timestamp() }} as current_date from row_month_partition where recent_dom_row = 1 order by employee_id, date_day ), +months_employed as ( + + select *, + case when termination_date is null + then {{ dbt.datediff("hire_date", "current_date", "day") }} + else {{ dbt.datediff("hire_date", "termination_date", "day") }} + end as days_as_worker, + case when position_end_date is null + then {{ dbt.datediff('position_start_date', 'current_date', 'day') }} + else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }} + end as days_as_employee + from end_of_month_history +), + monthly_employee_metrics as ( select date_month, sum(case when date_month = {{ dbt.date_trunc("month", "effective_date") }} then 1 else 0 end) as new_employees, sum(case when date_month = {{ dbt.date_trunc("month", "termination_date") }} then 1 else 0 end) as churned_employees, + sum(case when (date_month = {{ dbt.date_trunc("month", "termination_date") }} and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees, + sum(case when (date_month = {{ dbt.date_trunc("month", "termination_date") }} and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees, sum(case when date_month = {{ dbt.date_trunc("month", "wh_end_employment_date") }} then 1 else 0 end) as churned_workers - from end_of_month_history + from months_employed group by 1 ), @@ -31,8 +48,12 @@ monthly_active_employee_metrics as ( count(distinct employee_id) as active_employees, sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees, sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees, - sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees - from end_of_month_history + sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees, + round(avg(annual_currency_summary_primary_compensation_basis)/12, 2) as avg_employee_primary_compensation, + round(avg(annual_currency_summary_total_base_pay)/12, 2) as avg_employee_base_pay, + round(avg(annual_currency_summary_total_salary_and_allowances)/12, 2) as avg_employee_salary_and_allowances, + round(avg(days_as_employee), 2) as avg_days_as_employee + from months_employed where date_month >= {{ dbt.date_trunc("month", "effective_date") }} and (date_month <= {{ dbt.date_trunc("month", "wph_end_employment_date") }} or wph_end_employment_date is null) @@ -42,8 +63,12 @@ monthly_active_employee_metrics as ( monthly_active_worker_metrics as ( select date_month, - count(distinct worker_id) as active_workers - from end_of_month_history + count(distinct worker_id) as active_workers, + round(avg(annual_currency_summary_primary_compensation_basis)/12, 2) as avg_worker_primary_compensation, + round(avg(annual_currency_summary_total_base_pay)/12, 2) as avg_worker_base_pay, + round(avg(annual_currency_summary_total_salary_and_allowances)/12, 2) as avg_worker_salary_and_allowances, + round(avg(days_as_worker), 1) as avg_days_as_worker + from months_employed where (date_month >= {{ dbt.date_trunc("month", "effective_date") }} and date_month <= {{ dbt.date_trunc("month", "wh_end_employment_date") }}) or wh_end_employment_date is null @@ -53,21 +78,33 @@ monthly_active_worker_metrics as ( monthly_summary as ( select - monthly_employee_metrics.date_month, + monthly_employee_metrics.date_month as metrics_month, monthly_employee_metrics.new_employees, monthly_employee_metrics.churned_employees, + monthly_employee_metrics.churned_voluntary_employees, + monthly_employee_metrics.churned_involuntary_employees, monthly_employee_metrics.churned_workers, monthly_active_employee_metrics.active_employees, monthly_active_employee_metrics.active_male_employees, monthly_active_employee_metrics.active_female_employees, + monthly_active_worker_metrics.active_workers, monthly_active_employee_metrics.active_known_gender_employees, - monthly_active_worker_metrics.active_workers + monthly_active_employee_metrics.avg_employee_primary_compensation, + monthly_active_employee_metrics.avg_employee_base_pay, + monthly_active_employee_metrics.avg_employee_salary_and_allowances, + monthly_active_employee_metrics.avg_days_as_employee, + monthly_active_worker_metrics.avg_worker_primary_compensation, + monthly_active_worker_metrics.avg_worker_base_pay, + monthly_active_worker_metrics.avg_worker_salary_and_allowances, + monthly_active_worker_metrics.avg_days_as_worker from monthly_employee_metrics left join monthly_active_employee_metrics on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month left join monthly_active_worker_metrics on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month + order by monthly_employee_metrics.date_month ) select * -from monthly_summary \ No newline at end of file +from monthly_summary +order by metrics_month \ No newline at end of file From e6b0bce33a78d95aca9717323a1935d44fe5427d Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Mon, 11 Mar 2024 10:57:32 -0700 Subject: [PATCH 06/20] Incremental logic --- .../int_workday__employee_history.sql | 37 ++++++++++++++++++- ..._workday__personal_information_history.sql | 18 ++++++++- .../stg_workday__worker_history.sql | 18 ++++++++- .../stg_workday__worker_position_history.sql | 18 ++++++++- ...__worker_position_organization_history.sql | 18 ++++++++- .../workday__employee_daily_history.sql | 23 +++++++++++- .../workday__monthly_summary.sql | 16 ++++---- 7 files changed, 129 insertions(+), 19 deletions(-) diff --git a/models/intermediate/workday_history/int_workday__employee_history.sql b/models/intermediate/workday_history/int_workday__employee_history.sql index db34fec..0e244a9 100644 --- a/models/intermediate/workday_history/int_workday__employee_history.sql +++ b/models/intermediate/workday_history/int_workday__employee_history.sql @@ -1,19 +1,54 @@ +{{ config( + enabled= var('employee_history_enabled', False), + materialized='incremental', + unique_key='history_unique_key', + incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'spark', 'databricks') else 'delete+insert', + partition_by={ + "field": "_fivetran_date", + "data_type": "date" + } if target.type not in ('spark','databricks') else ['_fivetran_date'], + file_format='parquet', + on_schema_change='fail' + ) +}} + with worker_history as ( select * from {{ ref('stg_workday__worker_history') }} + {% if is_incremental() %} + where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= (select max(cast((_fivetran_start) as {{ dbt.type_timestamp() }})) from {{ this }} ) + {% else %} + {% if var('employee_history_start_date',[]) %} + where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('employee_history_start_date') }}" + {% endif %} + {% endif %} ), worker_position_history as ( select * from {{ ref('stg_workday__worker_position_history') }} + {% if is_incremental() %} + where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= (select max(cast((_fivetran_start) as {{ dbt.type_timestamp() }})) from {{ this }} ) + {% else %} + {% if var('employee_history_start_date',[]) %} + where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('employee_history_start_date') }}" + {% endif %} + {% endif %} ), personal_information_history as ( select * from {{ ref('stg_workday__personal_information_history') }} + {% if is_incremental() %} + where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= (select max(cast((_fivetran_start) as {{ dbt.type_timestamp() }})) from {{ this }} ) + {% else %} + {% if var('employee_history_start_date',[]) %} + where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('employee_history_start_date') }}" + {% endif %} + {% endif %} ), worker_start_records as ( @@ -70,7 +105,7 @@ employee_history_scd as ( and worker_history_scd._fivetran_start <= worker_history._fivetran_end and worker_history_scd._fivetran_end >= worker_history._fivetran_start - left join worker_position_history + left join worker_position_history on worker_history_scd.worker_id = worker_position_history.worker_id and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start diff --git a/models/staging/workday_history/stg_workday__personal_information_history.sql b/models/staging/workday_history/stg_workday__personal_information_history.sql index 75bedca..f58a215 100644 --- a/models/staging/workday_history/stg_workday__personal_information_history.sql +++ b/models/staging/workday_history/stg_workday__personal_information_history.sql @@ -1,9 +1,23 @@ +{{ config( + enabled= var('employee_history_enabled', False), + materialized='incremental', + unique_key='history_unique_key', + incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'spark', 'databricks') else 'delete+insert', + partition_by={ + "field": "_fivetran_date", + "data_type": "date" + } if target.type not in ('spark','databricks') else ['_fivetran_date'], + file_format='parquet', + on_schema_change='fail' + ) +}} + with base as ( select * from {{ source('workday','personal_information_history') }} - {% if var('personal_information_history_start_date',[]) %} - where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('personal_information_history_start_date') }}" + {% if var('employee_history_start_date',[]) %} + where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('employee_history_start_date') }}" {% endif %} ), diff --git a/models/staging/workday_history/stg_workday__worker_history.sql b/models/staging/workday_history/stg_workday__worker_history.sql index 01d103a..eb3e216 100644 --- a/models/staging/workday_history/stg_workday__worker_history.sql +++ b/models/staging/workday_history/stg_workday__worker_history.sql @@ -1,9 +1,23 @@ +{{ config( + enabled= var('employee_history_enabled', False), + materialized='incremental', + unique_key='history_unique_key', + incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'spark', 'databricks') else 'delete+insert', + partition_by={ + "field": "_fivetran_date", + "data_type": "date" + } if target.type not in ('spark','databricks') else ['_fivetran_date'], + file_format='parquet', + on_schema_change='fail' + ) +}} + with base as ( select * from {{ source('workday','worker_history') }} - {% if var('worker_history_start_date',[]) %} - where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('worker_history_start_date') }}" + {% if var('employee_history_start_date',[]) %} + where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('employee_history_start_date') }}" {% endif %} ), diff --git a/models/staging/workday_history/stg_workday__worker_position_history.sql b/models/staging/workday_history/stg_workday__worker_position_history.sql index 01c41eb..c4a14c3 100644 --- a/models/staging/workday_history/stg_workday__worker_position_history.sql +++ b/models/staging/workday_history/stg_workday__worker_position_history.sql @@ -1,9 +1,23 @@ +{{ config( + enabled= var('employee_history_enabled', False), + materialized='incremental', + unique_key='history_unique_key', + incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'spark', 'databricks') else 'delete+insert', + partition_by={ + "field": "_fivetran_date", + "data_type": "date" + } if target.type not in ('spark','databricks') else ['_fivetran_date'], + file_format='parquet', + on_schema_change='fail' + ) +}} + with base as ( select * from {{ source('workday','worker_position_history') }} - {% if var('worker_position_history_start_date',[]) %} - where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('worker_position_history_start_date') }}" + {% if var('employee_history_start_date',[]) %} + where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('employee_history_start_date') }}" {% endif %} ), diff --git a/models/staging/workday_history/stg_workday__worker_position_organization_history.sql b/models/staging/workday_history/stg_workday__worker_position_organization_history.sql index 8b1e416..0003c3e 100644 --- a/models/staging/workday_history/stg_workday__worker_position_organization_history.sql +++ b/models/staging/workday_history/stg_workday__worker_position_organization_history.sql @@ -1,9 +1,23 @@ +{{ config( + enabled= var('employee_history_enabled', False), + materialized='incremental', + unique_key='history_unique_key', + incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'spark', 'databricks') else 'delete+insert', + partition_by={ + "field": "_fivetran_date", + "data_type": "date" + } if target.type not in ('spark','databricks') else ['_fivetran_date'], + file_format='parquet', + on_schema_change='fail' + ) +}} + with base as ( select * from {{ source('workday','worker_position_organization_history') }} - {% if var('worker_position_organization_history_start_date',[]) %} - where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('worker_position_organization_history_start_date') }}" + {% if var('employee_history_start_date',[]) %} + where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('employee_history_start_date') }}" {% endif %} ), diff --git a/models/workday_history/workday__employee_daily_history.sql b/models/workday_history/workday__employee_daily_history.sql index a1150c8..bb43657 100644 --- a/models/workday_history/workday__employee_daily_history.sql +++ b/models/workday_history/workday__employee_daily_history.sql @@ -1,3 +1,18 @@ +{{ + config( + enabled = var('employee_history_enabled', False), + materialized = 'incremental', + partition_by = { + 'field': 'date_day', + 'data_type': 'date' + } if target.type not in ['spark', 'databricks'] else ['date_day'], + unique_key = 'employee_day_id', + incremental_strategy = 'insert_overwrite' if target.type in ('bigquery', 'spark', 'databricks') else 'delete+insert', + file_format = 'parquet', + on_schema_change = 'fail' + ) +}} + {% if execute %} {% set date_query %} select @@ -9,12 +24,12 @@ {# If only compiling, creates range going back 1 year #} {% else %} {% set last_date = dbt.dateadd("year", "-1", "current_date") %} - {% endif %} +{% endif %} with spine as ( {# Prioritizes variables over calculated dates #} - {% set first_date = var('worker_history_start_date', '2020-01-01')|string %} + {% set first_date = var('employee_history_start_date', '2020-01-01')|string %} {% set last_date = last_date|string %} {{ dbt_utils.date_spine( @@ -31,6 +46,10 @@ employee_history as ( from {{ ref('int_workday__employee_history') }} {% if is_incremental() %} where _fivetran_start >= (select max(cast((_fivetran_start) as {{ dbt.type_timestamp() }})) from {{ this }} ) + {% else %} + {% if var('employee_history_start_date',[]) %} + where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('employee_history_start_date') }}" + {% endif %} {% endif %} ), diff --git a/models/workday_history/workday__monthly_summary.sql b/models/workday_history/workday__monthly_summary.sql index 5f3a0db..11aec17 100644 --- a/models/workday_history/workday__monthly_summary.sql +++ b/models/workday_history/workday__monthly_summary.sql @@ -49,10 +49,10 @@ monthly_active_employee_metrics as ( sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees, sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees, sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees, - round(avg(annual_currency_summary_primary_compensation_basis)/12, 2) as avg_employee_primary_compensation, - round(avg(annual_currency_summary_total_base_pay)/12, 2) as avg_employee_base_pay, - round(avg(annual_currency_summary_total_salary_and_allowances)/12, 2) as avg_employee_salary_and_allowances, - round(avg(days_as_employee), 2) as avg_days_as_employee + avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation, + avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay, + avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances, + avg(days_as_employee) as avg_days_as_employee from months_employed where date_month >= {{ dbt.date_trunc("month", "effective_date") }} and (date_month <= {{ dbt.date_trunc("month", "wph_end_employment_date") }} @@ -64,10 +64,10 @@ monthly_active_worker_metrics as ( select date_month, count(distinct worker_id) as active_workers, - round(avg(annual_currency_summary_primary_compensation_basis)/12, 2) as avg_worker_primary_compensation, - round(avg(annual_currency_summary_total_base_pay)/12, 2) as avg_worker_base_pay, - round(avg(annual_currency_summary_total_salary_and_allowances)/12, 2) as avg_worker_salary_and_allowances, - round(avg(days_as_worker), 1) as avg_days_as_worker + avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation, + avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay, + avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances, + avg(days_as_worker) as avg_days_as_worker from months_employed where (date_month >= {{ dbt.date_trunc("month", "effective_date") }} and date_month <= {{ dbt.date_trunc("month", "wh_end_employment_date") }}) From 8fadd3ad103e50b41543ccc63c659e06691283da Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Mon, 11 Mar 2024 14:30:50 -0700 Subject: [PATCH 07/20] employee history config --- .buildkite/scripts/run_models.sh | 4 +++- models/workday_history/workday__monthly_summary.sql | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.buildkite/scripts/run_models.sh b/.buildkite/scripts/run_models.sh index f7fed30..a289f22 100644 --- a/.buildkite/scripts/run_models.sh +++ b/.buildkite/scripts/run_models.sh @@ -18,8 +18,10 @@ cd integration_tests dbt deps dbt seed --target "$db" --full-refresh dbt run --target "$db" --full-refresh +dbt test --target "$db" +dbt run --vars '{employee_history_enabled: true}' --target "$db" --full-refresh dbt test --target "$db" -dbt run --target "$db" +dbt run --vars '{employee_history_enabled: true}' --target "$db" --full-refresh dbt test --target "$db" dbt run-operation fivetran_utils.drop_schemas_automation --target "$db" \ No newline at end of file diff --git a/models/workday_history/workday__monthly_summary.sql b/models/workday_history/workday__monthly_summary.sql index 11aec17..f8e3229 100644 --- a/models/workday_history/workday__monthly_summary.sql +++ b/models/workday_history/workday__monthly_summary.sql @@ -1,3 +1,5 @@ +{{ config(enabled=var('employee_history_enabled', False)) }} + with row_month_partition as ( select *, From 3e1038a1517447389b5824dd2d8b76ec5ae99582 Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Mon, 11 Mar 2024 14:44:05 -0700 Subject: [PATCH 08/20] syntax --- models/intermediate/int_workday__worker_position_enriched.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/intermediate/int_workday__worker_position_enriched.sql b/models/intermediate/int_workday__worker_position_enriched.sql index 5fcb870..58f18ab 100644 --- a/models/intermediate/int_workday__worker_position_enriched.sql +++ b/models/intermediate/int_workday__worker_position_enriched.sql @@ -46,7 +46,7 @@ worker_position_enriched as ( worker_position_data_enhanced.days_employed, worker_position_data_enhanced.position_start_date, worker_position_data_enhanced.position_end_date, - worker_position_data_enhanced.position_effective_date, + worker_position_data_enhanced.position_effective_date from worker_position_data_enhanced ) From 4bcd1d111c3a56448f13b422de178720649acfa4 Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Wed, 20 Mar 2024 15:48:15 -0400 Subject: [PATCH 09/20] Variable configs, removing incremental logic, documentation and yml updates --- CHANGELOG.md | 32 +- DECISIONLOG.md | 10 + README.md | 89 +++- docs/catalog.json | 2 +- docs/manifest.json | 2 +- docs/run_results.json | 2 +- integration_tests/dbt_project.yml | 2 + .../int_workday__employee_history.sql | 45 +- ..._workday__personal_information_history.sql | 14 +- .../stg_workday__worker_history.sql | 14 +- .../stg_workday__worker_position_history.sql | 14 +- ...__worker_position_organization_history.sql | 14 +- .../workday_history/stg_workday_history.yml | 2 +- .../workday__employee_daily_history.sql | 24 +- models/workday_history/workday_history.yml | 433 ++++++++++++++++++ 15 files changed, 573 insertions(+), 126 deletions(-) create mode 100644 DECISIONLOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 39cbddd..8c0e964 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,15 +1,39 @@ # dbt_workday v0.2.0 - ## 🚨 Breaking Changes 🚨 -- Created a surrogate key `employee_id` in `workday__employee_overview` that combines `worker_id`, `position_id`, and `start_date`. This accounts for cases where: +- Created a surrogate key `employee_id` in `workday__employee_overview` that combines `worker_id`, `position_id`, and `position_start_date`. This accounts for the edge cases where: - A worker can hold multiple positions concurrently. - A position being held by multiple workers concurrently. - A worker being rehired for the same position. +- Using this surrogate key as our grain will hopefully provide uniqueness for the majority of Workday HCM customer cases. ## 🚀 Feature Updates 🚀 -- We have added an employee daily history model in the [`models/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/workday_history) folder [based off of Fivetran's history mode feature](https://fivetran.com/docs/core-concepts/sync-modes/history-mode), pulling from Workday HCM source models you can view in the [`models/staging/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/staging/workday_history) folder. +- We have added staging history mode models in the [`models/history`](https://github.com/fivetran/dbt_workday/tree/main/models/staging/history) folder [to support Fivetran's history mode feature](https://fivetran.com/docs/core-concepts/sync-modes/history-mode). + +This will allow customers to utilize the Fivetran history mode feature, which records every version of each record in the source table from the moment this mode is activated in the equivalent tables. + +These staging models include: + + - `stg_workday__personal_information_history`: Containing historical records of a worker's personal information. + - `stg_workday__worker_history`: Containing historical records of a worker's history. + - `stg_workday__worker_position_history`: Containing historical records of a worker's position history. + - `stg_workday__worker_position_organization_history`: Containing historical records of a worker's position history. + +- We have then utilized the `workday__employee_daily_history` model in the [`models/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/workday_history) folder [based off of Fivetran's history mode feature](https://fivetran.com/docs/core-concepts/sync-modes/history-mode), pulling from Workday HCM source models you can view in the [`models/staging/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/staging/workday_history) folder. + +- These models are disabled by default due to their size, so you will need to set the below variable configurations for each of the individual models you want to utilize in your `dbt_project.yml`. + +```yml +vars: + employee_history_enabled: true ##Ex: employee_history_enabled: true +``` + +- We have also added the `workday__monthly_summary` model in the [`models/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/workday_history) folder. This table aggregates high-level monthly metrics to track changes over time to overall employee data for a customer. + +- We have chosen not to implement incremental logic in the history models due to the future-facing updating of Workday HCM transactions beyond current daily updates. [See the DECISIONLOG](https://github.com/fivetran/dbt_workday/blob/main/DECISIONLOG.md) for more details. + +- We support the option to pull from both your Workday HCM and History Mode connectors simultaneously from their specific database/schemas. We also support pulling from just your History Mode connector on its own and bypassing the standard connector on its own. [See more detailed instructions in the README](https://github.com/fivetran/dbt_workday/blob/main/README.md#configuring-your-workday-history-mode-database-and-schema-variables). -This will allow customers to utilize the Fivetran history mode feature, which records every version of each record in the source table from the moment this mode is activated in the equivalent tables. +- Workday HCM History Mode models can contain a multitude of rows if you bring in all historical data, so we've introduced the flexibility to set first date filters to bring in only the historical data you need. [More details can be found in the README](https://github.com/fivetran/dbt_workday/blob/main/README.md#filter-your-workday-hcm-history-mode-models). # dbt_workday v0.1.1 diff --git a/DECISIONLOG.md b/DECISIONLOG.md new file mode 100644 index 0000000..e36dd49 --- /dev/null +++ b/DECISIONLOG.md @@ -0,0 +1,10 @@ +## On not adding incremental logic into the Workday HCM History models +Generally, when working with large volume models like the ones created by Fivetran History Mode, we tend to implement incremental models. [See Salesforce](https://github.com/fivetran/dbt_salesforce?tab=readme-ov-file#optional-step-4-utilizing-salesforce-history-mode-records) for a particular example of that implementation. + +However, in the Workday HCM case, we have found that History Mode does not fit the use case for incremental logic due to the following reasons. +* Transactions can be future-dated. The most common case is an employee being hired for a future date beyond the current date, so an incremental run will pick up numerous records in the future, leading to potential duplications down the road for an employee's records. +* There are additional cases where an employee's record can be updated in the past beyond a common incremental window. + +For this reason, we will recommend users utilize the `--full-refresh` method to grab records to maintain accuracy. So we recommend that you optimize your refresh strategy when using this package to reduce warehouse load and minimize costs. + +We welcome all attempts to optimize this strategy though, and would be open to enhancements to the package! \ No newline at end of file diff --git a/README.md b/README.md index 83195df..a8ba483 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,9 @@ The main focus of the package is to transform the core object tables into analyt - Adds column-level testing where applicable. For example, all primary keys are tested for uniqueness and non-null values. - Provides insight into your Workday HCM data across the following grains: - Employee, job, organization, position. - - Generates a comprehensive data dictionary of your Workday HCM data through the [dbt docs site](https://fivetran.github.io/dbt_workday/). + - Gather daily historical records of employees. + +This package generates a comprehensive data dictionary of your Workday HCM data through the [dbt docs site](https://fivetran.github.io/dbt_workday/). > This package does not apply freshness tests to source data due to the variability of survey cadences. @@ -32,12 +34,14 @@ The main focus of the package is to transform the core object tables into analyt The following table provides a detailed list of all models materialized within this package by default. > TIP: See more details about these models in the package's [dbt docs site](https://fivetran.github.io/dbt_workday/#!/overview/workday). -| **model** | **description** | -| ------------------------- | ------------------------------------------------------------------------------------------------------------------ | -| [workday__employee_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__employee_overview) | Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees. | -| [workday__job_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__job_overview) | Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings. | -| [workday__organization_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__organization_overview) | Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures. | -| [workday__position_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__position_overview) | Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts. | +| **model** | **description** |**available in Quickstart?** +| ------------------------- | ------------------------------------------------------------------------------------------------------------------|------------------------------ +| [workday__employee_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__employee_overview) | Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees. | Yes +| [workday__job_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__job_overview) | Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings. | Yes +| [workday__organization_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__organization_overview) | Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures. | Yes +| [workday__position_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__position_overview) | Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts. | Yes +| [workday__employee_daily_history](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__employee_daily_history) | Each record represents a daily record for an employee, employee position, and employee personal information within Workday HCM, to help customers gather the most historically accurate data regarding their employees. | No +| [workday__monthly_summary](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__monthly_summary) | Each record is a month, aggregated from the last day of each month of the employee daily history. This captures monthly aggregated metrics to track trends like employee additions and churns, salary movements, demographic changes, etc. | No # 🎯 How do I use the dbt package? @@ -57,12 +61,12 @@ dispatch: ``` ## Step 2: Install the package -Include the following Workday package version in your `packages.yml` file: +Include the following Workday HCM package version in your `packages.yml` file: > TIP: Check [dbt Hub](https://hub.getdbt.com/) for the latest installation instructions or [read the dbt docs](https://docs.getdbt.com/docs/package-management) for more information on installing packages. ```yml packages: - package: fivetran/workday - version: [">=0.1.0", "<0.2.0"] # we recommend using ranges to capture non-breaking changes automatically + version: [">=0.2.0", "<0.3.0"] # we recommend using ranges to capture non-breaking changes automatically ``` ## Step 3: Define database and schema variables @@ -91,6 +95,73 @@ Please be aware that the native `source.yml` connection set up in the package wi To connect your multiple schema/database sources to the package models, follow the steps outlined in the [Union Data Defined Sources Configuration](https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source) section of the Fivetran Utils documentation for the union_data macro. This will ensure a proper configuration and correct visualization of connections in the DAG. +## (Optional) Step 4: Utilizing Workday HCM History Mode records + +If you have History Mode enabled for your Workday HCM connector, we now include support for the worker, worker position, worker position organization, and personal information tables directly. You can view these files in the [`staging/workday_history`](https://github.com/fivetran/dbt_workday/blob/main/models/staging/workday_history) folder. This staging data then flows into the employee daily history model, which in turn populates the monthly summary model. This will allow you access to your historical data for these tables for the most accurate record of your data over time. + +### IMPORTANT: How To Update Your History Models +To ensure maximum value for these history mode models and avoid messy historical data that could come with picking and choosing which fields you bring in, **all fields in your Workday HCM history mode connector are being synced into the workday history staging models**. + + +To update the history mode models, you must follow these steps: +1) Go to your Fivetran Workday HCM History Mode connector page. +2) Update the fields that you are bringing into the model. +3) Run a `dbt run --full-refresh` on the specific staging models you've updated to bring in these fields and all the historical data available with these fields. + +We are aware that bringing in additional fields will be very process-heavy, so we do emphasize caution in making changes to your history mode connector. It would be best to batch as many field changes as possible before executing a `--full-refresh` to save on processing. + + +### Configuring Your Workday HCM History Mode Database and Schema Variables +Customers leveraging the Workday HCM connector generally fall into one of two categories when taking advantage of History mode. They either have one connector that is syncing non-historical records and a separate connector that syncs historical records, **or** they have one connector that is syncing historical records. We have designed this feature to support both scenarios. + +#### Option 1: Two connectors, one with non-historical data and another with historical data +If you are gathering data from both standard Workday HCM as well as Workday HCM History Mode, and your target database and schema differ as well, you will need to add an additional configuration for the history schema and database to your `dbt_project.yml`. + +```yml +vars: + workday_database: your_database_name # workday by default + workday_schema: your_schema_name + + workday_history_database: your_history_database_name # workday_history by default + workday_history_schema: your_history_schema_name +``` + +#### Option 2: One connector being used to sync historical data +Perhaps you may only want to use the Workday HCM History Mode to bring in your data. Because the Workday HCM schema is pointing to the default `workday` schema and database, you will want to add the following variable into your `dbt_project.yml` to point it to the `workday_history` equivalents. + +```yml +vars: + workday_database: your_history_database_name # workday by default + workday_schema: your_history_schema_name + + workday_history_database: your_history_database_name # workday_history by default + workday_history_schema: your_history_schema_name +``` + +**IMPORTANT**: If you utilize Option 2, you must sync the equivalent enabled tables and fields in your history mode connector that are being brought into your end reports. Examine your data lineage and the model fields within the `workday` folder to see which tables and fields you are using and need to bring in and sync in the history mode connector. + +### Enabling Workday HCM History Mode Models +The History Mode models can get quite expansive since it will take in **ALL** historical records, so we've disabled them by default. You can enable the history models you'd like to utilize by adding the below variable configurations within your `dbt_project.yml` file for the equivalent models. + +```yml +# dbt_project.yml + +... +vars: + employee_history_enabled: true # False by default. Only use if you have history mode enabled and wish to view the full historical record. +``` + +### Filter your Workday HCM History Mode models +By default, these history models are set to bring in all your data from Workday HCM History, but you may be interested in bringing in only a smaller sample of historical records, given the relative size of the Workday HCM history source tables. By default, the package will use `2020-01-01` as the minimum date for the historical end models. This date was chosen to ensure there was a limit to the amount of historical data processed on first run. This default may be overwritten to your liking by leveraging the below variables. + +We have set up where conditions in our staging models to allow you to bring in only the data you need to run in. You can set a global history filter that would apply to all of our staging history models in your `dbt_project.yml`: + + +```yml +vars: + employee_history_start_date: 'YYYY-MM-DD' # The first `_fivetran_start` date you'd like to filter data on in all your history models. +``` + ## (Optional) Step 4: Additional configurations diff --git a/docs/catalog.json b/docs/catalog.json index 0fe5639..705d884 100644 --- a/docs/catalog.json +++ b/docs/catalog.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.7.8", "generated_at": "2024-03-07T00:46:12.690229Z", "invocation_id": "218a7437-3e28-4317-8406-f68aa2b0221b", "env": {}}, "nodes": {"seed.workday_integration_tests.workday_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_data"}, "seed.workday_integration_tests.workday_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data"}, "seed.workday_integration_tests.workday_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_profile_data"}, "seed.workday_integration_tests.workday_military_service_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_military_service_data"}, "seed.workday_integration_tests.workday_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_data"}, "seed.workday_integration_tests.workday_organization_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data"}, "seed.workday_integration_tests.workday_organization_role_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_data"}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data"}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data"}, "seed.workday_integration_tests.workday_person_name_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_name_data"}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data"}, "seed.workday_integration_tests.workday_personal_information_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data"}, "seed.workday_integration_tests.workday_position_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_data"}, "seed.workday_integration_tests.workday_position_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data"}, "seed.workday_integration_tests.workday_position_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_organization_data"}, "seed.workday_integration_tests.workday_worker_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_history_data"}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data"}, "seed.workday_integration_tests.workday_worker_position_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data"}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data"}, "model.workday.stg_workday__job_family": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 3, "name": "effective_date", "comment": null}, "job_family_id": {"type": "text", "index": 4, "name": "job_family_id", "comment": null}, "is_inactive": {"type": "boolean", "index": 5, "name": "is_inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "job_family_summary": {"type": "text", "index": 7, "name": "job_family_summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family"}, "model.workday.stg_workday__job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_base"}, "model.workday.stg_workday__job_family_group": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 3, "name": "effective_date", "comment": null}, "job_family_group_id": {"type": "text", "index": 4, "name": "job_family_group_id", "comment": null}, "is_inactive": {"type": "boolean", "index": 5, "name": "is_inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "job_family_group_summary": {"type": "text", "index": 7, "name": "job_family_group_summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_group"}, "model.workday.stg_workday__job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_group_base"}, "model.workday.stg_workday__job_family_job_family_group": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "job_family_id": {"type": "text", "index": 3, "name": "job_family_id", "comment": null}, "job_family_group_id": {"type": "text", "index": 4, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_family_group"}, "model.workday.stg_workday__job_family_job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base"}, "model.workday.stg_workday__job_family_job_profile": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "job_family_id": {"type": "text", "index": 3, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 4, "name": "job_profile_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_profile"}, "model.workday.stg_workday__job_family_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_profile_base"}, "model.workday.stg_workday__job_profile": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 3, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 4, "name": "compensation_grade_id", "comment": null}, "is_critical_job": {"type": "boolean", "index": 5, "name": "is_critical_job", "comment": null}, "job_description": {"type": "text", "index": 6, "name": "job_description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 7, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 8, "name": "effective_date", "comment": null}, "job_profile_id": {"type": "text", "index": 9, "name": "job_profile_id", "comment": null}, "is_inactive": {"type": "boolean", "index": 10, "name": "is_inactive", "comment": null}, "is_include_job_code_in_name": {"type": "boolean", "index": 11, "name": "is_include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "is_public_job": {"type": "boolean", "index": 17, "name": "is_public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "job_summary": {"type": "text", "index": 19, "name": "job_summary", "comment": null}, "job_title": {"type": "text", "index": 20, "name": "job_title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 23, "name": "is_work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_profile"}, "model.workday.stg_workday__job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_profile_base"}, "model.workday.stg_workday__military_service": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 4, "name": "discharge_date", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "military_status": {"type": "text", "index": 10, "name": "military_status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__military_service"}, "model.workday.stg_workday__military_service_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__military_service_base"}, "model.workday.stg_workday__organization": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 3, "name": "availability_date", "comment": null}, "is_available_for_hire": {"type": "integer", "index": 4, "name": "is_available_for_hire", "comment": null}, "code": {"type": "integer", "index": 5, "name": "code", "comment": null}, "organization_description": {"type": "integer", "index": 6, "name": "organization_description", "comment": null}, "external_url": {"type": "text", "index": 7, "name": "external_url", "comment": null}, "is_hiring_freeze": {"type": "boolean", "index": 8, "name": "is_hiring_freeze", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "is_inactive": {"type": "boolean", "index": 10, "name": "is_inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "is_include_manager_in_name": {"type": "boolean", "index": 12, "name": "is_include_manager_in_name", "comment": null}, "is_include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "is_include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "organization_location": {"type": "text", "index": 15, "name": "organization_location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "organization_name": {"type": "text", "index": 17, "name": "organization_name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "organization_sub_type": {"type": "text", "index": 21, "name": "organization_sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "organization_type": {"type": "text", "index": 28, "name": "organization_type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization"}, "model.workday.stg_workday__organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_base"}, "model.workday.stg_workday__organization_job_family": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 3, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 4, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 5, "name": "organization_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_job_family"}, "model.workday.stg_workday__organization_job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_job_family_base"}, "model.workday.stg_workday__organization_role": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "organization_id": {"type": "text", "index": 3, "name": "organization_id", "comment": null}, "organization_role_code": {"type": "text", "index": 4, "name": "organization_role_code", "comment": null}, "organization_role_id": {"type": "text", "index": 5, "name": "organization_role_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role"}, "model.workday.stg_workday__organization_role_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_base"}, "model.workday.stg_workday__organization_role_worker": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "organization_worker_code": {"type": "integer", "index": 3, "name": "organization_worker_code", "comment": null}, "organization_id": {"type": "text", "index": 4, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 5, "name": "role_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_worker"}, "model.workday.stg_workday__organization_role_worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_worker_base"}, "model.workday.stg_workday__person_contact_email_address": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 4, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 5, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 6, "name": "email_comment", "comment": null}, "person_contact_email_address_id": {"type": "text", "index": 7, "name": "person_contact_email_address_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_contact_email_address"}, "model.workday.stg_workday__person_contact_email_address_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_contact_email_address_base"}, "model.workday.stg_workday__person_name": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 4, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 5, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 7, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 8, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 9, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 10, "name": "honorary_suffix", "comment": null}, "index": {"type": "integer", "index": 11, "name": "index", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 13, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 14, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 15, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 16, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 17, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 18, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 19, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 20, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 21, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 22, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 23, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 24, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 25, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 26, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 27, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 28, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 29, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 30, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 31, "name": "tertiary_last_name", "comment": null}, "person_name_type": {"type": "text", "index": 32, "name": "person_name_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_name"}, "model.workday.stg_workday__person_name_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_name_base"}, "model.workday.stg_workday__personal_information": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 4, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 5, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 6, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 7, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 8, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 9, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 10, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 11, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 12, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 13, "name": "is_hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 14, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 15, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 16, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 17, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 18, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 19, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 20, "name": "last_medical_exam_valid_to", "comment": null}, "is_local_hukou": {"type": "integer", "index": 21, "name": "is_local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 22, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 23, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 24, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 25, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 26, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 27, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 28, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 29, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 30, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 31, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 32, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 33, "name": "social_benefit", "comment": null}, "is_tobacco_use": {"type": "boolean", "index": 34, "name": "is_tobacco_use", "comment": null}, "type": {"type": "text", "index": 35, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information"}, "model.workday.stg_workday__personal_information_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_base"}, "model.workday.stg_workday__personal_information_ethnicity": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 4, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 5, "name": "ethnicity_id", "comment": null}, "index": {"type": "integer", "index": 6, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_ethnicity"}, "model.workday.stg_workday__personal_information_ethnicity_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base"}, "model.workday.stg_workday__personal_information_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_end", "comment": null}, "_fivetran_date": {"type": "date", "index": 4, "name": "_fivetran_date", "comment": null}, "history_unique_key": {"type": "text", "index": 5, "name": "history_unique_key", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 7, "name": "_fivetran_active", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 9, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 10, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 11, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 12, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 13, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 14, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 15, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 16, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 17, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 18, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 19, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 20, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 21, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 22, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 23, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 24, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 25, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 26, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 27, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 28, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 29, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 30, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 31, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 32, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 33, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 34, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 35, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 36, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 37, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 38, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 39, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 40, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_history"}, "model.workday.stg_workday__position": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "is_academic_tenure_eligible": {"type": "boolean", "index": 3, "name": "is_academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 4, "name": "availability_date", "comment": null}, "is_available_for_hire": {"type": "boolean", "index": 5, "name": "is_available_for_hire", "comment": null}, "is_available_for_overlap": {"type": "boolean", "index": 6, "name": "is_available_for_overlap", "comment": null}, "is_available_for_recruiting": {"type": "boolean", "index": 7, "name": "is_available_for_recruiting", "comment": null}, "is_closed": {"type": "boolean", "index": 8, "name": "is_closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 9, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 10, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 11, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 12, "name": "compensation_step_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 13, "name": "is_critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 14, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 15, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 16, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 17, "name": "effective_date", "comment": null}, "is_hiring_freeze": {"type": "boolean", "index": 18, "name": "is_hiring_freeze", "comment": null}, "position_id": {"type": "text", "index": 19, "name": "position_id", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 29, "name": "is_work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position"}, "model.workday.stg_workday__position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_base"}, "model.workday.stg_workday__position_job_profile": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 3, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 4, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 5, "name": "job_category_code", "comment": null}, "job_profile_id": {"type": "text", "index": 6, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 7, "name": "management_level_code", "comment": null}, "position_job_profile_name": {"type": "text", "index": 8, "name": "position_job_profile_name", "comment": null}, "position_id": {"type": "text", "index": 9, "name": "position_id", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 10, "name": "is_work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_job_profile"}, "model.workday.stg_workday__position_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_job_profile_base"}, "model.workday.stg_workday__position_organization": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "organization_id": {"type": "text", "index": 3, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 5, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_organization"}, "model.workday.stg_workday__position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_organization_base"}, "model.workday.stg_workday__worker": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 4, "name": "academic_tenure_date", "comment": null}, "is_active": {"type": "boolean", "index": 5, "name": "is_active", "comment": null}, "active_status_date": {"type": "date", "index": 6, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 7, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 8, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 9, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 10, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 11, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 12, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 13, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 14, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 15, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 16, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 17, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 18, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 19, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 20, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 21, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 22, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 23, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 24, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 25, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 26, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 27, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 28, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 29, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 30, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 31, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 32, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 33, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 34, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 35, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 36, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 37, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 38, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 39, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 40, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 41, "name": "first_day_of_work", "comment": null}, "is_has_international_assignment": {"type": "boolean", "index": 42, "name": "is_has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 43, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 44, "name": "hire_reason", "comment": null}, "is_hire_rescinded": {"type": "boolean", "index": 45, "name": "is_hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 46, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 47, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 48, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 49, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 50, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 51, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 52, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 53, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 54, "name": "months_continuous_prior_employment", "comment": null}, "is_not_returning": {"type": "boolean", "index": 55, "name": "is_not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 56, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 57, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 58, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 59, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 60, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 61, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 62, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 63, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 64, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 65, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 66, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 67, "name": "reason_reference_id", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 68, "name": "is_regrettable_termination", "comment": null}, "is_rehire": {"type": "boolean", "index": 69, "name": "is_rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 70, "name": "resignation_date", "comment": null}, "is_retired": {"type": "boolean", "index": 71, "name": "is_retired", "comment": null}, "retirement_date": {"type": "integer", "index": 72, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 73, "name": "retirement_eligibility_date", "comment": null}, "is_return_unknown": {"type": "boolean", "index": 74, "name": "is_return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 75, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 76, "name": "severance_date", "comment": null}, "is_terminated": {"type": "boolean", "index": 77, "name": "is_terminated", "comment": null}, "termination_date": {"type": "date", "index": 78, "name": "termination_date", "comment": null}, "is_termination_involuntary": {"type": "boolean", "index": 79, "name": "is_termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 80, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 81, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 82, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 83, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 84, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 85, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker"}, "model.workday.stg_workday__worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_base"}, "model.workday.stg_workday__worker_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_end", "comment": null}, "_fivetran_date": {"type": "date", "index": 4, "name": "_fivetran_date", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 5, "name": "end_employment_date", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 6, "name": "termination_date", "comment": null}, "history_unique_key": {"type": "text", "index": 7, "name": "history_unique_key", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 8, "name": "_fivetran_active", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 10, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 11, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 12, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 13, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 14, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 15, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 16, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 17, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 18, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 19, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 20, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 22, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 23, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 24, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 25, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 26, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 27, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 28, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 29, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 30, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 31, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 32, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 33, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 34, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 35, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 36, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 37, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 38, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 39, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 40, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 41, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 42, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 43, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 44, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 45, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 46, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 47, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 48, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 49, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 50, "name": "hire_rescinded", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 51, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 52, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 53, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 54, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 55, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 56, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 57, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 58, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 59, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 60, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 61, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 62, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 63, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 64, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 65, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 66, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 67, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 68, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 69, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 70, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 71, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 72, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 73, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 74, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 75, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 76, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 77, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 78, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 79, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 80, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 81, "name": "terminated", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 82, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 83, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 84, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 85, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 86, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 87, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 88, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_history"}, "model.workday.stg_workday__worker_leave_status": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 3, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 4, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 5, "name": "age_of_dependent", "comment": null}, "is_benefits_effect": {"type": "boolean", "index": 6, "name": "is_benefits_effect", "comment": null}, "child_birth_date": {"type": "date", "index": 7, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 8, "name": "child_sdate_of_death", "comment": null}, "is_continuous_service_accrual_effect": {"type": "boolean", "index": 9, "name": "is_continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 10, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 11, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 12, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 14, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 15, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 16, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 17, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 18, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 19, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 20, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 21, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 22, "name": "leave_percentage", "comment": null}, "leave_request_event_id": {"type": "text", "index": 23, "name": "leave_request_event_id", "comment": null}, "leave_return_event": {"type": "integer", "index": 24, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 25, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 26, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 27, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 28, "name": "location_during_leave", "comment": null}, "is_multiple_child_indicator": {"type": "integer", "index": 29, "name": "is_multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 30, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 31, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 32, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 33, "name": "number_of_previous_maternity_leaves", "comment": null}, "is_on_leave": {"type": "boolean", "index": 34, "name": "is_on_leave", "comment": null}, "is_paid_time_off_accrual_effect": {"type": "boolean", "index": 35, "name": "is_paid_time_off_accrual_effect", "comment": null}, "is_payroll_effect": {"type": "boolean", "index": 36, "name": "is_payroll_effect", "comment": null}, "is_single_parent_indicator": {"type": "integer", "index": 37, "name": "is_single_parent_indicator", "comment": null}, "is_caesarean_section_birth": {"type": "integer", "index": 38, "name": "is_caesarean_section_birth", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 39, "name": "social_security_disability_code", "comment": null}, "is_stock_vesting_effect": {"type": "boolean", "index": 40, "name": "is_stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 41, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 42, "name": "week_of_confinement", "comment": null}, "is_work_related": {"type": "integer", "index": 43, "name": "is_work_related", "comment": null}, "worker_id": {"type": "text", "index": 44, "name": "worker_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_leave_status"}, "model.workday.stg_workday__worker_leave_status_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_leave_status_base"}, "model.workday.stg_workday__worker_position": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 3, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 4, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 5, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 6, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 8, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 9, "name": "business_site_summary_local", "comment": null}, "position_location": {"type": "text", "index": 10, "name": "position_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 11, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 12, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 13, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 14, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 15, "name": "business_title", "comment": null}, "is_critical_job": {"type": "boolean", "index": 16, "name": "is_critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 17, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 18, "name": "difficulty_to_fill", "comment": null}, "position_effective_date": {"type": "date", "index": 19, "name": "position_effective_date", "comment": null}, "employee_type": {"type": "text", "index": 20, "name": "employee_type", "comment": null}, "position_end_date": {"type": "date", "index": 21, "name": "position_end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 22, "name": "end_employment_date", "comment": null}, "is_exclude_from_head_count": {"type": "boolean", "index": 23, "name": "is_exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 24, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 25, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 26, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 27, "name": "frequency", "comment": null}, "fte_percent": {"type": "integer", "index": 28, "name": "fte_percent", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 29, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 30, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 31, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 32, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 33, "name": "is_primary_job", "comment": null}, "is_job_exempt": {"type": "boolean", "index": 34, "name": "is_job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 35, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 36, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 37, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 38, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 39, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 40, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 41, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 42, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 43, "name": "payroll_file_number", "comment": null}, "position_id": {"type": "text", "index": 44, "name": "position_id", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 45, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 46, "name": "scheduled_weekly_hours", "comment": null}, "is_specify_paid_fte": {"type": "boolean", "index": 47, "name": "is_specify_paid_fte", "comment": null}, "is_specify_working_fte": {"type": "boolean", "index": 48, "name": "is_specify_working_fte", "comment": null}, "position_start_date": {"type": "date", "index": 49, "name": "position_start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 50, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 51, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 52, "name": "work_shift", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 53, "name": "is_work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 54, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 55, "name": "worker_hours_profile_classification", "comment": null}, "worker_id": {"type": "text", "index": 56, "name": "worker_id", "comment": null}, "working_fte": {"type": "double precision", "index": 57, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 58, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 59, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 60, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position"}, "model.workday.stg_workday__worker_position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_base"}, "model.workday.stg_workday__worker_position_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_date": {"type": "date", "index": 5, "name": "_fivetran_date", "comment": null}, "effective_date": {"type": "timestamp without time zone", "index": 6, "name": "effective_date", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 7, "name": "end_employment_date", "comment": null}, "history_unique_key": {"type": "text", "index": 8, "name": "history_unique_key", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 9, "name": "_fivetran_active", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 12, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 13, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 14, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 15, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 16, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 17, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 18, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 19, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 20, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 21, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 22, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 23, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 24, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 25, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 26, "name": "difficulty_to_fill", "comment": null}, "employee_type": {"type": "text", "index": 27, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 28, "name": "end_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 29, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 30, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 31, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 32, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 33, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 34, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 35, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 36, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 37, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 38, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 39, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 40, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 41, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 42, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 43, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 44, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 45, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 46, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 47, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 48, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 49, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 50, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 51, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 52, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 53, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 54, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 55, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 56, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 57, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 58, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 59, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 60, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 61, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 62, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 63, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_history"}, "model.workday.stg_workday__worker_position_organization": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 6, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 7, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 8, "name": "primary_business_site", "comment": null}, "is_used_in_change_organization_assignments": {"type": "boolean", "index": 9, "name": "is_used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_organization"}, "model.workday.stg_workday__worker_position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_organization_base"}, "model.workday.stg_workday__worker_position_organization_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "organization_id": {"type": "text", "index": 3, "name": "organization_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_date": {"type": "date", "index": 6, "name": "_fivetran_date", "comment": null}, "history_unique_key": {"type": "text", "index": 7, "name": "history_unique_key", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 9, "name": "_fivetran_active", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 11, "name": "date_of_pay_group_assignment", "comment": null}, "primary_business_site": {"type": "integer", "index": 12, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 13, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_organization_history"}, "model.workday.int_workday__employee_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_id": {"type": "text", "index": 1, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 2, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "wh_active": {"type": "boolean", "index": 7, "name": "wh_active", "comment": null}, "wph_active": {"type": "boolean", "index": 8, "name": "wph_active", "comment": null}, "wh_end_employment_date": {"type": "timestamp without time zone", "index": 9, "name": "wh_end_employment_date", "comment": null}, "wph_end_employment_date": {"type": "timestamp without time zone", "index": 10, "name": "wph_end_employment_date", "comment": null}, "wh_pay_through_date": {"type": "date", "index": 11, "name": "wh_pay_through_date", "comment": null}, "wph_pay_through_date": {"type": "date", "index": 12, "name": "wph_pay_through_date", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 13, "name": "termination_date", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 14, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 15, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 16, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 17, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 18, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 19, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 20, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 22, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 23, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 24, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 25, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 26, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 27, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 28, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 29, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 30, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 31, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 32, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 33, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 34, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 35, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 36, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 37, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 38, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 39, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 40, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 41, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 42, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 43, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 44, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 45, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 46, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 47, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 48, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 49, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 50, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 51, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 52, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 53, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 54, "name": "hire_rescinded", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 55, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 56, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 57, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 58, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 59, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 60, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 61, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 62, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 63, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 64, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 65, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 66, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 67, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 68, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 69, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "primary_termination_category": {"type": "text", "index": 70, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 71, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 72, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 73, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 74, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 75, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 76, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 77, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 78, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 79, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 80, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 81, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 82, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 83, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 84, "name": "terminated", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 85, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 86, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 87, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 88, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 89, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 90, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 91, "name": "worker_code", "comment": null}, "effective_date": {"type": "timestamp without time zone", "index": 92, "name": "effective_date", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 93, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 94, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 95, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 96, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 97, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 98, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 99, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 100, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 101, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 102, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 103, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 104, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 105, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 106, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 107, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 108, "name": "difficulty_to_fill", "comment": null}, "employee_type": {"type": "text", "index": 109, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 110, "name": "end_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 111, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 112, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 113, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 114, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 115, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 116, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 117, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 118, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 119, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 120, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 121, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 122, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 123, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 124, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 125, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 126, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 127, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 128, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 129, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 130, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 131, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 132, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 133, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 134, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 135, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 136, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 137, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 138, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 139, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 140, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 141, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 142, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 143, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 144, "name": "working_time_value", "comment": null}, "type": {"type": "text", "index": 145, "name": "type", "comment": null}, "additional_nationality": {"type": "integer", "index": 146, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 147, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 148, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 149, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 150, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 151, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 152, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 153, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 154, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 155, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 156, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 157, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 158, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 159, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 160, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 161, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 162, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 163, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 164, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 165, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 166, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 167, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 168, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 169, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 170, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 171, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 172, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 173, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 174, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 175, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 176, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 177, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__employee_history"}, "model.workday.int_workday__personal_details": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "int_workday__personal_details", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "date_of_birth": {"type": "date", "index": 3, "name": "date_of_birth", "comment": null}, "gender": {"type": "text", "index": 4, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 5, "name": "is_hispanic_or_latino", "comment": null}, "first_name": {"type": "text", "index": 6, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 7, "name": "last_name", "comment": null}, "email_address": {"type": "text", "index": 8, "name": "email_address", "comment": null}, "ethnicity_codes": {"type": "text", "index": 9, "name": "ethnicity_codes", "comment": null}, "military_status": {"type": "text", "index": 10, "name": "military_status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__personal_details"}, "model.workday.int_workday__worker_details": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_details", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "worker_code": {"type": "integer", "index": 3, "name": "worker_code", "comment": null}, "user_id": {"type": "text", "index": 4, "name": "user_id", "comment": null}, "universal_id": {"type": "integer", "index": 5, "name": "universal_id", "comment": null}, "is_user_active": {"type": "boolean", "index": 6, "name": "is_user_active", "comment": null}, "is_employed": {"type": "boolean", "index": 7, "name": "is_employed", "comment": null}, "hire_date": {"type": "date", "index": 8, "name": "hire_date", "comment": null}, "departure_date": {"type": "date", "index": 9, "name": "departure_date", "comment": null}, "days_of_employment": {"type": "integer", "index": 10, "name": "days_of_employment", "comment": null}, "is_terminated": {"type": "boolean", "index": 11, "name": "is_terminated", "comment": null}, "primary_termination_category": {"type": "text", "index": 12, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 13, "name": "primary_termination_reason", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 14, "name": "is_regrettable_termination", "comment": null}, "compensation_effective_date": {"type": "date", "index": 15, "name": "compensation_effective_date", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 16, "name": "employee_compensation_frequency", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 17, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 19, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_summary_currency": {"type": "text", "index": 20, "name": "annual_summary_currency", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_summary_primary_compensation_basis", "comment": null}, "compensation_grade_id": {"type": "text", "index": 23, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 24, "name": "compensation_grade_profile_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__worker_details"}, "model.workday.int_workday__worker_employee_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_employee_enhanced", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "worker_code": {"type": "integer", "index": 3, "name": "worker_code", "comment": null}, "user_id": {"type": "text", "index": 4, "name": "user_id", "comment": null}, "universal_id": {"type": "integer", "index": 5, "name": "universal_id", "comment": null}, "is_user_active": {"type": "boolean", "index": 6, "name": "is_user_active", "comment": null}, "is_employed": {"type": "boolean", "index": 7, "name": "is_employed", "comment": null}, "hire_date": {"type": "date", "index": 8, "name": "hire_date", "comment": null}, "departure_date": {"type": "date", "index": 9, "name": "departure_date", "comment": null}, "days_of_employment": {"type": "integer", "index": 10, "name": "days_of_employment", "comment": null}, "is_terminated": {"type": "boolean", "index": 11, "name": "is_terminated", "comment": null}, "primary_termination_category": {"type": "text", "index": 12, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 13, "name": "primary_termination_reason", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 14, "name": "is_regrettable_termination", "comment": null}, "compensation_effective_date": {"type": "date", "index": 15, "name": "compensation_effective_date", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 16, "name": "employee_compensation_frequency", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 17, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 19, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_summary_currency": {"type": "text", "index": 20, "name": "annual_summary_currency", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_summary_primary_compensation_basis", "comment": null}, "compensation_grade_id": {"type": "text", "index": 23, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 24, "name": "compensation_grade_profile_id", "comment": null}, "first_name": {"type": "text", "index": 25, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 26, "name": "last_name", "comment": null}, "date_of_birth": {"type": "date", "index": 27, "name": "date_of_birth", "comment": null}, "gender": {"type": "text", "index": 28, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 29, "name": "is_hispanic_or_latino", "comment": null}, "email_address": {"type": "text", "index": 30, "name": "email_address", "comment": null}, "ethnicity_codes": {"type": "text", "index": 31, "name": "ethnicity_codes", "comment": null}, "military_status": {"type": "text", "index": 32, "name": "military_status", "comment": null}, "position_id": {"type": "text", "index": 33, "name": "position_id", "comment": null}, "business_title": {"type": "text", "index": 34, "name": "business_title", "comment": null}, "job_profile_id": {"type": "text", "index": 35, "name": "job_profile_id", "comment": null}, "employee_type": {"type": "text", "index": 36, "name": "employee_type", "comment": null}, "position_location": {"type": "text", "index": 37, "name": "position_location", "comment": null}, "management_level_code": {"type": "text", "index": 38, "name": "management_level_code", "comment": null}, "fte_percent": {"type": "integer", "index": 39, "name": "fte_percent", "comment": null}, "days_at_position": {"type": "integer", "index": 40, "name": "days_at_position", "comment": null}, "position_start_date": {"type": "date", "index": 41, "name": "position_start_date", "comment": null}, "position_end_date": {"type": "date", "index": 42, "name": "position_end_date", "comment": null}, "position_effective_date": {"type": "date", "index": 43, "name": "position_effective_date", "comment": null}, "worker_positions": {"type": "bigint", "index": 44, "name": "worker_positions", "comment": null}, "worker_levels": {"type": "bigint", "index": 45, "name": "worker_levels", "comment": null}, "position_days": {"type": "bigint", "index": 46, "name": "position_days", "comment": null}, "is_employed_one_year": {"type": "boolean", "index": 47, "name": "is_employed_one_year", "comment": null}, "is_employed_five_years": {"type": "boolean", "index": 48, "name": "is_employed_five_years", "comment": null}, "is_employed_ten_years": {"type": "boolean", "index": 49, "name": "is_employed_ten_years", "comment": null}, "is_employed_twenty_years": {"type": "boolean", "index": 50, "name": "is_employed_twenty_years", "comment": null}, "is_employed_thirty_years": {"type": "boolean", "index": 51, "name": "is_employed_thirty_years", "comment": null}, "is_current_employee_one_year": {"type": "boolean", "index": 52, "name": "is_current_employee_one_year", "comment": null}, "is_current_employee_five_years": {"type": "boolean", "index": 53, "name": "is_current_employee_five_years", "comment": null}, "is_current_employee_ten_years": {"type": "boolean", "index": 54, "name": "is_current_employee_ten_years", "comment": null}, "is_current_employee_twenty_years": {"type": "boolean", "index": 55, "name": "is_current_employee_twenty_years", "comment": null}, "is_current_employee_thirty_years": {"type": "boolean", "index": 56, "name": "is_current_employee_thirty_years", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__worker_employee_enhanced"}, "model.workday.int_workday__worker_position_enriched": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_position_enriched", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_id": {"type": "text", "index": 1, "name": "employee_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "business_title": {"type": "text", "index": 5, "name": "business_title", "comment": null}, "job_profile_id": {"type": "text", "index": 6, "name": "job_profile_id", "comment": null}, "employee_type": {"type": "text", "index": 7, "name": "employee_type", "comment": null}, "position_location": {"type": "text", "index": 8, "name": "position_location", "comment": null}, "management_level_code": {"type": "text", "index": 9, "name": "management_level_code", "comment": null}, "fte_percent": {"type": "integer", "index": 10, "name": "fte_percent", "comment": null}, "days_at_position": {"type": "integer", "index": 11, "name": "days_at_position", "comment": null}, "position_start_date": {"type": "date", "index": 12, "name": "position_start_date", "comment": null}, "position_end_date": {"type": "date", "index": 13, "name": "position_end_date", "comment": null}, "position_effective_date": {"type": "date", "index": 14, "name": "position_effective_date", "comment": null}, "worker_positions": {"type": "bigint", "index": 15, "name": "worker_positions", "comment": null}, "worker_levels": {"type": "bigint", "index": 16, "name": "worker_levels", "comment": null}, "position_days": {"type": "bigint", "index": 17, "name": "position_days", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__worker_position_enriched"}, "model.workday.workday__employee_daily_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_day_id": {"type": "text", "index": 1, "name": "employee_day_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "employee_id": {"type": "text", "index": 3, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 4, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 5, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 6, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_end", "comment": null}, "wh_active": {"type": "boolean", "index": 9, "name": "wh_active", "comment": null}, "wph_active": {"type": "boolean", "index": 10, "name": "wph_active", "comment": null}, "wh_end_employment_date": {"type": "timestamp without time zone", "index": 11, "name": "wh_end_employment_date", "comment": null}, "wph_end_employment_date": {"type": "timestamp without time zone", "index": 12, "name": "wph_end_employment_date", "comment": null}, "wh_pay_through_date": {"type": "date", "index": 13, "name": "wh_pay_through_date", "comment": null}, "wph_pay_through_date": {"type": "date", "index": 14, "name": "wph_pay_through_date", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 15, "name": "termination_date", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 16, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 17, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 18, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 19, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 20, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 21, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 22, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 23, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 24, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 25, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 26, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 27, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 28, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 29, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 30, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 31, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 32, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 33, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 34, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 35, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 36, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 37, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 38, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 39, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 40, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 41, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 42, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 43, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 44, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 45, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 46, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 47, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 48, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 49, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 50, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 51, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 52, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 53, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 54, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 55, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 56, "name": "hire_rescinded", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 57, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 58, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 59, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 60, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 61, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 62, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 63, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 64, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 65, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 66, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 67, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 68, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 69, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 70, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 71, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "primary_termination_category": {"type": "text", "index": 72, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 73, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 74, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 75, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 76, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 77, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 78, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 79, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 80, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 81, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 82, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 83, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 84, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 85, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 86, "name": "terminated", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 87, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 88, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 89, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 90, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 91, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 92, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 93, "name": "worker_code", "comment": null}, "effective_date": {"type": "timestamp without time zone", "index": 94, "name": "effective_date", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 95, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 96, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 97, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 98, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 99, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 100, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 101, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 102, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 103, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 104, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 105, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 106, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 107, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 108, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 109, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 110, "name": "difficulty_to_fill", "comment": null}, "employee_type": {"type": "text", "index": 111, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 112, "name": "end_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 113, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 114, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 115, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 116, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 117, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 118, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 119, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 120, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 121, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 122, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 123, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 124, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 125, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 126, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 127, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 128, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 129, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 130, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 131, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 132, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 133, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 134, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 135, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 136, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 137, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 138, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 139, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 140, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 141, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 142, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 143, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 144, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 145, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 146, "name": "working_time_value", "comment": null}, "type": {"type": "text", "index": 147, "name": "type", "comment": null}, "additional_nationality": {"type": "integer", "index": 148, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 149, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 150, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 151, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 152, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 153, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 154, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 155, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 156, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 157, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 158, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 159, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 160, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 161, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 162, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 163, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 164, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 165, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 166, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 167, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 168, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 169, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 170, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 171, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 172, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 173, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 174, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 175, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 176, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 177, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 178, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 179, "name": "ll", "comment": null}, "row_num": {"type": "bigint", "index": 180, "name": "row_num", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_daily_history"}, "model.workday.workday__employee_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_id": {"type": "text", "index": 1, "name": "employee_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "position_start_date": {"type": "date", "index": 4, "name": "position_start_date", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "worker_code": {"type": "integer", "index": 6, "name": "worker_code", "comment": null}, "user_id": {"type": "text", "index": 7, "name": "user_id", "comment": null}, "universal_id": {"type": "integer", "index": 8, "name": "universal_id", "comment": null}, "is_user_active": {"type": "boolean", "index": 9, "name": "is_user_active", "comment": null}, "is_employed": {"type": "boolean", "index": 10, "name": "is_employed", "comment": null}, "hire_date": {"type": "date", "index": 11, "name": "hire_date", "comment": null}, "departure_date": {"type": "date", "index": 12, "name": "departure_date", "comment": null}, "days_of_employment": {"type": "integer", "index": 13, "name": "days_of_employment", "comment": null}, "is_terminated": {"type": "boolean", "index": 14, "name": "is_terminated", "comment": null}, "primary_termination_category": {"type": "text", "index": 15, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 16, "name": "primary_termination_reason", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 17, "name": "is_regrettable_termination", "comment": null}, "compensation_effective_date": {"type": "date", "index": 18, "name": "compensation_effective_date", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 19, "name": "employee_compensation_frequency", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 20, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_summary_currency": {"type": "text", "index": 23, "name": "annual_summary_currency", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 24, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 25, "name": "annual_summary_primary_compensation_basis", "comment": null}, "compensation_grade_id": {"type": "text", "index": 26, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 27, "name": "compensation_grade_profile_id", "comment": null}, "first_name": {"type": "text", "index": 28, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 29, "name": "last_name", "comment": null}, "date_of_birth": {"type": "date", "index": 30, "name": "date_of_birth", "comment": null}, "gender": {"type": "text", "index": 31, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 32, "name": "is_hispanic_or_latino", "comment": null}, "email_address": {"type": "text", "index": 33, "name": "email_address", "comment": null}, "ethnicity_codes": {"type": "text", "index": 34, "name": "ethnicity_codes", "comment": null}, "military_status": {"type": "text", "index": 35, "name": "military_status", "comment": null}, "business_title": {"type": "text", "index": 36, "name": "business_title", "comment": null}, "job_profile_id": {"type": "text", "index": 37, "name": "job_profile_id", "comment": null}, "employee_type": {"type": "text", "index": 38, "name": "employee_type", "comment": null}, "position_location": {"type": "text", "index": 39, "name": "position_location", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "fte_percent": {"type": "integer", "index": 41, "name": "fte_percent", "comment": null}, "days_at_position": {"type": "integer", "index": 42, "name": "days_at_position", "comment": null}, "position_end_date": {"type": "date", "index": 43, "name": "position_end_date", "comment": null}, "position_effective_date": {"type": "date", "index": 44, "name": "position_effective_date", "comment": null}, "worker_positions": {"type": "bigint", "index": 45, "name": "worker_positions", "comment": null}, "worker_levels": {"type": "bigint", "index": 46, "name": "worker_levels", "comment": null}, "position_days": {"type": "bigint", "index": 47, "name": "position_days", "comment": null}, "is_employed_one_year": {"type": "boolean", "index": 48, "name": "is_employed_one_year", "comment": null}, "is_employed_five_years": {"type": "boolean", "index": 49, "name": "is_employed_five_years", "comment": null}, "is_employed_ten_years": {"type": "boolean", "index": 50, "name": "is_employed_ten_years", "comment": null}, "is_employed_twenty_years": {"type": "boolean", "index": 51, "name": "is_employed_twenty_years", "comment": null}, "is_employed_thirty_years": {"type": "boolean", "index": 52, "name": "is_employed_thirty_years", "comment": null}, "is_current_employee_one_year": {"type": "boolean", "index": 53, "name": "is_current_employee_one_year", "comment": null}, "is_current_employee_five_years": {"type": "boolean", "index": 54, "name": "is_current_employee_five_years", "comment": null}, "is_current_employee_ten_years": {"type": "boolean", "index": 55, "name": "is_current_employee_ten_years", "comment": null}, "is_current_employee_twenty_years": {"type": "boolean", "index": 56, "name": "is_current_employee_twenty_years", "comment": null}, "is_current_employee_thirty_years": {"type": "boolean", "index": 57, "name": "is_current_employee_thirty_years", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_overview"}, "model.workday.workday__job_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "job_profile_code": {"type": "text", "index": 3, "name": "job_profile_code", "comment": null}, "job_title": {"type": "text", "index": 4, "name": "job_title", "comment": null}, "private_title": {"type": "integer", "index": 5, "name": "private_title", "comment": null}, "job_summary": {"type": "text", "index": 6, "name": "job_summary", "comment": null}, "job_description": {"type": "text", "index": 7, "name": "job_description", "comment": null}, "job_family_codes": {"type": "text", "index": 8, "name": "job_family_codes", "comment": null}, "job_family_summaries": {"type": "text", "index": 9, "name": "job_family_summaries", "comment": null}, "job_family_group_codes": {"type": "text", "index": 10, "name": "job_family_group_codes", "comment": null}, "job_family_group_summaries": {"type": "text", "index": 11, "name": "job_family_group_summaries", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__job_overview"}, "model.workday.workday__monthly_summary": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"date_month": {"type": "timestamp with time zone", "index": 1, "name": "date_month", "comment": null}, "new_employees": {"type": "bigint", "index": 2, "name": "new_employees", "comment": null}, "churned_employees": {"type": "bigint", "index": 3, "name": "churned_employees", "comment": null}, "churned_workers": {"type": "bigint", "index": 4, "name": "churned_workers", "comment": null}, "active_employees": {"type": "bigint", "index": 5, "name": "active_employees", "comment": null}, "active_male_employees": {"type": "bigint", "index": 6, "name": "active_male_employees", "comment": null}, "active_female_employees": {"type": "bigint", "index": 7, "name": "active_female_employees", "comment": null}, "active_known_gender_employees": {"type": "bigint", "index": 8, "name": "active_known_gender_employees", "comment": null}, "active_workers": {"type": "bigint", "index": 9, "name": "active_workers", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__monthly_summary"}, "model.workday.workday__organization_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "organization_role_id": {"type": "text", "index": 2, "name": "organization_role_id", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "organization_code": {"type": "text", "index": 6, "name": "organization_code", "comment": null}, "organization_name": {"type": "text", "index": 7, "name": "organization_name", "comment": null}, "organization_type": {"type": "text", "index": 8, "name": "organization_type", "comment": null}, "organization_sub_type": {"type": "text", "index": 9, "name": "organization_sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 10, "name": "superior_organization_id", "comment": null}, "top_level_organization_id": {"type": "text", "index": 11, "name": "top_level_organization_id", "comment": null}, "manager_id": {"type": "text", "index": 12, "name": "manager_id", "comment": null}, "organization_role_code": {"type": "text", "index": 13, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__organization_overview"}, "model.workday.workday__position_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "position_code": {"type": "text", "index": 3, "name": "position_code", "comment": null}, "job_posting_title": {"type": "text", "index": 4, "name": "job_posting_title", "comment": null}, "effective_date": {"type": "date", "index": 5, "name": "effective_date", "comment": null}, "is_closed": {"type": "boolean", "index": 6, "name": "is_closed", "comment": null}, "is_hiring_freeze": {"type": "boolean", "index": 7, "name": "is_hiring_freeze", "comment": null}, "is_available_for_hire": {"type": "boolean", "index": 8, "name": "is_available_for_hire", "comment": null}, "availability_date": {"type": "date", "index": 9, "name": "availability_date", "comment": null}, "is_available_for_recruiting": {"type": "boolean", "index": 10, "name": "is_available_for_recruiting", "comment": null}, "earliest_hire_date": {"type": "date", "index": 11, "name": "earliest_hire_date", "comment": null}, "is_available_for_overlap": {"type": "boolean", "index": 12, "name": "is_available_for_overlap", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 13, "name": "earliest_overlap_date", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 14, "name": "worker_for_filled_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 15, "name": "worker_type_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 16, "name": "position_time_type_code", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 17, "name": "supervisory_organization_id", "comment": null}, "job_profile_id": {"type": "text", "index": 18, "name": "job_profile_id", "comment": null}, "compensation_package_code": {"type": "integer", "index": 19, "name": "compensation_package_code", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 20, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 21, "name": "compensation_grade_profile_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__position_overview"}}, "sources": {"source.workday.workday.job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family"}, "source.workday.workday.job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_group"}, "source.workday.workday.job_family_job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_family_group"}, "source.workday.workday.job_family_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_profile"}, "source.workday.workday.job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_profile"}, "source.workday.workday.military_service": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.military_service"}, "source.workday.workday.organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization"}, "source.workday.workday.organization_job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_job_family"}, "source.workday.workday.organization_role": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role"}, "source.workday.workday.organization_role_worker": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role_worker"}, "source.workday.workday.person_contact_email_address": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_contact_email_address"}, "source.workday.workday.person_name": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_name"}, "source.workday.workday.personal_information_ethnicity": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_ethnicity"}, "source.workday.workday.personal_information_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_history"}, "source.workday.workday.position": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position"}, "source.workday.workday.position_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_job_profile"}, "source.workday.workday.position_organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_organization"}, "source.workday.workday.worker_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_history"}, "source.workday.workday.worker_leave_status": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_leave_status"}, "source.workday.workday.worker_position_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_history"}, "source.workday.workday.worker_position_organization_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_organization_history"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.7.8", "generated_at": "2024-03-20T19:22:58.240569Z", "invocation_id": "0a684f85-6d1d-433c-bf8d-1857c8ad075a", "env": {}}, "nodes": {"seed.workday_integration_tests.workday_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_data"}, "seed.workday_integration_tests.workday_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data"}, "seed.workday_integration_tests.workday_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_profile_data"}, "seed.workday_integration_tests.workday_military_service_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_military_service_data"}, "seed.workday_integration_tests.workday_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_data"}, "seed.workday_integration_tests.workday_organization_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data"}, "seed.workday_integration_tests.workday_organization_role_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_data"}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data"}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data"}, "seed.workday_integration_tests.workday_person_name_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_name_data"}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data"}, "seed.workday_integration_tests.workday_personal_information_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data"}, "seed.workday_integration_tests.workday_position_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_data"}, "seed.workday_integration_tests.workday_position_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data"}, "seed.workday_integration_tests.workday_position_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_organization_data"}, "seed.workday_integration_tests.workday_worker_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_history_data"}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data"}, "seed.workday_integration_tests.workday_worker_position_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data"}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data"}, "model.workday.stg_workday__job_family": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 3, "name": "effective_date", "comment": null}, "job_family_id": {"type": "text", "index": 4, "name": "job_family_id", "comment": null}, "is_inactive": {"type": "boolean", "index": 5, "name": "is_inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "job_family_summary": {"type": "text", "index": 7, "name": "job_family_summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family"}, "model.workday.stg_workday__job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_base"}, "model.workday.stg_workday__job_family_group": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 3, "name": "effective_date", "comment": null}, "job_family_group_id": {"type": "text", "index": 4, "name": "job_family_group_id", "comment": null}, "is_inactive": {"type": "boolean", "index": 5, "name": "is_inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "job_family_group_summary": {"type": "text", "index": 7, "name": "job_family_group_summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_group"}, "model.workday.stg_workday__job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_group_base"}, "model.workday.stg_workday__job_family_job_family_group": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "job_family_id": {"type": "text", "index": 3, "name": "job_family_id", "comment": null}, "job_family_group_id": {"type": "text", "index": 4, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_family_group"}, "model.workday.stg_workday__job_family_job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base"}, "model.workday.stg_workday__job_family_job_profile": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "job_family_id": {"type": "text", "index": 3, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 4, "name": "job_profile_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_profile"}, "model.workday.stg_workday__job_family_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_profile_base"}, "model.workday.stg_workday__job_profile": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 3, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 4, "name": "compensation_grade_id", "comment": null}, "is_critical_job": {"type": "boolean", "index": 5, "name": "is_critical_job", "comment": null}, "job_description": {"type": "text", "index": 6, "name": "job_description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 7, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 8, "name": "effective_date", "comment": null}, "job_profile_id": {"type": "text", "index": 9, "name": "job_profile_id", "comment": null}, "is_inactive": {"type": "boolean", "index": 10, "name": "is_inactive", "comment": null}, "is_include_job_code_in_name": {"type": "boolean", "index": 11, "name": "is_include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "is_public_job": {"type": "boolean", "index": 17, "name": "is_public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "job_summary": {"type": "text", "index": 19, "name": "job_summary", "comment": null}, "job_title": {"type": "text", "index": 20, "name": "job_title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 23, "name": "is_work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_profile"}, "model.workday.stg_workday__job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_profile_base"}, "model.workday.stg_workday__military_service": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 4, "name": "discharge_date", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "military_status": {"type": "text", "index": 10, "name": "military_status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__military_service"}, "model.workday.stg_workday__military_service_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__military_service_base"}, "model.workday.stg_workday__organization": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 3, "name": "availability_date", "comment": null}, "is_available_for_hire": {"type": "integer", "index": 4, "name": "is_available_for_hire", "comment": null}, "code": {"type": "integer", "index": 5, "name": "code", "comment": null}, "organization_description": {"type": "integer", "index": 6, "name": "organization_description", "comment": null}, "external_url": {"type": "text", "index": 7, "name": "external_url", "comment": null}, "is_hiring_freeze": {"type": "boolean", "index": 8, "name": "is_hiring_freeze", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "is_inactive": {"type": "boolean", "index": 10, "name": "is_inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "is_include_manager_in_name": {"type": "boolean", "index": 12, "name": "is_include_manager_in_name", "comment": null}, "is_include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "is_include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "organization_location": {"type": "text", "index": 15, "name": "organization_location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "organization_name": {"type": "text", "index": 17, "name": "organization_name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "organization_sub_type": {"type": "text", "index": 21, "name": "organization_sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "organization_type": {"type": "text", "index": 28, "name": "organization_type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization"}, "model.workday.stg_workday__organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_base"}, "model.workday.stg_workday__organization_job_family": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 3, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 4, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 5, "name": "organization_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_job_family"}, "model.workday.stg_workday__organization_job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_job_family_base"}, "model.workday.stg_workday__organization_role": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "organization_id": {"type": "text", "index": 3, "name": "organization_id", "comment": null}, "organization_role_code": {"type": "text", "index": 4, "name": "organization_role_code", "comment": null}, "organization_role_id": {"type": "text", "index": 5, "name": "organization_role_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role"}, "model.workday.stg_workday__organization_role_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_base"}, "model.workday.stg_workday__organization_role_worker": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "organization_worker_code": {"type": "integer", "index": 3, "name": "organization_worker_code", "comment": null}, "organization_id": {"type": "text", "index": 4, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 5, "name": "role_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_worker"}, "model.workday.stg_workday__organization_role_worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_worker_base"}, "model.workday.stg_workday__person_contact_email_address": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 4, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 5, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 6, "name": "email_comment", "comment": null}, "person_contact_email_address_id": {"type": "text", "index": 7, "name": "person_contact_email_address_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_contact_email_address"}, "model.workday.stg_workday__person_contact_email_address_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_contact_email_address_base"}, "model.workday.stg_workday__person_name": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 4, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 5, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 7, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 8, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 9, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 10, "name": "honorary_suffix", "comment": null}, "index": {"type": "integer", "index": 11, "name": "index", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 13, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 14, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 15, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 16, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 17, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 18, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 19, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 20, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 21, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 22, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 23, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 24, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 25, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 26, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 27, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 28, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 29, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 30, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 31, "name": "tertiary_last_name", "comment": null}, "person_name_type": {"type": "text", "index": 32, "name": "person_name_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_name"}, "model.workday.stg_workday__person_name_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_name_base"}, "model.workday.stg_workday__personal_information": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 4, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 5, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 6, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 7, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 8, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 9, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 10, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 11, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 12, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 13, "name": "is_hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 14, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 15, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 16, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 17, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 18, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 19, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 20, "name": "last_medical_exam_valid_to", "comment": null}, "is_local_hukou": {"type": "integer", "index": 21, "name": "is_local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 22, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 23, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 24, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 25, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 26, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 27, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 28, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 29, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 30, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 31, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 32, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 33, "name": "social_benefit", "comment": null}, "is_tobacco_use": {"type": "boolean", "index": 34, "name": "is_tobacco_use", "comment": null}, "type": {"type": "text", "index": 35, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information"}, "model.workday.stg_workday__personal_information_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_base"}, "model.workday.stg_workday__personal_information_ethnicity": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 4, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 5, "name": "ethnicity_id", "comment": null}, "index": {"type": "integer", "index": 6, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_ethnicity"}, "model.workday.stg_workday__personal_information_ethnicity_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base"}, "model.workday.stg_workday__personal_information_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_end", "comment": null}, "_fivetran_date": {"type": "date", "index": 4, "name": "_fivetran_date", "comment": null}, "history_unique_key": {"type": "text", "index": 5, "name": "history_unique_key", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 7, "name": "_fivetran_active", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 9, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 10, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 11, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 12, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 13, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 14, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 15, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 16, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 17, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 18, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 19, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 20, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 21, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 22, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 23, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 24, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 25, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 26, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 27, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 28, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 29, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 30, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 31, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 32, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 33, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 34, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 35, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 36, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 37, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 38, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 39, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 40, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_history"}, "model.workday.stg_workday__position": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "is_academic_tenure_eligible": {"type": "boolean", "index": 3, "name": "is_academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 4, "name": "availability_date", "comment": null}, "is_available_for_hire": {"type": "boolean", "index": 5, "name": "is_available_for_hire", "comment": null}, "is_available_for_overlap": {"type": "boolean", "index": 6, "name": "is_available_for_overlap", "comment": null}, "is_available_for_recruiting": {"type": "boolean", "index": 7, "name": "is_available_for_recruiting", "comment": null}, "is_closed": {"type": "boolean", "index": 8, "name": "is_closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 9, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 10, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 11, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 12, "name": "compensation_step_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 13, "name": "is_critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 14, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 15, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 16, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 17, "name": "effective_date", "comment": null}, "is_hiring_freeze": {"type": "boolean", "index": 18, "name": "is_hiring_freeze", "comment": null}, "position_id": {"type": "text", "index": 19, "name": "position_id", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 29, "name": "is_work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position"}, "model.workday.stg_workday__position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_base"}, "model.workday.stg_workday__position_job_profile": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 3, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 4, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 5, "name": "job_category_code", "comment": null}, "job_profile_id": {"type": "text", "index": 6, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 7, "name": "management_level_code", "comment": null}, "position_job_profile_name": {"type": "text", "index": 8, "name": "position_job_profile_name", "comment": null}, "position_id": {"type": "text", "index": 9, "name": "position_id", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 10, "name": "is_work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_job_profile"}, "model.workday.stg_workday__position_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_job_profile_base"}, "model.workday.stg_workday__position_organization": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "organization_id": {"type": "text", "index": 3, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 5, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_organization"}, "model.workday.stg_workday__position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_organization_base"}, "model.workday.stg_workday__worker": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 4, "name": "academic_tenure_date", "comment": null}, "is_active": {"type": "boolean", "index": 5, "name": "is_active", "comment": null}, "active_status_date": {"type": "date", "index": 6, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 7, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 8, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 9, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 10, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 11, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 12, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 13, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 14, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 15, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 16, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 17, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 18, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 19, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 20, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 21, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 22, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 23, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 24, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 25, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 26, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 27, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 28, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 29, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 30, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 31, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 32, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 33, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 34, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 35, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 36, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 37, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 38, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 39, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 40, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 41, "name": "first_day_of_work", "comment": null}, "is_has_international_assignment": {"type": "boolean", "index": 42, "name": "is_has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 43, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 44, "name": "hire_reason", "comment": null}, "is_hire_rescinded": {"type": "boolean", "index": 45, "name": "is_hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 46, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 47, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 48, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 49, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 50, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 51, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 52, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 53, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 54, "name": "months_continuous_prior_employment", "comment": null}, "is_not_returning": {"type": "boolean", "index": 55, "name": "is_not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 56, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 57, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 58, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 59, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 60, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 61, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 62, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 63, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 64, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 65, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 66, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 67, "name": "reason_reference_id", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 68, "name": "is_regrettable_termination", "comment": null}, "is_rehire": {"type": "boolean", "index": 69, "name": "is_rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 70, "name": "resignation_date", "comment": null}, "is_retired": {"type": "boolean", "index": 71, "name": "is_retired", "comment": null}, "retirement_date": {"type": "integer", "index": 72, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 73, "name": "retirement_eligibility_date", "comment": null}, "is_return_unknown": {"type": "boolean", "index": 74, "name": "is_return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 75, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 76, "name": "severance_date", "comment": null}, "is_terminated": {"type": "boolean", "index": 77, "name": "is_terminated", "comment": null}, "termination_date": {"type": "date", "index": 78, "name": "termination_date", "comment": null}, "is_termination_involuntary": {"type": "boolean", "index": 79, "name": "is_termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 80, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 81, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 82, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 83, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 84, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 85, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker"}, "model.workday.stg_workday__worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_base"}, "model.workday.stg_workday__worker_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_end", "comment": null}, "_fivetran_date": {"type": "date", "index": 4, "name": "_fivetran_date", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 5, "name": "end_employment_date", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 6, "name": "termination_date", "comment": null}, "history_unique_key": {"type": "text", "index": 7, "name": "history_unique_key", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 8, "name": "_fivetran_active", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 10, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 11, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 12, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 13, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 14, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 15, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 16, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 17, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 18, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 19, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 20, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 22, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 23, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 24, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 25, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 26, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 27, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 28, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 29, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 30, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 31, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 32, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 33, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 34, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 35, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 36, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 37, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 38, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 39, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 40, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 41, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 42, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 43, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 44, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 45, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 46, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 47, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 48, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 49, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 50, "name": "hire_rescinded", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 51, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 52, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 53, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 54, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 55, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 56, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 57, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 58, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 59, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 60, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 61, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 62, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 63, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 64, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 65, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 66, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 67, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 68, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 69, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 70, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 71, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 72, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 73, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 74, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 75, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 76, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 77, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 78, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 79, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 80, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 81, "name": "terminated", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 82, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 83, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 84, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 85, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 86, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 87, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 88, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_history"}, "model.workday.stg_workday__worker_leave_status": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 3, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 4, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 5, "name": "age_of_dependent", "comment": null}, "is_benefits_effect": {"type": "boolean", "index": 6, "name": "is_benefits_effect", "comment": null}, "child_birth_date": {"type": "date", "index": 7, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 8, "name": "child_sdate_of_death", "comment": null}, "is_continuous_service_accrual_effect": {"type": "boolean", "index": 9, "name": "is_continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 10, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 11, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 12, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 14, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 15, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 16, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 17, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 18, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 19, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 20, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 21, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 22, "name": "leave_percentage", "comment": null}, "leave_request_event_id": {"type": "text", "index": 23, "name": "leave_request_event_id", "comment": null}, "leave_return_event": {"type": "integer", "index": 24, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 25, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 26, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 27, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 28, "name": "location_during_leave", "comment": null}, "is_multiple_child_indicator": {"type": "integer", "index": 29, "name": "is_multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 30, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 31, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 32, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 33, "name": "number_of_previous_maternity_leaves", "comment": null}, "is_on_leave": {"type": "boolean", "index": 34, "name": "is_on_leave", "comment": null}, "is_paid_time_off_accrual_effect": {"type": "boolean", "index": 35, "name": "is_paid_time_off_accrual_effect", "comment": null}, "is_payroll_effect": {"type": "boolean", "index": 36, "name": "is_payroll_effect", "comment": null}, "is_single_parent_indicator": {"type": "integer", "index": 37, "name": "is_single_parent_indicator", "comment": null}, "is_caesarean_section_birth": {"type": "integer", "index": 38, "name": "is_caesarean_section_birth", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 39, "name": "social_security_disability_code", "comment": null}, "is_stock_vesting_effect": {"type": "boolean", "index": 40, "name": "is_stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 41, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 42, "name": "week_of_confinement", "comment": null}, "is_work_related": {"type": "integer", "index": 43, "name": "is_work_related", "comment": null}, "worker_id": {"type": "text", "index": 44, "name": "worker_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_leave_status"}, "model.workday.stg_workday__worker_leave_status_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_leave_status_base"}, "model.workday.stg_workday__worker_position": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 3, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 4, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 5, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 6, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 8, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 9, "name": "business_site_summary_local", "comment": null}, "position_location": {"type": "text", "index": 10, "name": "position_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 11, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 12, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 13, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 14, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 15, "name": "business_title", "comment": null}, "is_critical_job": {"type": "boolean", "index": 16, "name": "is_critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 17, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 18, "name": "difficulty_to_fill", "comment": null}, "position_effective_date": {"type": "date", "index": 19, "name": "position_effective_date", "comment": null}, "employee_type": {"type": "text", "index": 20, "name": "employee_type", "comment": null}, "position_end_date": {"type": "date", "index": 21, "name": "position_end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 22, "name": "end_employment_date", "comment": null}, "is_exclude_from_head_count": {"type": "boolean", "index": 23, "name": "is_exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 24, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 25, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 26, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 27, "name": "frequency", "comment": null}, "fte_percent": {"type": "integer", "index": 28, "name": "fte_percent", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 29, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 30, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 31, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 32, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 33, "name": "is_primary_job", "comment": null}, "is_job_exempt": {"type": "boolean", "index": 34, "name": "is_job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 35, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 36, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 37, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 38, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 39, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 40, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 41, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 42, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 43, "name": "payroll_file_number", "comment": null}, "position_id": {"type": "text", "index": 44, "name": "position_id", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 45, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 46, "name": "scheduled_weekly_hours", "comment": null}, "is_specify_paid_fte": {"type": "boolean", "index": 47, "name": "is_specify_paid_fte", "comment": null}, "is_specify_working_fte": {"type": "boolean", "index": 48, "name": "is_specify_working_fte", "comment": null}, "position_start_date": {"type": "date", "index": 49, "name": "position_start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 50, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 51, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 52, "name": "work_shift", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 53, "name": "is_work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 54, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 55, "name": "worker_hours_profile_classification", "comment": null}, "worker_id": {"type": "text", "index": 56, "name": "worker_id", "comment": null}, "working_fte": {"type": "double precision", "index": 57, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 58, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 59, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 60, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position"}, "model.workday.stg_workday__worker_position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_base"}, "model.workday.stg_workday__worker_position_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_date": {"type": "date", "index": 5, "name": "_fivetran_date", "comment": null}, "effective_date": {"type": "timestamp without time zone", "index": 6, "name": "effective_date", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 7, "name": "end_employment_date", "comment": null}, "position_start_date": {"type": "timestamp without time zone", "index": 8, "name": "position_start_date", "comment": null}, "position_end_date": {"type": "timestamp without time zone", "index": 9, "name": "position_end_date", "comment": null}, "history_unique_key": {"type": "text", "index": 10, "name": "history_unique_key", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 11, "name": "_fivetran_active", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 13, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 14, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 15, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 16, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 17, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 18, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 19, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 20, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 21, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 22, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 23, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 24, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 25, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 26, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 27, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 28, "name": "difficulty_to_fill", "comment": null}, "employee_type": {"type": "text", "index": 29, "name": "employee_type", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 30, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 31, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 32, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 33, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 34, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 35, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 36, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 37, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 38, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 39, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 40, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 41, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 42, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 43, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 44, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 45, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 46, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 47, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 48, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 49, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 50, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 51, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 52, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 53, "name": "specify_working_fte", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 54, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 55, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 56, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 57, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 58, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 59, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 60, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 61, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 62, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 63, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_history"}, "model.workday.stg_workday__worker_position_organization": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 6, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 7, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 8, "name": "primary_business_site", "comment": null}, "is_used_in_change_organization_assignments": {"type": "boolean", "index": 9, "name": "is_used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_organization"}, "model.workday.stg_workday__worker_position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_organization_base"}, "model.workday.stg_workday__worker_position_organization_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "organization_id": {"type": "text", "index": 3, "name": "organization_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_date": {"type": "date", "index": 6, "name": "_fivetran_date", "comment": null}, "history_unique_key": {"type": "text", "index": 7, "name": "history_unique_key", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 9, "name": "_fivetran_active", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 11, "name": "date_of_pay_group_assignment", "comment": null}, "primary_business_site": {"type": "integer", "index": 12, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 13, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_organization_history"}, "model.workday.int_workday__employee_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"history_unique_key": {"type": "text", "index": 1, "name": "history_unique_key", "comment": null}, "employee_id": {"type": "text", "index": 2, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 3, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 5, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_end", "comment": null}, "wh_active": {"type": "boolean", "index": 8, "name": "wh_active", "comment": null}, "wph_active": {"type": "boolean", "index": 9, "name": "wph_active", "comment": null}, "pih_active": {"type": "boolean", "index": 10, "name": "pih_active", "comment": null}, "wh_end_employment_date": {"type": "timestamp without time zone", "index": 11, "name": "wh_end_employment_date", "comment": null}, "wph_end_employment_date": {"type": "timestamp without time zone", "index": 12, "name": "wph_end_employment_date", "comment": null}, "wh_pay_through_date": {"type": "date", "index": 13, "name": "wh_pay_through_date", "comment": null}, "wph_pay_through_date": {"type": "date", "index": 14, "name": "wph_pay_through_date", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 15, "name": "termination_date", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 16, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 17, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 18, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 19, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 20, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 21, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 22, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 23, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 24, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 25, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 26, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 27, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 28, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 29, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 30, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 31, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 32, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 33, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 34, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 35, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 36, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 37, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 38, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 39, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 40, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 41, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 42, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 43, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 44, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 45, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 46, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 47, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 48, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 49, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 50, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 51, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 52, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 53, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 54, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 55, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 56, "name": "hire_rescinded", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 57, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 58, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 59, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 60, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 61, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 62, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 63, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 64, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 65, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 66, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 67, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 68, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 69, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 70, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 71, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "primary_termination_category": {"type": "text", "index": 72, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 73, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 74, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 75, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 76, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 77, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 78, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 79, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 80, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 81, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 82, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 83, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 84, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 85, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 86, "name": "terminated", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 87, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 88, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 89, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 90, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 91, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 92, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 93, "name": "worker_code", "comment": null}, "effective_date": {"type": "timestamp without time zone", "index": 94, "name": "effective_date", "comment": null}, "position_start_date": {"type": "timestamp without time zone", "index": 95, "name": "position_start_date", "comment": null}, "position_end_date": {"type": "timestamp without time zone", "index": 96, "name": "position_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 97, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 98, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 99, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 100, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 101, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 102, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 103, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 104, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 105, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 106, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 107, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 108, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 109, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 110, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 111, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 112, "name": "difficulty_to_fill", "comment": null}, "employee_type": {"type": "text", "index": 113, "name": "employee_type", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 114, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 115, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 116, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 117, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 118, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 119, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 120, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 121, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 122, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 123, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 124, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 125, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 126, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 127, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 128, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 129, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 130, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 131, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 132, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 133, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 134, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 135, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 136, "name": "specify_working_fte", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 137, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 138, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 139, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 140, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 141, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 142, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 143, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 144, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 145, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 146, "name": "working_time_value", "comment": null}, "type": {"type": "text", "index": 147, "name": "type", "comment": null}, "additional_nationality": {"type": "integer", "index": 148, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 149, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 150, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 151, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 152, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 153, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 154, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 155, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 156, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 157, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 158, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 159, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 160, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 161, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 162, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 163, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 164, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 165, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 166, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 167, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 168, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 169, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 170, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 171, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 172, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 173, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 174, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 175, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 176, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 177, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 178, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 179, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__employee_history"}, "model.workday.int_workday__personal_details": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "int_workday__personal_details", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "date_of_birth": {"type": "date", "index": 3, "name": "date_of_birth", "comment": null}, "gender": {"type": "text", "index": 4, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 5, "name": "is_hispanic_or_latino", "comment": null}, "first_name": {"type": "text", "index": 6, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 7, "name": "last_name", "comment": null}, "email_address": {"type": "text", "index": 8, "name": "email_address", "comment": null}, "ethnicity_codes": {"type": "text", "index": 9, "name": "ethnicity_codes", "comment": null}, "military_status": {"type": "text", "index": 10, "name": "military_status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__personal_details"}, "model.workday.int_workday__worker_details": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_details", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "worker_code": {"type": "integer", "index": 3, "name": "worker_code", "comment": null}, "user_id": {"type": "text", "index": 4, "name": "user_id", "comment": null}, "universal_id": {"type": "integer", "index": 5, "name": "universal_id", "comment": null}, "is_user_active": {"type": "boolean", "index": 6, "name": "is_user_active", "comment": null}, "is_employed": {"type": "boolean", "index": 7, "name": "is_employed", "comment": null}, "hire_date": {"type": "date", "index": 8, "name": "hire_date", "comment": null}, "departure_date": {"type": "date", "index": 9, "name": "departure_date", "comment": null}, "days_as_worker": {"type": "integer", "index": 10, "name": "days_as_worker", "comment": null}, "is_terminated": {"type": "boolean", "index": 11, "name": "is_terminated", "comment": null}, "primary_termination_category": {"type": "text", "index": 12, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 13, "name": "primary_termination_reason", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 14, "name": "is_regrettable_termination", "comment": null}, "compensation_effective_date": {"type": "date", "index": 15, "name": "compensation_effective_date", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 16, "name": "employee_compensation_frequency", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 17, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 19, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_summary_currency": {"type": "text", "index": 20, "name": "annual_summary_currency", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_summary_primary_compensation_basis", "comment": null}, "compensation_grade_id": {"type": "text", "index": 23, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 24, "name": "compensation_grade_profile_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__worker_details"}, "model.workday.int_workday__worker_employee_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_employee_enhanced", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "worker_code": {"type": "integer", "index": 3, "name": "worker_code", "comment": null}, "user_id": {"type": "text", "index": 4, "name": "user_id", "comment": null}, "universal_id": {"type": "integer", "index": 5, "name": "universal_id", "comment": null}, "is_user_active": {"type": "boolean", "index": 6, "name": "is_user_active", "comment": null}, "is_employed": {"type": "boolean", "index": 7, "name": "is_employed", "comment": null}, "hire_date": {"type": "date", "index": 8, "name": "hire_date", "comment": null}, "departure_date": {"type": "date", "index": 9, "name": "departure_date", "comment": null}, "days_as_worker": {"type": "integer", "index": 10, "name": "days_as_worker", "comment": null}, "is_terminated": {"type": "boolean", "index": 11, "name": "is_terminated", "comment": null}, "primary_termination_category": {"type": "text", "index": 12, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 13, "name": "primary_termination_reason", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 14, "name": "is_regrettable_termination", "comment": null}, "compensation_effective_date": {"type": "date", "index": 15, "name": "compensation_effective_date", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 16, "name": "employee_compensation_frequency", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 17, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 19, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_summary_currency": {"type": "text", "index": 20, "name": "annual_summary_currency", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_summary_primary_compensation_basis", "comment": null}, "compensation_grade_id": {"type": "text", "index": 23, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 24, "name": "compensation_grade_profile_id", "comment": null}, "first_name": {"type": "text", "index": 25, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 26, "name": "last_name", "comment": null}, "date_of_birth": {"type": "date", "index": 27, "name": "date_of_birth", "comment": null}, "gender": {"type": "text", "index": 28, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 29, "name": "is_hispanic_or_latino", "comment": null}, "email_address": {"type": "text", "index": 30, "name": "email_address", "comment": null}, "ethnicity_codes": {"type": "text", "index": 31, "name": "ethnicity_codes", "comment": null}, "military_status": {"type": "text", "index": 32, "name": "military_status", "comment": null}, "position_id": {"type": "text", "index": 33, "name": "position_id", "comment": null}, "business_title": {"type": "text", "index": 34, "name": "business_title", "comment": null}, "job_profile_id": {"type": "text", "index": 35, "name": "job_profile_id", "comment": null}, "employee_type": {"type": "text", "index": 36, "name": "employee_type", "comment": null}, "position_location": {"type": "text", "index": 37, "name": "position_location", "comment": null}, "management_level_code": {"type": "text", "index": 38, "name": "management_level_code", "comment": null}, "fte_percent": {"type": "integer", "index": 39, "name": "fte_percent", "comment": null}, "position_start_date": {"type": "date", "index": 40, "name": "position_start_date", "comment": null}, "position_end_date": {"type": "date", "index": 41, "name": "position_end_date", "comment": null}, "position_effective_date": {"type": "date", "index": 42, "name": "position_effective_date", "comment": null}, "days_employed": {"type": "integer", "index": 43, "name": "days_employed", "comment": null}, "is_employed_one_year": {"type": "boolean", "index": 44, "name": "is_employed_one_year", "comment": null}, "is_employed_five_years": {"type": "boolean", "index": 45, "name": "is_employed_five_years", "comment": null}, "is_employed_ten_years": {"type": "boolean", "index": 46, "name": "is_employed_ten_years", "comment": null}, "is_employed_twenty_years": {"type": "boolean", "index": 47, "name": "is_employed_twenty_years", "comment": null}, "is_employed_thirty_years": {"type": "boolean", "index": 48, "name": "is_employed_thirty_years", "comment": null}, "is_current_employee_one_year": {"type": "boolean", "index": 49, "name": "is_current_employee_one_year", "comment": null}, "is_current_employee_five_years": {"type": "boolean", "index": 50, "name": "is_current_employee_five_years", "comment": null}, "is_current_employee_ten_years": {"type": "boolean", "index": 51, "name": "is_current_employee_ten_years", "comment": null}, "is_current_employee_twenty_years": {"type": "boolean", "index": 52, "name": "is_current_employee_twenty_years", "comment": null}, "is_current_employee_thirty_years": {"type": "boolean", "index": 53, "name": "is_current_employee_thirty_years", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__worker_employee_enhanced"}, "model.workday.int_workday__worker_position_enriched": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_position_enriched", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_id": {"type": "text", "index": 1, "name": "employee_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "business_title": {"type": "text", "index": 5, "name": "business_title", "comment": null}, "job_profile_id": {"type": "text", "index": 6, "name": "job_profile_id", "comment": null}, "employee_type": {"type": "text", "index": 7, "name": "employee_type", "comment": null}, "position_location": {"type": "text", "index": 8, "name": "position_location", "comment": null}, "management_level_code": {"type": "text", "index": 9, "name": "management_level_code", "comment": null}, "fte_percent": {"type": "integer", "index": 10, "name": "fte_percent", "comment": null}, "days_employed": {"type": "integer", "index": 11, "name": "days_employed", "comment": null}, "position_start_date": {"type": "date", "index": 12, "name": "position_start_date", "comment": null}, "position_end_date": {"type": "date", "index": 13, "name": "position_end_date", "comment": null}, "position_effective_date": {"type": "date", "index": 14, "name": "position_effective_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__worker_position_enriched"}, "model.workday.workday__employee_daily_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_day_id": {"type": "text", "index": 1, "name": "employee_day_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "history_unique_key": {"type": "text", "index": 3, "name": "history_unique_key", "comment": null}, "employee_id": {"type": "text", "index": 4, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 5, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 6, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 7, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_end", "comment": null}, "wh_active": {"type": "boolean", "index": 10, "name": "wh_active", "comment": null}, "wph_active": {"type": "boolean", "index": 11, "name": "wph_active", "comment": null}, "pih_active": {"type": "boolean", "index": 12, "name": "pih_active", "comment": null}, "wh_end_employment_date": {"type": "timestamp without time zone", "index": 13, "name": "wh_end_employment_date", "comment": null}, "wph_end_employment_date": {"type": "timestamp without time zone", "index": 14, "name": "wph_end_employment_date", "comment": null}, "wh_pay_through_date": {"type": "date", "index": 15, "name": "wh_pay_through_date", "comment": null}, "wph_pay_through_date": {"type": "date", "index": 16, "name": "wph_pay_through_date", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 17, "name": "termination_date", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 18, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 19, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 20, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 21, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 22, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 23, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 24, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 25, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 26, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 27, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 28, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 29, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 30, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 31, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 32, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 33, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 34, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 35, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 36, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 37, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 38, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 39, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 40, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 41, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 42, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 43, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 44, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 45, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 46, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 47, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 48, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 49, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 50, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 51, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 52, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 53, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 54, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 55, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 56, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 57, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 58, "name": "hire_rescinded", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 59, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 60, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 61, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 63, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 64, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 65, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 66, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 67, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 68, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 69, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 70, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 71, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 72, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 73, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "primary_termination_category": {"type": "text", "index": 74, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 75, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 76, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 77, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 78, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 79, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 80, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 81, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 82, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 83, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 84, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 85, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 86, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 87, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 88, "name": "terminated", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 89, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 90, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 91, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 92, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 93, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 94, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 95, "name": "worker_code", "comment": null}, "effective_date": {"type": "timestamp without time zone", "index": 96, "name": "effective_date", "comment": null}, "position_start_date": {"type": "timestamp without time zone", "index": 97, "name": "position_start_date", "comment": null}, "position_end_date": {"type": "timestamp without time zone", "index": 98, "name": "position_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 99, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 100, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 101, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 102, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 103, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 104, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 105, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 106, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 107, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 108, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 109, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 110, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 111, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 112, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 113, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 114, "name": "difficulty_to_fill", "comment": null}, "employee_type": {"type": "text", "index": 115, "name": "employee_type", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 116, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 117, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 118, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 119, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 120, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 121, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 122, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 123, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 124, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 125, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 126, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 127, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 128, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 129, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 130, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 131, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 132, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 133, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 134, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 135, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 136, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 137, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 138, "name": "specify_working_fte", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 139, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 140, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 141, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 142, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 143, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 144, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 145, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 146, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 147, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 148, "name": "working_time_value", "comment": null}, "type": {"type": "text", "index": 149, "name": "type", "comment": null}, "additional_nationality": {"type": "integer", "index": 150, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 151, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 152, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 153, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 154, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 155, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 156, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 157, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 158, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 159, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 160, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 161, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 162, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 163, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 164, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 165, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 166, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 167, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 168, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 169, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 170, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 171, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 172, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 173, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 174, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 175, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 176, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 177, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 178, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 179, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 180, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 181, "name": "ll", "comment": null}, "row_num": {"type": "bigint", "index": 182, "name": "row_num", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_daily_history"}, "model.workday.workday__employee_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_id": {"type": "text", "index": 1, "name": "employee_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "position_start_date": {"type": "date", "index": 4, "name": "position_start_date", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "worker_code": {"type": "integer", "index": 6, "name": "worker_code", "comment": null}, "user_id": {"type": "text", "index": 7, "name": "user_id", "comment": null}, "universal_id": {"type": "integer", "index": 8, "name": "universal_id", "comment": null}, "is_user_active": {"type": "boolean", "index": 9, "name": "is_user_active", "comment": null}, "is_employed": {"type": "boolean", "index": 10, "name": "is_employed", "comment": null}, "hire_date": {"type": "date", "index": 11, "name": "hire_date", "comment": null}, "departure_date": {"type": "date", "index": 12, "name": "departure_date", "comment": null}, "days_as_worker": {"type": "integer", "index": 13, "name": "days_as_worker", "comment": null}, "is_terminated": {"type": "boolean", "index": 14, "name": "is_terminated", "comment": null}, "primary_termination_category": {"type": "text", "index": 15, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 16, "name": "primary_termination_reason", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 17, "name": "is_regrettable_termination", "comment": null}, "compensation_effective_date": {"type": "date", "index": 18, "name": "compensation_effective_date", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 19, "name": "employee_compensation_frequency", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 20, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_summary_currency": {"type": "text", "index": 23, "name": "annual_summary_currency", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 24, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 25, "name": "annual_summary_primary_compensation_basis", "comment": null}, "compensation_grade_id": {"type": "text", "index": 26, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 27, "name": "compensation_grade_profile_id", "comment": null}, "first_name": {"type": "text", "index": 28, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 29, "name": "last_name", "comment": null}, "date_of_birth": {"type": "date", "index": 30, "name": "date_of_birth", "comment": null}, "gender": {"type": "text", "index": 31, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 32, "name": "is_hispanic_or_latino", "comment": null}, "email_address": {"type": "text", "index": 33, "name": "email_address", "comment": null}, "ethnicity_codes": {"type": "text", "index": 34, "name": "ethnicity_codes", "comment": null}, "military_status": {"type": "text", "index": 35, "name": "military_status", "comment": null}, "business_title": {"type": "text", "index": 36, "name": "business_title", "comment": null}, "job_profile_id": {"type": "text", "index": 37, "name": "job_profile_id", "comment": null}, "employee_type": {"type": "text", "index": 38, "name": "employee_type", "comment": null}, "position_location": {"type": "text", "index": 39, "name": "position_location", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "fte_percent": {"type": "integer", "index": 41, "name": "fte_percent", "comment": null}, "position_end_date": {"type": "date", "index": 42, "name": "position_end_date", "comment": null}, "position_effective_date": {"type": "date", "index": 43, "name": "position_effective_date", "comment": null}, "days_employed": {"type": "integer", "index": 44, "name": "days_employed", "comment": null}, "is_employed_one_year": {"type": "boolean", "index": 45, "name": "is_employed_one_year", "comment": null}, "is_employed_five_years": {"type": "boolean", "index": 46, "name": "is_employed_five_years", "comment": null}, "is_employed_ten_years": {"type": "boolean", "index": 47, "name": "is_employed_ten_years", "comment": null}, "is_employed_twenty_years": {"type": "boolean", "index": 48, "name": "is_employed_twenty_years", "comment": null}, "is_employed_thirty_years": {"type": "boolean", "index": 49, "name": "is_employed_thirty_years", "comment": null}, "is_current_employee_one_year": {"type": "boolean", "index": 50, "name": "is_current_employee_one_year", "comment": null}, "is_current_employee_five_years": {"type": "boolean", "index": 51, "name": "is_current_employee_five_years", "comment": null}, "is_current_employee_ten_years": {"type": "boolean", "index": 52, "name": "is_current_employee_ten_years", "comment": null}, "is_current_employee_twenty_years": {"type": "boolean", "index": 53, "name": "is_current_employee_twenty_years", "comment": null}, "is_current_employee_thirty_years": {"type": "boolean", "index": 54, "name": "is_current_employee_thirty_years", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_overview"}, "model.workday.workday__job_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "job_profile_code": {"type": "text", "index": 3, "name": "job_profile_code", "comment": null}, "job_title": {"type": "text", "index": 4, "name": "job_title", "comment": null}, "private_title": {"type": "integer", "index": 5, "name": "private_title", "comment": null}, "job_summary": {"type": "text", "index": 6, "name": "job_summary", "comment": null}, "job_description": {"type": "text", "index": 7, "name": "job_description", "comment": null}, "job_family_codes": {"type": "text", "index": 8, "name": "job_family_codes", "comment": null}, "job_family_summaries": {"type": "text", "index": 9, "name": "job_family_summaries", "comment": null}, "job_family_group_codes": {"type": "text", "index": 10, "name": "job_family_group_codes", "comment": null}, "job_family_group_summaries": {"type": "text", "index": 11, "name": "job_family_group_summaries", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__job_overview"}, "model.workday.workday__monthly_summary": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"metrics_month": {"type": "timestamp with time zone", "index": 1, "name": "metrics_month", "comment": null}, "new_employees": {"type": "bigint", "index": 2, "name": "new_employees", "comment": null}, "churned_employees": {"type": "bigint", "index": 3, "name": "churned_employees", "comment": null}, "churned_voluntary_employees": {"type": "bigint", "index": 4, "name": "churned_voluntary_employees", "comment": null}, "churned_involuntary_employees": {"type": "bigint", "index": 5, "name": "churned_involuntary_employees", "comment": null}, "churned_workers": {"type": "bigint", "index": 6, "name": "churned_workers", "comment": null}, "active_employees": {"type": "bigint", "index": 7, "name": "active_employees", "comment": null}, "active_male_employees": {"type": "bigint", "index": 8, "name": "active_male_employees", "comment": null}, "active_female_employees": {"type": "bigint", "index": 9, "name": "active_female_employees", "comment": null}, "active_workers": {"type": "bigint", "index": 10, "name": "active_workers", "comment": null}, "active_known_gender_employees": {"type": "bigint", "index": 11, "name": "active_known_gender_employees", "comment": null}, "avg_employee_primary_compensation": {"type": "double precision", "index": 12, "name": "avg_employee_primary_compensation", "comment": null}, "avg_employee_base_pay": {"type": "double precision", "index": 13, "name": "avg_employee_base_pay", "comment": null}, "avg_employee_salary_and_allowances": {"type": "double precision", "index": 14, "name": "avg_employee_salary_and_allowances", "comment": null}, "avg_days_as_employee": {"type": "numeric", "index": 15, "name": "avg_days_as_employee", "comment": null}, "avg_worker_primary_compensation": {"type": "double precision", "index": 16, "name": "avg_worker_primary_compensation", "comment": null}, "avg_worker_base_pay": {"type": "double precision", "index": 17, "name": "avg_worker_base_pay", "comment": null}, "avg_worker_salary_and_allowances": {"type": "double precision", "index": 18, "name": "avg_worker_salary_and_allowances", "comment": null}, "avg_days_as_worker": {"type": "numeric", "index": 19, "name": "avg_days_as_worker", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__monthly_summary"}, "model.workday.workday__organization_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "organization_role_id": {"type": "text", "index": 2, "name": "organization_role_id", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "organization_code": {"type": "text", "index": 6, "name": "organization_code", "comment": null}, "organization_name": {"type": "text", "index": 7, "name": "organization_name", "comment": null}, "organization_type": {"type": "text", "index": 8, "name": "organization_type", "comment": null}, "organization_sub_type": {"type": "text", "index": 9, "name": "organization_sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 10, "name": "superior_organization_id", "comment": null}, "top_level_organization_id": {"type": "text", "index": 11, "name": "top_level_organization_id", "comment": null}, "manager_id": {"type": "text", "index": 12, "name": "manager_id", "comment": null}, "organization_role_code": {"type": "text", "index": 13, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__organization_overview"}, "model.workday.workday__position_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "position_code": {"type": "text", "index": 3, "name": "position_code", "comment": null}, "job_posting_title": {"type": "text", "index": 4, "name": "job_posting_title", "comment": null}, "effective_date": {"type": "date", "index": 5, "name": "effective_date", "comment": null}, "is_closed": {"type": "boolean", "index": 6, "name": "is_closed", "comment": null}, "is_hiring_freeze": {"type": "boolean", "index": 7, "name": "is_hiring_freeze", "comment": null}, "is_available_for_hire": {"type": "boolean", "index": 8, "name": "is_available_for_hire", "comment": null}, "availability_date": {"type": "date", "index": 9, "name": "availability_date", "comment": null}, "is_available_for_recruiting": {"type": "boolean", "index": 10, "name": "is_available_for_recruiting", "comment": null}, "earliest_hire_date": {"type": "date", "index": 11, "name": "earliest_hire_date", "comment": null}, "is_available_for_overlap": {"type": "boolean", "index": 12, "name": "is_available_for_overlap", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 13, "name": "earliest_overlap_date", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 14, "name": "worker_for_filled_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 15, "name": "worker_type_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 16, "name": "position_time_type_code", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 17, "name": "supervisory_organization_id", "comment": null}, "job_profile_id": {"type": "text", "index": 18, "name": "job_profile_id", "comment": null}, "compensation_package_code": {"type": "integer", "index": 19, "name": "compensation_package_code", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 20, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 21, "name": "compensation_grade_profile_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__position_overview"}}, "sources": {"source.workday.workday.job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family"}, "source.workday.workday.job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_group"}, "source.workday.workday.job_family_job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_family_group"}, "source.workday.workday.job_family_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_profile"}, "source.workday.workday.job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_profile"}, "source.workday.workday.military_service": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.military_service"}, "source.workday.workday.organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization"}, "source.workday.workday.organization_job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_job_family"}, "source.workday.workday.organization_role": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role"}, "source.workday.workday.organization_role_worker": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role_worker"}, "source.workday.workday.person_contact_email_address": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_contact_email_address"}, "source.workday.workday.person_name": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_name"}, "source.workday.workday.personal_information_ethnicity": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_ethnicity"}, "source.workday.workday.personal_information_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_history"}, "source.workday.workday.position": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position"}, "source.workday.workday.position_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_job_profile"}, "source.workday.workday.position_organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_organization"}, "source.workday.workday.worker_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_history"}, "source.workday.workday.worker_leave_status": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_leave_status"}, "source.workday.workday.worker_position_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_history"}, "source.workday.workday.worker_position_organization_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_organization_history"}}, "errors": null} \ No newline at end of file diff --git a/docs/manifest.json b/docs/manifest.json index 9642bec..f274c18 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v11.json", "dbt_version": "1.7.8", "generated_at": "2024-03-07T00:45:45.702709Z", "invocation_id": "218a7437-3e28-4317-8406-f68aa2b0221b", "env": {}, "project_name": "workday_integration_tests", "project_id": "457920b1e5594993369a050db836d437", "user_id": "81581f81-d5af-4143-8fbf-c2f0001e4f56", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_job_family_group_data"], "alias": "workday_job_family_job_family_group_data", "checksum": {"name": "sha256", "checksum": "a4c9b0101811381ac698bec0ba8dd2474fa563f2d2dc6bdf1e072bd3f890313f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.729731, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_history_data.csv", "original_file_path": "seeds/workday_personal_information_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "fqn": ["workday_integration_tests", "workday_personal_information_history_data"], "alias": "workday_personal_information_history_data", "checksum": {"name": "sha256", "checksum": "2810574ec93fc886e6f1faa097951c8d7c96336fbd1a03b75a22b5a7bb85d13a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.7375412, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_ethnicity_data.csv", "original_file_path": "seeds/workday_personal_information_ethnicity_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "fqn": ["workday_integration_tests", "workday_personal_information_ethnicity_data"], "alias": "workday_personal_information_ethnicity_data", "checksum": {"name": "sha256", "checksum": "986222e9224bcca39693358ca9829277b4f6a2c56111ba9aa2db56734d128e9a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.738745, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_group_data"], "alias": "workday_job_family_group_data", "checksum": {"name": "sha256", "checksum": "394c43d528af65ce740ba8ebd24d6d14e6ea99f5d57abcdd2690070f408378f9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.739891, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_leave_status_data.csv", "original_file_path": "seeds/workday_worker_leave_status_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "fqn": ["workday_integration_tests", "workday_worker_leave_status_data"], "alias": "workday_worker_leave_status_data", "checksum": {"name": "sha256", "checksum": "bec6fe9af70bc7bebcfebbd12d41d1674fa78fc88497783bf7be995f1290b901"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "age_of_dependent": "float", "leave_entitlement_override": "float", "leave_percentage": "float", "number_of_babies_adopted_children": "float", "number_of_child_dependents": "float", "number_of_previous_births": "float", "number_of_previous_maternity_leaves": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "age_of_dependent": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_entitlement_override": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_percentage": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_babies_adopted_children": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_child_dependents": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_births": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_maternity_leaves": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1709769127.743006, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_organization_history_data.csv", "original_file_path": "seeds/workday_worker_position_organization_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_organization_history_data"], "alias": "workday_worker_position_organization_history_data", "checksum": {"name": "sha256", "checksum": "79d43cf1c2b3425d03d23b014705613022d55eb282108d972cbeb58bf55ed0d3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.7441761, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_data.csv", "original_file_path": "seeds/workday_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_data", "fqn": ["workday_integration_tests", "workday_job_family_data"], "alias": "workday_job_family_data", "checksum": {"name": "sha256", "checksum": "727b3c01934259786bd85a1bed73ac70611363839a611bdea640bf9bd95cba2d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.745304, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_name_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_name_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_name_data.csv", "original_file_path": "seeds/workday_person_name_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_name_data", "fqn": ["workday_integration_tests", "workday_person_name_data"], "alias": "workday_person_name_data", "checksum": {"name": "sha256", "checksum": "104b5d938091b1587548c91aa46a0e5b38ebccec81cbc569993b8a971b116881"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.747802, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_data.csv", "original_file_path": "seeds/workday_organization_role_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "fqn": ["workday_integration_tests", "workday_organization_role_data"], "alias": "workday_organization_role_data", "checksum": {"name": "sha256", "checksum": "b3e1187179e8afc95fbf180efac810d5a8f4f57e118393c60fca2c2c7f09e024"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.748922, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_military_service_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_military_service_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_military_service_data.csv", "original_file_path": "seeds/workday_military_service_data.csv", "unique_id": "seed.workday_integration_tests.workday_military_service_data", "fqn": ["workday_integration_tests", "workday_military_service_data"], "alias": "workday_military_service_data", "checksum": {"name": "sha256", "checksum": "f3d25deafee7b4188b4bdfe815b40397bdd80cd135db866b9ddf2b3a0b346b07"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.750037, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_data.csv", "original_file_path": "seeds/workday_position_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_data", "fqn": ["workday_integration_tests", "workday_position_data"], "alias": "workday_position_data", "checksum": {"name": "sha256", "checksum": "f31ec8364b56eb931ab406b25be5cfc0301bba65908bc448aeb170ed79805894"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "primary_compensation_basis": "float", "primary_compensation_basis_amount_change": "float", "primary_compensation_basis_percent_change": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_amount_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_percent_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1709769127.751175, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_data.csv", "original_file_path": "seeds/workday_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_data", "fqn": ["workday_integration_tests", "workday_organization_data"], "alias": "workday_organization_data", "checksum": {"name": "sha256", "checksum": "e0ece91ba5a270a01be9bbe91ea46b49c9e5c3c56e7234b5a597c9d81f63b4cc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.752321, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_organization_data.csv", "original_file_path": "seeds/workday_position_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "fqn": ["workday_integration_tests", "workday_position_organization_data"], "alias": "workday_position_organization_data", "checksum": {"name": "sha256", "checksum": "c0cd526bcf4b91f1842484875ce4fe803d510862d4d4ddba72c6d1724c8e9ea8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.7535849, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_profile_data.csv", "original_file_path": "seeds/workday_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_profile_data"], "alias": "workday_job_profile_data", "checksum": {"name": "sha256", "checksum": "677a184272cdd2e0d746d5616d33ad4ce394c74e759f73bf0e51f8dda5cc96e4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.754795, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_contact_email_address_data.csv", "original_file_path": "seeds/workday_person_contact_email_address_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "fqn": ["workday_integration_tests", "workday_person_contact_email_address_data"], "alias": "workday_person_contact_email_address_data", "checksum": {"name": "sha256", "checksum": "4641c91d789ed134081a55cf0aaafc5a61a7ea075904691a353389552038dbe9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.756, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_job_family_data.csv", "original_file_path": "seeds/workday_organization_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "fqn": ["workday_integration_tests", "workday_organization_job_family_data"], "alias": "workday_organization_job_family_data", "checksum": {"name": "sha256", "checksum": "2db2016b7eea202409836faff94ba2f168ce13dfd9e00ee1d1591eb85315cd47"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.7571359, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_profile_data.csv", "original_file_path": "seeds/workday_job_family_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_family_job_profile_data"], "alias": "workday_job_family_job_profile_data", "checksum": {"name": "sha256", "checksum": "bc99975db9382af8f66fd46976db4cca2a987b1e9de24d17ceeb1ebf6e5ecb68"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.758463, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_job_profile_data.csv", "original_file_path": "seeds/workday_position_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "fqn": ["workday_integration_tests", "workday_position_job_profile_data"], "alias": "workday_position_job_profile_data", "checksum": {"name": "sha256", "checksum": "e5d675b82b521d6856d8f516209642745a595a31d88d147f6561bcbc970433b3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.7595918, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_worker_data.csv", "original_file_path": "seeds/workday_organization_role_worker_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "fqn": ["workday_integration_tests", "workday_organization_role_worker_data"], "alias": "workday_organization_role_worker_data", "checksum": {"name": "sha256", "checksum": "e24079f7ed64c407174d546132b71c69a9b1eaa9951b5a91772a3da7b3ff95f8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1709769127.760703, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "model.workday.workday__employee_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "resource_type": "model", "package_name": "workday", "path": "workday__employee_overview.sql", "original_file_path": "models/workday__employee_overview.sql", "unique_id": "model.workday.workday__employee_overview", "fqn": ["workday", "workday__employee_overview"], "alias": "workday__employee_overview", "checksum": {"name": "sha256", "checksum": "eff8d6b950b1b59e7845025528a596ceeb2e6fc22dfed0b55cf098aefd3b0ccc"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_user_active": {"name": "is_user_active", "description": "Is the user currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed": {"name": "is_employed", "description": "Is the worker currently employed?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "departure_date": {"name": "departure_date", "description": "The departure date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_of_employment": {"name": "days_of_employment", "description": "Number of days employed by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Has the worker been regrettably terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_codes": {"name": "ethnicity_codes", "description": "String aggregation of all ethnicity codes associated with an individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The military status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_position_type": {"name": "most_recent_position_type", "description": "The most recent position type of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_location": {"name": "most_recent_location", "description": "The most recent location of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_level": {"name": "most_recent_level", "description": "The most recent level of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_at_position": {"name": "days_at_position", "description": "The number of days the worker has held their most recent position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_position_start_date": {"name": "most_recent_position_start_date", "description": "The most recent position start date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_position_end_date": {"name": "most_recent_position_end_date", "description": "The most recent position end date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_position_effective_date": {"name": "most_recent_position_effective_date", "description": "The most recent position effective date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_positions": {"name": "worker_positions", "description": "The number of positions the worker has held", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_levels": {"name": "worker_levels", "description": "The number of levels the worker has worked at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_days": {"name": "position_days", "description": "The days the worker held positions at the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_one_year": {"name": "is_employed_one_year", "description": "Tracks whether a worker was employed at least one year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_five_years": {"name": "is_employed_five_years", "description": "Tracks whether a worker was employed at least five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_ten_years": {"name": "is_employed_ten_years", "description": "Tracks whether a worker was employed at least ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_twenty_years": {"name": "is_employed_twenty_years", "description": "Tracks whether a worker was employed at least twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_thirty_years": {"name": "is_employed_thirty_years", "description": "Tracks whether a worker was employed at least thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_one_year": {"name": "is_current_employee_one_year", "description": "Tracks whether a worker is active for more than a year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_five_years": {"name": "is_current_employee_five_years", "description": "Tracks whether a worker is active for more than five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "description": "Tracks whether a worker is active for more than ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "description": "Tracks whether a worker is active for more than twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "description": "Tracks whether a worker is active for more than thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709769128.6857522, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"", "raw_code": "with employee_surrogate_key as (\n \n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'position_start_date']) }} as employee_id,\n worker_id,\n position_id,\n position_start_date,\n {{ dbt_utils.star(from=ref('int_workday__worker_employee_enhanced'), except=['worker_id', 'position_id', 'position_start_date']) }}\n from {{ ref('int_workday__worker_employee_enhanced') }} \n)\n\nselect * \nfrom employee_surrogate_key", "language": "sql", "refs": [{"name": "int_workday__worker_employee_enhanced", "package": null, "version": null}, {"name": "int_workday__worker_employee_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt_utils.star"], "nodes": ["model.workday.int_workday__worker_employee_enhanced"]}, "compiled_path": "target/compiled/workday/models/workday__employee_overview.sql", "compiled": true, "compiled_code": "with employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n position_id,\n position_start_date,\n \"source_relation\",\n \"worker_code\",\n \"user_id\",\n \"universal_id\",\n \"is_user_active\",\n \"is_employed\",\n \"hire_date\",\n \"departure_date\",\n \"days_of_employment\",\n \"is_terminated\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"is_regrettable_termination\",\n \"compensation_effective_date\",\n \"employee_compensation_frequency\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_summary_currency\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_primary_compensation_basis\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"first_name\",\n \"last_name\",\n \"date_of_birth\",\n \"gender\",\n \"is_hispanic_or_latino\",\n \"email_address\",\n \"ethnicity_codes\",\n \"military_status\",\n \"business_title\",\n \"job_profile_id\",\n \"employee_type\",\n \"position_location\",\n \"management_level_code\",\n \"fte_percent\",\n \"days_at_position\",\n \"position_end_date\",\n \"position_effective_date\",\n \"worker_positions\",\n \"worker_levels\",\n \"position_days\",\n \"is_employed_one_year\",\n \"is_employed_five_years\",\n \"is_employed_ten_years\",\n \"is_employed_twenty_years\",\n \"is_employed_thirty_years\",\n \"is_current_employee_one_year\",\n \"is_current_employee_five_years\",\n \"is_current_employee_ten_years\",\n \"is_current_employee_twenty_years\",\n \"is_current_employee_thirty_years\"\n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_employee_enhanced\" \n)\n\nselect * \nfrom employee_surrogate_key", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__job_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "resource_type": "model", "package_name": "workday", "path": "workday__job_overview.sql", "original_file_path": "models/workday__job_overview.sql", "unique_id": "model.workday.workday__job_overview", "fqn": ["workday", "workday__job_overview"], "alias": "workday__job_overview", "checksum": {"name": "sha256", "checksum": "b50072f5be5632d10a64a1e777aa62ae6f2283f22244bd033fea5fc20ce66165"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "The private title associated with the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "The summary of the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_codes": {"name": "job_family_codes", "description": "String array of all job family codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summaries": {"name": "job_family_summaries", "description": "String array of all job family summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_codes": {"name": "job_family_group_codes", "description": "String array of all job family group codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summaries": {"name": "job_family_group_summaries", "description": "String array of all job family group summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709769128.6874309, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"", "raw_code": "with job_profile_data as (\n\n select * \n from {{ ref('stg_workday__job_profile') }}\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_profile') }}\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from {{ ref('stg_workday__job_family') }}\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_family_group') }}\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from {{ ref('stg_workday__job_family_group') }}\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_code', \"', '\" ) }} as job_family_codes,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_summary', \"', '\" ) }} as job_family_summaries, \n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_code', \"', '\" ) }} as job_family_group_codes,\n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_summary', \"', '\" ) }} as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom job_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}, {"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg", "macro.dbt_utils.group_by"], "nodes": ["model.workday.stg_workday__job_profile", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/workday__job_overview.sql", "compiled": true, "compiled_code": "with job_profile_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__position_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "resource_type": "model", "package_name": "workday", "path": "workday__position_overview.sql", "original_file_path": "models/workday__position_overview.sql", "unique_id": "model.workday.workday__position_overview", "fqn": ["workday", "workday__position_overview"], "alias": "workday__position_overview", "checksum": {"name": "sha256", "checksum": "567db8a61cd72c8faec1aac1963cbf05b776d0fe170a7f8c0ae8ea3d076464d3"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts.", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709769128.690084, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"", "raw_code": "with position_data as (\n\n select *\n from {{ ref('stg_workday__position') }}\n),\n\nposition_job_profile_data as (\n\n select *\n from {{ ref('stg_workday__position_job_profile') }}\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}, {"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/workday__position_overview.sql", "compiled": true, "compiled_code": "with position_data as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\n),\n\nposition_job_profile_data as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__organization_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "resource_type": "model", "package_name": "workday", "path": "workday__organization_overview.sql", "original_file_path": "models/workday__organization_overview.sql", "unique_id": "model.workday.workday__organization_overview", "fqn": ["workday", "workday__organization_overview"], "alias": "workday__organization_overview", "checksum": {"name": "sha256", "checksum": "0df19685be8a2ffee5d5e16069cbc9771cc639372004929a73f500f9d7c59798"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709769128.691703, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"", "raw_code": "with organization_data as (\n\n select * \n from {{ ref('stg_workday__organization') }}\n),\n\norganization_role_data as (\n\n select * \n from {{ ref('stg_workday__organization_role') }}\n),\n\nworker_position_organization as (\n\n select *\n from {{ ref('stg_workday__worker_position_organization') }}\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}, {"name": "stg_workday__organization_role", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/workday__organization_overview.sql", "compiled": true, "compiled_code": "with organization_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\n),\n\norganization_role_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\n),\n\nworker_position_organization as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position.sql", "original_file_path": "models/staging/stg_workday__position.sql", "unique_id": "model.workday.stg_workday__position", "fqn": ["workday", "staging", "stg_workday__position"], "alias": "stg_workday__position", "checksum": {"name": "sha256", "checksum": "a8eea235110df116f941d206b25f965ace56ec776662153af05d70a2bdf1cd4b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_academic_tenure_eligible": {"name": "is_academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.853346, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_base')),\n staging_columns=get_position_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_base", "package": null, "version": null}, {"name": "stg_workday__position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_group"], "alias": "stg_workday__job_family_group", "checksum": {"name": "sha256", "checksum": "91495541dd20c1e46fd9fc7074605bd8d766196513173eb2e6d6d2abd779474a"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summary": {"name": "job_family_group_summary", "description": "The summary of the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.849737, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_group_base')),\n staging_columns=get_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_profile.sql", "original_file_path": "models/staging/stg_workday__job_family_job_profile.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile", "fqn": ["workday", "staging", "stg_workday__job_family_job_profile"], "alias": "stg_workday__job_family_job_profile", "checksum": {"name": "sha256", "checksum": "22f926dc89704581204ef1db5906e7fc184c404d53dc5141b47056de357d6066"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.847691, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_profile_base')),\n staging_columns=get_job_family_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role_worker.sql", "original_file_path": "models/staging/stg_workday__organization_role_worker.sql", "unique_id": "model.workday.stg_workday__organization_role_worker", "fqn": ["workday", "staging", "stg_workday__organization_role_worker"], "alias": "stg_workday__organization_role_worker", "checksum": {"name": "sha256", "checksum": "6cbf3f20ac378d061a6c9034bd75c08e7cf7079ac12c8b167c31e6e1c0e54fa6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_worker_code": {"name": "organization_worker_code", "description": "The worker code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.85057, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_worker_base')),\n staging_columns=get_organization_role_worker_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_worker_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role_worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role.sql", "original_file_path": "models/staging/stg_workday__organization_role.sql", "unique_id": "model.workday.stg_workday__organization_role", "fqn": ["workday", "staging", "stg_workday__organization_role"], "alias": "stg_workday__organization_role", "checksum": {"name": "sha256", "checksum": "d20118b8c8234cda8e96b2df978fdce2aa46bbdb356ebac5b29680663d105e05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.850084, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_base')),\n staging_columns=get_organization_role_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position.sql", "original_file_path": "models/staging/stg_workday__worker_position.sql", "unique_id": "model.workday.stg_workday__worker_position", "fqn": ["workday", "staging", "stg_workday__worker_position"], "alias": "stg_workday__worker_position", "checksum": {"name": "sha256", "checksum": "f812d4b0a33146284f402362816bc05ca7a5e85fa228207ea0df356396906025"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the positions held by workers in the Workday system", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.8623738, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_base')),\n staging_columns=get_worker_position_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_contact_email_address.sql", "original_file_path": "models/staging/stg_workday__person_contact_email_address.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address", "fqn": ["workday", "staging", "stg_workday__person_contact_email_address"], "alias": "stg_workday__person_contact_email_address", "checksum": {"name": "sha256", "checksum": "fc93cd7747b3087ad994ab34f0feec9a8293e02f719a8ddb64bf652d786f50e5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_contact_email_address_id": {"name": "person_contact_email_address_id", "description": "The identifier of the personal contact email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.860289, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_contact_email_address_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_contact_email_address_base')),\n staging_columns=get_person_contact_email_address_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_contact_email_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_contact_email_address_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_contact_email_address.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_job_profile.sql", "original_file_path": "models/staging/stg_workday__position_job_profile.sql", "unique_id": "model.workday.stg_workday__position_job_profile", "fqn": ["workday", "staging", "stg_workday__position_job_profile"], "alias": "stg_workday__position_job_profile", "checksum": {"name": "sha256", "checksum": "1bd56f05d8c66dff4d5741a2ca3963cd4859341229686f1e9155289aa86ca3f3"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_job_profile_name": {"name": "position_job_profile_name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.8539011, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_job_profile_base')),\n staging_columns=get_position_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__position_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position_organization.sql", "original_file_path": "models/staging/stg_workday__worker_position_organization.sql", "unique_id": "model.workday.stg_workday__worker_position_organization", "fqn": ["workday", "staging", "stg_workday__worker_position_organization"], "alias": "stg_workday__worker_position_organization", "checksum": {"name": "sha256", "checksum": "c06c632d0c5bc211074ad78e1d36ea19e68ad03423068316bd207e3978472684"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.864972, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_organization_base')),\n staging_columns=get_worker_position_organization_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_profile.sql", "original_file_path": "models/staging/stg_workday__job_profile.sql", "unique_id": "model.workday.stg_workday__job_profile", "fqn": ["workday", "staging", "stg_workday__job_profile"], "alias": "stg_workday__job_profile", "checksum": {"name": "sha256", "checksum": "c58fefde4e2bab4dfcc7d23f270ba41e4b3a785de9c0f221854b44ce088753d6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_job_code_in_name": {"name": "is_include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_public_job": {"name": "is_public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.8472152, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_profile_base')),\n staging_columns=get_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_organization.sql", "original_file_path": "models/staging/stg_workday__position_organization.sql", "unique_id": "model.workday.stg_workday__position_organization", "fqn": ["workday", "staging", "stg_workday__position_organization"], "alias": "stg_workday__position_organization", "checksum": {"name": "sha256", "checksum": "3e066e026cb6c5a57a3780d60185e331275a40666ec842bd51a9f5214c8106f0"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.852439, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_organization_base')),\n staging_columns=get_position_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_organization_base", "package": null, "version": null}, {"name": "stg_workday__position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_leave_status.sql", "original_file_path": "models/staging/stg_workday__worker_leave_status.sql", "unique_id": "model.workday.stg_workday__worker_leave_status", "fqn": ["workday", "staging", "stg_workday__worker_leave_status"], "alias": "stg_workday__worker_leave_status", "checksum": {"name": "sha256", "checksum": "7a780769764a426e346115891309d38326b383297d43976f5b368feefe555e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the leave status of workers in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_benefits_effect": {"name": "is_benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_caesarean_section_birth": {"name": "is_caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_continuous_service_accrual_effect": {"name": "is_continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_multiple_child_indicator": {"name": "is_multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_on_leave": {"name": "is_on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_paid_time_off_accrual_effect": {"name": "is_paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_payroll_effect": {"name": "is_payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_single_parent_indicator": {"name": "is_single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_stock_vesting_effect": {"name": "is_stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_related": {"name": "is_work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.864518, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_leave_status_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_leave_status_base')),\n staging_columns=get_worker_leave_status_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}, {"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_leave_status_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__worker_leave_status_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_leave_status.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_name.sql", "original_file_path": "models/staging/stg_workday__person_name.sql", "unique_id": "model.workday.stg_workday__person_name", "fqn": ["workday", "staging", "stg_workday__person_name"], "alias": "stg_workday__person_name", "checksum": {"name": "sha256", "checksum": "da74b8517c3659e32fa4600075b2c78fd9edf3b9d67b062a39aceeb7007a8106"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the name information for an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_name_type": {"name": "person_name_type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.8590562, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_name_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_name_base')),\n staging_columns=get_person_name_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_name_base", "package": null, "version": null}, {"name": "stg_workday__person_name_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_name_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_name_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_name.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information_ethnicity.sql", "original_file_path": "models/staging/stg_workday__personal_information_ethnicity.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity", "fqn": ["workday", "staging", "stg_workday__personal_information_ethnicity"], "alias": "stg_workday__personal_information_ethnicity", "checksum": {"name": "sha256", "checksum": "1cddb347cc063152fdf7519ab20008979c18819cf57eda40f40b5c0ae4df795c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.8594, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_ethnicity_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_ethnicity_base')),\n staging_columns=get_personal_information_ethnicity_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_ethnicity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information_ethnicity.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_job_family.sql", "original_file_path": "models/staging/stg_workday__organization_job_family.sql", "unique_id": "model.workday.stg_workday__organization_job_family", "fqn": ["workday", "staging", "stg_workday__organization_job_family"], "alias": "stg_workday__organization_job_family", "checksum": {"name": "sha256", "checksum": "25a30264c730bb3d4ed427d08d7262415aa13c72bda44f292aef305dabadb4dc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.850899, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_job_family_base')),\n staging_columns=get_organization_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family_base", "package": null, "version": null}, {"name": "stg_workday__organization_job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family.sql", "original_file_path": "models/staging/stg_workday__job_family.sql", "unique_id": "model.workday.stg_workday__job_family", "fqn": ["workday", "staging", "stg_workday__job_family"], "alias": "stg_workday__job_family", "checksum": {"name": "sha256", "checksum": "2b55aade2b7c5f3aaa66b8689637aecadf3960de67f0df66ecd9d511ec3f4a2c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summary": {"name": "job_family_summary", "description": "The summary of the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.848887, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_base')),\n staging_columns=get_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_base", "package": null, "version": null}, {"name": "stg_workday__job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__military_service.sql", "original_file_path": "models/staging/stg_workday__military_service.sql", "unique_id": "model.workday.stg_workday__military_service", "fqn": ["workday", "staging", "stg_workday__military_service"], "alias": "stg_workday__military_service", "checksum": {"name": "sha256", "checksum": "2723e93ad3a6b887aa7d9b8c5d97bee2714a4b0d8ff0c80decb8be429e77b709"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about an individual's military service in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.859809, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__military_service_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__military_service_base')),\n staging_columns=get_military_service_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__military_service_base", "package": null, "version": null}, {"name": "stg_workday__military_service_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_military_service_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__military_service_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__military_service.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information.sql", "original_file_path": "models/staging/stg_workday__personal_information.sql", "unique_id": "model.workday.stg_workday__personal_information", "fqn": ["workday", "staging", "stg_workday__personal_information"], "alias": "stg_workday__personal_information", "checksum": {"name": "sha256", "checksum": "99c2547b9cba3b9798c54da22173f0f4e2d0db3f9623673fc37f0c6f081646bd"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "The personal information associated with each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.8581, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_base')),\n staging_columns=get_personal_information_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__personal_information_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_job_family_group"], "alias": "stg_workday__job_family_job_family_group", "checksum": {"name": "sha256", "checksum": "6fd4740d69f85753d0bf54a02768c8d9b8887e6e58481511bb3067f6dbe9b7eb"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.849239, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_family_group_base')),\n staging_columns=get_job_family_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker.sql", "original_file_path": "models/staging/stg_workday__worker.sql", "unique_id": "model.workday.stg_workday__worker", "fqn": ["workday", "staging", "stg_workday__worker"], "alias": "stg_workday__worker", "checksum": {"name": "sha256", "checksum": "eabb44e7218212b2cfa0ed153715acd2cd920d91f48a20884f237d3307a8d88d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.8569212, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_base')),\n staging_columns=get_worker_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization.sql", "original_file_path": "models/staging/stg_workday__organization.sql", "unique_id": "model.workday.stg_workday__organization", "fqn": ["workday", "staging", "stg_workday__organization"], "alias": "stg_workday__organization", "checksum": {"name": "sha256", "checksum": "ddc0897b633fd79f01412ef8b78788ca8168409bbdd6a076e7ae77eae46e5b4c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Identifier for the organization.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_description": {"name": "organization_description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_manager_in_name": {"name": "is_include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_organization_code_in_name": {"name": "is_include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_location": {"name": "organization_location", "description": "The location of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.852118, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_base')),\n staging_columns=get_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_base", "package": null, "version": null}, {"name": "stg_workday__organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_family_group_base"], "alias": "stg_workday__job_family_job_family_group_base", "checksum": {"name": "sha256", "checksum": "e2032528b0352adb9b447a62934a158666a681a00bfd8821c454342850710217"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.1628768, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_family_group"], ["workday", "job_family_job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_ethnicity_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_ethnicity_base"], "alias": "stg_workday__personal_information_ethnicity_base", "checksum": {"name": "sha256", "checksum": "83d4f52d542558f35ac9c4bca924abf5d50bd6d060b57de257d9b3a8011375bc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.180563, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_ethnicity', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_ethnicity',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_ethnicity"], ["workday", "personal_information_ethnicity"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_group_base"], "alias": "stg_workday__job_family_group_base", "checksum": {"name": "sha256", "checksum": "bea26ff96c14d3e08fd64f97fbc8fbefc3cc6cc6726f7eb27132f966e3ace85d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.18402, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_group"], ["workday", "job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_organization_base.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_organization_base"], "alias": "stg_workday__worker_position_organization_base", "checksum": {"name": "sha256", "checksum": "42729b33f262620d892e95707fef1e711b95c66a4df3fb612d1eb73d024a7e38"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.187336, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_organization_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_organization_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_organization_history"], ["workday", "worker_position_organization_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_base.sql", "original_file_path": "models/staging/base/stg_workday__position_base.sql", "unique_id": "model.workday.stg_workday__position_base", "fqn": ["workday", "staging", "base", "stg_workday__position_base"], "alias": "stg_workday__position_base", "checksum": {"name": "sha256", "checksum": "4ccfff02ed1a6e0e94868985aa08ad5eaac5c78e608ae24eb36ebeb3da3b1443"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.1905239, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position"], ["workday", "position"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_contact_email_address_base.sql", "original_file_path": "models/staging/base/stg_workday__person_contact_email_address_base.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "fqn": ["workday", "staging", "base", "stg_workday__person_contact_email_address_base"], "alias": "stg_workday__person_contact_email_address_base", "checksum": {"name": "sha256", "checksum": "2bfb4c913c999795db2691f4b3bc115fbae9bbad6e4eb59ad305bc057e7e0e5b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.1936908, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_contact_email_address', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_contact_email_address',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_contact_email_address"], ["workday", "person_contact_email_address"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_contact_email_address_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_job_family_base.sql", "unique_id": "model.workday.stg_workday__organization_job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_job_family_base"], "alias": "stg_workday__organization_job_family_base", "checksum": {"name": "sha256", "checksum": "8a999ebe4367e8c4e6994124834c09f9d1eeb411d6e00353c9995bc0900ee1ea"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.197622, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_job_family"], ["workday", "organization_job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_profile_base"], "alias": "stg_workday__job_family_job_profile_base", "checksum": {"name": "sha256", "checksum": "61149fbd447008acfc11c0cce919a3dcdfc878b1e43f1a904bed99cd0e12e934"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.200774, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_profile"], ["workday", "job_family_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__position_organization_base.sql", "unique_id": "model.workday.stg_workday__position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__position_organization_base"], "alias": "stg_workday__position_organization_base", "checksum": {"name": "sha256", "checksum": "e9e1144f5ba976bda0612b7899e5c418c8f2880a69bb98c7bd61826b438cf705"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.204009, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_organization"], ["workday", "position_organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_base.sql", "unique_id": "model.workday.stg_workday__organization_role_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_base"], "alias": "stg_workday__organization_role_base", "checksum": {"name": "sha256", "checksum": "7da1ae4c5e420c6a429f6082802496377da44449aefb62728c64e31c64923832"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.20715, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role"], ["workday", "organization_role"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_leave_status_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_leave_status_base.sql", "unique_id": "model.workday.stg_workday__worker_leave_status_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_leave_status_base"], "alias": "stg_workday__worker_leave_status_base", "checksum": {"name": "sha256", "checksum": "25de6c8505c09d17787931dd2ad7fb497ee4fcc6ad9c076417ac327d38b2cee5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.210281, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_leave_status', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_leave_status',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_leave_status"], ["workday", "worker_leave_status"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_leave_status_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_base.sql", "unique_id": "model.workday.stg_workday__job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_base"], "alias": "stg_workday__job_family_base", "checksum": {"name": "sha256", "checksum": "a6d51501e8a9f185408e2c8c963b04ed89e1f87260216f3e994f324119a0f804"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.214175, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family"], ["workday", "job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_profile_base"], "alias": "stg_workday__job_profile_base", "checksum": {"name": "sha256", "checksum": "ddeb40a89a0b03a8748dae6a224bade7705498441a9f295682bd24ef643fc563"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.2173738, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_profile"], ["workday", "job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_base.sql", "unique_id": "model.workday.stg_workday__organization_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_base"], "alias": "stg_workday__organization_base", "checksum": {"name": "sha256", "checksum": "ee0cb72047f2c7760251317c86318a9f46c5a8be9113fcb7d81b269e1b4b4e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.221036, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization"], ["workday", "organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_worker_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_worker_base.sql", "unique_id": "model.workday.stg_workday__organization_role_worker_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_worker_base"], "alias": "stg_workday__organization_role_worker_base", "checksum": {"name": "sha256", "checksum": "74e858892ef8851aec9a06e4e05dbca91361b09939c257c69db38356d59acf05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.224381, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role_worker', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role_worker',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role_worker"], ["workday", "organization_role_worker"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_base.sql", "unique_id": "model.workday.stg_workday__worker_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_base"], "alias": "stg_workday__worker_base", "checksum": {"name": "sha256", "checksum": "5f0f82a654f8f22d1e129cebdf87aa064125f5deeeca51c50d53f249dd0d96e1"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.2276201, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_history"], ["workday", "worker_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__position_job_profile_base.sql", "unique_id": "model.workday.stg_workday__position_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__position_job_profile_base"], "alias": "stg_workday__position_job_profile_base", "checksum": {"name": "sha256", "checksum": "7a2843eac9ceff71866501a413274121b15a2e8d1337b83962e0045cb1b403c5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.231694, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_job_profile"], ["workday", "position_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_base.sql", "unique_id": "model.workday.stg_workday__worker_position_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_base"], "alias": "stg_workday__worker_position_base", "checksum": {"name": "sha256", "checksum": "8a8431d94738ad8c342bba23f86ace1e658cf63ac9254481bf8463622129514e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.2350368, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_history"], ["workday", "worker_position_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_name_base.sql", "original_file_path": "models/staging/base/stg_workday__person_name_base.sql", "unique_id": "model.workday.stg_workday__person_name_base", "fqn": ["workday", "staging", "base", "stg_workday__person_name_base"], "alias": "stg_workday__person_name_base", "checksum": {"name": "sha256", "checksum": "85c57cfa1fe54db08605b75e32060e1bd488a4f71eae27b2cb8a2805ac4ac655"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.2386088, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_name', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_name',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_name"], ["workday", "person_name"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_name"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_name_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__military_service_base.sql", "original_file_path": "models/staging/base/stg_workday__military_service_base.sql", "unique_id": "model.workday.stg_workday__military_service_base", "fqn": ["workday", "staging", "base", "stg_workday__military_service_base"], "alias": "stg_workday__military_service_base", "checksum": {"name": "sha256", "checksum": "9478cb8eea5671a0261ed280e3723a9ad826ee22b77b9dfe709be5fc85fd295e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.242344, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='military_service', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='military_service',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "military_service"], ["workday", "military_service"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.military_service"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__military_service_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_base.sql", "unique_id": "model.workday.stg_workday__personal_information_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_base"], "alias": "stg_workday__personal_information_base", "checksum": {"name": "sha256", "checksum": "0767af75bcb79f32dd324d8bf4e57ffc0d0014bda0609b426df78cdc17566e96"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709769128.2461739, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_history"], ["workday", "personal_information_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__employee_daily_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__employee_daily_history.sql", "original_file_path": "models/workday_history/workday__employee_daily_history.sql", "unique_id": "model.workday.workday__employee_daily_history", "fqn": ["workday", "workday_history", "workday__employee_daily_history"], "alias": "workday__employee_daily_history", "checksum": {"name": "sha256", "checksum": "4ada61bc97ed0ac5a3bed2eb2d588ec01b390123e0a226993d24b72d579c27e2"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709769128.2586591, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"", "raw_code": "{% if execute %}\n {% set date_query %}\n select \n {{ dbt.date_trunc('day', dbt.current_timestamp_backcompat()) }} as max_date\n {% endset %}\n\n {% set last_date = run_query(date_query).columns[0][0]|string %}\n\n {# If only compiling, creates range going back 1 year #}\n {% else %} \n {% set last_date = dbt.dateadd(\"year\", \"-1\", \"current_date\") %}\n {% endif %}\n\n\nwith spine as (\n {# Prioritizes variables over calculated dates #}\n {% set first_date = var('worker_history_start_date', '2020-01-01')|string %}\n {% set last_date = last_date|string %}\n\n {{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date = \"cast('\" ~ first_date[0:10] ~ \"'as date)\",\n end_date = \"cast('\" ~ last_date[0:10] ~ \"'as date)\"\n )\n }}\n),\n\nemployee_history as (\n\n select * \n from {{ ref('int_workday__employee_history') }}\n {% if is_incremental() %}\n where _fivetran_start >= (select max(cast((_fivetran_start) as {{ dbt.type_timestamp() }})) from {{ this }} )\n {% endif %} \n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['spine.date_day','get_latest_daily_value.employee_id']) }} as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }})\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }})\n)\n\nselect * \nfrom daily_history", "language": "sql", "refs": [{"name": "int_workday__employee_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt.is_incremental", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp", "macro.dbt.current_timestamp_backcompat", "macro.dbt.date_trunc", "macro.dbt.run_query"], "nodes": ["model.workday.int_workday__employee_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__employee_daily_history.sql", "compiled": true, "compiled_code": "\n \n\n \n\n \n \n\n\nwith spine as (\n \n \n \n\n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 1527\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2020-01-01'as date) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-03-07'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n \n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.employee_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_position_enriched": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_position_enriched", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_position_enriched.sql", "original_file_path": "models/intermediate/int_workday__worker_position_enriched.sql", "unique_id": "model.workday.int_workday__worker_position_enriched", "fqn": ["workday", "intermediate", "int_workday__worker_position_enriched"], "alias": "int_workday__worker_position_enriched", "checksum": {"name": "sha256", "checksum": "44e13b82d0ec37c3dfb879d36d894d9ee8f54e88d2ac941221438b7223047b89"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709769128.278348, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_position_enriched\"", "raw_code": "with worker_position_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker_position') }}\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_at_position,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n),\n\nworker_position_measures as (\n\n select \n worker_id,\n source_relation,\n count(distinct position_id) as worker_positions,\n count(distinct management_level_code) as worker_levels,\n sum(days_at_position) as position_days\n from worker_position_data_enhanced\n group by 1, 2\n),\n\nmost_recent_position as (\n\n select *\n from worker_position_data_enhanced\n where row_number = 1\n),\n\nworker_position_enriched as (\n\n select\n {{ dbt_utils.generate_surrogate_key(['worker_position_data_enhanced.worker_id', \n 'position_id', 'position_start_date']) }} as employee_id,\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_at_position,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date,\n worker_position_measures.worker_positions,\n worker_position_measures.worker_levels, \n worker_position_measures.position_days\n from worker_position_data_enhanced\n left join worker_position_measures \n on worker_position_data_enhanced.worker_id = worker_position_measures.worker_id\n and worker_position_data_enhanced.source_relation = worker_position_measures.source_relation\n)\n\nselect * \nfrom worker_position_enriched", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_position_enriched.sql", "compiled": true, "compiled_code": "with worker_position_data as (\n\n select \n *,\n now() as current_date\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_at_position,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n),\n\nworker_position_measures as (\n\n select \n worker_id,\n source_relation,\n count(distinct position_id) as worker_positions,\n count(distinct management_level_code) as worker_levels,\n sum(days_at_position) as position_days\n from worker_position_data_enhanced\n group by 1, 2\n),\n\nmost_recent_position as (\n\n select *\n from worker_position_data_enhanced\n where row_number = 1\n),\n\nworker_position_enriched as (\n\n select\n md5(cast(coalesce(cast(worker_position_data_enhanced.worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_at_position,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date,\n worker_position_measures.worker_positions,\n worker_position_measures.worker_levels, \n worker_position_measures.position_days\n from worker_position_data_enhanced\n left join worker_position_measures \n on worker_position_data_enhanced.worker_id = worker_position_measures.worker_id\n and worker_position_data_enhanced.source_relation = worker_position_measures.source_relation\n)\n\nselect * \nfrom worker_position_enriched", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__personal_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__personal_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__personal_details.sql", "original_file_path": "models/intermediate/int_workday__personal_details.sql", "unique_id": "model.workday.int_workday__personal_details", "fqn": ["workday", "intermediate", "int_workday__personal_details"], "alias": "int_workday__personal_details", "checksum": {"name": "sha256", "checksum": "594516db9541d923dcc1958d6ed5747fb91aee48aaa01e0acf8fcbd2fb1a8950"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709769128.287209, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__personal_details\"", "raw_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from {{ ref('stg_workday__personal_information') }}\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from {{ ref('stg_workday__person_name') }}\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from {{ ref('stg_workday__person_contact_email_address') }}\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n {{ fivetran_utils.string_agg('distinct ethnicity_code', \"', '\" ) }} as ethnicity_codes\n from {{ ref('stg_workday__personal_information_ethnicity') }}\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from {{ ref('stg_workday__military_service') }}\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}, {"name": "stg_workday__person_name", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}, {"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.workday.stg_workday__personal_information", "model.workday.stg_workday__person_name", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__personal_information_ethnicity", "model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__personal_details.sql", "compiled": true, "compiled_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_details.sql", "original_file_path": "models/intermediate/int_workday__worker_details.sql", "unique_id": "model.workday.int_workday__worker_details", "fqn": ["workday", "intermediate", "int_workday__worker_details"], "alias": "int_workday__worker_details", "checksum": {"name": "sha256", "checksum": "98594d1ac2b7a464df705e177c7c849fd4b4514e9ecee135ba1fc1cb20c78a15"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709769128.291425, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_details\"", "raw_code": "with worker_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker') }}\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then {{ dbt.datediff('hire_date', 'current_date', 'day') }}\n else {{ dbt.datediff('hire_date', 'termination_date', 'day') }}\n end as days_of_employment,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_details.sql", "compiled": true, "compiled_code": "with worker_data as (\n\n select \n *,\n now() as current_date\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_of_employment,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_employee_enhanced": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_employee_enhanced", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_employee_enhanced.sql", "original_file_path": "models/intermediate/int_workday__worker_employee_enhanced.sql", "unique_id": "model.workday.int_workday__worker_employee_enhanced", "fqn": ["workday", "intermediate", "int_workday__worker_employee_enhanced"], "alias": "int_workday__worker_employee_enhanced", "checksum": {"name": "sha256", "checksum": "bd26b685c21ba0956dccd0699129c1236ea6f764cde5f8fcc2dbeece75bd123a"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709769128.2949681, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_employee_enhanced\"", "raw_code": "with int_worker_base as (\n\n select * \n from {{ ref('int_workday__worker_details') }} \n),\n\nint_worker_personal_details as (\n\n select * \n from {{ ref('int_workday__personal_details') }} \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from {{ ref('int_workday__worker_position_enriched') }} \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n days_at_position,\n position_start_date,\n position_end_date,\n position_effective_date,\n worker_positions,\n worker_levels,\n position_days,\n case when days_of_employment >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_of_employment >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_of_employment >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_of_employment >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_of_employment >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_of_employment >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_of_employment >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_of_employment >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_of_employment >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_of_employment >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "language": "sql", "refs": [{"name": "int_workday__worker_details", "package": null, "version": null}, {"name": "int_workday__personal_details", "package": null, "version": null}, {"name": "int_workday__worker_position_enriched", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.int_workday__worker_details", "model.workday.int_workday__personal_details", "model.workday.int_workday__worker_position_enriched"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_employee_enhanced.sql", "compiled": true, "compiled_code": "with int_worker_base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_details\" \n),\n\nint_worker_personal_details as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__personal_details\" \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_position_enriched\" \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n days_at_position,\n position_start_date,\n position_end_date,\n position_effective_date,\n worker_positions,\n worker_levels,\n position_days,\n case when days_of_employment >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_of_employment >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_of_employment >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_of_employment >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_of_employment >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_of_employment >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_of_employment >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_of_employment >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_of_employment >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_of_employment >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__employee_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "resource_type": "model", "package_name": "workday", "path": "intermediate/workday_history/int_workday__employee_history.sql", "original_file_path": "models/intermediate/workday_history/int_workday__employee_history.sql", "unique_id": "model.workday.int_workday__employee_history", "fqn": ["workday", "intermediate", "workday_history", "int_workday__employee_history"], "alias": "int_workday__employee_history", "checksum": {"name": "sha256", "checksum": "151b3ea2521e48c1117d2b168f5a7d357d05caae5c4a4a50a29fe1103a4833d9"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709769128.296414, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"", "raw_code": "with worker_history as (\n\n select *\n from {{ ref('stg_workday__worker_history') }}\n),\n\nworker_position_history as (\n\n select *\n from {{ ref('stg_workday__worker_position_history') }}\n),\n\npersonal_information_history as (\n\n select *\n from {{ ref('stg_workday__personal_information_history') }}\n),\n\nworker_start_records as (\n\n select worker_id, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n _fivetran_start\n from personal_information_history\n order by worker_id, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead({{ dbt.dateadd('microsecond', -1, '_fivetran_start') }} ) over(partition by worker_id order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as {{ dbt.type_timestamp() }}),\n cast('9999-12-31 23:59:59.999000' as {{ dbt.type_timestamp() }})) as _fivetran_end\n from worker_history_end_values\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_history_scd as (\n\n select worker_history_scd.worker_id, \n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as wh_active,\n worker_position_history._fivetran_active as wph_active,\n worker_history.end_employment_date as wh_end_employment_date,\n worker_position_history.end_employment_date as wph_end_employment_date,\n worker_history.pay_through_date as wh_pay_through_date,\n worker_position_history.pay_through_date as wph_pay_through_date,\n {{ dbt_utils.star(from=ref('stg_workday__worker_history'), except=[\"worker_id\", \"_fivetran_start\", \"_fivetran_end\", \"_fivetran_synced\", \"_fivetran_active\", \"_fivetran_date\", \"history_unique_key\", \"end_employment_date\", \"pay_through_date\"]) }},\n {{ dbt_utils.star(from=ref('stg_workday__worker_position_history'), except=[\"worker_id\", \"position_id\", \"_fivetran_start\", \"_fivetran_end\", \"_fivetran_synced\", \"_fivetran_active\", \"_fivetran_date\", \"history_unique_key\", \"end_employment_date\", \"pay_through_date\"])}},\n {{ dbt_utils.star(from=ref('stg_workday__personal_information_history'), except=[\"worker_id\", \"_fivetran_start\", \"_fivetran_end\", \"_fivetran_synced\", \"_fivetran_active\", \"_fivetran_date\", \"history_unique_key\"])}}\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_key as (\n\n select {{ dbt_utils.generate_surrogate_key(['worker_id','position_id','start_date']) }} as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n)\n\nselect * \nfrom employee_key", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}, {"name": "stg_workday__worker_position_history", "package": null, "version": null}, {"name": "stg_workday__personal_information_history", "package": null, "version": null}, {"name": "stg_workday__worker_history", "package": null, "version": null}, {"name": "stg_workday__worker_position_history", "package": null, "version": null}, {"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.type_timestamp", "macro.dbt_utils.star", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history", "model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/intermediate/workday_history/int_workday__employee_history.sql", "compiled": true, "compiled_code": "with worker_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\n),\n\nworker_position_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\n),\n\npersonal_information_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\n),\n\nworker_start_records as (\n\n select worker_id, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n _fivetran_start\n from personal_information_history\n order by worker_id, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_history_scd as (\n\n select worker_history_scd.worker_id, \n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as wh_active,\n worker_position_history._fivetran_active as wph_active,\n worker_history.end_employment_date as wh_end_employment_date,\n worker_position_history.end_employment_date as wph_end_employment_date,\n worker_history.pay_through_date as wh_pay_through_date,\n worker_position_history.pay_through_date as wph_pay_through_date,\n \"termination_date\",\n \"academic_tenure_date\",\n \"active\",\n \"active_status_date\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_frequency\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_total_salary_and_allowances\",\n \"annual_summary_currency\",\n \"annual_summary_frequency\",\n \"annual_summary_primary_compensation_basis\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_total_salary_and_allowances\",\n \"benefits_service_date\",\n \"company_service_date\",\n \"compensation_effective_date\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"continuous_service_date\",\n \"contract_assignment_details\",\n \"contract_currency_code\",\n \"contract_end_date\",\n \"contract_frequency_name\",\n \"contract_pay_rate\",\n \"contract_vendor_name\",\n \"date_entered_workforce\",\n \"days_unemployed\",\n \"eligible_for_hire\",\n \"eligible_for_rehire_on_latest_termination\",\n \"employee_compensation_currency\",\n \"employee_compensation_frequency\",\n \"employee_compensation_primary_compensation_basis\",\n \"employee_compensation_total_base_pay\",\n \"employee_compensation_total_salary_and_allowances\",\n \"expected_date_of_return\",\n \"expected_retirement_date\",\n \"first_day_of_work\",\n \"has_international_assignment\",\n \"hire_date\",\n \"hire_reason\",\n \"hire_rescinded\",\n \"hourly_frequency_currency\",\n \"hourly_frequency_frequency\",\n \"hourly_frequency_primary_compensation_basis\",\n \"hourly_frequency_total_base_pay\",\n \"hourly_frequency_total_salary_and_allowances\",\n \"last_datefor_which_paid\",\n \"local_termination_reason\",\n \"months_continuous_prior_employment\",\n \"not_returning\",\n \"original_hire_date\",\n \"pay_group_frequency_currency\",\n \"pay_group_frequency_frequency\",\n \"pay_group_frequency_primary_compensation_basis\",\n \"pay_group_frequency_total_base_pay\",\n \"pay_group_frequency_total_salary_and_allowances\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"probation_end_date\",\n \"probation_start_date\",\n \"reason_reference_id\",\n \"regrettable_termination\",\n \"rehire\",\n \"resignation_date\",\n \"retired\",\n \"retirement_date\",\n \"retirement_eligibility_date\",\n \"return_unknown\",\n \"seniority_date\",\n \"severance_date\",\n \"terminated\",\n \"termination_involuntary\",\n \"termination_last_day_of_work\",\n \"time_off_service_date\",\n \"universal_id\",\n \"user_id\",\n \"vesting_date\",\n \"worker_code\",\n \"effective_date\",\n \"academic_pay_setup_data_annual_work_period_end_date\",\n \"academic_pay_setup_data_annual_work_period_start_date\",\n \"academic_pay_setup_data_annual_work_period_work_percent_of_year\",\n \"academic_pay_setup_data_disbursement_plan_period_end_date\",\n \"academic_pay_setup_data_disbursement_plan_period_start_date\",\n \"business_site_summary_display_language\",\n \"business_site_summary_local\",\n \"business_site_summary_location\",\n \"business_site_summary_location_type\",\n \"business_site_summary_name\",\n \"business_site_summary_scheduled_weekly_hours\",\n \"business_site_summary_time_profile\",\n \"business_title\",\n \"critical_job\",\n \"default_weekly_hours\",\n \"difficulty_to_fill\",\n \"employee_type\",\n \"end_date\",\n \"exclude_from_head_count\",\n \"expected_assignment_end_date\",\n \"external_employee\",\n \"federal_withholding_fein\",\n \"frequency\",\n \"full_time_equivalent_percentage\",\n \"headcount_restriction_code\",\n \"host_country\",\n \"international_assignment_type\",\n \"is_primary_job\",\n \"job_exempt\",\n \"job_profile_id\",\n \"management_level_code\",\n \"paid_fte\",\n \"pay_group\",\n \"pay_rate\",\n \"pay_rate_type\",\n \"payroll_entity\",\n \"payroll_file_number\",\n \"regular_paid_equivalent_hours\",\n \"scheduled_weekly_hours\",\n \"specify_paid_fte\",\n \"specify_working_fte\",\n \"start_date\",\n \"start_international_assignment_reason\",\n \"work_hours_profile\",\n \"work_shift\",\n \"work_shift_required\",\n \"work_space\",\n \"worker_hours_profile_classification\",\n \"working_fte\",\n \"working_time_frequency\",\n \"working_time_unit\",\n \"working_time_value\",\n \"type\",\n \"additional_nationality\",\n \"blood_type\",\n \"citizenship_status\",\n \"city_of_birth\",\n \"city_of_birth_code\",\n \"country_of_birth\",\n \"date_of_birth\",\n \"date_of_death\",\n \"gender\",\n \"hispanic_or_latino\",\n \"hukou_locality\",\n \"hukou_postal_code\",\n \"hukou_region\",\n \"hukou_subregion\",\n \"hukou_type\",\n \"last_medical_exam_date\",\n \"last_medical_exam_valid_to\",\n \"local_hukou\",\n \"marital_status\",\n \"marital_status_date\",\n \"medical_exam_notes\",\n \"native_region\",\n \"native_region_code\",\n \"personnel_file_agency\",\n \"political_affiliation\",\n \"primary_nationality\",\n \"region_of_birth\",\n \"region_of_birth_code\",\n \"religion\",\n \"social_benefit\",\n \"tobacco_use\",\n \"ll\"\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n)\n\nselect * \nfrom employee_key", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_overview_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_overview_worker_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "fqn": ["workday", "not_null_workday__employee_overview_worker_id"], "alias": "not_null_workday__employee_overview_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.7372139, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__employee_overview_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "position_id", "position_start_date"], "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date"], "alias": "dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d"}, "created_at": 1709769128.7385468, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d\") }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, position_id, position_start_date\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\n group by source_relation, worker_id, position_id, position_start_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__job_overview_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__job_overview_job_profile_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "fqn": ["workday", "not_null_workday__job_overview_job_profile_id"], "alias": "not_null_workday__job_overview_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.745672, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__job_overview_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656"}, "created_at": 1709769128.7468412, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656\") }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.not_null_workday__position_overview_position_id.603beb3f22": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__position_overview_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__position_overview_position_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "fqn": ["workday", "not_null_workday__position_overview_position_id"], "alias": "not_null_workday__position_overview_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.749557, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__position_overview_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e"}, "created_at": 1709769128.750697, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e\") }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "fqn": ["workday", "not_null_workday__organization_overview_organization_id"], "alias": "not_null_workday__organization_overview_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.7534568, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_role_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "fqn": ["workday", "not_null_workday__organization_overview_organization_role_id"], "alias": "not_null_workday__organization_overview_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.754408, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1"}, "created_at": 1709769128.75549, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1\") }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "fqn": ["workday", "staging", "not_null_stg_workday__job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.865663, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1"}, "created_at": 1709769128.8669271, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_family_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.869706, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.870822, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id"], "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378"}, "created_at": 1709769128.8720782, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.875057, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id"], "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd"}, "created_at": 1709769128.8762932, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_group_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.8789551, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af"}, "created_at": 1709769128.880009, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_group_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4"}, "created_at": 1709769128.880975, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_group_job_family_group_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_family_group_job_family_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.883553, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_group_job_family_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_group_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5"}, "created_at": 1709769128.884532, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_group_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_id"], "alias": "not_null_stg_workday__organization_role_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.887742, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_role_id"], "alias": "not_null_stg_workday__organization_role_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.888801, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id"], "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908"}, "created_at": 1709769128.889706, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_worker_code", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_worker_code", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_worker_code"], "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda"}, "created_at": 1709769128.892212, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_worker_code\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere organization_worker_code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_worker_code", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_id"], "alias": "not_null_stg_workday__organization_role_worker_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.893121, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_role_id"], "alias": "not_null_stg_workday__organization_role_worker_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.8940082, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect role_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "role_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_worker_code", "organization_id", "role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id"], "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a"}, "created_at": 1709769128.895159, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_job_family_id"], "alias": "not_null_stg_workday__organization_job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.8976362, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_organization_id"], "alias": "not_null_stg_workday__organization_job_family_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.898579, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id"], "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456"}, "created_at": 1709769128.899717, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_organization_id"], "alias": "not_null_stg_workday__organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.902037, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id"], "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5"}, "created_at": 1709769128.903168, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_organization_id"], "alias": "not_null_stg_workday__position_organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.9052641, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_position_id"], "alias": "not_null_stg_workday__position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.906796, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id"], "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc"}, "created_at": 1709769128.907897, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "fqn": ["workday", "staging", "not_null_stg_workday__position_position_id"], "alias": "not_null_stg_workday__position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.9101691, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32"}, "created_at": 1709769128.911335, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32\") }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_job_profile_id"], "alias": "not_null_stg_workday__position_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.913815, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_position_id"], "alias": "not_null_stg_workday__position_job_profile_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.914919, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id"], "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62"}, "created_at": 1709769128.9161751, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "fqn": ["workday", "staging", "not_null_stg_workday__worker_worker_id"], "alias": "not_null_stg_workday__worker_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.918952, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33"}, "created_at": 1709769128.919984, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_worker_id"], "alias": "not_null_stg_workday__personal_information_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.923177, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13"}, "created_at": 1709769128.9242399, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_worker_id"], "alias": "not_null_stg_workday__person_name_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.926744, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_name_type", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_person_name_type", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_person_name_type.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_person_name_type"], "alias": "not_null_stg_workday__person_name_person_name_type", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.927904, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_person_name_type.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect person_name_type\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\nwhere person_name_type is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_name_type", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_name_type"], "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type"], "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574"}, "created_at": 1709769128.929205, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_worker_id"], "alias": "not_null_stg_workday__personal_information_ethnicity_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.931842, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ethnicity_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_ethnicity_id"], "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5"}, "created_at": 1709769128.932752, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ethnicity_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\nwhere ethnicity_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ethnicity_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "ethnicity_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id"], "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5"}, "created_at": 1709769128.933666, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__military_service_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__military_service_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "fqn": ["workday", "staging", "not_null_stg_workday__military_service_worker_id"], "alias": "not_null_stg_workday__military_service_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.93604, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__military_service_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9"}, "created_at": 1709769128.937, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9\") }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_contact_email_address_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id"], "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08"}, "created_at": 1709769128.939892, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect person_contact_email_address_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\nwhere person_contact_email_address_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_contact_email_address_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_contact_email_address_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_worker_id"], "alias": "not_null_stg_workday__person_contact_email_address_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.940952, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_contact_email_address_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_contact_email_address_id"], "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id"], "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb"}, "created_at": 1709769128.941994, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_position_id"], "alias": "not_null_stg_workday__worker_position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.944851, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_worker_id"], "alias": "not_null_stg_workday__worker_position_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.945786, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7"}, "created_at": 1709769128.946798, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "leave_request_event_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_leave_request_event_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_leave_request_event_id"], "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308"}, "created_at": 1709769128.949762, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect leave_request_event_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\nwhere leave_request_event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "leave_request_event_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_leave_status_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_worker_id"], "alias": "not_null_stg_workday__worker_leave_status_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.950735, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_leave_status_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "leave_request_event_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id"], "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f"}, "created_at": 1709769128.951707, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_position_id"], "alias": "not_null_stg_workday__worker_position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.954626, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_worker_id"], "alias": "not_null_stg_workday__worker_position_organization_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709769128.955565, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_organization_id"], "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23"}, "created_at": 1709769128.9564679, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "position_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id"], "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926"}, "created_at": 1709769128.9575639, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "model.workday.stg_workday__personal_information_history": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_history", "resource_type": "model", "package_name": "workday", "path": "staging/workday_history/stg_workday__personal_information_history.sql", "original_file_path": "models/staging/workday_history/stg_workday__personal_information_history.sql", "unique_id": "model.workday.stg_workday__personal_information_history", "fqn": ["workday", "staging", "workday_history", "stg_workday__personal_information_history"], "alias": "stg_workday__personal_information_history", "checksum": {"name": "sha256", "checksum": "d1614bdab8a62008ed9a9ed765578a6a4625df1276c2dfa2faab600b6ab66570"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/workday_history/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709771512.614976, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"", "raw_code": "with base as (\n\n select * \n from {{ source('workday','personal_information_history') }}\n {% if var('personal_information_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('personal_information_history_start_date') }}\"\n {% endif %} \n),\n\nfinal as (\n\n select \n id as worker_id,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key,\n {{ dbt_utils.star(from=source('workday','personal_information_history'),\n except=[\"id\", \"_fivetran_start\", \"_fivetran_end\"]) }}\n from base\n)\n\nselect *\nfrom final", "language": "sql", "refs": [], "sources": [["workday", "personal_information_history"], ["workday", "personal_information_history"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key", "macro.dbt_utils.star"], "nodes": ["source.workday.workday.personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday__personal_information_history.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"\n \n),\n\nfinal as (\n\n select \n id as worker_id,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"type\",\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"additional_nationality\",\n \"blood_type\",\n \"citizenship_status\",\n \"city_of_birth\",\n \"city_of_birth_code\",\n \"country_of_birth\",\n \"date_of_birth\",\n \"date_of_death\",\n \"gender\",\n \"hispanic_or_latino\",\n \"hukou_locality\",\n \"hukou_postal_code\",\n \"hukou_region\",\n \"hukou_subregion\",\n \"hukou_type\",\n \"last_medical_exam_date\",\n \"last_medical_exam_valid_to\",\n \"local_hukou\",\n \"marital_status\",\n \"marital_status_date\",\n \"medical_exam_notes\",\n \"native_region\",\n \"native_region_code\",\n \"personnel_file_agency\",\n \"political_affiliation\",\n \"primary_nationality\",\n \"region_of_birth\",\n \"region_of_birth_code\",\n \"religion\",\n \"social_benefit\",\n \"tobacco_use\",\n \"ll\"\n from base\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_history", "resource_type": "model", "package_name": "workday", "path": "staging/workday_history/stg_workday__worker_position_organization_history.sql", "original_file_path": "models/staging/workday_history/stg_workday__worker_position_organization_history.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_history", "fqn": ["workday", "staging", "workday_history", "stg_workday__worker_position_organization_history"], "alias": "stg_workday__worker_position_organization_history", "checksum": {"name": "sha256", "checksum": "a62832915d38a47324eaad70aa7536684364ef0d5de33e971fad56f29ae87f41"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/workday_history/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709771512.61637, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"", "raw_code": "with base as (\n\n select * \n from {{ source('workday','worker_position_organization_history') }}\n {% if var('worker_position_organization_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('worker_position_organization_history_start_date') }}\"\n {% endif %} \n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id, \n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'organization_id', '_fivetran_start']) }} as history_unique_key,\n {{ dbt_utils.star(from=source('workday','worker_position_organization_history'),\n except=[\"worker_id\", \"position_id\", \"organization_id\", \"_fivetran_start\", \"_fivetran_end\"]) }}\n from base\n)\n\nselect *\nfrom final", "language": "sql", "refs": [], "sources": [["workday", "worker_position_organization_history"], ["workday", "worker_position_organization_history"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key", "macro.dbt_utils.star"], "nodes": ["source.workday.workday.worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday__worker_position_organization_history.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"\n \n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id, \n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"index\",\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"date_of_pay_group_assignment\",\n \"primary_business_site\",\n \"used_in_change_organization_assignments\"\n from base\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__monthly_summary": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__monthly_summary.sql", "original_file_path": "models/workday_history/workday__monthly_summary.sql", "unique_id": "model.workday.workday__monthly_summary", "fqn": ["workday", "workday_history", "workday__monthly_summary"], "alias": "workday__monthly_summary", "checksum": {"name": "sha256", "checksum": "9a3ea829c9169045078660cae00104b4c747fdf8e1ac47f7f405a9f4de9f5833"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1709771512.558947, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"", "raw_code": "with row_month_partition as (\n\n select *, \n {{ dbt.date_trunc(\"month\", \"date_day\") }} as date_month,\n row_number() over (partition by employee_id, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from {{ ref('workday__employee_daily_history') }}\n order by employee_id, date_day\n),\n\nend_of_month_history as (\n \n select *\n from row_month_partition\n where recent_dom_row = 1\n order by employee_id, date_day\n),\n\nmonthly_employee_metrics as (\n\n select date_month,\n sum(case when date_month = {{ dbt.date_trunc(\"month\", \"effective_date\") }} then 1 else 0 end) as new_employees,\n sum(case when date_month = {{ dbt.date_trunc(\"month\", \"termination_date\") }} then 1 else 0 end) as churned_employees,\n sum(case when date_month = {{ dbt.date_trunc(\"month\", \"wh_end_employment_date\") }} then 1 else 0 end) as churned_workers\n from end_of_month_history\n group by 1\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees\n from end_of_month_history\n where date_month >= {{ dbt.date_trunc(\"month\", \"effective_date\") }}\n and (date_month <= {{ dbt.date_trunc(\"month\", \"wph_end_employment_date\") }}\n or wph_end_employment_date is null)\n group by 1\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n count(distinct worker_id) as active_workers\n from end_of_month_history\n where (date_month >= {{ dbt.date_trunc(\"month\", \"effective_date\") }}\n and date_month <= {{ dbt.date_trunc(\"month\", \"wh_end_employment_date\") }})\n or wh_end_employment_date is null\n group by 1\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_worker_metrics.active_workers\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n)\n\nselect *\nfrom monthly_summary", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__monthly_summary.sql", "compiled": true, "compiled_code": "with row_month_partition as (\n\n select *, \n date_trunc('month', date_day) as date_month,\n row_number() over (partition by employee_id, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n order by employee_id, date_day\n),\n\nend_of_month_history as (\n \n select *\n from row_month_partition\n where recent_dom_row = 1\n order by employee_id, date_day\n),\n\nmonthly_employee_metrics as (\n\n select date_month,\n sum(case when date_month = date_trunc('month', effective_date) then 1 else 0 end) as new_employees,\n sum(case when date_month = date_trunc('month', termination_date) then 1 else 0 end) as churned_employees,\n sum(case when date_month = date_trunc('month', wh_end_employment_date) then 1 else 0 end) as churned_workers\n from end_of_month_history\n group by 1\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees\n from end_of_month_history\n where date_month >= date_trunc('month', effective_date)\n and (date_month <= date_trunc('month', wph_end_employment_date)\n or wph_end_employment_date is null)\n group by 1\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n count(distinct worker_id) as active_workers\n from end_of_month_history\n where (date_month >= date_trunc('month', effective_date)\n and date_month <= date_trunc('month', wh_end_employment_date))\n or wh_end_employment_date is null\n group by 1\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_worker_metrics.active_workers\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n)\n\nselect *\nfrom monthly_summary", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_history_worker_id.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__personal_information_history_worker_id"], "alias": "not_null_stg_workday__personal_information_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709771512.682732, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__personal_information_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "fqn": ["workday", "staging", "workday_history", "unique_stg_workday__personal_information_history_history_unique_key"], "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2"}, "created_at": 1709771512.683669, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__personal_information_history_history_unique_key"], "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3"}, "created_at": 1709771512.685021, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c", "fqn": ["workday", "staging", "workday_history", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523"}, "created_at": 1709771512.686107, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_organization_history_worker_id"], "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a"}, "created_at": 1709771512.689112, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_organization_history_position_id"], "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441"}, "created_at": 1709771512.690179, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_organization_history_organization_id"], "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0"}, "created_at": 1709771512.691145, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "fqn": ["workday", "staging", "workday_history", "unique_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22"}, "created_at": 1709771512.6923342, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6"}, "created_at": 1709771512.693284, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "position_id", "organization_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888", "fqn": ["workday", "staging", "workday_history", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71"}, "created_at": 1709771512.694432, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, position_id, organization_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\n group by worker_id, position_id, organization_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "model.workday.stg_workday__worker_history": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_history", "resource_type": "model", "package_name": "workday", "path": "staging/workday_history/stg_workday__worker_history.sql", "original_file_path": "models/staging/workday_history/stg_workday__worker_history.sql", "unique_id": "model.workday.stg_workday__worker_history", "fqn": ["workday", "staging", "workday_history", "stg_workday__worker_history"], "alias": "stg_workday__worker_history", "checksum": {"name": "sha256", "checksum": "871811f2dcd4a997793484169f24940ad34de633860b6d696cb67f34ae4c7f06"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/workday_history/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709771780.2239208, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"", "raw_code": "with base as (\n\n select * \n from {{ source('workday','worker_history') }} \n {% if var('worker_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('worker_history_start_date') }}\"\n {% endif %} \n),\n\nfinal as (\n\n select \n id as worker_id, \n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date,\n cast(termination_date as {{ dbt.type_timestamp() }}) as termination_date,\n {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key,\n {{ dbt_utils.star(from=source('workday','worker_history'),\n except=[\"id\", \"_fivetran_start\", \"_fivetran_end\", \"home_country\", \"end_employment_date\", \"termination_date\"]) }}\n from base\n)\n\nselect *\nfrom final", "language": "sql", "refs": [], "sources": [["workday", "worker_history"], ["workday", "worker_history"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key", "macro.dbt_utils.star"], "nodes": ["source.workday.workday.worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday__worker_history.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\" \n \n),\n\nfinal as (\n\n select \n id as worker_id, \n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n cast(termination_date as timestamp) as termination_date,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"academic_tenure_date\",\n \"active\",\n \"active_status_date\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_frequency\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_total_salary_and_allowances\",\n \"annual_summary_currency\",\n \"annual_summary_frequency\",\n \"annual_summary_primary_compensation_basis\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_total_salary_and_allowances\",\n \"benefits_service_date\",\n \"company_service_date\",\n \"compensation_effective_date\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"continuous_service_date\",\n \"contract_assignment_details\",\n \"contract_currency_code\",\n \"contract_end_date\",\n \"contract_frequency_name\",\n \"contract_pay_rate\",\n \"contract_vendor_name\",\n \"date_entered_workforce\",\n \"days_unemployed\",\n \"eligible_for_hire\",\n \"eligible_for_rehire_on_latest_termination\",\n \"employee_compensation_currency\",\n \"employee_compensation_frequency\",\n \"employee_compensation_primary_compensation_basis\",\n \"employee_compensation_total_base_pay\",\n \"employee_compensation_total_salary_and_allowances\",\n \"expected_date_of_return\",\n \"expected_retirement_date\",\n \"first_day_of_work\",\n \"has_international_assignment\",\n \"hire_date\",\n \"hire_reason\",\n \"hire_rescinded\",\n \"hourly_frequency_currency\",\n \"hourly_frequency_frequency\",\n \"hourly_frequency_primary_compensation_basis\",\n \"hourly_frequency_total_base_pay\",\n \"hourly_frequency_total_salary_and_allowances\",\n \"last_datefor_which_paid\",\n \"local_termination_reason\",\n \"months_continuous_prior_employment\",\n \"not_returning\",\n \"original_hire_date\",\n \"pay_group_frequency_currency\",\n \"pay_group_frequency_frequency\",\n \"pay_group_frequency_primary_compensation_basis\",\n \"pay_group_frequency_total_base_pay\",\n \"pay_group_frequency_total_salary_and_allowances\",\n \"pay_through_date\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"probation_end_date\",\n \"probation_start_date\",\n \"reason_reference_id\",\n \"regrettable_termination\",\n \"rehire\",\n \"resignation_date\",\n \"retired\",\n \"retirement_date\",\n \"retirement_eligibility_date\",\n \"return_unknown\",\n \"seniority_date\",\n \"severance_date\",\n \"terminated\",\n \"termination_involuntary\",\n \"termination_last_day_of_work\",\n \"time_off_service_date\",\n \"universal_id\",\n \"user_id\",\n \"vesting_date\",\n \"worker_code\"\n from base\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_history": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_history", "resource_type": "model", "package_name": "workday", "path": "staging/workday_history/stg_workday__worker_position_history.sql", "original_file_path": "models/staging/workday_history/stg_workday__worker_position_history.sql", "unique_id": "model.workday.stg_workday__worker_position_history", "fqn": ["workday", "staging", "workday_history", "stg_workday__worker_position_history"], "alias": "stg_workday__worker_position_history", "checksum": {"name": "sha256", "checksum": "f2206be46ef04dee39276586e37ce448a8c2070f54b8a0a4b232c0a51410a659"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id` and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/workday_history/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1709771780.232699, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"", "raw_code": "with base as (\n\n select * \n from {{ source('workday','worker_position_history') }}\n {% if var('worker_position_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('worker_position_history_start_date') }}\"\n {% endif %}\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(effective_date as {{ dbt.type_timestamp() }}) as effective_date,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date,\n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', '_fivetran_start']) }} as history_unique_key,\n {{ dbt_utils.star(from=source('workday','worker_position_history'),\n except=[\"worker_id\", \"position_id\", \"_fivetran_start\", \"_fivetran_end\", \"home_country\", \"effective_date\", \"end_employment_date\"]) }}\n from base\n)\n\nselect *\nfrom final", "language": "sql", "refs": [], "sources": [["workday", "worker_position_history"], ["workday", "worker_position_history"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key", "macro.dbt_utils.star"], "nodes": ["source.workday.workday.worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday__worker_position_history.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"\n \n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(effective_date as timestamp) as effective_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"academic_pay_setup_data_annual_work_period_end_date\",\n \"academic_pay_setup_data_annual_work_period_start_date\",\n \"academic_pay_setup_data_annual_work_period_work_percent_of_year\",\n \"academic_pay_setup_data_disbursement_plan_period_end_date\",\n \"academic_pay_setup_data_disbursement_plan_period_start_date\",\n \"business_site_summary_display_language\",\n \"business_site_summary_local\",\n \"business_site_summary_location\",\n \"business_site_summary_location_type\",\n \"business_site_summary_name\",\n \"business_site_summary_scheduled_weekly_hours\",\n \"business_site_summary_time_profile\",\n \"business_title\",\n \"critical_job\",\n \"default_weekly_hours\",\n \"difficulty_to_fill\",\n \"employee_type\",\n \"end_date\",\n \"exclude_from_head_count\",\n \"expected_assignment_end_date\",\n \"external_employee\",\n \"federal_withholding_fein\",\n \"frequency\",\n \"full_time_equivalent_percentage\",\n \"headcount_restriction_code\",\n \"host_country\",\n \"international_assignment_type\",\n \"is_primary_job\",\n \"job_exempt\",\n \"job_profile_id\",\n \"management_level_code\",\n \"paid_fte\",\n \"pay_group\",\n \"pay_rate\",\n \"pay_rate_type\",\n \"pay_through_date\",\n \"payroll_entity\",\n \"payroll_file_number\",\n \"regular_paid_equivalent_hours\",\n \"scheduled_weekly_hours\",\n \"specify_paid_fte\",\n \"specify_working_fte\",\n \"start_date\",\n \"start_international_assignment_reason\",\n \"work_hours_profile\",\n \"work_shift\",\n \"work_shift_required\",\n \"work_space\",\n \"worker_hours_profile_classification\",\n \"working_fte\",\n \"working_time_frequency\",\n \"working_time_unit\",\n \"working_time_value\"\n from base\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_worker_id.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_history_worker_id"], "alias": "not_null_stg_workday__worker_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709771780.2775, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "fqn": ["workday", "staging", "workday_history", "unique_stg_workday__worker_history_history_unique_key"], "alias": "unique_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709771780.2787268, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/unique_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_history_history_unique_key"], "alias": "not_null_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709771780.27986, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df", "fqn": ["workday", "staging", "workday_history", "dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135"}, "created_at": 1709771780.281367, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_worker_id.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_history_worker_id"], "alias": "not_null_stg_workday__worker_position_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709771780.2884328, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_position_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_position_id.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_history_position_id"], "alias": "not_null_stg_workday__worker_position_history_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709771780.2894971, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_position_history_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_position_history_history_unique_key.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "fqn": ["workday", "staging", "workday_history", "unique_stg_workday__worker_position_history_history_unique_key"], "alias": "unique_stg_workday__worker_position_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1709771780.2904918, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/unique_stg_workday__worker_position_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9"}, "created_at": 1709771780.29163, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "position_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b", "fqn": ["workday", "staging", "workday_history", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412"}, "created_at": 1709771780.2925959, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, position_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\n group by worker_id, position_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "seed.workday_integration_tests.workday_worker_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_history_data.csv", "original_file_path": "seeds/workday_worker_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "fqn": ["workday_integration_tests", "workday_worker_history_data"], "alias": "workday_worker_history_data", "checksum": {"name": "sha256", "checksum": "b3b80c42d748789791fca4630504aafa22afd1dca315e0d63bc0f9f9fe33a68d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "annual_currency_summary_primary_compensation_basis": "float", "annual_currency_summary_total_base_pay": "float", "annual_currency_summary_total_salary_and_allowances": "float", "annual_summary_primary_compensation_basis": "float", "annual_summary_total_base_pay": "float", "annual_summary_total_salary_and_allowances": "float", "contract_pay_rate": "float", "days_unemployed": "float", "employee_compensation_primary_compensation_basis": "float", "employee_compensation_total_base_pay": "float", "employee_compensation_total_salary_and_allowances": "float", "hourly_frequency_primary_compensation_basis": "float", "hourly_frequency_total_base_pay": "float", "hourly_frequency_total_salary_and_allowances": "float", "months_continuous_prior_employment": "float", "pay_group_frequency_primary_compensation_basis": "float", "pay_group_frequency_total_base_pay": "float", "pay_group_frequency_total_salary_and_allowances": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "annual_currency_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "contract_pay_rate": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "days_unemployed": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "months_continuous_prior_employment": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1709772001.5614889, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_history_data.csv", "original_file_path": "seeds/workday_worker_position_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_history_data"], "alias": "workday_worker_position_history_data", "checksum": {"name": "sha256", "checksum": "434f6ed5606c6606bbbf41d1427584a275a825ae285f88c1b12d2c3d7da3c07d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "float", "business_site_summary_scheduled_weekly_hours": "float", "default_weekly_hours": "float", "start_date": "timestamp", "end_date": "timestamp"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "business_site_summary_scheduled_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "default_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "start_date": "timestamp", "end_date": "timestamp"}, "created_at": 1709772262.209337, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}}, "sources": {"source.workday.workday.job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_profile", "fqn": ["workday", "staging", "workday", "job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"id": {"name": "id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_job_code_in_name": {"name": "include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "public_job": {"name": "public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "title": {"name": "title", "description": "Title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "created_at": 1709769128.994891}, "source.workday.workday.job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_profile", "fqn": ["workday", "staging", "workday", "job_family_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "created_at": 1709769128.9950101}, "source.workday.workday.job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family", "fqn": ["workday", "staging", "workday", "job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "created_at": 1709769128.9950988}, "source.workday.workday.job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_family_group", "fqn": ["workday", "staging", "workday", "job_family_job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "created_at": 1709769128.995182}, "source.workday.workday.job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_group", "fqn": ["workday", "staging", "workday", "job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"id": {"name": "id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "created_at": 1709769128.995268}, "source.workday.workday.organization_role": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role", "fqn": ["workday", "staging", "workday", "organization_role"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "created_at": 1709769128.995351}, "source.workday.workday.organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role_worker", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role_worker", "fqn": ["workday", "staging", "workday", "organization_role_worker"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_worker_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"associated_worker_id": {"name": "associated_worker_id", "description": "Identifier for the worker associated with the organization role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "created_at": 1709769128.995434}, "source.workday.workday.organization_job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_job_family", "fqn": ["workday", "staging", "workday", "organization_job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "created_at": 1709769128.995518}, "source.workday.workday.organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization", "fqn": ["workday", "staging", "workday", "organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Identifier for the organization.", "columns": {"id": {"name": "id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_manager_in_name": {"name": "include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_organization_code_in_name": {"name": "include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location": {"name": "location", "description": "Location associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sub_type": {"name": "sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "created_at": 1709769128.9956338}, "source.workday.workday.position_organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_organization", "fqn": ["workday", "staging", "workday", "position_organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "created_at": 1709769128.995714}, "source.workday.workday.position": {"database": "postgres", "schema": "workday_integration_tests", "name": "position", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position", "fqn": ["workday", "staging", "workday", "position"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_eligible": {"name": "academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_overlap": {"name": "available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_recruiting": {"name": "available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "created_at": 1709769128.9958332}, "source.workday.workday.position_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_job_profile", "fqn": ["workday", "staging", "workday", "position_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "created_at": 1709769128.996001}, "source.workday.workday.worker_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_history", "fqn": ["workday", "staging", "workday", "worker_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"id": {"name": "id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "has_international_assignment": {"name": "has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_rescinded": {"name": "hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "not_returning": {"name": "not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regrettable_termination": {"name": "regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rehire": {"name": "rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retired": {"name": "retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "return_unknown": {"name": "return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "terminated": {"name": "terminated", "description": "Flag indicating whether the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_involuntary": {"name": "termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "created_at": 1709769128.996199}, "source.workday.workday.personal_information_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_history", "fqn": ["workday", "staging", "workday", "personal_information_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The personal information associated with each worker.", "columns": {"id": {"name": "id", "description": "The identifier for each personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hispanic_or_latino": {"name": "hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_hukou": {"name": "local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tobacco_use": {"name": "tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "created_at": 1709769128.9963179}, "source.workday.workday.person_name": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_name", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_name", "fqn": ["workday", "staging", "workday", "person_name"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_name_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the name information for an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "created_at": 1709769128.9964328}, "source.workday.workday.personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_ethnicity", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_ethnicity", "fqn": ["workday", "staging", "workday", "personal_information_ethnicity"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_ethnicity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "created_at": 1709769128.996532}, "source.workday.workday.military_service": {"database": "postgres", "schema": "workday_integration_tests", "name": "military_service", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.military_service", "fqn": ["workday", "staging", "workday", "military_service"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_military_service_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about an individual's military service in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "created_at": 1709769128.99662}, "source.workday.workday.person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_contact_email_address", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_contact_email_address", "fqn": ["workday", "staging", "workday", "person_contact_email_address"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_contact_email_address_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "created_at": 1709769128.996701}, "source.workday.workday.worker_position_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_history", "fqn": ["workday", "staging", "workday", "worker_position_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the positions held by workers in the Workday system", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location": {"name": "business_site_summary_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "exclude_from_head_count": {"name": "exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_exempt": {"name": "job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_paid_fte": {"name": "specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_working_fte": {"name": "specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "created_at": 1709769128.9968472}, "source.workday.workday.worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_leave_status", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_leave_status", "fqn": ["workday", "staging", "workday", "worker_leave_status"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_leave_status_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the leave status of workers in the Workday system.", "columns": {"leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_effect": {"name": "benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caesarean_section_birth": {"name": "caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "multiple_child_indicator": {"name": "multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_leave": {"name": "on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_effect": {"name": "payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "single_parent_indicator": {"name": "single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stock_vesting_effect": {"name": "stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_related": {"name": "work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "created_at": 1709769128.996972}, "source.workday.workday.worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_organization_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_organization_history", "fqn": ["workday", "staging", "workday", "worker_position_organization_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_organization_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "created_at": 1709769128.997055}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.026647, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.026858, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.02696, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0270588, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.027154, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n when 'm' then 'MATERIALIZED VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.028525, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0289202, "supported_languages": null}, "macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.029522, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.029643, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.03743, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0379, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.038186, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.038461, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.038887, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.039277, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.03943, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.039744, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.040097, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.041048, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0412512, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.041558, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.041822, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.042219, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.042486, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.043104, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.043314, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0434308, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0435998, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0437288, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.044111, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.044775, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.044905, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0451689, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.045297, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.045454, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0462909, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }};\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0467489, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.047023, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.047383, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0475268, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.04823, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.04839, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.048511, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.049021, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.049184, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.049381, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.049935, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.052759, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.052902, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0533628, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.053731, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.054979, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0551949, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.055337, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.055466, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.055597, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0561159, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.056438, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.056911, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.057371, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0576372, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.060875, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.061045, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.061245, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.061897, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.062048, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.06221, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0634508, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.064678, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.068267, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.068534, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.068685, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0687628, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0688908, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.068994, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.069195, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.070017, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.070205, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0704389, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.070836, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0761359, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.078502, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0789042, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0791821, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.07951, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.079838, "supported_languages": null}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.084275, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.084705, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.084954, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0863, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.08656, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0871701, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0898051, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0925791, "supported_languages": ["sql"]}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0941088, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.094707, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.095371, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.095606, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.0963259, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1017652, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1032078, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.103445, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.104334, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.104578, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.105153, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.105739, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.106536, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1067588, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1069381, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.10721, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.107488, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.107759, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1079419, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.108187, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.108373, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.10851, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.108768, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.113697, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.118459, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.119652, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1209118, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.121807, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.122061, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.122169, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.122443, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation }} clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.122571, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {% if target_relation and defer_relation and target_relation == defer_relation %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation) }}\n {% else %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endif %}\n\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.126237, "supported_languages": ["sql"]}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.129087, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.133573, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.134448, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.134729, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1352818, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.135493, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.135626, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.135772, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.135943, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.136109, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.136224, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.136807, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1370308, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.138485, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.138915, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.139255, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.139908, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1401868, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.140476, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1408691, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1411068, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1417458, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.142105, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.142277, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1424708, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1426592, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1434188, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation_type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1738229, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.174294, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1745331, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.174838, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.175047, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1757, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.176121, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.176327, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1766012, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1769369, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.177191, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1776261, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1780522, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1783738, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.178677, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{ return(adapter.dispatch('drop_materialized_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.178984, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1790998, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.179378, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.179519, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.17997, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.180105, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.180366, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1805031, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.181052, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1812181, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.181474, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.181605, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1818528, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.181982, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1828952, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.183011, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.183558, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.183733, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.183861, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.185109, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.185456, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.185771, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{ return(adapter.dispatch('drop_table', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.186025, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.18612, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1864069, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.186547, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1868029, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.18694, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.187892, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1880808, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.188503, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.189158, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.189594, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.189763, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.190065, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{ return(adapter.dispatch('drop_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.190397, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.190515, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.191355, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.191516, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.192845, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.193047, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.193252, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.193523, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.193658, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.19403, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.194182, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.194348, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.19475, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1950989, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.195382, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.195617, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.196139, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.1974452, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.197983, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.198252, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.199848, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.201052, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.201761, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.201973, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.202188, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.202256, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.203016, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.203556, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.203768, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.204113, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2044108, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.204561, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2047842, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.204896, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.205618, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.206, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2061682, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.206632, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.206861, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.206953, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.207257, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2074099, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.207616, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.207768, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.20802, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2081568, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.208426, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.208549, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.209088, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.209446, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.20974, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2098858, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2101629, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.210291, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.210515, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.210662, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.210882, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.211025, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.211243, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.211335, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2115872, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.211709, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.211927, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.212081, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.212909, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.213045, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.213192, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.213325, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2134678, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2136042, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2137501, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.213918, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.214069, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2142131, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2143638, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2145002, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2146409, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2147672, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.215016, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.215134, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2153542, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2154508, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.215816, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2160692, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.216206, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.216682, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.216838, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2170508, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.21731, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.21744, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.217804, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.218034, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.218305, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.21843, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.218859, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.219042, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.219191, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.219352, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.219789, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.219927, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.220056, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.22015, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.220385, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.220459, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.220609, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2207549, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.221482, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.221605, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.221747, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2221172, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.222288, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.222409, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.222548, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.222662, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2243571, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.224515, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.224719, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2249951, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2252119, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.225492, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.225655, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2258759, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2260962, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.226608, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2268212, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.226954, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.227402, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.227808, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2280939, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2283049, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2299142, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.230029, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.230186, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2302961, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2306519, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.230869, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.230974, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.231192, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.231373, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.231586, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.231852, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2321122, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2327669, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2329578, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.233189, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.233404, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.234426, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header -%}\n {{ sql_header }}\n {%- endif -%}\n {%- if limit is not none -%}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n {%- else -%}\n {{ compiled_code }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.234914, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "{% macro get_limit_subquery_sql(sql, limit) %}\n {{ adapter.dispatch('get_limit_subquery_sql', 'dbt')(sql, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2350888, "supported_languages": null}, "macro.dbt.default__get_limit_subquery_sql": {"name": "default__get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_subquery_sql", "macro_sql": "{% macro default__get_limit_subquery_sql(sql, limit) %}\n select *\n from (\n {{ sql }}\n ) as model_limit_subq\n limit {{ limit }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2352152, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.235818, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.235981, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.236172, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.236319, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.236557, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2369869, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.239427, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.239664, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2398562, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.240169, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.240342, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2404869, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.240688, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.24092, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.241119, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.241417, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.241604, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.241756, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.241917, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2420638, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2422552, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2424178, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.244697, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.244881, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.245279, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.245493, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.245684, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.245852, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n cast(null as {{ col['data_type'] }}) as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.247186, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2474911, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.247652, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2479649, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2481658, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.248683, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.248914, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.249603, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.251263, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.251442, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.252248, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.252647, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.253197, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.253663, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.253737, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2542248, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2544582, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.25473, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.254991, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.255311, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.25585, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.256288, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2568982, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.257206, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.257631, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.258668, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.259598, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.260374, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.261538, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.262217, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.262541, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.263187, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.26395, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.264362, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.264776, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2653272, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2657542, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2662468, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2667022, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.267324, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n where {{ column_name }} is not null\n limit 1\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.268165, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2687922, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.269429, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.26998, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.270314, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.270709, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.271082, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.271704, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.27246, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.273261, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.27407, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.274762, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.275576, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.276031, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2762969, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.279294, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.280882, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.281225, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.281395, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2818182, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.282084, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.282269, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.282563, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.282754, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.283381, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.284193, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.284893, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.285472, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2857442, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.286161, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.286568, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2871199, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2874382, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.287758, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.288353, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.289202, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.289933, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2903, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.290465, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2910469, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2917042, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.292534, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.29291, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.293173, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2942789, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.295655, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.296865, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2982788, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.2985642, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.298683, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.301524, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.304747, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.30504, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.305279, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.306008, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.306228, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3064132, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.306592, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3067589, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.306925, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.30731, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3076138, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.308026, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.308544, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.308885, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.309196, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.310636, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.310988, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.311778, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.312263, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.313279, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.314631, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.315563, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3163252, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3167622, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.31742, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3180978, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.31851, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3187141, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.319069, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.31969, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.320141, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3207538, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.321246, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.321384, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.321512, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3216388, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3221061, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3229241, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.324026, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.324314, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.324975, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.325783, "supported_languages": null}, "macro.workday.get_person_contact_email_address_columns": {"name": "get_person_contact_email_address_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_contact_email_address_columns.sql", "original_file_path": "macros/get_person_contact_email_address_columns.sql", "unique_id": "macro.workday.get_person_contact_email_address_columns", "macro_sql": "{% macro get_person_contact_email_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_address\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_comment\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.326616, "supported_languages": null}, "macro.workday.get_military_service_columns": {"name": "get_military_service_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_military_service_columns.sql", "original_file_path": "macros/get_military_service_columns.sql", "unique_id": "macro.workday.get_military_service_columns", "macro_sql": "{% macro get_military_service_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"discharge_date\", \"datatype\": \"date\"},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"rank\", \"datatype\": dbt.type_string()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status_begin_date\", \"datatype\": \"date\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.327732, "supported_languages": null}, "macro.workday.get_position_job_profile_columns": {"name": "get_position_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_job_profile_columns.sql", "original_file_path": "macros/get_position_job_profile_columns.sql", "unique_id": "macro.workday.get_position_job_profile_columns", "macro_sql": "{% macro get_position_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.328786, "supported_languages": null}, "macro.workday.get_job_family_job_family_group_columns": {"name": "get_job_family_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_job_family_group_columns", "macro_sql": "{% macro get_job_family_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3293068, "supported_languages": null}, "macro.workday.get_worker_history_columns": {"name": "get_worker_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_history_columns.sql", "original_file_path": "macros/get_worker_history_columns.sql", "unique_id": "macro.workday.get_worker_history_columns", "macro_sql": "{% macro get_worker_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_date\", \"datatype\": \"date\"},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"active_status_date\", \"datatype\": \"date\"},\n {\"name\": \"annual_currency_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_service_date\", \"datatype\": \"date\"},\n {\"name\": \"company_service_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_effective_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"continuous_service_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_assignment_details\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_end_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_frequency_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_pay_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"contract_vendor_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_entered_workforce\", \"datatype\": \"date\"},\n {\"name\": \"days_unemployed\", \"datatype\": dbt.type_float()},\n {\"name\": \"eligible_for_hire\", \"datatype\": dbt.type_string()},\n {\"name\": \"eligible_for_rehire_on_latest_termination\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_date_of_return\", \"datatype\": \"date\"},\n {\"name\": \"expected_retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"has_international_assignment\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hire_date\", \"datatype\": \"date\"},\n {\"name\": \"hire_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"hire_rescinded\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_datefor_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"local_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"months_continuous_prior_employment\", \"datatype\": dbt.type_float()},\n {\"name\": \"not_returning\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"original_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"pay_group_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"primary_termination_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"probation_end_date\", \"datatype\": \"date\"},\n {\"name\": \"probation_start_date\", \"datatype\": \"date\"},\n {\"name\": \"reason_reference_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regrettable_termination\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"rehire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"resignation_date\", \"datatype\": \"date\"},\n {\"name\": \"retired\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"retirement_eligibility_date\", \"datatype\": \"date\"},\n {\"name\": \"return_unknown\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"seniority_date\", \"datatype\": \"date\"},\n {\"name\": \"severance_date\", \"datatype\": \"date\"},\n {\"name\": \"terminated\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_date\", \"datatype\": \"date\"},\n {\"name\": \"termination_involuntary\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"time_off_service_date\", \"datatype\": \"date\"},\n {\"name\": \"universal_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vesting_date\", \"datatype\": \"date\"},\n {\"name\": \"worker_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.341262, "supported_languages": null}, "macro.workday.get_job_family_group_columns": {"name": "get_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_group_columns", "macro_sql": "{% macro get_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_group_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3421938, "supported_languages": null}, "macro.workday.get_worker_leave_status_columns": {"name": "get_worker_leave_status_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_leave_status_columns.sql", "original_file_path": "macros/get_worker_leave_status_columns.sql", "unique_id": "macro.workday.get_worker_leave_status_columns", "macro_sql": "{% macro get_worker_leave_status_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"adoption_notification_date\", \"datatype\": \"date\"},\n {\"name\": \"adoption_placement_date\", \"datatype\": \"date\"},\n {\"name\": \"age_of_dependent\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"caesarean_section_birth\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"child_birth_date\", \"datatype\": \"date\"},\n {\"name\": \"child_sdate_of_death\", \"datatype\": \"date\"},\n {\"name\": \"continuous_service_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"date_baby_arrived_home_from_hospital\", \"datatype\": \"date\"},\n {\"name\": \"date_child_entered_country\", \"datatype\": \"date\"},\n {\"name\": \"date_of_recall\", \"datatype\": \"date\"},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimated_leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_due_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"last_date_for_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_entitlement_override\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"leave_of_absence_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_request_event_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_return_event\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_start_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_status_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_type_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_during_leave\", \"datatype\": dbt.type_string()},\n {\"name\": \"multiple_child_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"number_of_babies_adopted_children\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_child_dependents\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_births\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_maternity_leaves\", \"datatype\": dbt.type_float()},\n {\"name\": \"on_leave\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"paid_time_off_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"payroll_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"single_parent_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"social_security_disability_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"stock_vesting_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"stop_payment_date\", \"datatype\": \"date\"},\n {\"name\": \"week_of_confinement\", \"datatype\": \"date\"},\n {\"name\": \"work_related\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3470771, "supported_languages": null}, "macro.workday.get_organization_role_worker_columns": {"name": "get_organization_role_worker_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_worker_columns.sql", "original_file_path": "macros/get_organization_role_worker_columns.sql", "unique_id": "macro.workday.get_organization_role_worker_columns", "macro_sql": "{% macro get_organization_role_worker_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"associated_worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.347761, "supported_languages": null}, "macro.workday.get_job_profile_columns": {"name": "get_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_profile_columns.sql", "original_file_path": "macros/get_job_profile_columns.sql", "unique_id": "macro.workday.get_job_profile_columns", "macro_sql": "{% macro get_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_job_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"public_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"referral_payment_plan\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_membership_requirement\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_study_award_source_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_study_requirement_option_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.350461, "supported_languages": null}, "macro.workday.get_organization_role_columns": {"name": "get_organization_role_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_columns.sql", "original_file_path": "macros/get_organization_role_columns.sql", "unique_id": "macro.workday.get_organization_role_columns", "macro_sql": "{% macro get_organization_role_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_role_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.351205, "supported_languages": null}, "macro.workday.get_person_name_columns": {"name": "get_person_name_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_name_columns.sql", "original_file_path": "macros/get_person_name_columns.sql", "unique_id": "macro.workday.get_person_name_columns", "macro_sql": "{% macro get_person_name_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"additional_name_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name_singapore_malaysia\", \"datatype\": dbt.type_string()},\n {\"name\": \"hereditary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"honorary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_salutation\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"professional_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"religious_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"royal_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tertiary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.354849, "supported_languages": null}, "macro.workday.get_job_family_job_profile_columns": {"name": "get_job_family_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_profile_columns.sql", "original_file_path": "macros/get_job_family_job_profile_columns.sql", "unique_id": "macro.workday.get_job_family_job_profile_columns", "macro_sql": "{% macro get_job_family_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.355382, "supported_languages": null}, "macro.workday.get_worker_position_history_columns": {"name": "get_worker_position_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_history_columns.sql", "original_file_path": "macros/get_worker_position_history_columns.sql", "unique_id": "macro.workday.get_worker_position_history_columns", "macro_sql": "{% macro get_worker_position_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_pay_setup_data_annual_work_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_work_percent_of_year\", \"datatype\": dbt.type_float()},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"business_site_summary_display_language\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_local\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"business_site_summary_time_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"default_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"employee_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"exclude_from_head_count\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"expected_assignment_end_date\", \"datatype\": \"date\"},\n {\"name\": \"external_employee\", \"datatype\": dbt.type_string()},\n {\"name\": \"federal_withholding_fein\", \"datatype\": dbt.type_string()},\n {\"name\": \"frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_time_equivalent_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"headcount_restriction_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"host_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"international_assignment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_primary_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"paid_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"payroll_entity\", \"datatype\": dbt.type_string()},\n {\"name\": \"payroll_file_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regular_paid_equivalent_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"specify_paid_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"specify_working_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"start_international_assignment_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_hours_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_space\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_hours_profile_classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"working_time_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.362988, "supported_languages": null}, "macro.workday.get_personal_information_ethnicity_columns": {"name": "get_personal_information_ethnicity_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_ethnicity_columns.sql", "original_file_path": "macros/get_personal_information_ethnicity_columns.sql", "unique_id": "macro.workday.get_personal_information_ethnicity_columns", "macro_sql": "{% macro get_personal_information_ethnicity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ethnicity_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"ethnicity_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.363829, "supported_languages": null}, "macro.workday.get_personal_information_history_columns": {"name": "get_personal_information_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_history_columns.sql", "original_file_path": "macros/get_personal_information_history_columns.sql", "unique_id": "macro.workday.get_personal_information_history_columns", "macro_sql": "{% macro get_personal_information_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"blood_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"citizenship_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_birth\", \"datatype\": \"date\"},\n {\"name\": \"date_of_death\", \"datatype\": \"date\"},\n {\"name\": \"gender\", \"datatype\": dbt.type_string()},\n {\"name\": \"hispanic_or_latino\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hukou_locality\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_subregion\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_medical_exam_date\", \"datatype\": \"date\"},\n {\"name\": \"last_medical_exam_valid_to\", \"datatype\": \"date\"},\n {\"name\": \"local_hukou\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"marital_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"marital_status_date\", \"datatype\": \"date\"},\n {\"name\": \"medical_exam_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"personnel_file_agency\", \"datatype\": dbt.type_string()},\n {\"name\": \"political_affiliation\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"religion\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_benefit\", \"datatype\": dbt.type_string()},\n {\"name\": \"tobacco_use\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3679008, "supported_languages": null}, "macro.workday.get_worker_position_organization_history_columns": {"name": "get_worker_position_organization_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_organization_history_columns.sql", "original_file_path": "macros/get_worker_position_organization_history_columns.sql", "unique_id": "macro.workday.get_worker_position_organization_history_columns", "macro_sql": "{% macro get_worker_position_organization_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_pay_group_assignment\", \"datatype\": \"date\"},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_business_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"used_in_change_organization_assignments\", \"datatype\": dbt.type_boolean()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.369088, "supported_languages": null}, "macro.workday.get_organization_job_family_columns": {"name": "get_organization_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_job_family_columns.sql", "original_file_path": "macros/get_organization_job_family_columns.sql", "unique_id": "macro.workday.get_organization_job_family_columns", "macro_sql": "{% macro get_organization_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.369718, "supported_languages": null}, "macro.workday.get_job_family_columns": {"name": "get_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_columns.sql", "original_file_path": "macros/get_job_family_columns.sql", "unique_id": "macro.workday.get_job_family_columns", "macro_sql": "{% macro get_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3705, "supported_languages": null}, "macro.workday.get_organization_columns": {"name": "get_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_columns.sql", "original_file_path": "macros/get_organization_columns.sql", "unique_id": "macro.workday.get_organization_columns", "macro_sql": "{% macro get_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"availability_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"external_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"inactive_date\", \"datatype\": \"date\"},\n {\"name\": \"include_manager_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_organization_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"last_updated_date_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"location\", \"datatype\": dbt.type_string()},\n {\"name\": \"manager_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_owner_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"staffing_model\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"superior_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_availability_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_time_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_worker_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"top_level_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"visibility\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.37368, "supported_languages": null}, "macro.workday.get_position_organization_columns": {"name": "get_position_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_organization_columns.sql", "original_file_path": "macros/get_position_organization_columns.sql", "unique_id": "macro.workday.get_position_organization_columns", "macro_sql": "{% macro get_position_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3743548, "supported_languages": null}, "macro.workday.get_position_columns": {"name": "get_position_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_columns.sql", "original_file_path": "macros/get_position_columns.sql", "unique_id": "macro.workday.get_position_columns", "macro_sql": "{% macro get_position_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_eligible\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"availability_date\", \"datatype\": \"date\"},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_overlap\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_recruiting\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"closed\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"compensation_grade_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_package_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_step_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"earliest_overlap_date\", \"datatype\": \"date\"},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_posting_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_time_type_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_amount_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_percent_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"supervisory_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_for_filled_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_type_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3777869, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3781729, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.379, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.379151, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3792949, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3794382, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.379568, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.37972, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3804312, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.381002, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.382163, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.382379, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.382593, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.382805, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.38309, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.383451, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3837152, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.384056, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.384415, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.384518, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.384608, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3846989, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.385037, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3856928, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.386683, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.387218, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.387949, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.388414, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.388541, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.388659, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.388788, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3889122, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.391586, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.391752, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3918998, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3920472, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.393704, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.394548, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.394676, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.394916, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3951669, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.395282, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.395394, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3955069, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.395623, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.396058, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.396568, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.397011, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.397193, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.397387, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.3976178, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.398664, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.402483, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.402865, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.403262, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.404704, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.405246, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.405814, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.405962, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.4061189, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.40633, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.406483, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.406624, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.407358, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.408582, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.409222, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.409371, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.409516, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.4096582, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.409801, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.409955, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.4101892, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.410283, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.410372, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.410929, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.412093, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.4122581, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.41313, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.416405, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.420906, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.422247, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.422564, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.422702, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.423041, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.4234428, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.423559, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.423677, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.423766, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.423854, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.424103, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.424206, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.4243042, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.4246888, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1709769127.425076, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.workday._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_deleted", "block_contents": "Indicates if the record was soft-deleted by Fivetran."}, "doc.workday._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_synced", "block_contents": "Timestamp the record was synced by Fivetran."}, "doc.workday._fivetran_start": {"name": "_fivetran_start", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_start", "block_contents": "Timestamp when the record was first created or modified in the source."}, "doc.workday._fivetran_end": {"name": "_fivetran_end", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_end", "block_contents": "Timestamp marking the end of a record being active."}, "doc.workday._fivetran_date": {"name": "_fivetran_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_date", "block_contents": "Date when the record was first created or modified in the source."}, "doc.workday._fivetran_active": {"name": "_fivetran_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_active", "block_contents": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE."}, "doc.workday.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.source_relation", "block_contents": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "doc.workday.academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_end_date", "block_contents": "The end date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_start_date", "block_contents": "The start date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year", "block_contents": "The work percentage of the year in the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date", "block_contents": "The end date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date", "block_contents": "The start date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_suffix": {"name": "academic_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_suffix", "block_contents": "The academic suffix, if applicable (e.g., PhD, MD)."}, "doc.workday.academic_tenure_date": {"name": "academic_tenure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_date", "block_contents": "Date when academic tenure is achieved."}, "doc.workday.academic_tenure_eligible": {"name": "academic_tenure_eligible", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_eligible", "block_contents": "Flag indicating whether the position is eligible for academic tenure."}, "doc.workday.active": {"name": "active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active", "block_contents": "Flag indicating the current active status of the worker."}, "doc.workday.active_status_date": {"name": "active_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active_status_date", "block_contents": "Date when the active status was last updated."}, "doc.workday.additional_job_description": {"name": "additional_job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_job_description", "block_contents": "Additional details or information about the job."}, "doc.workday.additional_name_type": {"name": "additional_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_name_type", "block_contents": "Additional type or category for the person name."}, "doc.workday.additional_nationality": {"name": "additional_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_nationality", "block_contents": "Additional nationality associated with the individual."}, "doc.workday.adoption_notification_date": {"name": "adoption_notification_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_notification_date", "block_contents": "The date of adoption notification."}, "doc.workday.adoption_placement_date": {"name": "adoption_placement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_placement_date", "block_contents": "The date of adoption placement."}, "doc.workday.age_of_dependent": {"name": "age_of_dependent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.age_of_dependent", "block_contents": "The age of the dependent associated with the leave status."}, "doc.workday.annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_currency", "block_contents": "Currency used for annual compensation summaries."}, "doc.workday.annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_frequency", "block_contents": "Frequency of currency for annual compensation summaries."}, "doc.workday.annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual compensation summaries."}, "doc.workday.annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.annual_summary_currency": {"name": "annual_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_currency", "block_contents": "Currency used for annual summaries."}, "doc.workday.annual_summary_frequency": {"name": "annual_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_frequency", "block_contents": "Frequency of currency for annual summaries."}, "doc.workday.annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual summaries."}, "doc.workday.annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.associated_worker_id": {"name": "associated_worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.associated_worker_id", "block_contents": "Identifier for the worker associated with the organization role."}, "doc.workday.availability_date": {"name": "availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.availability_date", "block_contents": "Date when the organization becomes available."}, "doc.workday.available_for_hire": {"name": "available_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_hire", "block_contents": "Flag indicating whether the organization is available for hiring."}, "doc.workday.available_for_overlap": {"name": "available_for_overlap", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_overlap", "block_contents": "Flag indicating whether the position is available for overlap with other positions."}, "doc.workday.available_for_recruiting": {"name": "available_for_recruiting", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_recruiting", "block_contents": "Flag indicating whether the position is available for recruiting."}, "doc.workday.benefits_effect": {"name": "benefits_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_effect", "block_contents": "The effect of leave on benefits."}, "doc.workday.benefits_service_date": {"name": "benefits_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_service_date", "block_contents": "Date when the worker's benefits service starts."}, "doc.workday.blood_type": {"name": "blood_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.blood_type", "block_contents": "The blood type of the individual."}, "doc.workday.business_site_summary_display_language": {"name": "business_site_summary_display_language", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_display_language", "block_contents": "The display language of the business site summary."}, "doc.workday.business_site_summary_local": {"name": "business_site_summary_local", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_local", "block_contents": "Local information related to the business site summary."}, "doc.workday.business_site_summary_location": {"name": "business_site_summary_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location", "block_contents": "The location of the business site summary."}, "doc.workday.business_site_summary_location_type": {"name": "business_site_summary_location_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location_type", "block_contents": "The type of location for the business site summary."}, "doc.workday.business_site_summary_name": {"name": "business_site_summary_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_name", "block_contents": "The name associated with the business site summary."}, "doc.workday.business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the business site summary."}, "doc.workday.business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_time_profile", "block_contents": "The time profile associated with the business site summary."}, "doc.workday.business_title": {"name": "business_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_title", "block_contents": "The business title associated with the worker position."}, "doc.workday.caesarean_section_birth": {"name": "caesarean_section_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.caesarean_section_birth", "block_contents": "Indicator for Caesarean section birth."}, "doc.workday.child_birth_date": {"name": "child_birth_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_birth_date", "block_contents": "The date of child birth."}, "doc.workday.child_sdate_of_death": {"name": "child_sdate_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_sdate_of_death", "block_contents": "The start date of child death.>"}, "doc.workday.citizenship_status": {"name": "citizenship_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.citizenship_status", "block_contents": "The citizenship status of the individual."}, "doc.workday.city_of_birth": {"name": "city_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth", "block_contents": "The city of birth of the individual."}, "doc.workday.city_of_birth_code": {"name": "city_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth_code", "block_contents": "The city of birth code of the individual."}, "doc.workday.closed": {"name": "closed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.closed", "block_contents": "Flag indicating whether the position is closed."}, "doc.workday.code": {"name": "code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.code", "block_contents": "Code assigned to the organization for reference and categorization."}, "doc.workday.company_service_date": {"name": "company_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.company_service_date", "block_contents": "Date when the worker's service with the company started."}, "doc.workday.compensation_effective_date": {"name": "compensation_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_effective_date", "block_contents": "Effective date when changes to the worker's compensation take effect."}, "doc.workday.compensation_grade_code": {"name": "compensation_grade_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_code", "block_contents": "Code associated with the compensation grade of the position."}, "doc.workday.compensation_grade_id": {"name": "compensation_grade_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_id", "block_contents": "Identifier for the compensation grade."}, "doc.workday.compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_code", "block_contents": "Code associated with the compensation grade profile of the position."}, "doc.workday.compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_id", "block_contents": "Unique identifier for the compensation grade profile associated with the worker."}, "doc.workday.compensation_package_code": {"name": "compensation_package_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_package_code", "block_contents": "Code associated with the compensation package of the position."}, "doc.workday.compensation_step_code": {"name": "compensation_step_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_step_code", "block_contents": "Code associated with the compensation step of the position."}, "doc.workday.continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_accrual_effect", "block_contents": "The effect of leave on continuous service accrual."}, "doc.workday.continuous_service_date": {"name": "continuous_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_date", "block_contents": "Date when the worker's continuous service with the organization started."}, "doc.workday.contract_assignment_details": {"name": "contract_assignment_details", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_assignment_details", "block_contents": "Details of the worker's contract assignment."}, "doc.workday.contract_currency_code": {"name": "contract_currency_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_currency_code", "block_contents": "Currency code used for the worker's contract."}, "doc.workday.contract_end_date": {"name": "contract_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_end_date", "block_contents": "Date when the worker's contract is scheduled to end."}, "doc.workday.contract_frequency_name": {"name": "contract_frequency_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_frequency_name", "block_contents": "Frequency of payment for the worker's contract."}, "doc.workday.contract_pay_rate": {"name": "contract_pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_pay_rate", "block_contents": "Pay rate associated with the worker's contract."}, "doc.workday.contract_vendor_name": {"name": "contract_vendor_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_vendor_name", "block_contents": "Name of the vendor associated with the worker's contract."}, "doc.workday.country": {"name": "country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country", "block_contents": "The country associated with the person name."}, "doc.workday.country_of_birth": {"name": "country_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country_of_birth", "block_contents": "The country of birth of the individual."}, "doc.workday.critical_job": {"name": "critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.critical_job", "block_contents": "Flag indicating whether the job is critical."}, "doc.workday.date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_baby_arrived_home_from_hospital", "block_contents": "The date when the baby arrived home from the hospital."}, "doc.workday.date_child_entered_country": {"name": "date_child_entered_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_child_entered_country", "block_contents": "The date when the child entered the country."}, "doc.workday.date_entered_workforce": {"name": "date_entered_workforce", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_entered_workforce", "block_contents": "Date when the worker entered the workforce."}, "doc.workday.date_of_birth": {"name": "date_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_birth", "block_contents": "The date of birth of the individual."}, "doc.workday.date_of_death": {"name": "date_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_death", "block_contents": "The date of death of the individual."}, "doc.workday.date_of_recall": {"name": "date_of_recall", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_recall", "block_contents": "The date of recall."}, "doc.workday.days_at_position": {"name": "days_at_position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_at_position", "block_contents": "The number of days the worker has held their most recent position."}, "doc.workday.days_of_employment": {"name": "days_of_employment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_of_employment", "block_contents": "Number of days employed by the worker."}, "doc.workday.days_unemployed": {"name": "days_unemployed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_unemployed", "block_contents": "Number of days the worker has been unemployed."}, "doc.workday.default_weekly_hours": {"name": "default_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.default_weekly_hours", "block_contents": "The default weekly hours associated with the worker position."}, "doc.workday.departure_date": {"name": "departure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.departure_date", "block_contents": "The departure date for the employee."}, "doc.workday.difficulty_to_fill": {"name": "difficulty_to_fill", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill", "block_contents": "Indication of the difficulty level in filling the job."}, "doc.workday.difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill_code", "block_contents": "Code indicating the difficulty level in filling the position."}, "doc.workday.discharge_date": {"name": "discharge_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.discharge_date", "block_contents": "The date on which the individual was discharged from military service."}, "doc.workday.earliest_hire_date": {"name": "earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_hire_date", "block_contents": "Earliest date when the position can be filled."}, "doc.workday.earliest_overlap_date": {"name": "earliest_overlap_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_overlap_date", "block_contents": "Earliest date when the position can overlap with other positions."}, "doc.workday.effective_date": {"name": "effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.effective_date", "block_contents": "Date when the job profile becomes effective."}, "doc.workday.eligible_for_hire": {"name": "eligible_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_hire", "block_contents": "Flag indicating whether the worker is eligible for hire."}, "doc.workday.eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_rehire_on_latest_termination", "block_contents": "Flag indicating whether the worker is eligible for rehire based on the latest termination."}, "doc.workday.email_address": {"name": "email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_address", "block_contents": "The actual email address of the person."}, "doc.workday.email_code": {"name": "email_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_code", "block_contents": "A code or label associated with the type or purpose of the email address."}, "doc.workday.email_comment": {"name": "email_comment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_comment", "block_contents": "Any additional comments or notes related to the email address."}, "doc.workday.employed_five_years": {"name": "employed_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_five_years", "block_contents": "Tracks whether a worker was employed at least five years."}, "doc.workday.employed_one_year": {"name": "employed_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_one_year", "block_contents": "Tracks whether a worker was employed at least one year."}, "doc.workday.employed_ten_years": {"name": "employed_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_ten_years", "block_contents": "Tracks whether a worker was employed at least ten years."}, "doc.workday.employed_thirty_years": {"name": "employed_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_thirty_years", "block_contents": "Tracks whether a worker was employed at least thirty years."}, "doc.workday.employed_twenty_years": {"name": "employed_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_twenty_years", "block_contents": "Tracks whether a worker was employed at least twenty years."}, "doc.workday.employee_compensation_currency": {"name": "employee_compensation_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_currency", "block_contents": "Currency code used for the worker's employee compensation."}, "doc.workday.employee_compensation_frequency": {"name": "employee_compensation_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_frequency", "block_contents": "Frequency of payment for the worker's employee compensation."}, "doc.workday.employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's employee compensation."}, "doc.workday.employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_base_pay", "block_contents": "Total base pay for the worker's employee compensation."}, "doc.workday.employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's employee compensation."}, "doc.workday.employee_type": {"name": "employee_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_type", "block_contents": "The type of employee associated with the worker position."}, "doc.workday.end_date": {"name": "end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_date", "block_contents": "The end date of the worker position."}, "doc.workday.end_employment_date": {"name": "end_employment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_employment_date", "block_contents": "Date when the worker's employment is scheduled to end."}, "doc.workday.estimated_leave_end_date": {"name": "estimated_leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.estimated_leave_end_date", "block_contents": "The estimated end date of the leave."}, "doc.workday.ethnicity_code": {"name": "ethnicity_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_code", "block_contents": "The code representing the ethnicity of the individual."}, "doc.workday.ethnicity_codes": {"name": "ethnicity_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_codes", "block_contents": "String aggregation of all ethnicity codes associated with an individual."}, "doc.workday.ethnicity_id": {"name": "ethnicity_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_id", "block_contents": "The identifier associated with the ethnicity."}, "doc.workday.exclude_from_head_count": {"name": "exclude_from_head_count", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.exclude_from_head_count", "block_contents": "Flag indicating whether the position is excluded from headcount."}, "doc.workday.expected_assignment_end_date": {"name": "expected_assignment_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_assignment_end_date", "block_contents": "The expected end date of the assignment associated with the worker position."}, "doc.workday.expected_date_of_return": {"name": "expected_date_of_return", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_date_of_return", "block_contents": "Expected date of the worker's return."}, "doc.workday.expected_due_date": {"name": "expected_due_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_due_date", "block_contents": "The expected due date."}, "doc.workday.expected_retirement_date": {"name": "expected_retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_retirement_date", "block_contents": "Expected date of the worker's retirement."}, "doc.workday.external_employee": {"name": "external_employee", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_employee", "block_contents": "Flag indicating whether the worker is an external employee."}, "doc.workday.external_url": {"name": "external_url", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_url", "block_contents": "External URL associated with the organization."}, "doc.workday.federal_withholding_fein": {"name": "federal_withholding_fein", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.federal_withholding_fein", "block_contents": "The Federal Employer Identification Number (FEIN) for federal withholding."}, "doc.workday.first_day_of_work": {"name": "first_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_day_of_work", "block_contents": "The date when the worker started their first day of work."}, "doc.workday.first_name": {"name": "first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_name", "block_contents": "The first name of the individual."}, "doc.workday.frequency": {"name": "frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.frequency", "block_contents": "The frequency associated with the worker position."}, "doc.workday.fte_percent": {"name": "fte_percent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.fte_percent", "block_contents": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek"}, "doc.workday.full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_name_singapore_malaysia", "block_contents": "The full name as used in Singapore and Malaysia."}, "doc.workday.full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_time_equivalent_percentage", "block_contents": "The full-time equivalent (FTE) percentage associated with the worker position."}, "doc.workday.gender": {"name": "gender", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.gender", "block_contents": "The gender of the individual."}, "doc.workday.has_international_assignment": {"name": "has_international_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.has_international_assignment", "block_contents": "Flag indicating whether the worker has an international assignment."}, "doc.workday.headcount_restriction_code": {"name": "headcount_restriction_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.headcount_restriction_code", "block_contents": "The code associated with headcount restriction for the worker position."}, "doc.workday.hereditary_suffix": {"name": "hereditary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hereditary_suffix", "block_contents": "The hereditary suffix, if applicable (e.g., Jr, Sr)."}, "doc.workday.hire_date": {"name": "hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_date", "block_contents": "The date when the worker was hired."}, "doc.workday.hire_reason": {"name": "hire_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_reason", "block_contents": "The reason for hiring the worker."}, "doc.workday.hire_rescinded": {"name": "hire_rescinded", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_rescinded", "block_contents": "Flag indicating whether the worker's hire was rescinded."}, "doc.workday.hiring_freeze": {"name": "hiring_freeze", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hiring_freeze", "block_contents": "Flag indicating whether the organization is under a hiring freeze."}, "doc.workday.hispanic_or_latino": {"name": "hispanic_or_latino", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hispanic_or_latino", "block_contents": "lag indicating whether the individual is Hispanic or Latino."}, "doc.workday.home_country": {"name": "home_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.home_country", "block_contents": "The home country of the worker."}, "doc.workday.honorary_suffix": {"name": "honorary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.honorary_suffix", "block_contents": "The honorary suffix, if applicable."}, "doc.workday.host_country": {"name": "host_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.host_country", "block_contents": "The host country associated with the worker."}, "doc.workday.hourly_frequency_currency": {"name": "hourly_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_currency", "block_contents": "Currency code used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_frequency", "block_contents": "Frequency of payment for the worker's hourly compensation."}, "doc.workday.hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_base_pay", "block_contents": "Total base pay for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's hourly compensation."}, "doc.workday.hukou_locality": {"name": "hukou_locality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_locality", "block_contents": "The locality associated with the Hukou."}, "doc.workday.hukou_postal_code": {"name": "hukou_postal_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_postal_code", "block_contents": "The postal code associated with the Hukou."}, "doc.workday.hukou_region": {"name": "hukou_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_region", "block_contents": "The region associated with the Hukou."}, "doc.workday.hukou_subregion": {"name": "hukou_subregion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_subregion", "block_contents": "The subregion associated with the Hukou."}, "doc.workday.hukou_type": {"name": "hukou_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_type", "block_contents": "The type of Hukou."}, "doc.workday.id": {"name": "id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.id", "block_contents": "Unique identifier."}, "doc.workday.inactive": {"name": "inactive", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive", "block_contents": "Flag indicating whether this is inactive."}, "doc.workday.inactive_date": {"name": "inactive_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive_date", "block_contents": "Date when the organization becomes inactive"}, "doc.workday.include_job_code_in_name": {"name": "include_job_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_job_code_in_name", "block_contents": "Flag indicating whether to include the job code in the job profile name."}, "doc.workday.include_manager_in_name": {"name": "include_manager_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_manager_in_name", "block_contents": "Flag indicating whether to include the manager in the organization name."}, "doc.workday.include_organization_code_in_name": {"name": "include_organization_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_organization_code_in_name", "block_contents": "Flag indicating whether to include the organization code in the name."}, "doc.workday.index": {"name": "index", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.index", "block_contents": "An index for a particular identifier."}, "doc.workday.international_assignment_type": {"name": "international_assignment_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.international_assignment_type", "block_contents": "The type of international assignment associated with the worker position."}, "doc.workday.is_critical_job": {"name": "is_critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_critical_job", "block_contents": "Flag indicating whether the position is considered critical based on the job profile."}, "doc.workday.is_current_employee_five_years": {"name": "is_current_employee_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_five_years", "block_contents": "Tracks whether a worker is active for more than five years."}, "doc.workday.is_current_employee_one_year": {"name": "is_current_employee_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_one_year", "block_contents": "Tracks whether a worker is active for more than a year."}, "doc.workday.is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_ten_years", "block_contents": "Tracks whether a worker is active for more than ten years."}, "doc.workday.is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_thirty_years", "block_contents": "Tracks whether a worker is active for more than thirty years."}, "doc.workday.is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_twenty_years", "block_contents": "Tracks whether a worker is active for more than twenty years."}, "doc.workday.is_employed": {"name": "is_employed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_employed", "block_contents": "Is the worker currently employed?"}, "doc.workday.is_military_service": {"name": "is_military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_military_service", "block_contents": "Whether the employee served in the military."}, "doc.workday.is_primary_job": {"name": "is_primary_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_primary_job", "block_contents": "Flag indicating whether the job is the primary job for the worker."}, "doc.workday.is_regrettable_termination": {"name": "is_regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_regrettable_termination", "block_contents": "Has the worker been regrettably terminated?"}, "doc.workday.is_terminated": {"name": "is_terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_terminated", "block_contents": "Has the worker been terminated?"}, "doc.workday.is_user_active": {"name": "is_user_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_user_active", "block_contents": "Is the user currently active."}, "doc.workday.job_category_code": {"name": "job_category_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_code", "block_contents": "Code indicating the category of the job profile associated with the position."}, "doc.workday.job_category_id": {"name": "job_category_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_id", "block_contents": "Identifier for the job category."}, "doc.workday.job_description": {"name": "job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description", "block_contents": "Detailed description of the job associated with the position."}, "doc.workday.job_description_summary": {"name": "job_description_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description_summary", "block_contents": "Summary or overview of the job description for the position."}, "doc.workday.job_exempt": {"name": "job_exempt", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_exempt", "block_contents": "Indicates whether the job is exempt from certain regulations."}, "doc.workday.job_family": {"name": "job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family", "block_contents": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles."}, "doc.workday.job_family_code": {"name": "job_family_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_code", "block_contents": "Code assigned to the job family"}, "doc.workday.job_family_codes": {"name": "job_family_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_codes", "block_contents": "String array of all job family codes assigned to a job profile."}, "doc.workday.job_family_group": {"name": "job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group", "block_contents": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics."}, "doc.workday.job_family_group_code": {"name": "job_family_group_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_code", "block_contents": "Code assigned to the job family group for reference and categorization."}, "doc.workday.job_family_group_codes": {"name": "job_family_group_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_codes", "block_contents": "String array of all job family group codes assigned to a job profile."}, "doc.workday.job_family_group_id": {"name": "job_family_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_id", "block_contents": "Identifier for the job family group."}, "doc.workday.job_family_group_summary": {"name": "job_family_group_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summary", "block_contents": "The summary of the job family group."}, "doc.workday.job_family_group_summaries": {"name": "job_family_group_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summaries", "block_contents": "String array of all job family group summaries assigned to a job profile."}, "doc.workday.job_family_id": {"name": "job_family_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_id", "block_contents": "Identifier for the job family."}, "doc.workday.job_family_job_family_group": {"name": "job_family_job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_family_group", "block_contents": "Represents the relationship between job families and job family groups in the Workday dataset."}, "doc.workday.job_family_job_profile": {"name": "job_family_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_profile", "block_contents": "Represents the relationship between job families and job profiles in the Workday dataset."}, "doc.workday.job_family_summary": {"name": "job_family_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summary", "block_contents": "The summary of the job family."}, "doc.workday.job_family_summaries": {"name": "job_family_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summaries", "block_contents": "String array of all job family summaries assigned to a job profile."}, "doc.workday.job_group_id": {"name": "job_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_group_id", "block_contents": "The unique identifier for the job group."}, "doc.workday.job_posting_title": {"name": "job_posting_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_posting_title", "block_contents": "Title used for job postings associated with the position."}, "doc.workday.job_private_title": {"name": "job_private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_private_title", "block_contents": "The private title associated with the job."}, "doc.workday.job_profile": {"name": "job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile", "block_contents": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes."}, "doc.workday.job_profile_code": {"name": "job_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_code", "block_contents": "Code assigned to the job profile."}, "doc.workday.job_profile_description": {"name": "job_profile_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_description", "block_contents": "Brief description of the job profile."}, "doc.workday.job_profile_id": {"name": "job_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_id", "block_contents": "Identifier for the job profile."}, "doc.workday.job_summary": {"name": "job_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_summary", "block_contents": "The summary of the job."}, "doc.workday.job_title": {"name": "job_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_title", "block_contents": "The title of the job for the worker."}, "doc.workday.last_date_for_which_paid": {"name": "last_date_for_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_date_for_which_paid", "block_contents": "The last date being paid before leave."}, "doc.workday.last_datefor_which_paid": {"name": "last_datefor_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_datefor_which_paid", "block_contents": "Last date for which the worker was paid."}, "doc.workday.last_medical_exam_date": {"name": "last_medical_exam_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_date", "block_contents": "The date of the last medical exam."}, "doc.workday.last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_valid_to", "block_contents": "The validity date of the last medical exam."}, "doc.workday.last_name": {"name": "last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_name", "block_contents": "The last name or surname of the individual."}, "doc.workday.last_updated_date_time": {"name": "last_updated_date_time", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_updated_date_time", "block_contents": "Date and time when the organization record was last updated."}, "doc.workday.leave_description": {"name": "leave_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_description", "block_contents": "Description of the type of leave"}, "doc.workday.leave_end_date": {"name": "leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_end_date", "block_contents": "The end date of the leave."}, "doc.workday.leave_entitlement_override": {"name": "leave_entitlement_override", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_entitlement_override", "block_contents": "Override for leave entitlement."}, "doc.workday.leave_last_day_of_work": {"name": "leave_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_last_day_of_work", "block_contents": "The last day of work associated with the leave status."}, "doc.workday.leave_of_absence_type": {"name": "leave_of_absence_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_of_absence_type", "block_contents": "The type of leave of absence."}, "doc.workday.leave_percentage": {"name": "leave_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_percentage", "block_contents": "The percentage of leave."}, "doc.workday.leave_request_event_id": {"name": "leave_request_event_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_request_event_id", "block_contents": "The unique identifier for the leave request event."}, "doc.workday.leave_return_event": {"name": "leave_return_event", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_return_event", "block_contents": "The event associated with the return from leave."}, "doc.workday.leave_start_date": {"name": "leave_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_start_date", "block_contents": "The start date of the leave."}, "doc.workday.leave_status_code": {"name": "leave_status_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_status_code", "block_contents": "The code indicating the status of the leave."}, "doc.workday.leave_type_reason": {"name": "leave_type_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_type_reason", "block_contents": "The reason for the leave type."}, "doc.workday.level": {"name": "level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.level", "block_contents": "Level associated with the job profile."}, "doc.workday.local_first_name": {"name": "local_first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name", "block_contents": "The local or native first name of the individual."}, "doc.workday.local_first_name_2": {"name": "local_first_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name_2", "block_contents": "Additional local or native first name, if applicable."}, "doc.workday.local_hukou": {"name": "local_hukou", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_hukou", "block_contents": "Flag indicating whether the Hukou is local."}, "doc.workday.local_last_name": {"name": "local_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name", "block_contents": "The local or native last name of the individual."}, "doc.workday.local_last_name_2": {"name": "local_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name_2", "block_contents": "Additional local or native last name, if applicable."}, "doc.workday.local_middle_name": {"name": "local_middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name", "block_contents": "The local or native middle name of the individual."}, "doc.workday.local_middle_name_2": {"name": "local_middle_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name_2", "block_contents": "Additional local or native middle name, if applicable."}, "doc.workday.local_secondary_last_name": {"name": "local_secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name", "block_contents": "Secondary local or native last name or surname, if applicable."}, "doc.workday.local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name_2", "block_contents": "Additional secondary local or native last name, if applicable."}, "doc.workday.local_termination_reason": {"name": "local_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_termination_reason", "block_contents": "The reason for local termination of the worker."}, "doc.workday.location": {"name": "location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location", "block_contents": "Location associated with the organization."}, "doc.workday.location_during_leave": {"name": "location_during_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location_during_leave", "block_contents": "The location during the leave."}, "doc.workday.management_level": {"name": "management_level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level", "block_contents": "Management level associated with the job profile."}, "doc.workday.management_level_code": {"name": "management_level_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level_code", "block_contents": "Code indicating the management level associated with the job profile."}, "doc.workday.manager_id": {"name": "manager_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.manager_id", "block_contents": "Identifier for the manager associated with the organization."}, "doc.workday.marital_status": {"name": "marital_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status", "block_contents": "The marital status of the individual."}, "doc.workday.marital_status_date": {"name": "marital_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status_date", "block_contents": "The date of the marital status."}, "doc.workday.medical_exam_notes": {"name": "medical_exam_notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.medical_exam_notes", "block_contents": "Notes from the medical exam."}, "doc.workday.middle_name": {"name": "middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.middle_name", "block_contents": "The middle name of the individual."}, "doc.workday.military_service": {"name": "military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_service", "block_contents": "Represents information about an individual's military service in the Workday system."}, "doc.workday.military_status": {"name": "military_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_status", "block_contents": "The military status of the worker."}, "doc.workday.months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.months_continuous_prior_employment", "block_contents": "Number of months of continuous prior employment."}, "doc.workday.most_recent_level": {"name": "most_recent_level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_level", "block_contents": "The most recent level of the worker."}, "doc.workday.most_recent_location": {"name": "most_recent_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_location", "block_contents": "The most recent location of the worker."}, "doc.workday.most_recent_position_effective_date": {"name": "most_recent_position_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_position_effective_date", "block_contents": "The most recent position effective date for the employee."}, "doc.workday.most_recent_position_end_date": {"name": "most_recent_position_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_position_end_date", "block_contents": "The most recent position end date for the employee."}, "doc.workday.most_recent_position_start_date": {"name": "most_recent_position_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_position_start_date", "block_contents": "The most recent position start date for the employee."}, "doc.workday.most_recent_position_type": {"name": "most_recent_position_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_position_type", "block_contents": "The most recent position type of the worker."}, "doc.workday.multiple_child_indicator": {"name": "multiple_child_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.multiple_child_indicator", "block_contents": "Indicator for multiple children."}, "doc.workday.native_region": {"name": "native_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region", "block_contents": "The native region of the individual."}, "doc.workday.native_region_code": {"name": "native_region_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region_code", "block_contents": "The code of the native region."}, "doc.workday.not_returning": {"name": "not_returning", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.not_returning", "block_contents": "Flag indicating whether the worker is not returning."}, "doc.workday.notes": {"name": "notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.notes", "block_contents": "Additional notes or comments related to the military service record."}, "doc.workday.number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_babies_adopted_children", "block_contents": "The number of babies adopted by the worker."}, "doc.workday.number_of_child_dependents": {"name": "number_of_child_dependents", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_child_dependents", "block_contents": "The number of child dependents."}, "doc.workday.number_of_previous_births": {"name": "number_of_previous_births", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_births", "block_contents": "The number of previous births."}, "doc.workday.number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_maternity_leaves", "block_contents": "The number of previous maternity leaves."}, "doc.workday.on_leave": {"name": "on_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.on_leave", "block_contents": "Indicator for whether the worker is on leave."}, "doc.workday.organization": {"name": "organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization", "block_contents": "Identifier for the organization."}, "doc.workday.organization_code": {"name": "organization_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_code", "block_contents": "Code associated with the organization."}, "doc.workday.organization_description": {"name": "organization_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_description", "block_contents": "The description of the organization."}, "doc.workday.organization_id": {"name": "organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_id", "block_contents": "Identifier for the organization."}, "doc.workday.organization_job_family": {"name": "organization_job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_job_family", "block_contents": "Captures the associations between different organizational entities and the job families they are linked to."}, "doc.workday.organization_location": {"name": "organization_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_location", "block_contents": "The location of the organization."}, "doc.workday.organization_name": {"name": "organization_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_name", "block_contents": "Name of the organization."}, "doc.workday.organization_owner_id": {"name": "organization_owner_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_owner_id", "block_contents": "Identifier for the owner of the organization."}, "doc.workday.organization_role": {"name": "organization_role", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role", "block_contents": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities."}, "doc.workday.organization_role_code": {"name": "organization_role_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_code", "block_contents": "Code assigned to the organization role for reference and categorization."}, "doc.workday.organization_role_id": {"name": "organization_role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_id", "block_contents": "The role id associated with the organization."}, "doc.workday.organization_role_worker": {"name": "organization_role_worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_worker", "block_contents": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill."}, "doc.workday.organization_sub_type": {"name": "organization_sub_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_sub_type", "block_contents": "Subtype or classification of the organization."}, "doc.workday.organization_type": {"name": "organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_type", "block_contents": "Type or category of the organization."}, "doc.workday.organization_worker_code": {"name": "organization_worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_worker_code", "block_contents": "The worker code associated with the organization."}, "doc.workday.original_hire_date": {"name": "original_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.original_hire_date", "block_contents": "The original date when the worker was hired."}, "doc.workday.paid_fte": {"name": "paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_fte", "block_contents": "The paid full-time equivalent (FTE) associated with the worker position."}, "doc.workday.paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_time_off_accrual_effect", "block_contents": "The effect of leave on paid time off accrual."}, "doc.workday.pay_group": {"name": "pay_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group", "block_contents": "The pay group associated with the worker position."}, "doc.workday.pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_currency", "block_contents": "Currency code used for the worker's pay group frequency."}, "doc.workday.pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_frequency", "block_contents": "Frequency of payment for the worker's pay group."}, "doc.workday.pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's pay group."}, "doc.workday.pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_base_pay", "block_contents": "Total base pay for the worker's pay group."}, "doc.workday.pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's pay group."}, "doc.workday.pay_rate": {"name": "pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate", "block_contents": "The pay rate associated with the worker position."}, "doc.workday.pay_rate_type": {"name": "pay_rate_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate_type", "block_contents": "The type of pay rate associated with the worker position."}, "doc.workday.pay_through_date": {"name": "pay_through_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_through_date", "block_contents": "The date through which the worker is paid."}, "doc.workday.payroll_effect": {"name": "payroll_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_effect", "block_contents": "The effect of leave on payroll."}, "doc.workday.payroll_entity": {"name": "payroll_entity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_entity", "block_contents": "The payroll entity associated with the worker position."}, "doc.workday.payroll_file_number": {"name": "payroll_file_number", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_file_number", "block_contents": "The file number associated with payroll for the worker position."}, "doc.workday.person_contact_email_address": {"name": "person_contact_email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address", "block_contents": "Represents the email addresses associated with a person in the Workday system."}, "doc.workday.person_contact_email_address_id": {"name": "person_contact_email_address_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address_id", "block_contents": "The identifier of the personal contact email address."}, "doc.workday.person_name": {"name": "person_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name", "block_contents": "Represents the name information for an individual in the Workday system."}, "doc.workday.person_name_type": {"name": "person_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name_type", "block_contents": "The type or category of the person name (e.g., legal name, preferred name)."}, "doc.workday.personal_info_system_id": {"name": "personal_info_system_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_info_system_id", "block_contents": "The system ID associated with the personal information of the individual."}, "doc.workday.personal_information": {"name": "personal_information", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information", "block_contents": "The personal information associated with each worker."}, "doc.workday.personal_information_ethnicity": {"name": "personal_information_ethnicity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_ethnicity", "block_contents": "Represents information about the ethnicity of an individual in the Workday system."}, "doc.workday.personal_information_id": {"name": "personal_information_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_id", "block_contents": "The identifier for each personal information record."}, "doc.workday.personal_information_type": {"name": "personal_information_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_type", "block_contents": "The type of personal information record."}, "doc.workday.personnel_file_agency": {"name": "personnel_file_agency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personnel_file_agency", "block_contents": "The agency associated with the personnel file."}, "doc.workday.political_affiliation": {"name": "political_affiliation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.political_affiliation", "block_contents": "The political affiliation of the individual."}, "doc.workday.position": {"name": "position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position", "block_contents": "Resource for understanding the details and attributes associated with each position."}, "doc.workday.position_code": {"name": "position_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_code", "block_contents": "Code associated with the position for reference and categorization."}, "doc.workday.position_days": {"name": "position_days", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_days", "block_contents": "The days the worker held positions at the company."}, "doc.workday.position_id": {"name": "position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_id", "block_contents": "Identifier for the specific position."}, "doc.workday.position_job_profile": {"name": "position_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile", "block_contents": "Captures the associations between specific positions and the job profiles they are linked to."}, "doc.workday.position_job_profile_name": {"name": "position_job_profile_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile_name", "block_contents": "Name associated with the job profile linked to the position."}, "doc.workday.position_organization": {"name": "position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization", "block_contents": "Captures the associations between specific positions and the organizations to which they belong."}, "doc.workday.position_organization_type": {"name": "position_organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization_type", "block_contents": "Type or category of the position within the organization."}, "doc.workday.position_time_type_code": {"name": "position_time_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_time_type_code", "block_contents": "Code indicating the time type associated with the position."}, "doc.workday.prefix_salutation": {"name": "prefix_salutation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_salutation", "block_contents": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.)."}, "doc.workday.prefix_title": {"name": "prefix_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title", "block_contents": "The prefix or title associated with the name (e.g., Professor)."}, "doc.workday.prefix_title_code": {"name": "prefix_title_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title_code", "block_contents": "The code associated with the prefix or title."}, "doc.workday.primary_compensation_basis": {"name": "primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis", "block_contents": "Primary basis of compensation for the position."}, "doc.workday.primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_amount_change", "block_contents": "Change in the amount of the primary compensation basis."}, "doc.workday.primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_percent_change", "block_contents": "Change in the percentage of the primary compensation basis."}, "doc.workday.primary_nationality": {"name": "primary_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_nationality", "block_contents": "The primary nationality of the individual."}, "doc.workday.primary_termination_category": {"name": "primary_termination_category", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_category", "block_contents": "The primary termination category for the worker."}, "doc.workday.primary_termination_reason": {"name": "primary_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_reason", "block_contents": "The primary termination reason for the worker."}, "doc.workday.private_title": {"name": "private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.private_title", "block_contents": "Private title associated with the job profile."}, "doc.workday.probation_end_date": {"name": "probation_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_end_date", "block_contents": "The date when the worker's probation ends."}, "doc.workday.probation_start_date": {"name": "probation_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_start_date", "block_contents": "The date when the worker's probation starts."}, "doc.workday.professional_suffix": {"name": "professional_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.professional_suffix", "block_contents": "The professional suffix, if applicable (e.g., Esq., CPA)."}, "doc.workday.public_job": {"name": "public_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.public_job", "block_contents": "Flag indicating whether the job is public."}, "doc.workday.rank": {"name": "rank", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rank", "block_contents": "The rank achieved by the individual during military service."}, "doc.workday.reason_reference_id": {"name": "reason_reference_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.reason_reference_id", "block_contents": "The reference ID for the termination reason."}, "doc.workday.referral_payment_plan": {"name": "referral_payment_plan", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.referral_payment_plan", "block_contents": "Referral payment plan associated with the job profile."}, "doc.workday.region_of_birth": {"name": "region_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth", "block_contents": "The region of birth of the individual."}, "doc.workday.region_of_birth_code": {"name": "region_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth_code", "block_contents": "The code of the region of birth."}, "doc.workday.regrettable_termination": {"name": "regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regrettable_termination", "block_contents": "Flag indicating whether the worker's termination is regrettable."}, "doc.workday.regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regular_paid_equivalent_hours", "block_contents": "The regular paid equivalent hours associated with the worker position."}, "doc.workday.rehire": {"name": "rehire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rehire", "block_contents": "Flag indicating whether the worker is eligible for rehire."}, "doc.workday.religion": {"name": "religion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religion", "block_contents": "The religion of the individual."}, "doc.workday.religious_suffix": {"name": "religious_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religious_suffix", "block_contents": "The religious suffix, if applicable."}, "doc.workday.resignation_date": {"name": "resignation_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.resignation_date", "block_contents": "The date when the worker resigned."}, "doc.workday.retired": {"name": "retired", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retired", "block_contents": "Flag indicating whether the worker is retired."}, "doc.workday.retirement_date": {"name": "retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_date", "block_contents": "The date when the worker retired."}, "doc.workday.retirement_eligibility_date": {"name": "retirement_eligibility_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_eligibility_date", "block_contents": "The date when the worker becomes eligible for retirement."}, "doc.workday.return_unknown": {"name": "return_unknown", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.return_unknown", "block_contents": "Flag indicating whether the worker's return status is unknown."}, "doc.workday.role_id": {"name": "role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.role_id", "block_contents": "Identifier for the specific role."}, "doc.workday.royal_suffix": {"name": "royal_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.royal_suffix", "block_contents": "The royal suffix, if applicable."}, "doc.workday.scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the worker position."}, "doc.workday.secondary_last_name": {"name": "secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.secondary_last_name", "block_contents": "Secondary last name or surname, if applicable."}, "doc.workday.seniority_date": {"name": "seniority_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.seniority_date", "block_contents": "The date when the worker's seniority is recorded."}, "doc.workday.service": {"name": "service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service", "block_contents": "The specific military service branch in which the individual served."}, "doc.workday.service_type": {"name": "service_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service_type", "block_contents": "The type or category of military service (e.g., active duty, reserve, etc.)."}, "doc.workday.severance_date": {"name": "severance_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.severance_date", "block_contents": "The date when the worker's severance is recorded."}, "doc.workday.single_parent_indicator": {"name": "single_parent_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.single_parent_indicator", "block_contents": "Indicator for a single parent."}, "doc.workday.social_benefit": {"name": "social_benefit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_benefit", "block_contents": "The social benefit associated with the individual."}, "doc.workday.social_security_disability_code": {"name": "social_security_disability_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_security_disability_code", "block_contents": "The code indicating social security disability."}, "doc.workday.social_suffix": {"name": "social_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix", "block_contents": "The social suffix, if applicable."}, "doc.workday.social_suffix_id": {"name": "social_suffix_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix_id", "block_contents": "The identifier for the social suffix."}, "doc.workday.specify_paid_fte": {"name": "specify_paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_paid_fte", "block_contents": "Flag indicating whether to specify paid FTE for the worker position."}, "doc.workday.specify_working_fte": {"name": "specify_working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_working_fte", "block_contents": "Flag indicating whether to specify working FTE for the worker position."}, "doc.workday.staffing_model": {"name": "staffing_model", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.staffing_model", "block_contents": "Staffing model associated with the organization"}, "doc.workday.start_date": {"name": "start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_date", "block_contents": "The start date of the worker position."}, "doc.workday.start_international_assignment_reason": {"name": "start_international_assignment_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_international_assignment_reason", "block_contents": "The reason for starting an international assignment associated with the worker position."}, "doc.workday.status": {"name": "status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status", "block_contents": "The status of the individual's military service (e.g., active, inactive, retired)."}, "doc.workday.status_begin_date": {"name": "status_begin_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status_begin_date", "block_contents": "The date on which the current military service status began."}, "doc.workday.stock_vesting_effect": {"name": "stock_vesting_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stock_vesting_effect", "block_contents": "The effect of leave on stock vesting."}, "doc.workday.stop_payment_date": {"name": "stop_payment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stop_payment_date", "block_contents": "The date when stop payment occurs."}, "doc.workday.summary": {"name": "summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.summary", "block_contents": "Summary or overview of the job profile."}, "doc.workday.superior_organization_id": {"name": "superior_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.superior_organization_id", "block_contents": "Identifier for the superior organization, if applicable."}, "doc.workday.supervisory_organization_id": {"name": "supervisory_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_organization_id", "block_contents": "Identifier for the supervisory organization associated with the position."}, "doc.workday.supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_availability_date", "block_contents": "Availability date for supervisory positions within the organization."}, "doc.workday.supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_earliest_hire_date", "block_contents": "Earliest hire date for supervisory positions within the organization."}, "doc.workday.supervisory_position_time_type": {"name": "supervisory_position_time_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_time_type", "block_contents": "Time type associated with supervisory positions."}, "doc.workday.supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_worker_type", "block_contents": "Worker type associated with supervisory positions."}, "doc.workday.terminated": {"name": "terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.terminated", "block_contents": "Flag indicating whether the worker is terminated."}, "doc.workday.termination_date": {"name": "termination_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_date", "block_contents": "The date when the worker is terminated."}, "doc.workday.termination_involuntary": {"name": "termination_involuntary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_involuntary", "block_contents": "Flag indicating whether the termination is involuntary."}, "doc.workday.termination_last_day_of_work": {"name": "termination_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_last_day_of_work", "block_contents": "The last day of work for the worker during termination."}, "doc.workday.tertiary_last_name": {"name": "tertiary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tertiary_last_name", "block_contents": "Tertiary last name or surname, if applicable."}, "doc.workday.time_off_service_date": {"name": "time_off_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.time_off_service_date", "block_contents": "The date when the worker's time-off service starts."}, "doc.workday.title": {"name": "title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.title", "block_contents": "Title associated with the job profile."}, "doc.workday.tobacco_use": {"name": "tobacco_use", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tobacco_use", "block_contents": "Flag indicating whether the individual uses tobacco."}, "doc.workday.top_level_organization_id": {"name": "top_level_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.top_level_organization_id", "block_contents": "Identifier for the top-level organization, if applicable."}, "doc.workday.union_code": {"name": "union_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_code", "block_contents": "Code associated with the union related to the job profile."}, "doc.workday.union_membership_requirement": {"name": "union_membership_requirement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_membership_requirement", "block_contents": "Flag indicating whether union membership is a requirement for the job profile."}, "doc.workday.universal_id": {"name": "universal_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.universal_id", "block_contents": "The universal ID associated with the worker."}, "doc.workday.user_id": {"name": "user_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.user_id", "block_contents": "The identifier for the user associated with the worker."}, "doc.workday.vesting_date": {"name": "vesting_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.vesting_date", "block_contents": "The date when the worker's vesting starts."}, "doc.workday.visibility": {"name": "visibility", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.visibility", "block_contents": "Visibility level of the organization."}, "doc.workday.week_of_confinement": {"name": "week_of_confinement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.week_of_confinement", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_hours_profile": {"name": "work_hours_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_hours_profile", "block_contents": "The work hours profile associated with the worker position."}, "doc.workday.work_related": {"name": "work_related", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_related", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_shift": {"name": "work_shift", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift", "block_contents": "The work shift associated with the worker position."}, "doc.workday.work_shift_required": {"name": "work_shift_required", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift_required", "block_contents": "Flag indicating whether a work shift is required."}, "doc.workday.work_space": {"name": "work_space", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_space", "block_contents": "The work space associated with the worker position."}, "doc.workday.work_study_award_source_code": {"name": "work_study_award_source_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_award_source_code", "block_contents": "Code associated with the source of work study awards."}, "doc.workday.work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_requirement_option_code", "block_contents": "Code associated with work study requirement options."}, "doc.workday.workday__employee_overview": {"name": "workday__employee_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__employee_overview", "block_contents": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees."}, "doc.workday.workday__job_overview": {"name": "workday__job_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__job_overview", "block_contents": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings."}, "doc.workday.workday__role_overview": {"name": "workday__role_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__role_overview", "block_contents": "Each record represents a role in an organization, enhanced with additional organizational details."}, "doc.workday.workday__organization_overview": {"name": "workday__organization_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__organization_overview", "block_contents": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures."}, "doc.workday.workday__position_overview": {"name": "workday__position_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__position_overview", "block_contents": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts."}, "doc.workday.worker": {"name": "worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker", "block_contents": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker."}, "doc.workday.worker_code": {"name": "worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_code", "block_contents": "The code associated with the worker."}, "doc.workday.worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_for_filled_position_id", "block_contents": "Identifier for the worker filling the position, if applicable."}, "doc.workday.worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_hours_profile_classification", "block_contents": "The classification of worker hours profile associated with the worker position."}, "doc.workday.worker_id": {"name": "worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_id", "block_contents": "Unique identifier for the worker."}, "doc.workday.worker_leave_status": {"name": "worker_leave_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_leave_status", "block_contents": "Represents the leave status of workers in the Workday system."}, "doc.workday.worker_levels": {"name": "worker_levels", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_levels", "block_contents": "The number of levels the worker has worked at."}, "doc.workday.worker_position": {"name": "worker_position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position", "block_contents": "Represents the positions held by workers in the Workday system"}, "doc.workday.worker_position_organization": {"name": "worker_position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_organization", "block_contents": "Ties together workers to the positions and organizations they hold in the Workday system."}, "doc.workday.worker_position_id": {"name": "worker_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_id", "block_contents": "Identifier for the worker associated with the position."}, "doc.workday.worker_positions": {"name": "worker_positions", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_positions", "block_contents": "The number of positions the worker has held"}, "doc.workday.worker_type_code": {"name": "worker_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_type_code", "block_contents": "Code indicating the type of worker associated with the position."}, "doc.workday.working_fte": {"name": "working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_fte", "block_contents": "The working full-time equivalent (FTE) associated with the worker position."}, "doc.workday.working_time_frequency": {"name": "working_time_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_frequency", "block_contents": "The frequency of working time associated with the worker position."}, "doc.workday.working_time_unit": {"name": "working_time_unit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_unit", "block_contents": "The unit of working time associated with the worker position."}, "doc.workday.working_time_value": {"name": "working_time_value", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_value", "block_contents": "The value of working time associated with the worker position."}, "doc.workday.date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_pay_group_assignment", "block_contents": "Date a group's pay is assigned to be processed."}, "doc.workday.primary_business_site": {"name": "primary_business_site", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_business_site", "block_contents": "Primary location a worker's business is situated."}, "doc.workday.used_in_change_organization_assignments": {"name": "used_in_change_organization_assignments", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.used_in_change_organization_assignments", "block_contents": "If a worker has opted to change these organization assignments."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {}, "parent_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.workday__job_overview": ["model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_group", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_profile"], "model.workday.workday__position_overview": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"], "model.workday.workday__organization_overview": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"], "model.workday.stg_workday__position": ["model.workday.stg_workday__position_base"], "model.workday.stg_workday__job_family_group": ["model.workday.stg_workday__job_family_group_base"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "model.workday.stg_workday__organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "model.workday.stg_workday__organization_role": ["model.workday.stg_workday__organization_role_base"], "model.workday.stg_workday__worker_position": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "model.workday.stg_workday__position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "model.workday.stg_workday__worker_position_organization": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.stg_workday__job_profile": ["model.workday.stg_workday__job_profile_base"], "model.workday.stg_workday__position_organization": ["model.workday.stg_workday__position_organization_base"], "model.workday.stg_workday__worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "model.workday.stg_workday__person_name": ["model.workday.stg_workday__person_name_base"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "model.workday.stg_workday__organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "model.workday.stg_workday__job_family": ["model.workday.stg_workday__job_family_base"], "model.workday.stg_workday__military_service": ["model.workday.stg_workday__military_service_base"], "model.workday.stg_workday__personal_information": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "model.workday.stg_workday__worker": ["model.workday.stg_workday__worker_base"], "model.workday.stg_workday__organization": ["model.workday.stg_workday__organization_base"], "model.workday.stg_workday__job_family_job_family_group_base": ["source.workday.workday.job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["source.workday.workday.personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["source.workday.workday.job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["source.workday.workday.worker_position_organization_history"], "model.workday.stg_workday__position_base": ["source.workday.workday.position"], "model.workday.stg_workday__person_contact_email_address_base": ["source.workday.workday.person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["source.workday.workday.organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["source.workday.workday.job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["source.workday.workday.position_organization"], "model.workday.stg_workday__organization_role_base": ["source.workday.workday.organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["source.workday.workday.worker_leave_status"], "model.workday.stg_workday__job_family_base": ["source.workday.workday.job_family"], "model.workday.stg_workday__job_profile_base": ["source.workday.workday.job_profile"], "model.workday.stg_workday__organization_base": ["source.workday.workday.organization"], "model.workday.stg_workday__organization_role_worker_base": ["source.workday.workday.organization_role_worker"], "model.workday.stg_workday__worker_base": ["source.workday.workday.worker_history"], "model.workday.stg_workday__position_job_profile_base": ["source.workday.workday.position_job_profile"], "model.workday.stg_workday__worker_position_base": ["source.workday.workday.worker_position_history"], "model.workday.stg_workday__person_name_base": ["source.workday.workday.person_name"], "model.workday.stg_workday__military_service_base": ["source.workday.workday.military_service"], "model.workday.stg_workday__personal_information_base": ["source.workday.workday.personal_information_history"], "model.workday.workday__employee_daily_history": ["model.workday.int_workday__employee_history"], "model.workday.int_workday__worker_position_enriched": ["model.workday.stg_workday__worker_position"], "model.workday.int_workday__personal_details": ["model.workday.stg_workday__military_service", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__person_name", "model.workday.stg_workday__personal_information", "model.workday.stg_workday__personal_information_ethnicity"], "model.workday.int_workday__worker_details": ["model.workday.stg_workday__worker"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.int_workday__personal_details", "model.workday.int_workday__worker_details", "model.workday.int_workday__worker_position_enriched"], "model.workday.int_workday__employee_history": ["model.workday.stg_workday__personal_information_history", "model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history"], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": ["model.workday.workday__employee_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": ["model.workday.workday__job_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": ["model.workday.workday__job_overview"], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": ["model.workday.workday__position_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": ["model.workday.workday__position_overview"], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": ["model.workday.workday__organization_overview"], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": ["model.workday.workday__organization_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": ["model.workday.workday__organization_overview"], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": ["model.workday.stg_workday__job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": ["model.workday.stg_workday__job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": ["model.workday.stg_workday__job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": ["model.workday.stg_workday__job_family"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": ["model.workday.stg_workday__job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": ["model.workday.stg_workday__job_family_group"], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": ["model.workday.stg_workday__organization_role"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": ["model.workday.stg_workday__organization_role_worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": ["model.workday.stg_workday__organization_job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": ["model.workday.stg_workday__organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": ["model.workday.stg_workday__organization"], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": ["model.workday.stg_workday__position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": ["model.workday.stg_workday__position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": ["model.workday.stg_workday__position"], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": ["model.workday.stg_workday__position_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": ["model.workday.stg_workday__worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": ["model.workday.stg_workday__worker"], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": ["model.workday.stg_workday__personal_information"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": ["model.workday.stg_workday__personal_information"], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": ["model.workday.stg_workday__person_name"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": ["model.workday.stg_workday__military_service"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": ["model.workday.stg_workday__military_service"], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": ["model.workday.stg_workday__worker_position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": ["model.workday.stg_workday__worker_leave_status"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": ["model.workday.stg_workday__worker_position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": ["model.workday.stg_workday__worker_position_organization"], "model.workday.stg_workday__personal_information_history": ["source.workday.workday.personal_information_history"], "model.workday.stg_workday__worker_position_organization_history": ["source.workday.workday.worker_position_organization_history"], "model.workday.workday__monthly_summary": ["model.workday.workday__employee_daily_history"], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": ["model.workday.stg_workday__personal_information_history"], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": ["model.workday.stg_workday__personal_information_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888": ["model.workday.stg_workday__worker_position_organization_history"], "model.workday.stg_workday__worker_history": ["source.workday.workday.worker_history"], "model.workday.stg_workday__worker_position_history": ["source.workday.workday.worker_position_history"], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": ["model.workday.stg_workday__worker_history"], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": ["model.workday.stg_workday__worker_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": ["model.workday.stg_workday__worker_position_history"], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": ["model.workday.stg_workday__worker_position_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b": ["model.workday.stg_workday__worker_position_history"], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "source.workday.workday.job_profile": [], "source.workday.workday.job_family_job_profile": [], "source.workday.workday.job_family": [], "source.workday.workday.job_family_job_family_group": [], "source.workday.workday.job_family_group": [], "source.workday.workday.organization_role": [], "source.workday.workday.organization_role_worker": [], "source.workday.workday.organization_job_family": [], "source.workday.workday.organization": [], "source.workday.workday.position_organization": [], "source.workday.workday.position": [], "source.workday.workday.position_job_profile": [], "source.workday.workday.worker_history": [], "source.workday.workday.personal_information_history": [], "source.workday.workday.person_name": [], "source.workday.workday.personal_information_ethnicity": [], "source.workday.workday.military_service": [], "source.workday.workday.person_contact_email_address": [], "source.workday.workday.worker_position_history": [], "source.workday.workday.worker_leave_status": [], "source.workday.workday.worker_position_organization_history": []}, "child_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d", "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97"], "model.workday.workday__job_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857"], "model.workday.workday__position_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "test.workday.not_null_workday__position_overview_position_id.603beb3f22"], "model.workday.workday__organization_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412"], "model.workday.stg_workday__position": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e"], "model.workday.stg_workday__job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c"], "model.workday.stg_workday__organization_role_worker": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72"], "model.workday.stg_workday__organization_role": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f"], "model.workday.stg_workday__worker_position": ["model.workday.int_workday__worker_position_enriched", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755"], "model.workday.stg_workday__position_job_profile": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7"], "model.workday.stg_workday__worker_position_organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b"], "model.workday.stg_workday__job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa"], "model.workday.stg_workday__position_organization": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7"], "model.workday.stg_workday__worker_leave_status": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61"], "model.workday.stg_workday__person_name": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd"], "model.workday.stg_workday__organization_job_family": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e"], "model.workday.stg_workday__job_family": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f"], "model.workday.stg_workday__military_service": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38"], "model.workday.stg_workday__personal_information": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b"], "model.workday.stg_workday__worker": ["model.workday.int_workday__worker_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "test.workday.not_null_stg_workday__worker_worker_id.8dae310560"], "model.workday.stg_workday__organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7"], "model.workday.stg_workday__job_family_job_family_group_base": ["model.workday.stg_workday__job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["model.workday.stg_workday__personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["model.workday.stg_workday__job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["model.workday.stg_workday__worker_position_organization"], "model.workday.stg_workday__position_base": ["model.workday.stg_workday__position"], "model.workday.stg_workday__person_contact_email_address_base": ["model.workday.stg_workday__person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["model.workday.stg_workday__organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["model.workday.stg_workday__job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["model.workday.stg_workday__position_organization"], "model.workday.stg_workday__organization_role_base": ["model.workday.stg_workday__organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["model.workday.stg_workday__worker_leave_status"], "model.workday.stg_workday__job_family_base": ["model.workday.stg_workday__job_family"], "model.workday.stg_workday__job_profile_base": ["model.workday.stg_workday__job_profile"], "model.workday.stg_workday__organization_base": ["model.workday.stg_workday__organization"], "model.workday.stg_workday__organization_role_worker_base": ["model.workday.stg_workday__organization_role_worker"], "model.workday.stg_workday__worker_base": ["model.workday.stg_workday__worker"], "model.workday.stg_workday__position_job_profile_base": ["model.workday.stg_workday__position_job_profile"], "model.workday.stg_workday__worker_position_base": ["model.workday.stg_workday__worker_position"], "model.workday.stg_workday__person_name_base": ["model.workday.stg_workday__person_name"], "model.workday.stg_workday__military_service_base": ["model.workday.stg_workday__military_service"], "model.workday.stg_workday__personal_information_base": ["model.workday.stg_workday__personal_information"], "model.workday.workday__employee_daily_history": ["model.workday.workday__monthly_summary"], "model.workday.int_workday__worker_position_enriched": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__personal_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.workday__employee_overview"], "model.workday.int_workday__employee_history": ["model.workday.workday__employee_daily_history"], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d": [], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": [], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": [], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": [], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": [], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": [], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": [], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": [], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": [], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": [], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": [], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": [], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": [], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": [], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": [], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": [], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": [], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": [], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": [], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": [], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": [], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": [], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": [], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": [], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": [], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": [], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": [], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": [], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": [], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": [], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": [], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": [], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": [], "model.workday.stg_workday__personal_information_history": ["model.workday.int_workday__employee_history", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c", "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc"], "model.workday.stg_workday__worker_position_organization_history": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888", "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398"], "model.workday.workday__monthly_summary": [], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": [], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": [], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c": [], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": [], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": [], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": [], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": [], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888": [], "model.workday.stg_workday__worker_history": ["model.workday.int_workday__employee_history", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df", "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72"], "model.workday.stg_workday__worker_position_history": ["model.workday.int_workday__employee_history", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b", "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879"], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": [], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": [], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df": [], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": [], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": [], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": [], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b": [], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "source.workday.workday.job_profile": ["model.workday.stg_workday__job_profile_base"], "source.workday.workday.job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "source.workday.workday.job_family": ["model.workday.stg_workday__job_family_base"], "source.workday.workday.job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "source.workday.workday.job_family_group": ["model.workday.stg_workday__job_family_group_base"], "source.workday.workday.organization_role": ["model.workday.stg_workday__organization_role_base"], "source.workday.workday.organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "source.workday.workday.organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "source.workday.workday.organization": ["model.workday.stg_workday__organization_base"], "source.workday.workday.position_organization": ["model.workday.stg_workday__position_organization_base"], "source.workday.workday.position": ["model.workday.stg_workday__position_base"], "source.workday.workday.position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "source.workday.workday.worker_history": ["model.workday.stg_workday__worker_base", "model.workday.stg_workday__worker_history"], "source.workday.workday.personal_information_history": ["model.workday.stg_workday__personal_information_base", "model.workday.stg_workday__personal_information_history"], "source.workday.workday.person_name": ["model.workday.stg_workday__person_name_base"], "source.workday.workday.personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "source.workday.workday.military_service": ["model.workday.stg_workday__military_service_base"], "source.workday.workday.person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "source.workday.workday.worker_position_history": ["model.workday.stg_workday__worker_position_base", "model.workday.stg_workday__worker_position_history"], "source.workday.workday.worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "source.workday.workday.worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base", "model.workday.stg_workday__worker_position_organization_history"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v11.json", "dbt_version": "1.7.8", "generated_at": "2024-03-20T19:22:52.483230Z", "invocation_id": "0a684f85-6d1d-433c-bf8d-1857c8ad075a", "env": {}, "project_name": "workday_integration_tests", "project_id": "457920b1e5594993369a050db836d437", "user_id": "81581f81-d5af-4143-8fbf-c2f0001e4f56", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_job_family_group_data"], "alias": "workday_job_family_job_family_group_data", "checksum": {"name": "sha256", "checksum": "a4c9b0101811381ac698bec0ba8dd2474fa563f2d2dc6bdf1e072bd3f890313f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.385779, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_history_data.csv", "original_file_path": "seeds/workday_personal_information_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "fqn": ["workday_integration_tests", "workday_personal_information_history_data"], "alias": "workday_personal_information_history_data", "checksum": {"name": "sha256", "checksum": "2810574ec93fc886e6f1faa097951c8d7c96336fbd1a03b75a22b5a7bb85d13a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.431494, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_ethnicity_data.csv", "original_file_path": "seeds/workday_personal_information_ethnicity_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "fqn": ["workday_integration_tests", "workday_personal_information_ethnicity_data"], "alias": "workday_personal_information_ethnicity_data", "checksum": {"name": "sha256", "checksum": "986222e9224bcca39693358ca9829277b4f6a2c56111ba9aa2db56734d128e9a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.432908, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_group_data"], "alias": "workday_job_family_group_data", "checksum": {"name": "sha256", "checksum": "394c43d528af65ce740ba8ebd24d6d14e6ea99f5d57abcdd2690070f408378f9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.4341571, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_history_data.csv", "original_file_path": "seeds/workday_worker_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "fqn": ["workday_integration_tests", "workday_worker_history_data"], "alias": "workday_worker_history_data", "checksum": {"name": "sha256", "checksum": "b3b80c42d748789791fca4630504aafa22afd1dca315e0d63bc0f9f9fe33a68d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "annual_currency_summary_primary_compensation_basis": "float", "annual_currency_summary_total_base_pay": "float", "annual_currency_summary_total_salary_and_allowances": "float", "annual_summary_primary_compensation_basis": "float", "annual_summary_total_base_pay": "float", "annual_summary_total_salary_and_allowances": "float", "contract_pay_rate": "float", "days_unemployed": "float", "employee_compensation_primary_compensation_basis": "float", "employee_compensation_total_base_pay": "float", "employee_compensation_total_salary_and_allowances": "float", "hourly_frequency_primary_compensation_basis": "float", "hourly_frequency_total_base_pay": "float", "hourly_frequency_total_salary_and_allowances": "float", "months_continuous_prior_employment": "float", "pay_group_frequency_primary_compensation_basis": "float", "pay_group_frequency_total_base_pay": "float", "pay_group_frequency_total_salary_and_allowances": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "annual_currency_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "contract_pay_rate": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "days_unemployed": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "months_continuous_prior_employment": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1710962552.4355829, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_leave_status_data.csv", "original_file_path": "seeds/workday_worker_leave_status_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "fqn": ["workday_integration_tests", "workday_worker_leave_status_data"], "alias": "workday_worker_leave_status_data", "checksum": {"name": "sha256", "checksum": "bec6fe9af70bc7bebcfebbd12d41d1674fa78fc88497783bf7be995f1290b901"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "age_of_dependent": "float", "leave_entitlement_override": "float", "leave_percentage": "float", "number_of_babies_adopted_children": "float", "number_of_child_dependents": "float", "number_of_previous_births": "float", "number_of_previous_maternity_leaves": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "age_of_dependent": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_entitlement_override": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_percentage": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_babies_adopted_children": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_child_dependents": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_births": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_maternity_leaves": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1710962552.436896, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_organization_history_data.csv", "original_file_path": "seeds/workday_worker_position_organization_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_organization_history_data"], "alias": "workday_worker_position_organization_history_data", "checksum": {"name": "sha256", "checksum": "79d43cf1c2b3425d03d23b014705613022d55eb282108d972cbeb58bf55ed0d3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.438129, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_data.csv", "original_file_path": "seeds/workday_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_data", "fqn": ["workday_integration_tests", "workday_job_family_data"], "alias": "workday_job_family_data", "checksum": {"name": "sha256", "checksum": "727b3c01934259786bd85a1bed73ac70611363839a611bdea640bf9bd95cba2d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.439363, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_history_data.csv", "original_file_path": "seeds/workday_worker_position_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_history_data"], "alias": "workday_worker_position_history_data", "checksum": {"name": "sha256", "checksum": "434f6ed5606c6606bbbf41d1427584a275a825ae285f88c1b12d2c3d7da3c07d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "float", "business_site_summary_scheduled_weekly_hours": "float", "default_weekly_hours": "float", "start_date": "timestamp", "end_date": "timestamp"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "business_site_summary_scheduled_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "default_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "start_date": "timestamp", "end_date": "timestamp"}, "created_at": 1710962552.440778, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_name_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_name_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_name_data.csv", "original_file_path": "seeds/workday_person_name_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_name_data", "fqn": ["workday_integration_tests", "workday_person_name_data"], "alias": "workday_person_name_data", "checksum": {"name": "sha256", "checksum": "104b5d938091b1587548c91aa46a0e5b38ebccec81cbc569993b8a971b116881"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.441965, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_data.csv", "original_file_path": "seeds/workday_organization_role_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "fqn": ["workday_integration_tests", "workday_organization_role_data"], "alias": "workday_organization_role_data", "checksum": {"name": "sha256", "checksum": "b3e1187179e8afc95fbf180efac810d5a8f4f57e118393c60fca2c2c7f09e024"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.443108, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_military_service_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_military_service_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_military_service_data.csv", "original_file_path": "seeds/workday_military_service_data.csv", "unique_id": "seed.workday_integration_tests.workday_military_service_data", "fqn": ["workday_integration_tests", "workday_military_service_data"], "alias": "workday_military_service_data", "checksum": {"name": "sha256", "checksum": "f3d25deafee7b4188b4bdfe815b40397bdd80cd135db866b9ddf2b3a0b346b07"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.444256, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_data.csv", "original_file_path": "seeds/workday_position_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_data", "fqn": ["workday_integration_tests", "workday_position_data"], "alias": "workday_position_data", "checksum": {"name": "sha256", "checksum": "f31ec8364b56eb931ab406b25be5cfc0301bba65908bc448aeb170ed79805894"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "primary_compensation_basis": "float", "primary_compensation_basis_amount_change": "float", "primary_compensation_basis_percent_change": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_amount_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_percent_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1710962552.445407, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_data.csv", "original_file_path": "seeds/workday_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_data", "fqn": ["workday_integration_tests", "workday_organization_data"], "alias": "workday_organization_data", "checksum": {"name": "sha256", "checksum": "e0ece91ba5a270a01be9bbe91ea46b49c9e5c3c56e7234b5a597c9d81f63b4cc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.446773, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_organization_data.csv", "original_file_path": "seeds/workday_position_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "fqn": ["workday_integration_tests", "workday_position_organization_data"], "alias": "workday_position_organization_data", "checksum": {"name": "sha256", "checksum": "c0cd526bcf4b91f1842484875ce4fe803d510862d4d4ddba72c6d1724c8e9ea8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.4479601, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_profile_data.csv", "original_file_path": "seeds/workday_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_profile_data"], "alias": "workday_job_profile_data", "checksum": {"name": "sha256", "checksum": "677a184272cdd2e0d746d5616d33ad4ce394c74e759f73bf0e51f8dda5cc96e4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.449088, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_contact_email_address_data.csv", "original_file_path": "seeds/workday_person_contact_email_address_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "fqn": ["workday_integration_tests", "workday_person_contact_email_address_data"], "alias": "workday_person_contact_email_address_data", "checksum": {"name": "sha256", "checksum": "4641c91d789ed134081a55cf0aaafc5a61a7ea075904691a353389552038dbe9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.4506738, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_job_family_data.csv", "original_file_path": "seeds/workday_organization_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "fqn": ["workday_integration_tests", "workday_organization_job_family_data"], "alias": "workday_organization_job_family_data", "checksum": {"name": "sha256", "checksum": "2db2016b7eea202409836faff94ba2f168ce13dfd9e00ee1d1591eb85315cd47"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.451971, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_profile_data.csv", "original_file_path": "seeds/workday_job_family_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_family_job_profile_data"], "alias": "workday_job_family_job_profile_data", "checksum": {"name": "sha256", "checksum": "bc99975db9382af8f66fd46976db4cca2a987b1e9de24d17ceeb1ebf6e5ecb68"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.4534762, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_job_profile_data.csv", "original_file_path": "seeds/workday_position_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "fqn": ["workday_integration_tests", "workday_position_job_profile_data"], "alias": "workday_position_job_profile_data", "checksum": {"name": "sha256", "checksum": "e5d675b82b521d6856d8f516209642745a595a31d88d147f6561bcbc970433b3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.454724, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_worker_data.csv", "original_file_path": "seeds/workday_organization_role_worker_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "fqn": ["workday_integration_tests", "workday_organization_role_worker_data"], "alias": "workday_organization_role_worker_data", "checksum": {"name": "sha256", "checksum": "e24079f7ed64c407174d546132b71c69a9b1eaa9951b5a91772a3da7b3ff95f8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.456189, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "model.workday.workday__employee_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "resource_type": "model", "package_name": "workday", "path": "workday__employee_overview.sql", "original_file_path": "models/workday__employee_overview.sql", "unique_id": "model.workday.workday__employee_overview", "fqn": ["workday", "workday__employee_overview"], "alias": "workday__employee_overview", "checksum": {"name": "sha256", "checksum": "ca1fe167285bcc6ddfec4bc354f4a743f1a754a9d287d0526ee7780dfb69591a"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_user_active": {"name": "is_user_active", "description": "Is the user currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed": {"name": "is_employed", "description": "Is the worker currently employed?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "departure_date": {"name": "departure_date", "description": "The departure date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_of_employment": {"name": "days_of_employment", "description": "Number of days employed by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Has the worker been regrettably terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_codes": {"name": "ethnicity_codes", "description": "String aggregation of all ethnicity codes associated with an individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The military status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_position_type": {"name": "most_recent_position_type", "description": "The most recent position type of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_location": {"name": "most_recent_location", "description": "The most recent location of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_level": {"name": "most_recent_level", "description": "The most recent level of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_at_position": {"name": "days_at_position", "description": "The number of days the worker has held their most recent position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_position_start_date": {"name": "most_recent_position_start_date", "description": "The most recent position start date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_position_end_date": {"name": "most_recent_position_end_date", "description": "The most recent position end date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_position_effective_date": {"name": "most_recent_position_effective_date", "description": "The most recent position effective date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_positions": {"name": "worker_positions", "description": "The number of positions the worker has held", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_levels": {"name": "worker_levels", "description": "The number of levels the worker has worked at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_days": {"name": "position_days", "description": "The days the worker held positions at the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_one_year": {"name": "is_employed_one_year", "description": "Tracks whether a worker was employed at least one year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_five_years": {"name": "is_employed_five_years", "description": "Tracks whether a worker was employed at least five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_ten_years": {"name": "is_employed_ten_years", "description": "Tracks whether a worker was employed at least ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_twenty_years": {"name": "is_employed_twenty_years", "description": "Tracks whether a worker was employed at least twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_thirty_years": {"name": "is_employed_thirty_years", "description": "Tracks whether a worker was employed at least thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_one_year": {"name": "is_current_employee_one_year", "description": "Tracks whether a worker is active for more than a year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_five_years": {"name": "is_current_employee_five_years", "description": "Tracks whether a worker is active for more than five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "description": "Tracks whether a worker is active for more than ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "description": "Tracks whether a worker is active for more than twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "description": "Tracks whether a worker is active for more than thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1710962553.38735, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"", "raw_code": "with employee_surrogate_key as (\n \n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'position_start_date']) }} as employee_id,\n worker_id,\n position_id,\n position_start_date,\n {{ dbt_utils.star(ref('int_workday__worker_employee_enhanced'), except=['worker_id', 'position_id', 'position_start_date']) }}\n from {{ ref('int_workday__worker_employee_enhanced') }} \n)\n\nselect * \nfrom employee_surrogate_key", "language": "sql", "refs": [{"name": "int_workday__worker_employee_enhanced", "package": null, "version": null}, {"name": "int_workday__worker_employee_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt_utils.star"], "nodes": ["model.workday.int_workday__worker_employee_enhanced"]}, "compiled_path": "target/compiled/workday/models/workday__employee_overview.sql", "compiled": true, "compiled_code": "with employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n position_id,\n position_start_date,\n \"source_relation\",\n \"worker_code\",\n \"user_id\",\n \"universal_id\",\n \"is_user_active\",\n \"is_employed\",\n \"hire_date\",\n \"departure_date\",\n \"days_as_worker\",\n \"is_terminated\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"is_regrettable_termination\",\n \"compensation_effective_date\",\n \"employee_compensation_frequency\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_summary_currency\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_primary_compensation_basis\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"first_name\",\n \"last_name\",\n \"date_of_birth\",\n \"gender\",\n \"is_hispanic_or_latino\",\n \"email_address\",\n \"ethnicity_codes\",\n \"military_status\",\n \"business_title\",\n \"job_profile_id\",\n \"employee_type\",\n \"position_location\",\n \"management_level_code\",\n \"fte_percent\",\n \"position_end_date\",\n \"position_effective_date\",\n \"days_employed\",\n \"is_employed_one_year\",\n \"is_employed_five_years\",\n \"is_employed_ten_years\",\n \"is_employed_twenty_years\",\n \"is_employed_thirty_years\",\n \"is_current_employee_one_year\",\n \"is_current_employee_five_years\",\n \"is_current_employee_ten_years\",\n \"is_current_employee_twenty_years\",\n \"is_current_employee_thirty_years\"\n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_employee_enhanced\" \n)\n\nselect * \nfrom employee_surrogate_key", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__job_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "resource_type": "model", "package_name": "workday", "path": "workday__job_overview.sql", "original_file_path": "models/workday__job_overview.sql", "unique_id": "model.workday.workday__job_overview", "fqn": ["workday", "workday__job_overview"], "alias": "workday__job_overview", "checksum": {"name": "sha256", "checksum": "b50072f5be5632d10a64a1e777aa62ae6f2283f22244bd033fea5fc20ce66165"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "The private title associated with the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "The summary of the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_codes": {"name": "job_family_codes", "description": "String array of all job family codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summaries": {"name": "job_family_summaries", "description": "String array of all job family summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_codes": {"name": "job_family_group_codes", "description": "String array of all job family group codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summaries": {"name": "job_family_group_summaries", "description": "String array of all job family group summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1710962553.388972, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"", "raw_code": "with job_profile_data as (\n\n select * \n from {{ ref('stg_workday__job_profile') }}\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_profile') }}\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from {{ ref('stg_workday__job_family') }}\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_family_group') }}\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from {{ ref('stg_workday__job_family_group') }}\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_code', \"', '\" ) }} as job_family_codes,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_summary', \"', '\" ) }} as job_family_summaries, \n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_code', \"', '\" ) }} as job_family_group_codes,\n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_summary', \"', '\" ) }} as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom job_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}, {"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg", "macro.dbt_utils.group_by"], "nodes": ["model.workday.stg_workday__job_profile", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/workday__job_overview.sql", "compiled": true, "compiled_code": "with job_profile_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__position_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "resource_type": "model", "package_name": "workday", "path": "workday__position_overview.sql", "original_file_path": "models/workday__position_overview.sql", "unique_id": "model.workday.workday__position_overview", "fqn": ["workday", "workday__position_overview"], "alias": "workday__position_overview", "checksum": {"name": "sha256", "checksum": "567db8a61cd72c8faec1aac1963cbf05b776d0fe170a7f8c0ae8ea3d076464d3"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts.", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1710962553.391677, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"", "raw_code": "with position_data as (\n\n select *\n from {{ ref('stg_workday__position') }}\n),\n\nposition_job_profile_data as (\n\n select *\n from {{ ref('stg_workday__position_job_profile') }}\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}, {"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/workday__position_overview.sql", "compiled": true, "compiled_code": "with position_data as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\n),\n\nposition_job_profile_data as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__organization_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "resource_type": "model", "package_name": "workday", "path": "workday__organization_overview.sql", "original_file_path": "models/workday__organization_overview.sql", "unique_id": "model.workday.workday__organization_overview", "fqn": ["workday", "workday__organization_overview"], "alias": "workday__organization_overview", "checksum": {"name": "sha256", "checksum": "0df19685be8a2ffee5d5e16069cbc9771cc639372004929a73f500f9d7c59798"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1710962553.393333, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"", "raw_code": "with organization_data as (\n\n select * \n from {{ ref('stg_workday__organization') }}\n),\n\norganization_role_data as (\n\n select * \n from {{ ref('stg_workday__organization_role') }}\n),\n\nworker_position_organization as (\n\n select *\n from {{ ref('stg_workday__worker_position_organization') }}\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}, {"name": "stg_workday__organization_role", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/workday__organization_overview.sql", "compiled": true, "compiled_code": "with organization_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\n),\n\norganization_role_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\n),\n\nworker_position_organization as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position.sql", "original_file_path": "models/staging/stg_workday__position.sql", "unique_id": "model.workday.stg_workday__position", "fqn": ["workday", "staging", "stg_workday__position"], "alias": "stg_workday__position", "checksum": {"name": "sha256", "checksum": "a8eea235110df116f941d206b25f965ace56ec776662153af05d70a2bdf1cd4b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_academic_tenure_eligible": {"name": "is_academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.540752, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_base')),\n staging_columns=get_position_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_base", "package": null, "version": null}, {"name": "stg_workday__position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_group"], "alias": "stg_workday__job_family_group", "checksum": {"name": "sha256", "checksum": "91495541dd20c1e46fd9fc7074605bd8d766196513173eb2e6d6d2abd779474a"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summary": {"name": "job_family_group_summary", "description": "The summary of the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.536891, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_group_base')),\n staging_columns=get_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_profile.sql", "original_file_path": "models/staging/stg_workday__job_family_job_profile.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile", "fqn": ["workday", "staging", "stg_workday__job_family_job_profile"], "alias": "stg_workday__job_family_job_profile", "checksum": {"name": "sha256", "checksum": "22f926dc89704581204ef1db5906e7fc184c404d53dc5141b47056de357d6066"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.535511, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_profile_base')),\n staging_columns=get_job_family_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role_worker.sql", "original_file_path": "models/staging/stg_workday__organization_role_worker.sql", "unique_id": "model.workday.stg_workday__organization_role_worker", "fqn": ["workday", "staging", "stg_workday__organization_role_worker"], "alias": "stg_workday__organization_role_worker", "checksum": {"name": "sha256", "checksum": "6cbf3f20ac378d061a6c9034bd75c08e7cf7079ac12c8b167c31e6e1c0e54fa6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_worker_code": {"name": "organization_worker_code", "description": "The worker code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.537707, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_worker_base')),\n staging_columns=get_organization_role_worker_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_worker_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role_worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role.sql", "original_file_path": "models/staging/stg_workday__organization_role.sql", "unique_id": "model.workday.stg_workday__organization_role", "fqn": ["workday", "staging", "stg_workday__organization_role"], "alias": "stg_workday__organization_role", "checksum": {"name": "sha256", "checksum": "d20118b8c8234cda8e96b2df978fdce2aa46bbdb356ebac5b29680663d105e05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.5372338, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_base')),\n staging_columns=get_organization_role_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position.sql", "original_file_path": "models/staging/stg_workday__worker_position.sql", "unique_id": "model.workday.stg_workday__worker_position", "fqn": ["workday", "staging", "stg_workday__worker_position"], "alias": "stg_workday__worker_position", "checksum": {"name": "sha256", "checksum": "f812d4b0a33146284f402362816bc05ca7a5e85fa228207ea0df356396906025"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the positions held by workers in the Workday system", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.549796, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_base')),\n staging_columns=get_worker_position_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_contact_email_address.sql", "original_file_path": "models/staging/stg_workday__person_contact_email_address.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address", "fqn": ["workday", "staging", "stg_workday__person_contact_email_address"], "alias": "stg_workday__person_contact_email_address", "checksum": {"name": "sha256", "checksum": "fc93cd7747b3087ad994ab34f0feec9a8293e02f719a8ddb64bf652d786f50e5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_contact_email_address_id": {"name": "person_contact_email_address_id", "description": "The identifier of the personal contact email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.547522, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_contact_email_address_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_contact_email_address_base')),\n staging_columns=get_person_contact_email_address_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_contact_email_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_contact_email_address_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_contact_email_address.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_job_profile.sql", "original_file_path": "models/staging/stg_workday__position_job_profile.sql", "unique_id": "model.workday.stg_workday__position_job_profile", "fqn": ["workday", "staging", "stg_workday__position_job_profile"], "alias": "stg_workday__position_job_profile", "checksum": {"name": "sha256", "checksum": "1bd56f05d8c66dff4d5741a2ca3963cd4859341229686f1e9155289aa86ca3f3"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_job_profile_name": {"name": "position_job_profile_name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.5413241, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_job_profile_base')),\n staging_columns=get_position_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__position_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position_organization.sql", "original_file_path": "models/staging/stg_workday__worker_position_organization.sql", "unique_id": "model.workday.stg_workday__worker_position_organization", "fqn": ["workday", "staging", "stg_workday__worker_position_organization"], "alias": "stg_workday__worker_position_organization", "checksum": {"name": "sha256", "checksum": "c06c632d0c5bc211074ad78e1d36ea19e68ad03423068316bd207e3978472684"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.552685, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_organization_base')),\n staging_columns=get_worker_position_organization_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_profile.sql", "original_file_path": "models/staging/stg_workday__job_profile.sql", "unique_id": "model.workday.stg_workday__job_profile", "fqn": ["workday", "staging", "stg_workday__job_profile"], "alias": "stg_workday__job_profile", "checksum": {"name": "sha256", "checksum": "c58fefde4e2bab4dfcc7d23f270ba41e4b3a785de9c0f221854b44ce088753d6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_job_code_in_name": {"name": "is_include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_public_job": {"name": "is_public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.535151, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_profile_base')),\n staging_columns=get_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_organization.sql", "original_file_path": "models/staging/stg_workday__position_organization.sql", "unique_id": "model.workday.stg_workday__position_organization", "fqn": ["workday", "staging", "stg_workday__position_organization"], "alias": "stg_workday__position_organization", "checksum": {"name": "sha256", "checksum": "3e066e026cb6c5a57a3780d60185e331275a40666ec842bd51a9f5214c8106f0"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.539766, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_organization_base')),\n staging_columns=get_position_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_organization_base", "package": null, "version": null}, {"name": "stg_workday__position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_leave_status.sql", "original_file_path": "models/staging/stg_workday__worker_leave_status.sql", "unique_id": "model.workday.stg_workday__worker_leave_status", "fqn": ["workday", "staging", "stg_workday__worker_leave_status"], "alias": "stg_workday__worker_leave_status", "checksum": {"name": "sha256", "checksum": "7a780769764a426e346115891309d38326b383297d43976f5b368feefe555e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the leave status of workers in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_benefits_effect": {"name": "is_benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_caesarean_section_birth": {"name": "is_caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_continuous_service_accrual_effect": {"name": "is_continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_multiple_child_indicator": {"name": "is_multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_on_leave": {"name": "is_on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_paid_time_off_accrual_effect": {"name": "is_paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_payroll_effect": {"name": "is_payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_single_parent_indicator": {"name": "is_single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_stock_vesting_effect": {"name": "is_stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_related": {"name": "is_work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.552245, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_leave_status_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_leave_status_base')),\n staging_columns=get_worker_leave_status_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}, {"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_leave_status_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__worker_leave_status_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_leave_status.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_name.sql", "original_file_path": "models/staging/stg_workday__person_name.sql", "unique_id": "model.workday.stg_workday__person_name", "fqn": ["workday", "staging", "stg_workday__person_name"], "alias": "stg_workday__person_name", "checksum": {"name": "sha256", "checksum": "da74b8517c3659e32fa4600075b2c78fd9edf3b9d67b062a39aceeb7007a8106"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the name information for an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_name_type": {"name": "person_name_type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.546201, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_name_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_name_base')),\n staging_columns=get_person_name_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_name_base", "package": null, "version": null}, {"name": "stg_workday__person_name_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_name_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_name_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_name.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information_ethnicity.sql", "original_file_path": "models/staging/stg_workday__personal_information_ethnicity.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity", "fqn": ["workday", "staging", "stg_workday__personal_information_ethnicity"], "alias": "stg_workday__personal_information_ethnicity", "checksum": {"name": "sha256", "checksum": "1cddb347cc063152fdf7519ab20008979c18819cf57eda40f40b5c0ae4df795c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.546577, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_ethnicity_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_ethnicity_base')),\n staging_columns=get_personal_information_ethnicity_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_ethnicity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information_ethnicity.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_job_family.sql", "original_file_path": "models/staging/stg_workday__organization_job_family.sql", "unique_id": "model.workday.stg_workday__organization_job_family", "fqn": ["workday", "staging", "stg_workday__organization_job_family"], "alias": "stg_workday__organization_job_family", "checksum": {"name": "sha256", "checksum": "25a30264c730bb3d4ed427d08d7262415aa13c72bda44f292aef305dabadb4dc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.538048, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_job_family_base')),\n staging_columns=get_organization_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family_base", "package": null, "version": null}, {"name": "stg_workday__organization_job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family.sql", "original_file_path": "models/staging/stg_workday__job_family.sql", "unique_id": "model.workday.stg_workday__job_family", "fqn": ["workday", "staging", "stg_workday__job_family"], "alias": "stg_workday__job_family", "checksum": {"name": "sha256", "checksum": "2b55aade2b7c5f3aaa66b8689637aecadf3960de67f0df66ecd9d511ec3f4a2c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summary": {"name": "job_family_summary", "description": "The summary of the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.536078, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_base')),\n staging_columns=get_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_base", "package": null, "version": null}, {"name": "stg_workday__job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__military_service.sql", "original_file_path": "models/staging/stg_workday__military_service.sql", "unique_id": "model.workday.stg_workday__military_service", "fqn": ["workday", "staging", "stg_workday__military_service"], "alias": "stg_workday__military_service", "checksum": {"name": "sha256", "checksum": "2723e93ad3a6b887aa7d9b8c5d97bee2714a4b0d8ff0c80decb8be429e77b709"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about an individual's military service in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.547035, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__military_service_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__military_service_base')),\n staging_columns=get_military_service_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__military_service_base", "package": null, "version": null}, {"name": "stg_workday__military_service_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_military_service_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__military_service_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__military_service.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information.sql", "original_file_path": "models/staging/stg_workday__personal_information.sql", "unique_id": "model.workday.stg_workday__personal_information", "fqn": ["workday", "staging", "stg_workday__personal_information"], "alias": "stg_workday__personal_information", "checksum": {"name": "sha256", "checksum": "99c2547b9cba3b9798c54da22173f0f4e2d0db3f9623673fc37f0c6f081646bd"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "The personal information associated with each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.545239, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_base')),\n staging_columns=get_personal_information_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__personal_information_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_job_family_group"], "alias": "stg_workday__job_family_job_family_group", "checksum": {"name": "sha256", "checksum": "6fd4740d69f85753d0bf54a02768c8d9b8887e6e58481511bb3067f6dbe9b7eb"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.536408, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_family_group_base')),\n staging_columns=get_job_family_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker.sql", "original_file_path": "models/staging/stg_workday__worker.sql", "unique_id": "model.workday.stg_workday__worker", "fqn": ["workday", "staging", "stg_workday__worker"], "alias": "stg_workday__worker", "checksum": {"name": "sha256", "checksum": "eabb44e7218212b2cfa0ed153715acd2cd920d91f48a20884f237d3307a8d88d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.544092, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_base')),\n staging_columns=get_worker_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization.sql", "original_file_path": "models/staging/stg_workday__organization.sql", "unique_id": "model.workday.stg_workday__organization", "fqn": ["workday", "staging", "stg_workday__organization"], "alias": "stg_workday__organization", "checksum": {"name": "sha256", "checksum": "ddc0897b633fd79f01412ef8b78788ca8168409bbdd6a076e7ae77eae46e5b4c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Identifier for the organization.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_description": {"name": "organization_description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_manager_in_name": {"name": "is_include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_organization_code_in_name": {"name": "is_include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_location": {"name": "organization_location", "description": "The location of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.539417, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_base')),\n staging_columns=get_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_base", "package": null, "version": null}, {"name": "stg_workday__organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_history": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_history", "resource_type": "model", "package_name": "workday", "path": "staging/workday_history/stg_workday__worker_position_history.sql", "original_file_path": "models/staging/workday_history/stg_workday__worker_position_history.sql", "unique_id": "model.workday.stg_workday__worker_position_history", "fqn": ["workday", "staging", "workday_history", "stg_workday__worker_position_history"], "alias": "stg_workday__worker_position_history", "checksum": {"name": "sha256", "checksum": "f04d2a20aca6980435ca6a1069116ccb7e90a73b47ca7cff00d568a4f208002d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id` and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/workday_history/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view", "enabled": true}, "created_at": 1710962553.647357, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ source('workday','worker_position_history') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %}\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(effective_date as {{ dbt.type_timestamp() }}) as effective_date,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date,\n cast(start_date as {{ dbt.type_timestamp() }}) as position_start_date,\n cast(end_date as {{ dbt.type_timestamp() }}) as position_end_date,\n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', '_fivetran_start']) }} as history_unique_key,\n {{ dbt_utils.star(from=source('workday','worker_position_history'),\n except=[\"worker_id\", \"position_id\", \"_fivetran_start\", \"_fivetran_end\", \n \"home_country\", \"effective_date\", \"end_employment_date\", \n \"start_date\", \"end_date\"]) }}\n from base\n)\n\nselect *\nfrom final", "language": "sql", "refs": [], "sources": [["workday", "worker_position_history"], ["workday", "worker_position_history"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key", "macro.dbt_utils.star"], "nodes": ["source.workday.workday.worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday__worker_position_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"\n \n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(effective_date as timestamp) as effective_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n cast(start_date as timestamp) as position_start_date,\n cast(end_date as timestamp) as position_end_date,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"academic_pay_setup_data_annual_work_period_end_date\",\n \"academic_pay_setup_data_annual_work_period_start_date\",\n \"academic_pay_setup_data_annual_work_period_work_percent_of_year\",\n \"academic_pay_setup_data_disbursement_plan_period_end_date\",\n \"academic_pay_setup_data_disbursement_plan_period_start_date\",\n \"business_site_summary_display_language\",\n \"business_site_summary_local\",\n \"business_site_summary_location\",\n \"business_site_summary_location_type\",\n \"business_site_summary_name\",\n \"business_site_summary_scheduled_weekly_hours\",\n \"business_site_summary_time_profile\",\n \"business_title\",\n \"critical_job\",\n \"default_weekly_hours\",\n \"difficulty_to_fill\",\n \"employee_type\",\n \"exclude_from_head_count\",\n \"expected_assignment_end_date\",\n \"external_employee\",\n \"federal_withholding_fein\",\n \"frequency\",\n \"full_time_equivalent_percentage\",\n \"headcount_restriction_code\",\n \"host_country\",\n \"international_assignment_type\",\n \"is_primary_job\",\n \"job_exempt\",\n \"job_profile_id\",\n \"management_level_code\",\n \"paid_fte\",\n \"pay_group\",\n \"pay_rate\",\n \"pay_rate_type\",\n \"pay_through_date\",\n \"payroll_entity\",\n \"payroll_file_number\",\n \"regular_paid_equivalent_hours\",\n \"scheduled_weekly_hours\",\n \"specify_paid_fte\",\n \"specify_working_fte\",\n \"start_international_assignment_reason\",\n \"work_hours_profile\",\n \"work_shift\",\n \"work_shift_required\",\n \"work_space\",\n \"worker_hours_profile_classification\",\n \"working_fte\",\n \"working_time_frequency\",\n \"working_time_unit\",\n \"working_time_value\"\n from base\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_history": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_history", "resource_type": "model", "package_name": "workday", "path": "staging/workday_history/stg_workday__worker_history.sql", "original_file_path": "models/staging/workday_history/stg_workday__worker_history.sql", "unique_id": "model.workday.stg_workday__worker_history", "fqn": ["workday", "staging", "workday_history", "stg_workday__worker_history"], "alias": "stg_workday__worker_history", "checksum": {"name": "sha256", "checksum": "085c9abbdde2ed7e5def47a656842cf5a7750a0f97a75e6dce6cd8c9220efdb5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/workday_history/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view", "enabled": true}, "created_at": 1710962553.64576, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ source('workday','worker_history') }} \n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfinal as (\n\n select \n id as worker_id, \n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date,\n cast(termination_date as {{ dbt.type_timestamp() }}) as termination_date,\n {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key,\n {{ dbt_utils.star(from=source('workday','worker_history'),\n except=[\"id\", \"_fivetran_start\", \"_fivetran_end\", \"home_country\", \"end_employment_date\", \"termination_date\"]) }}\n from base\n)\n\nselect *\nfrom final", "language": "sql", "refs": [], "sources": [["workday", "worker_history"], ["workday", "worker_history"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key", "macro.dbt_utils.star"], "nodes": ["source.workday.workday.worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday__worker_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\" \n \n),\n\nfinal as (\n\n select \n id as worker_id, \n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n cast(termination_date as timestamp) as termination_date,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"academic_tenure_date\",\n \"active\",\n \"active_status_date\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_frequency\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_total_salary_and_allowances\",\n \"annual_summary_currency\",\n \"annual_summary_frequency\",\n \"annual_summary_primary_compensation_basis\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_total_salary_and_allowances\",\n \"benefits_service_date\",\n \"company_service_date\",\n \"compensation_effective_date\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"continuous_service_date\",\n \"contract_assignment_details\",\n \"contract_currency_code\",\n \"contract_end_date\",\n \"contract_frequency_name\",\n \"contract_pay_rate\",\n \"contract_vendor_name\",\n \"date_entered_workforce\",\n \"days_unemployed\",\n \"eligible_for_hire\",\n \"eligible_for_rehire_on_latest_termination\",\n \"employee_compensation_currency\",\n \"employee_compensation_frequency\",\n \"employee_compensation_primary_compensation_basis\",\n \"employee_compensation_total_base_pay\",\n \"employee_compensation_total_salary_and_allowances\",\n \"expected_date_of_return\",\n \"expected_retirement_date\",\n \"first_day_of_work\",\n \"has_international_assignment\",\n \"hire_date\",\n \"hire_reason\",\n \"hire_rescinded\",\n \"hourly_frequency_currency\",\n \"hourly_frequency_frequency\",\n \"hourly_frequency_primary_compensation_basis\",\n \"hourly_frequency_total_base_pay\",\n \"hourly_frequency_total_salary_and_allowances\",\n \"last_datefor_which_paid\",\n \"local_termination_reason\",\n \"months_continuous_prior_employment\",\n \"not_returning\",\n \"original_hire_date\",\n \"pay_group_frequency_currency\",\n \"pay_group_frequency_frequency\",\n \"pay_group_frequency_primary_compensation_basis\",\n \"pay_group_frequency_total_base_pay\",\n \"pay_group_frequency_total_salary_and_allowances\",\n \"pay_through_date\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"probation_end_date\",\n \"probation_start_date\",\n \"reason_reference_id\",\n \"regrettable_termination\",\n \"rehire\",\n \"resignation_date\",\n \"retired\",\n \"retirement_date\",\n \"retirement_eligibility_date\",\n \"return_unknown\",\n \"seniority_date\",\n \"severance_date\",\n \"terminated\",\n \"termination_involuntary\",\n \"termination_last_day_of_work\",\n \"time_off_service_date\",\n \"universal_id\",\n \"user_id\",\n \"vesting_date\",\n \"worker_code\"\n from base\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_history": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_history", "resource_type": "model", "package_name": "workday", "path": "staging/workday_history/stg_workday__personal_information_history.sql", "original_file_path": "models/staging/workday_history/stg_workday__personal_information_history.sql", "unique_id": "model.workday.stg_workday__personal_information_history", "fqn": ["workday", "staging", "workday_history", "stg_workday__personal_information_history"], "alias": "stg_workday__personal_information_history", "checksum": {"name": "sha256", "checksum": "bacf5998e041007a9d8ebeb9504492ae57a7e5c9dd4f0ce9298089ff73ce7fd5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/workday_history/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view", "enabled": true}, "created_at": 1710962553.643112, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ source('workday','personal_information_history') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfinal as (\n\n select \n id as worker_id,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key,\n {{ dbt_utils.star(from=source('workday','personal_information_history'),\n except=[\"id\", \"_fivetran_start\", \"_fivetran_end\"]) }}\n from base\n)\n\nselect *\nfrom final", "language": "sql", "refs": [], "sources": [["workday", "personal_information_history"], ["workday", "personal_information_history"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key", "macro.dbt_utils.star"], "nodes": ["source.workday.workday.personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday__personal_information_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"\n \n),\n\nfinal as (\n\n select \n id as worker_id,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"type\",\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"additional_nationality\",\n \"blood_type\",\n \"citizenship_status\",\n \"city_of_birth\",\n \"city_of_birth_code\",\n \"country_of_birth\",\n \"date_of_birth\",\n \"date_of_death\",\n \"gender\",\n \"hispanic_or_latino\",\n \"hukou_locality\",\n \"hukou_postal_code\",\n \"hukou_region\",\n \"hukou_subregion\",\n \"hukou_type\",\n \"last_medical_exam_date\",\n \"last_medical_exam_valid_to\",\n \"local_hukou\",\n \"marital_status\",\n \"marital_status_date\",\n \"medical_exam_notes\",\n \"native_region\",\n \"native_region_code\",\n \"personnel_file_agency\",\n \"political_affiliation\",\n \"primary_nationality\",\n \"region_of_birth\",\n \"region_of_birth_code\",\n \"religion\",\n \"social_benefit\",\n \"tobacco_use\",\n \"ll\"\n from base\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_history", "resource_type": "model", "package_name": "workday", "path": "staging/workday_history/stg_workday__worker_position_organization_history.sql", "original_file_path": "models/staging/workday_history/stg_workday__worker_position_organization_history.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_history", "fqn": ["workday", "staging", "workday_history", "stg_workday__worker_position_organization_history"], "alias": "stg_workday__worker_position_organization_history", "checksum": {"name": "sha256", "checksum": "ed6ca08d361c0457dfc950c973a8cbdb1337bb83ec53c2519530ad6a641270c1"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/workday_history/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view", "enabled": true}, "created_at": 1710962553.6479208, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ source('workday','worker_position_organization_history') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id, \n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'organization_id', '_fivetran_start']) }} as history_unique_key,\n {{ dbt_utils.star(from=source('workday','worker_position_organization_history'),\n except=[\"worker_id\", \"position_id\", \"organization_id\", \"_fivetran_start\", \"_fivetran_end\"]) }}\n from base\n)\n\nselect *\nfrom final", "language": "sql", "refs": [], "sources": [["workday", "worker_position_organization_history"], ["workday", "worker_position_organization_history"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key", "macro.dbt_utils.star"], "nodes": ["source.workday.workday.worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday__worker_position_organization_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"\n \n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id, \n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"index\",\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"date_of_pay_group_assignment\",\n \"primary_business_site\",\n \"used_in_change_organization_assignments\"\n from base\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_family_group_base"], "alias": "stg_workday__job_family_job_family_group_base", "checksum": {"name": "sha256", "checksum": "e2032528b0352adb9b447a62934a158666a681a00bfd8821c454342850710217"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.8625631, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_family_group"], ["workday", "job_family_job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_ethnicity_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_ethnicity_base"], "alias": "stg_workday__personal_information_ethnicity_base", "checksum": {"name": "sha256", "checksum": "83d4f52d542558f35ac9c4bca924abf5d50bd6d060b57de257d9b3a8011375bc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.88027, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_ethnicity', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_ethnicity',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_ethnicity"], ["workday", "personal_information_ethnicity"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_group_base"], "alias": "stg_workday__job_family_group_base", "checksum": {"name": "sha256", "checksum": "bea26ff96c14d3e08fd64f97fbc8fbefc3cc6cc6726f7eb27132f966e3ace85d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.8838122, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_group"], ["workday", "job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_organization_base.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_organization_base"], "alias": "stg_workday__worker_position_organization_base", "checksum": {"name": "sha256", "checksum": "42729b33f262620d892e95707fef1e711b95c66a4df3fb612d1eb73d024a7e38"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.887763, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_organization_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_organization_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_organization_history"], ["workday", "worker_position_organization_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_base.sql", "original_file_path": "models/staging/base/stg_workday__position_base.sql", "unique_id": "model.workday.stg_workday__position_base", "fqn": ["workday", "staging", "base", "stg_workday__position_base"], "alias": "stg_workday__position_base", "checksum": {"name": "sha256", "checksum": "4ccfff02ed1a6e0e94868985aa08ad5eaac5c78e608ae24eb36ebeb3da3b1443"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.8912902, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position"], ["workday", "position"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_contact_email_address_base.sql", "original_file_path": "models/staging/base/stg_workday__person_contact_email_address_base.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "fqn": ["workday", "staging", "base", "stg_workday__person_contact_email_address_base"], "alias": "stg_workday__person_contact_email_address_base", "checksum": {"name": "sha256", "checksum": "2bfb4c913c999795db2691f4b3bc115fbae9bbad6e4eb59ad305bc057e7e0e5b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.894624, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_contact_email_address', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_contact_email_address',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_contact_email_address"], ["workday", "person_contact_email_address"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_contact_email_address_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_job_family_base.sql", "unique_id": "model.workday.stg_workday__organization_job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_job_family_base"], "alias": "stg_workday__organization_job_family_base", "checksum": {"name": "sha256", "checksum": "8a999ebe4367e8c4e6994124834c09f9d1eeb411d6e00353c9995bc0900ee1ea"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.8997178, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_job_family"], ["workday", "organization_job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_profile_base"], "alias": "stg_workday__job_family_job_profile_base", "checksum": {"name": "sha256", "checksum": "61149fbd447008acfc11c0cce919a3dcdfc878b1e43f1a904bed99cd0e12e934"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.9045918, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_profile"], ["workday", "job_family_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__position_organization_base.sql", "unique_id": "model.workday.stg_workday__position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__position_organization_base"], "alias": "stg_workday__position_organization_base", "checksum": {"name": "sha256", "checksum": "e9e1144f5ba976bda0612b7899e5c418c8f2880a69bb98c7bd61826b438cf705"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.908597, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_organization"], ["workday", "position_organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_base.sql", "unique_id": "model.workday.stg_workday__organization_role_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_base"], "alias": "stg_workday__organization_role_base", "checksum": {"name": "sha256", "checksum": "7da1ae4c5e420c6a429f6082802496377da44449aefb62728c64e31c64923832"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.913055, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role"], ["workday", "organization_role"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_leave_status_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_leave_status_base.sql", "unique_id": "model.workday.stg_workday__worker_leave_status_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_leave_status_base"], "alias": "stg_workday__worker_leave_status_base", "checksum": {"name": "sha256", "checksum": "25de6c8505c09d17787931dd2ad7fb497ee4fcc6ad9c076417ac327d38b2cee5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.917234, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_leave_status', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_leave_status',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_leave_status"], ["workday", "worker_leave_status"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_leave_status_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_base.sql", "unique_id": "model.workday.stg_workday__job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_base"], "alias": "stg_workday__job_family_base", "checksum": {"name": "sha256", "checksum": "a6d51501e8a9f185408e2c8c963b04ed89e1f87260216f3e994f324119a0f804"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.921671, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family"], ["workday", "job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_profile_base"], "alias": "stg_workday__job_profile_base", "checksum": {"name": "sha256", "checksum": "ddeb40a89a0b03a8748dae6a224bade7705498441a9f295682bd24ef643fc563"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.92542, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_profile"], ["workday", "job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_base.sql", "unique_id": "model.workday.stg_workday__organization_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_base"], "alias": "stg_workday__organization_base", "checksum": {"name": "sha256", "checksum": "ee0cb72047f2c7760251317c86318a9f46c5a8be9113fcb7d81b269e1b4b4e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.929384, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization"], ["workday", "organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_worker_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_worker_base.sql", "unique_id": "model.workday.stg_workday__organization_role_worker_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_worker_base"], "alias": "stg_workday__organization_role_worker_base", "checksum": {"name": "sha256", "checksum": "74e858892ef8851aec9a06e4e05dbca91361b09939c257c69db38356d59acf05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.9332328, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role_worker', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role_worker',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role_worker"], ["workday", "organization_role_worker"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_base.sql", "unique_id": "model.workday.stg_workday__worker_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_base"], "alias": "stg_workday__worker_base", "checksum": {"name": "sha256", "checksum": "5f0f82a654f8f22d1e129cebdf87aa064125f5deeeca51c50d53f249dd0d96e1"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.936967, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_history"], ["workday", "worker_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__position_job_profile_base.sql", "unique_id": "model.workday.stg_workday__position_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__position_job_profile_base"], "alias": "stg_workday__position_job_profile_base", "checksum": {"name": "sha256", "checksum": "7a2843eac9ceff71866501a413274121b15a2e8d1337b83962e0045cb1b403c5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.9412138, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_job_profile"], ["workday", "position_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_base.sql", "unique_id": "model.workday.stg_workday__worker_position_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_base"], "alias": "stg_workday__worker_position_base", "checksum": {"name": "sha256", "checksum": "8a8431d94738ad8c342bba23f86ace1e658cf63ac9254481bf8463622129514e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.944712, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_history"], ["workday", "worker_position_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_name_base.sql", "original_file_path": "models/staging/base/stg_workday__person_name_base.sql", "unique_id": "model.workday.stg_workday__person_name_base", "fqn": ["workday", "staging", "base", "stg_workday__person_name_base"], "alias": "stg_workday__person_name_base", "checksum": {"name": "sha256", "checksum": "85c57cfa1fe54db08605b75e32060e1bd488a4f71eae27b2cb8a2805ac4ac655"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.948353, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_name', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_name',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_name"], ["workday", "person_name"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_name"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_name_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__military_service_base.sql", "original_file_path": "models/staging/base/stg_workday__military_service_base.sql", "unique_id": "model.workday.stg_workday__military_service_base", "fqn": ["workday", "staging", "base", "stg_workday__military_service_base"], "alias": "stg_workday__military_service_base", "checksum": {"name": "sha256", "checksum": "9478cb8eea5671a0261ed280e3723a9ad826ee22b77b9dfe709be5fc85fd295e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.952201, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='military_service', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='military_service',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "military_service"], ["workday", "military_service"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.military_service"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__military_service_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_base.sql", "unique_id": "model.workday.stg_workday__personal_information_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_base"], "alias": "stg_workday__personal_information_base", "checksum": {"name": "sha256", "checksum": "0767af75bcb79f32dd324d8bf4e57ffc0d0014bda0609b426df78cdc17566e96"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.9560099, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_history"], ["workday", "personal_information_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__monthly_summary": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__monthly_summary.sql", "original_file_path": "models/workday_history/workday__monthly_summary.sql", "unique_id": "model.workday.workday__monthly_summary", "fqn": ["workday", "workday_history", "workday__monthly_summary"], "alias": "workday__monthly_summary", "checksum": {"name": "sha256", "checksum": "cfd986219d6a4d49e3e503863be74fe3aa1a32b379f4b871b47e2677a3889f35"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a month, with aggregated metrics regarding employees for a customer.", "columns": {"metrics_month": {"name": "metrics_month", "description": "Month with aggregated metrics", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_employees": {"name": "new_employees", "description": "New employees added in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_employees": {"name": "churned_employees", "description": "Employees that churned in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_voluntary_employees": {"name": "churned_voluntary_employees", "description": "Employees that churned voluntarily in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_involuntary_employees": {"name": "churned_involuntary_employees", "description": "Employees that churned involuntarily in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_workers": {"name": "churned_workers", "description": "Workers that churned in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_employees": {"name": "active_employees", "description": "Employees considered active in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_male_employees": {"name": "active_male_employees", "description": "Employees with a known gender of male that were active in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_female_employees": {"name": "active_female_employees", "description": "Employees with a known gender of female that were active in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_workers": {"name": "active_workers", "description": "Workers considered active in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_known_gender_employees": {"name": "active_known_gender_employees", "description": "Employees with a known gender that were active in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_primary_compensation": {"name": "avg_employee_primary_compensation", "description": "Average primary compensation for employees in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_base_pay": {"name": "avg_employee_base_pay", "description": "Average base pay for employees in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_salary_and_allowances": {"name": "avg_employee_salary_and_allowances", "description": "Average salary and allowances for employees in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_days_as_employee": {"name": "avg_days_as_employee", "description": "Average number of days an employee has been employed in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_primary_compensation": {"name": "avg_worker_primary_compensation", "description": "Average primary compensation for workers in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_base_pay": {"name": "avg_worker_base_pay", "description": "Average base pay for workers in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_salary_and_allowances": {"name": "avg_worker_salary_and_allowances", "description": "Average salary and allowances for workers in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_days_as_worker": {"name": "avg_days_as_worker", "description": "Average number of days a worker has been employed in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1710962553.679717, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith row_month_partition as (\n\n select *, \n {{ dbt.date_trunc(\"month\", \"date_day\") }} as date_month,\n row_number() over (partition by employee_id, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from {{ ref('workday__employee_daily_history') }}\n order by employee_id, date_day\n),\n\nend_of_month_history as (\n \n select *,\n {{ dbt.current_timestamp() }} as current_date\n from row_month_partition\n where recent_dom_row = 1\n order by employee_id, date_day\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then {{ dbt.datediff(\"hire_date\", \"current_date\", \"day\") }}\n else {{ dbt.datediff(\"hire_date\", \"termination_date\", \"day\") }}\n end as days_as_worker,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select date_month,\n sum(case when date_month = {{ dbt.date_trunc(\"month\", \"effective_date\") }} then 1 else 0 end) as new_employees,\n sum(case when date_month = {{ dbt.date_trunc(\"month\", \"termination_date\") }} then 1 else 0 end) as churned_employees,\n sum(case when (date_month = {{ dbt.date_trunc(\"month\", \"termination_date\") }} and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = {{ dbt.date_trunc(\"month\", \"termination_date\") }} and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = {{ dbt.date_trunc(\"month\", \"wh_end_employment_date\") }} then 1 else 0 end) as churned_workers\n from months_employed\n group by 1\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where date_month >= {{ dbt.date_trunc(\"month\", \"effective_date\") }}\n and (date_month <= {{ dbt.date_trunc(\"month\", \"wph_end_employment_date\") }}\n or wph_end_employment_date is null)\n group by 1\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (date_month >= {{ dbt.date_trunc(\"month\", \"effective_date\") }}\n and date_month <= {{ dbt.date_trunc(\"month\", \"wh_end_employment_date\") }})\n or wh_end_employment_date is null\n group by 1\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n order by monthly_employee_metrics.date_month\n)\n\nselect *\nfrom monthly_summary\norder by metrics_month", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__monthly_summary.sql", "compiled": true, "compiled_code": "\n\nwith row_month_partition as (\n\n select *, \n date_trunc('month', date_day) as date_month,\n row_number() over (partition by employee_id, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n order by employee_id, date_day\n),\n\nend_of_month_history as (\n \n select *,\n now() as current_date\n from row_month_partition\n where recent_dom_row = 1\n order by employee_id, date_day\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select date_month,\n sum(case when date_month = date_trunc('month', effective_date) then 1 else 0 end) as new_employees,\n sum(case when date_month = date_trunc('month', termination_date) then 1 else 0 end) as churned_employees,\n sum(case when (date_month = date_trunc('month', termination_date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = date_trunc('month', termination_date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = date_trunc('month', wh_end_employment_date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where date_month >= date_trunc('month', effective_date)\n and (date_month <= date_trunc('month', wph_end_employment_date)\n or wph_end_employment_date is null)\n group by 1\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (date_month >= date_trunc('month', effective_date)\n and date_month <= date_trunc('month', wh_end_employment_date))\n or wh_end_employment_date is null\n group by 1\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n order by monthly_employee_metrics.date_month\n)\n\nselect *\nfrom monthly_summary\norder by metrics_month", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__employee_daily_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__employee_daily_history.sql", "original_file_path": "models/workday_history/workday__employee_daily_history.sql", "unique_id": "model.workday.workday__employee_daily_history", "fqn": ["workday", "workday_history", "workday__employee_daily_history"], "alias": "workday__employee_daily_history", "checksum": {"name": "sha256", "checksum": "354ef97598d96590ab9888a59dd841963055ada699bd2d4cbb16ed4dae795a87"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1710962553.007275, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\n{% if execute %}\n {% set date_query %}\n select \n {{ dbt.date_trunc('day', dbt.current_timestamp_backcompat()) }} as max_date\n {% endset %}\n\n {% set last_date = run_query(date_query).columns[0][0]|string %}\n\n {# If only compiling, creates range going back 1 year #}\n {% else %} \n {% set last_date = dbt.dateadd(\"year\", \"-1\", \"current_date\") %}\n{% endif %}\n\n\nwith spine as (\n {# Prioritizes variables over calculated dates #}\n {% set first_date = var('employee_history_start_date', '2020-01-01')|string %}\n {% set last_date = last_date|string %}\n\n {{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date = \"cast('\" ~ first_date[0:10] ~ \"'as date)\",\n end_date = \"cast('\" ~ last_date[0:10] ~ \"'as date)\"\n )\n }}\n),\n\nemployee_history as (\n\n select * \n from {{ ref('int_workday__employee_history') }}\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['spine.date_day','get_latest_daily_value.history_unique_key']) }} as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }})\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }})\n)\n\nselect * \nfrom daily_history", "language": "sql", "refs": [{"name": "int_workday__employee_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp", "macro.dbt.current_timestamp_backcompat", "macro.dbt.date_trunc", "macro.dbt.run_query"], "nodes": ["model.workday.int_workday__employee_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__employee_daily_history.sql", "compiled": true, "compiled_code": "\n\n\n \n\n \n\n \n \n\n\nwith spine as (\n \n \n \n\n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 1540\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2020-01-01'as date) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-03-20'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_position_enriched": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_position_enriched", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_position_enriched.sql", "original_file_path": "models/intermediate/int_workday__worker_position_enriched.sql", "unique_id": "model.workday.int_workday__worker_position_enriched", "fqn": ["workday", "intermediate", "int_workday__worker_position_enriched"], "alias": "int_workday__worker_position_enriched", "checksum": {"name": "sha256", "checksum": "9e5d044939b3db8a57afecd0f2855a6196226209311d0344a62ca14451d0e52b"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1710962553.025463, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_position_enriched\"", "raw_code": "with worker_position_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker_position') }}\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n {{ dbt_utils.generate_surrogate_key(['worker_position_data_enhanced.worker_id', \n 'position_id', 'position_start_date']) }} as employee_id,\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_position_enriched.sql", "compiled": true, "compiled_code": "with worker_position_data as (\n\n select \n *,\n now() as current_date\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n md5(cast(coalesce(cast(worker_position_data_enhanced.worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__personal_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__personal_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__personal_details.sql", "original_file_path": "models/intermediate/int_workday__personal_details.sql", "unique_id": "model.workday.int_workday__personal_details", "fqn": ["workday", "intermediate", "int_workday__personal_details"], "alias": "int_workday__personal_details", "checksum": {"name": "sha256", "checksum": "594516db9541d923dcc1958d6ed5747fb91aee48aaa01e0acf8fcbd2fb1a8950"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1710962553.0305989, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__personal_details\"", "raw_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from {{ ref('stg_workday__personal_information') }}\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from {{ ref('stg_workday__person_name') }}\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from {{ ref('stg_workday__person_contact_email_address') }}\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n {{ fivetran_utils.string_agg('distinct ethnicity_code', \"', '\" ) }} as ethnicity_codes\n from {{ ref('stg_workday__personal_information_ethnicity') }}\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from {{ ref('stg_workday__military_service') }}\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}, {"name": "stg_workday__person_name", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}, {"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.workday.stg_workday__personal_information", "model.workday.stg_workday__person_name", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__personal_information_ethnicity", "model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__personal_details.sql", "compiled": true, "compiled_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_details.sql", "original_file_path": "models/intermediate/int_workday__worker_details.sql", "unique_id": "model.workday.int_workday__worker_details", "fqn": ["workday", "intermediate", "int_workday__worker_details"], "alias": "int_workday__worker_details", "checksum": {"name": "sha256", "checksum": "6004df52c6e8acb2f9eb07f0e02e5fb9f694a9f8c3cb3d129916e686039ffd7a"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1710962553.0342138, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_details\"", "raw_code": "with worker_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker') }}\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then {{ dbt.datediff('hire_date', 'current_date', 'day') }}\n else {{ dbt.datediff('hire_date', 'termination_date', 'day') }}\n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_details.sql", "compiled": true, "compiled_code": "with worker_data as (\n\n select \n *,\n now() as current_date\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_employee_enhanced": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_employee_enhanced", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_employee_enhanced.sql", "original_file_path": "models/intermediate/int_workday__worker_employee_enhanced.sql", "unique_id": "model.workday.int_workday__worker_employee_enhanced", "fqn": ["workday", "intermediate", "int_workday__worker_employee_enhanced"], "alias": "int_workday__worker_employee_enhanced", "checksum": {"name": "sha256", "checksum": "b304988457480f06f3bbc052fb27d7d6af37592d243606c4acf783558786aa1d"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1710962553.037919, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_employee_enhanced\"", "raw_code": "with int_worker_base as (\n\n select * \n from {{ ref('int_workday__worker_details') }} \n),\n\nint_worker_personal_details as (\n\n select * \n from {{ ref('int_workday__personal_details') }} \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from {{ ref('int_workday__worker_position_enriched') }} \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "language": "sql", "refs": [{"name": "int_workday__worker_details", "package": null, "version": null}, {"name": "int_workday__personal_details", "package": null, "version": null}, {"name": "int_workday__worker_position_enriched", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.int_workday__worker_details", "model.workday.int_workday__personal_details", "model.workday.int_workday__worker_position_enriched"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_employee_enhanced.sql", "compiled": true, "compiled_code": "with int_worker_base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_details\" \n),\n\nint_worker_personal_details as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__personal_details\" \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_position_enriched\" \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__employee_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "resource_type": "model", "package_name": "workday", "path": "intermediate/workday_history/int_workday__employee_history.sql", "original_file_path": "models/intermediate/workday_history/int_workday__employee_history.sql", "unique_id": "model.workday.int_workday__employee_history", "fqn": ["workday", "intermediate", "workday_history", "int_workday__employee_history"], "alias": "int_workday__employee_history", "checksum": {"name": "sha256", "checksum": "4b95c64d82542cb4c22d6c5a4548bc2880acc7a7c7ec98689734a5d23089ac3f"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1710962553.0393322, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith worker_history as (\n\n select *\n from {{ ref('stg_workday__worker_history') }}\n),\n\nworker_position_history as (\n\n select *\n from {{ ref('stg_workday__worker_position_history') }}\n),\n\npersonal_information_history as (\n\n select *\n from {{ ref('stg_workday__personal_information_history') }}\n),\n\nworker_start_records as (\n\n select worker_id, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n _fivetran_start\n from personal_information_history\n order by worker_id, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead({{ dbt.dateadd('microsecond', -1, '_fivetran_start') }} ) over(partition by worker_id order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as {{ dbt.type_timestamp() }}),\n cast('9999-12-31 23:59:59.999000' as {{ dbt.type_timestamp() }})) as _fivetran_end\n from worker_history_end_values\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_history_scd as (\n\n select worker_history_scd.worker_id, \n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as wh_active,\n worker_position_history._fivetran_active as wph_active,\n personal_information_history._fivetran_active as pih_active,\n worker_history.end_employment_date as wh_end_employment_date,\n worker_position_history.end_employment_date as wph_end_employment_date,\n worker_history.pay_through_date as wh_pay_through_date,\n worker_position_history.pay_through_date as wph_pay_through_date,\n {{ dbt_utils.star(from=ref('stg_workday__worker_history'), except=[\"worker_id\", \"_fivetran_start\", \"_fivetran_end\", \"_fivetran_synced\", \"_fivetran_active\", \"_fivetran_date\", \"history_unique_key\", \"end_employment_date\", \"pay_through_date\"]) }},\n {{ dbt_utils.star(from=ref('stg_workday__worker_position_history'), except=[\"worker_id\", \"position_id\", \"_fivetran_start\", \"_fivetran_end\", \"_fivetran_synced\", \"_fivetran_active\", \"_fivetran_date\", \"history_unique_key\", \"end_employment_date\", \"pay_through_date\"])}},\n {{ dbt_utils.star(from=ref('stg_workday__personal_information_history'), except=[\"worker_id\", \"_fivetran_start\", \"_fivetran_end\", \"_fivetran_synced\", \"_fivetran_active\", \"_fivetran_date\", \"history_unique_key\"])}}\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_key as (\n\n select {{ dbt_utils.generate_surrogate_key(['worker_id','position_id','position_start_date']) }} as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select {{ dbt_utils.generate_surrogate_key(['employee_id', '_fivetran_date']) }} as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}, {"name": "stg_workday__worker_position_history", "package": null, "version": null}, {"name": "stg_workday__personal_information_history", "package": null, "version": null}, {"name": "stg_workday__worker_history", "package": null, "version": null}, {"name": "stg_workday__worker_position_history", "package": null, "version": null}, {"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.type_timestamp", "macro.dbt_utils.star", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history", "model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/intermediate/workday_history/int_workday__employee_history.sql", "compiled": true, "compiled_code": "\n\nwith worker_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\n),\n\nworker_position_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\n),\n\npersonal_information_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\n),\n\nworker_start_records as (\n\n select worker_id, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n _fivetran_start\n from personal_information_history\n order by worker_id, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_history_scd as (\n\n select worker_history_scd.worker_id, \n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as wh_active,\n worker_position_history._fivetran_active as wph_active,\n personal_information_history._fivetran_active as pih_active,\n worker_history.end_employment_date as wh_end_employment_date,\n worker_position_history.end_employment_date as wph_end_employment_date,\n worker_history.pay_through_date as wh_pay_through_date,\n worker_position_history.pay_through_date as wph_pay_through_date,\n \"termination_date\",\n \"academic_tenure_date\",\n \"active\",\n \"active_status_date\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_frequency\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_total_salary_and_allowances\",\n \"annual_summary_currency\",\n \"annual_summary_frequency\",\n \"annual_summary_primary_compensation_basis\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_total_salary_and_allowances\",\n \"benefits_service_date\",\n \"company_service_date\",\n \"compensation_effective_date\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"continuous_service_date\",\n \"contract_assignment_details\",\n \"contract_currency_code\",\n \"contract_end_date\",\n \"contract_frequency_name\",\n \"contract_pay_rate\",\n \"contract_vendor_name\",\n \"date_entered_workforce\",\n \"days_unemployed\",\n \"eligible_for_hire\",\n \"eligible_for_rehire_on_latest_termination\",\n \"employee_compensation_currency\",\n \"employee_compensation_frequency\",\n \"employee_compensation_primary_compensation_basis\",\n \"employee_compensation_total_base_pay\",\n \"employee_compensation_total_salary_and_allowances\",\n \"expected_date_of_return\",\n \"expected_retirement_date\",\n \"first_day_of_work\",\n \"has_international_assignment\",\n \"hire_date\",\n \"hire_reason\",\n \"hire_rescinded\",\n \"hourly_frequency_currency\",\n \"hourly_frequency_frequency\",\n \"hourly_frequency_primary_compensation_basis\",\n \"hourly_frequency_total_base_pay\",\n \"hourly_frequency_total_salary_and_allowances\",\n \"last_datefor_which_paid\",\n \"local_termination_reason\",\n \"months_continuous_prior_employment\",\n \"not_returning\",\n \"original_hire_date\",\n \"pay_group_frequency_currency\",\n \"pay_group_frequency_frequency\",\n \"pay_group_frequency_primary_compensation_basis\",\n \"pay_group_frequency_total_base_pay\",\n \"pay_group_frequency_total_salary_and_allowances\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"probation_end_date\",\n \"probation_start_date\",\n \"reason_reference_id\",\n \"regrettable_termination\",\n \"rehire\",\n \"resignation_date\",\n \"retired\",\n \"retirement_date\",\n \"retirement_eligibility_date\",\n \"return_unknown\",\n \"seniority_date\",\n \"severance_date\",\n \"terminated\",\n \"termination_involuntary\",\n \"termination_last_day_of_work\",\n \"time_off_service_date\",\n \"universal_id\",\n \"user_id\",\n \"vesting_date\",\n \"worker_code\",\n \"effective_date\",\n \"position_start_date\",\n \"position_end_date\",\n \"academic_pay_setup_data_annual_work_period_end_date\",\n \"academic_pay_setup_data_annual_work_period_start_date\",\n \"academic_pay_setup_data_annual_work_period_work_percent_of_year\",\n \"academic_pay_setup_data_disbursement_plan_period_end_date\",\n \"academic_pay_setup_data_disbursement_plan_period_start_date\",\n \"business_site_summary_display_language\",\n \"business_site_summary_local\",\n \"business_site_summary_location\",\n \"business_site_summary_location_type\",\n \"business_site_summary_name\",\n \"business_site_summary_scheduled_weekly_hours\",\n \"business_site_summary_time_profile\",\n \"business_title\",\n \"critical_job\",\n \"default_weekly_hours\",\n \"difficulty_to_fill\",\n \"employee_type\",\n \"exclude_from_head_count\",\n \"expected_assignment_end_date\",\n \"external_employee\",\n \"federal_withholding_fein\",\n \"frequency\",\n \"full_time_equivalent_percentage\",\n \"headcount_restriction_code\",\n \"host_country\",\n \"international_assignment_type\",\n \"is_primary_job\",\n \"job_exempt\",\n \"job_profile_id\",\n \"management_level_code\",\n \"paid_fte\",\n \"pay_group\",\n \"pay_rate\",\n \"pay_rate_type\",\n \"payroll_entity\",\n \"payroll_file_number\",\n \"regular_paid_equivalent_hours\",\n \"scheduled_weekly_hours\",\n \"specify_paid_fte\",\n \"specify_working_fte\",\n \"start_international_assignment_reason\",\n \"work_hours_profile\",\n \"work_shift\",\n \"work_shift_required\",\n \"work_space\",\n \"worker_hours_profile_classification\",\n \"working_fte\",\n \"working_time_frequency\",\n \"working_time_unit\",\n \"working_time_value\",\n \"type\",\n \"additional_nationality\",\n \"blood_type\",\n \"citizenship_status\",\n \"city_of_birth\",\n \"city_of_birth_code\",\n \"country_of_birth\",\n \"date_of_birth\",\n \"date_of_death\",\n \"gender\",\n \"hispanic_or_latino\",\n \"hukou_locality\",\n \"hukou_postal_code\",\n \"hukou_region\",\n \"hukou_subregion\",\n \"hukou_type\",\n \"last_medical_exam_date\",\n \"last_medical_exam_valid_to\",\n \"local_hukou\",\n \"marital_status\",\n \"marital_status_date\",\n \"medical_exam_notes\",\n \"native_region\",\n \"native_region_code\",\n \"personnel_file_agency\",\n \"political_affiliation\",\n \"primary_nationality\",\n \"region_of_birth\",\n \"region_of_birth_code\",\n \"religion\",\n \"social_benefit\",\n \"tobacco_use\",\n \"ll\"\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select md5(cast(coalesce(cast(employee_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_overview_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_overview_worker_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "fqn": ["workday", "not_null_workday__employee_overview_worker_id"], "alias": "not_null_workday__employee_overview_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.434137, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__employee_overview_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "position_id", "position_start_date"], "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date"], "alias": "dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d"}, "created_at": 1710962553.435377, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d\") }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, position_id, position_start_date\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\n group by source_relation, worker_id, position_id, position_start_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__job_overview_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__job_overview_job_profile_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "fqn": ["workday", "not_null_workday__job_overview_job_profile_id"], "alias": "not_null_workday__job_overview_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.442121, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__job_overview_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656"}, "created_at": 1710962553.443169, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656\") }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.not_null_workday__position_overview_position_id.603beb3f22": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__position_overview_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__position_overview_position_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "fqn": ["workday", "not_null_workday__position_overview_position_id"], "alias": "not_null_workday__position_overview_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.445332, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__position_overview_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e"}, "created_at": 1710962553.44623, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e\") }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "fqn": ["workday", "not_null_workday__organization_overview_organization_id"], "alias": "not_null_workday__organization_overview_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.4484632, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_role_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "fqn": ["workday", "not_null_workday__organization_overview_organization_role_id"], "alias": "not_null_workday__organization_overview_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.449346, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1"}, "created_at": 1710962553.450399, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1\") }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "fqn": ["workday", "staging", "not_null_stg_workday__job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.553199, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1"}, "created_at": 1710962553.554257, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_family_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.556843, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.5577621, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id"], "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378"}, "created_at": 1710962553.558681, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.561009, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id"], "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd"}, "created_at": 1710962553.5619042, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_group_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.564183, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af"}, "created_at": 1710962553.565105, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_group_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4"}, "created_at": 1710962553.5660028, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_group_job_family_group_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_family_group_job_family_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.568307, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_group_job_family_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_group_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5"}, "created_at": 1710962553.5692039, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_group_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_id"], "alias": "not_null_stg_workday__organization_role_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.571489, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_role_id"], "alias": "not_null_stg_workday__organization_role_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.5723772, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id"], "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908"}, "created_at": 1710962553.573314, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_worker_code", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_worker_code", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_worker_code"], "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda"}, "created_at": 1710962553.575705, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_worker_code\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere organization_worker_code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_worker_code", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_id"], "alias": "not_null_stg_workday__organization_role_worker_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.5765939, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_role_id"], "alias": "not_null_stg_workday__organization_role_worker_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.5775402, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect role_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "role_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_worker_code", "organization_id", "role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id"], "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a"}, "created_at": 1710962553.5786629, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_job_family_id"], "alias": "not_null_stg_workday__organization_job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.581011, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_organization_id"], "alias": "not_null_stg_workday__organization_job_family_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.581934, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id"], "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456"}, "created_at": 1710962553.583022, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_organization_id"], "alias": "not_null_stg_workday__organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.585227, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id"], "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5"}, "created_at": 1710962553.5862951, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_organization_id"], "alias": "not_null_stg_workday__position_organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.588463, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_position_id"], "alias": "not_null_stg_workday__position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.589548, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id"], "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc"}, "created_at": 1710962553.590441, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "fqn": ["workday", "staging", "not_null_stg_workday__position_position_id"], "alias": "not_null_stg_workday__position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.592631, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32"}, "created_at": 1710962553.594026, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32\") }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_job_profile_id"], "alias": "not_null_stg_workday__position_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.59621, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_position_id"], "alias": "not_null_stg_workday__position_job_profile_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.5972888, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id"], "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62"}, "created_at": 1710962553.5983648, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "fqn": ["workday", "staging", "not_null_stg_workday__worker_worker_id"], "alias": "not_null_stg_workday__worker_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.6008372, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33"}, "created_at": 1710962553.601763, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_worker_id"], "alias": "not_null_stg_workday__personal_information_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.604195, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13"}, "created_at": 1710962553.605131, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_worker_id"], "alias": "not_null_stg_workday__person_name_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.60743, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_name_type", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_person_name_type", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_person_name_type.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_person_name_type"], "alias": "not_null_stg_workday__person_name_person_name_type", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.6085389, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_person_name_type.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect person_name_type\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\nwhere person_name_type is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_name_type", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_name_type"], "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type"], "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574"}, "created_at": 1710962553.6097338, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_worker_id"], "alias": "not_null_stg_workday__personal_information_ethnicity_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.612579, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ethnicity_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_ethnicity_id"], "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5"}, "created_at": 1710962553.613941, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ethnicity_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\nwhere ethnicity_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ethnicity_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "ethnicity_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id"], "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5"}, "created_at": 1710962553.614909, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__military_service_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__military_service_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "fqn": ["workday", "staging", "not_null_stg_workday__military_service_worker_id"], "alias": "not_null_stg_workday__military_service_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.617419, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__military_service_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9"}, "created_at": 1710962553.6183228, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9\") }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_contact_email_address_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id"], "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08"}, "created_at": 1710962553.62122, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect person_contact_email_address_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\nwhere person_contact_email_address_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_contact_email_address_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_contact_email_address_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_worker_id"], "alias": "not_null_stg_workday__person_contact_email_address_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.622188, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_contact_email_address_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_contact_email_address_id"], "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id"], "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb"}, "created_at": 1710962553.623159, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_position_id"], "alias": "not_null_stg_workday__worker_position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.6261609, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_worker_id"], "alias": "not_null_stg_workday__worker_position_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.627392, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7"}, "created_at": 1710962553.6285388, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "leave_request_event_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_leave_request_event_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_leave_request_event_id"], "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308"}, "created_at": 1710962553.631438, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect leave_request_event_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\nwhere leave_request_event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "leave_request_event_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_leave_status_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_worker_id"], "alias": "not_null_stg_workday__worker_leave_status_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.63237, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_leave_status_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "leave_request_event_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id"], "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f"}, "created_at": 1710962553.633309, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_position_id"], "alias": "not_null_stg_workday__worker_position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.635731, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_worker_id"], "alias": "not_null_stg_workday__worker_position_organization_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.6366851, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_organization_id"], "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23"}, "created_at": 1710962553.6379461, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "position_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id"], "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926"}, "created_at": 1710962553.639342, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_history_worker_id.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__personal_information_history_worker_id"], "alias": "not_null_stg_workday__personal_information_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.648404, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__personal_information_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "fqn": ["workday", "staging", "workday_history", "unique_stg_workday__personal_information_history_history_unique_key"], "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2"}, "created_at": 1710962553.649699, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__personal_information_history_history_unique_key"], "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3"}, "created_at": 1710962553.650728, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c", "fqn": ["workday", "staging", "workday_history", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523"}, "created_at": 1710962553.651783, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_worker_id.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_history_worker_id"], "alias": "not_null_stg_workday__worker_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.654798, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "fqn": ["workday", "staging", "workday_history", "unique_stg_workday__worker_history_history_unique_key"], "alias": "unique_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.655722, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/unique_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_history_history_unique_key"], "alias": "not_null_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.656624, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df", "fqn": ["workday", "staging", "workday_history", "dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135"}, "created_at": 1710962553.657723, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_worker_id.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_history_worker_id"], "alias": "not_null_stg_workday__worker_position_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.660512, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_position_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_position_id.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_history_position_id"], "alias": "not_null_stg_workday__worker_position_history_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.6615622, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_position_history_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_position_history_history_unique_key.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "fqn": ["workday", "staging", "workday_history", "unique_stg_workday__worker_position_history_history_unique_key"], "alias": "unique_stg_workday__worker_position_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.662915, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/unique_stg_workday__worker_position_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9"}, "created_at": 1710962553.6639528, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "position_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b", "fqn": ["workday", "staging", "workday_history", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412"}, "created_at": 1710962553.665008, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, position_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\n group by worker_id, position_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_organization_history_worker_id"], "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a"}, "created_at": 1710962553.668211, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_organization_history_position_id"], "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441"}, "created_at": 1710962553.669216, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_organization_history_organization_id"], "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0"}, "created_at": 1710962553.6702368, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "fqn": ["workday", "staging", "workday_history", "unique_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22"}, "created_at": 1710962553.6711738, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6"}, "created_at": 1710962553.672269, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "position_id", "organization_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888", "fqn": ["workday", "staging", "workday_history", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71"}, "created_at": 1710962553.673206, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, position_id, organization_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\n group by worker_id, position_id, organization_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__monthly_summary_metrics_month", "resource_type": "test", "package_name": "workday", "path": "unique_workday__monthly_summary_metrics_month.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab", "fqn": ["workday", "workday_history", "unique_workday__monthly_summary_metrics_month"], "alias": "unique_workday__monthly_summary_metrics_month", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.680226, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__monthly_summary"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__monthly_summary_metrics_month.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n metrics_month as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is not null\ngroup by metrics_month\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metrics_month", "file_key_name": "models.workday__monthly_summary", "attached_node": "model.workday.workday__monthly_summary"}, "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__monthly_summary_metrics_month", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__monthly_summary_metrics_month.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "fqn": ["workday", "workday_history", "not_null_workday__monthly_summary_metrics_month"], "alias": "not_null_workday__monthly_summary_metrics_month", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.681261, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__monthly_summary"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__monthly_summary_metrics_month.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metrics_month\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metrics_month", "file_key_name": "models.workday__monthly_summary", "attached_node": "model.workday.workday__monthly_summary"}}, "sources": {"source.workday.workday.job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_profile", "fqn": ["workday", "staging", "workday", "job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"id": {"name": "id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_job_code_in_name": {"name": "include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "public_job": {"name": "public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "title": {"name": "title", "description": "Title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "created_at": 1710962553.683019}, "source.workday.workday.job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_profile", "fqn": ["workday", "staging", "workday", "job_family_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "created_at": 1710962553.683142}, "source.workday.workday.job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family", "fqn": ["workday", "staging", "workday", "job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "created_at": 1710962553.683228}, "source.workday.workday.job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_family_group", "fqn": ["workday", "staging", "workday", "job_family_job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "created_at": 1710962553.683307}, "source.workday.workday.job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_group", "fqn": ["workday", "staging", "workday", "job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"id": {"name": "id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "created_at": 1710962553.683393}, "source.workday.workday.organization_role": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role", "fqn": ["workday", "staging", "workday", "organization_role"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "created_at": 1710962553.683605}, "source.workday.workday.organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role_worker", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role_worker", "fqn": ["workday", "staging", "workday", "organization_role_worker"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_worker_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"associated_worker_id": {"name": "associated_worker_id", "description": "Identifier for the worker associated with the organization role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "created_at": 1710962553.683687}, "source.workday.workday.organization_job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_job_family", "fqn": ["workday", "staging", "workday", "organization_job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "created_at": 1710962553.6837661}, "source.workday.workday.organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization", "fqn": ["workday", "staging", "workday", "organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Identifier for the organization.", "columns": {"id": {"name": "id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_manager_in_name": {"name": "include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_organization_code_in_name": {"name": "include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location": {"name": "location", "description": "Location associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sub_type": {"name": "sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "created_at": 1710962553.683875}, "source.workday.workday.position_organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_organization", "fqn": ["workday", "staging", "workday", "position_organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "created_at": 1710962553.6839528}, "source.workday.workday.position": {"database": "postgres", "schema": "workday_integration_tests", "name": "position", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position", "fqn": ["workday", "staging", "workday", "position"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_eligible": {"name": "academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_overlap": {"name": "available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_recruiting": {"name": "available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "created_at": 1710962553.684064}, "source.workday.workday.position_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_job_profile", "fqn": ["workday", "staging", "workday", "position_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "created_at": 1710962553.684149}, "source.workday.workday.worker_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_history", "fqn": ["workday", "staging", "workday", "worker_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"id": {"name": "id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "has_international_assignment": {"name": "has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_rescinded": {"name": "hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "not_returning": {"name": "not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regrettable_termination": {"name": "regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rehire": {"name": "rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retired": {"name": "retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "return_unknown": {"name": "return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "terminated": {"name": "terminated", "description": "Flag indicating whether the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_involuntary": {"name": "termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "created_at": 1710962553.684651}, "source.workday.workday.personal_information_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_history", "fqn": ["workday", "staging", "workday", "personal_information_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The personal information associated with each worker.", "columns": {"id": {"name": "id", "description": "The identifier for each personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hispanic_or_latino": {"name": "hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_hukou": {"name": "local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tobacco_use": {"name": "tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "created_at": 1710962553.6847801}, "source.workday.workday.person_name": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_name", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_name", "fqn": ["workday", "staging", "workday", "person_name"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_name_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the name information for an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "created_at": 1710962553.684903}, "source.workday.workday.personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_ethnicity", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_ethnicity", "fqn": ["workday", "staging", "workday", "personal_information_ethnicity"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_ethnicity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "created_at": 1710962553.684992}, "source.workday.workday.military_service": {"database": "postgres", "schema": "workday_integration_tests", "name": "military_service", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.military_service", "fqn": ["workday", "staging", "workday", "military_service"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_military_service_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about an individual's military service in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "created_at": 1710962553.685081}, "source.workday.workday.person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_contact_email_address", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_contact_email_address", "fqn": ["workday", "staging", "workday", "person_contact_email_address"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_contact_email_address_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "created_at": 1710962553.685164}, "source.workday.workday.worker_position_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_history", "fqn": ["workday", "staging", "workday", "worker_position_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the positions held by workers in the Workday system", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location": {"name": "business_site_summary_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "exclude_from_head_count": {"name": "exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_exempt": {"name": "job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_paid_fte": {"name": "specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_working_fte": {"name": "specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "created_at": 1710962553.685312}, "source.workday.workday.worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_leave_status", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_leave_status", "fqn": ["workday", "staging", "workday", "worker_leave_status"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_leave_status_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the leave status of workers in the Workday system.", "columns": {"leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_effect": {"name": "benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caesarean_section_birth": {"name": "caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "multiple_child_indicator": {"name": "multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_leave": {"name": "on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_effect": {"name": "payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "single_parent_indicator": {"name": "single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stock_vesting_effect": {"name": "stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_related": {"name": "work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "created_at": 1710962553.685475}, "source.workday.workday.worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_organization_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_organization_history", "fqn": ["workday", "staging", "workday", "worker_position_organization_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_organization_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "created_at": 1710962553.685565}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.680555, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.680778, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.680887, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.680993, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.681098, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n when 'm' then 'MATERIALIZED VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.682552, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.6829739, "supported_languages": null}, "macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.683601, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.683729, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.691725, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.69221, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.692508, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.692797, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.6932359, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.69362, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.6937752, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.69408, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.694568, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.6955369, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.695746, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.696054, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.6963148, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.696714, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.696938, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.6975172, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.6977122, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.697825, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.6979961, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.6981351, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.698529, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.699219, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.699361, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.699646, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.699778, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.6999419, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.700764, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }};\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.701288, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.701619, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.701993, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.702129, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.70289, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.703063, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7031941, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7037172, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.703889, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.704094, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7046669, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.707663, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.70782, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.708299, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.708692, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.709728, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7099252, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.710061, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.710199, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.710336, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.710695, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.710985, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7113721, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.711786, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.712049, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.71529, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.715453, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.715661, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.716345, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7165031, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.716668, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.717987, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.719328, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7229419, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7232158, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.723379, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.723466, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.723605, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.723715, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.723907, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.724742, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.724921, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.725156, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.725562, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.731201, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.733739, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.734182, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.734475, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.734868, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7352278, "supported_languages": null}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7396128, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.739987, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.740227, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7414489, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.741674, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.742295, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.745207, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.747969, "supported_languages": ["sql"]}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.749512, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.750098, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7508469, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.751165, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7518342, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7573729, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.75895, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7592099, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.760159, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.760418, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7610471, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.761667, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.762496, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.762723, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.762901, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.763194, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7634618, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7637491, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.76393, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.764178, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7643552, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7644968, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7647638, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.769515, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.774179, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.775288, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.776366, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.777309, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.77762, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.777739, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.778048, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation }} clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.778187, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {% if target_relation and defer_relation and target_relation == defer_relation %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation) }}\n {% else %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endif %}\n\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.781951, "supported_languages": ["sql"]}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.785177, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.789563, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7904232, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.790647, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.79113, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7913442, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7914739, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.791612, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.791741, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.791897, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.79201, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7924669, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.79265, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.793874, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.794295, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.794653, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.795152, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.795447, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.795743, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.796146, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7963939, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.79707, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.797428, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.797608, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.797803, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.798016, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.798814, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation_type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.800082, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.800461, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.800703, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8010051, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8012102, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.801862, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.802273, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.80247, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8027399, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.80307, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.80333, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.803769, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.804183, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.804492, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.804689, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{ return(adapter.dispatch('drop_materialized_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.804943, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.805042, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.805303, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.805446, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.805741, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.805963, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.806221, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.806358, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.806928, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.807128, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.80753, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.80772, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8080199, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8081641, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.80911, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.809221, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.809715, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8098712, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.809995, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.811244, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.811601, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.811937, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{ return(adapter.dispatch('drop_table', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8122041, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.812307, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8125749, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.812721, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8129869, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.813132, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8139598, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.814145, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.814551, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.815232, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.815901, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.816193, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.816418, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{ return(adapter.dispatch('drop_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.81671, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.816816, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.817826, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.817995, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.819206, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.819514, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.819732, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.820074, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.820247, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.820669, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8208342, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.821012, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.821418, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8217542, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8220391, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.822281, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.822846, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.824451, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.825504, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8263319, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.828344, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8296478, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.830382, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8306189, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8308558, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.830931, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.831625, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.832306, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.832555, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.832918, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.833438, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.833628, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.83389, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.834017, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.83489, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8353121, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.835501, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8359869, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.836239, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.836343, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.836653, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.836803, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.837016, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.837187, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.83743, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.837557, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.83792, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.838115, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.838897, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.839355, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.839756, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.839948, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.840252, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.840388, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.840631, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.840777, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.841009, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.841158, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.841384, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.841483, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8417559, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.841888, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8421178, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8423, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8431869, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.843338, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8434958, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.843641, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8437939, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8439412, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.844098, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.844267, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8444211, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.844568, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8447201, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8448582, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.845008, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.845147, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.845453, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.845582, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8458161, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.845918, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.846333, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.846587, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8467252, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.847202, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.847348, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.847553, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.847938, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.848087, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.848455, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.848702, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8489752, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.849105, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.849459, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.849631, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.84978, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.849947, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.850406, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.850548, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.85068, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8507788, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.851021, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8510962, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.85125, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.851406, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.852154, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8522859, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8524292, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.852798, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8529658, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.853086, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8532228, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8533351, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.855052, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.855202, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.855399, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.855662, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.85589, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.85619, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.856361, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.856582, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.856808, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8573198, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.857534, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.857673, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.858235, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.858656, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.858952, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8591712, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.860735, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8608482, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8610072, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.861116, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.86143, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8615959, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8616881, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.861887, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8620749, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.862282, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.862747, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.862966, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.863582, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.863756, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8639958, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.864214, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8652291, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header -%}\n {{ sql_header }}\n {%- endif -%}\n {%- if limit is not none -%}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n {%- else -%}\n {{ compiled_code }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.865699, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "{% macro get_limit_subquery_sql(sql, limit) %}\n {{ adapter.dispatch('get_limit_subquery_sql', 'dbt')(sql, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.865869, "supported_languages": null}, "macro.dbt.default__get_limit_subquery_sql": {"name": "default__get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_subquery_sql", "macro_sql": "{% macro default__get_limit_subquery_sql(sql, limit) %}\n select *\n from (\n {{ sql }}\n ) as model_limit_subq\n limit {{ limit }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.865988, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8666, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8667562, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.866945, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8670988, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.867348, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8678231, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.870314, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.870553, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.870739, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.871053, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.87124, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.871379, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8715441, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.871938, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.87216, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.872442, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8726149, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.872761, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.872907, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.873045, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.873235, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.873398, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.875375, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.875531, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.875833, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.87603, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8762188, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8763788, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n cast(null as {{ col['data_type'] }}) as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8775449, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.877883, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8780658, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.878417, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.878644, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8792179, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.879463, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.880168, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.88167, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.881809, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.882545, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.88291, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.88343, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8838751, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.883949, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8844218, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.884655, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.884932, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8851972, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8855438, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.885998, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.886446, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.887233, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.887576, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.887867, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8888152, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8897622, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.890549, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8915641, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.892183, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.892503, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.893213, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8940318, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.894488, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.894922, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.89552, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.895962, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8964689, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.896827, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.897454, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n where {{ column_name }} is not null\n limit 1\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.898282, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.898865, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.899471, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.900008, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.90033, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.900712, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.901054, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.901663, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.90243, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.903264, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9041212, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.904822, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.905654, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.906128, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.906409, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.909566, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9111009, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.911434, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.911627, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9120698, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.912339, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.912527, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.91277, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.912936, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.913528, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9143229, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.914995, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9155781, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9158049, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9161549, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9165199, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.917043, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.917342, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9177222, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.918367, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.919266, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9200609, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.920469, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.920647, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9211462, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.921775, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9225721, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9229598, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.923231, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.924358, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9257548, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.927084, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.928525, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.928813, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.928944, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.931584, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.934669, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9349551, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.935183, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.935866, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.936063, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.936246, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.936503, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9367192, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.936887, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.93729, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.937532, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.937896, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.938459, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.938785, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9391181, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.940671, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.941024, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9418108, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9423091, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.943393, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9448562, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.945903, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9467142, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.94717, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9478679, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.948597, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.949037, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9492228, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.949594, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9501681, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.950667, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.951307, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.951818, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.951953, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.952096, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.952229, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9527092, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9535098, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9545221, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.954784, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.955325, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.956084, "supported_languages": null}, "macro.workday.get_person_contact_email_address_columns": {"name": "get_person_contact_email_address_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_contact_email_address_columns.sql", "original_file_path": "macros/get_person_contact_email_address_columns.sql", "unique_id": "macro.workday.get_person_contact_email_address_columns", "macro_sql": "{% macro get_person_contact_email_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_address\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_comment\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.95694, "supported_languages": null}, "macro.workday.get_military_service_columns": {"name": "get_military_service_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_military_service_columns.sql", "original_file_path": "macros/get_military_service_columns.sql", "unique_id": "macro.workday.get_military_service_columns", "macro_sql": "{% macro get_military_service_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"discharge_date\", \"datatype\": \"date\"},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"rank\", \"datatype\": dbt.type_string()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status_begin_date\", \"datatype\": \"date\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.958123, "supported_languages": null}, "macro.workday.get_position_job_profile_columns": {"name": "get_position_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_job_profile_columns.sql", "original_file_path": "macros/get_position_job_profile_columns.sql", "unique_id": "macro.workday.get_position_job_profile_columns", "macro_sql": "{% macro get_position_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9592419, "supported_languages": null}, "macro.workday.get_job_family_job_family_group_columns": {"name": "get_job_family_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_job_family_group_columns", "macro_sql": "{% macro get_job_family_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9598038, "supported_languages": null}, "macro.workday.get_worker_history_columns": {"name": "get_worker_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_history_columns.sql", "original_file_path": "macros/get_worker_history_columns.sql", "unique_id": "macro.workday.get_worker_history_columns", "macro_sql": "{% macro get_worker_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_date\", \"datatype\": \"date\"},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"active_status_date\", \"datatype\": \"date\"},\n {\"name\": \"annual_currency_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_service_date\", \"datatype\": \"date\"},\n {\"name\": \"company_service_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_effective_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"continuous_service_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_assignment_details\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_end_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_frequency_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_pay_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"contract_vendor_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_entered_workforce\", \"datatype\": \"date\"},\n {\"name\": \"days_unemployed\", \"datatype\": dbt.type_float()},\n {\"name\": \"eligible_for_hire\", \"datatype\": dbt.type_string()},\n {\"name\": \"eligible_for_rehire_on_latest_termination\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_date_of_return\", \"datatype\": \"date\"},\n {\"name\": \"expected_retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"has_international_assignment\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hire_date\", \"datatype\": \"date\"},\n {\"name\": \"hire_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"hire_rescinded\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_datefor_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"local_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"months_continuous_prior_employment\", \"datatype\": dbt.type_float()},\n {\"name\": \"not_returning\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"original_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"pay_group_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"primary_termination_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"probation_end_date\", \"datatype\": \"date\"},\n {\"name\": \"probation_start_date\", \"datatype\": \"date\"},\n {\"name\": \"reason_reference_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regrettable_termination\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"rehire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"resignation_date\", \"datatype\": \"date\"},\n {\"name\": \"retired\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"retirement_eligibility_date\", \"datatype\": \"date\"},\n {\"name\": \"return_unknown\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"seniority_date\", \"datatype\": \"date\"},\n {\"name\": \"severance_date\", \"datatype\": \"date\"},\n {\"name\": \"terminated\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_date\", \"datatype\": \"date\"},\n {\"name\": \"termination_involuntary\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"time_off_service_date\", \"datatype\": \"date\"},\n {\"name\": \"universal_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vesting_date\", \"datatype\": \"date\"},\n {\"name\": \"worker_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.972094, "supported_languages": null}, "macro.workday.get_job_family_group_columns": {"name": "get_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_group_columns", "macro_sql": "{% macro get_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_group_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.972975, "supported_languages": null}, "macro.workday.get_worker_leave_status_columns": {"name": "get_worker_leave_status_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_leave_status_columns.sql", "original_file_path": "macros/get_worker_leave_status_columns.sql", "unique_id": "macro.workday.get_worker_leave_status_columns", "macro_sql": "{% macro get_worker_leave_status_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"adoption_notification_date\", \"datatype\": \"date\"},\n {\"name\": \"adoption_placement_date\", \"datatype\": \"date\"},\n {\"name\": \"age_of_dependent\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"caesarean_section_birth\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"child_birth_date\", \"datatype\": \"date\"},\n {\"name\": \"child_sdate_of_death\", \"datatype\": \"date\"},\n {\"name\": \"continuous_service_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"date_baby_arrived_home_from_hospital\", \"datatype\": \"date\"},\n {\"name\": \"date_child_entered_country\", \"datatype\": \"date\"},\n {\"name\": \"date_of_recall\", \"datatype\": \"date\"},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimated_leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_due_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"last_date_for_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_entitlement_override\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"leave_of_absence_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_request_event_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_return_event\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_start_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_status_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_type_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_during_leave\", \"datatype\": dbt.type_string()},\n {\"name\": \"multiple_child_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"number_of_babies_adopted_children\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_child_dependents\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_births\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_maternity_leaves\", \"datatype\": dbt.type_float()},\n {\"name\": \"on_leave\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"paid_time_off_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"payroll_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"single_parent_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"social_security_disability_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"stock_vesting_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"stop_payment_date\", \"datatype\": \"date\"},\n {\"name\": \"week_of_confinement\", \"datatype\": \"date\"},\n {\"name\": \"work_related\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.97809, "supported_languages": null}, "macro.workday.get_organization_role_worker_columns": {"name": "get_organization_role_worker_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_worker_columns.sql", "original_file_path": "macros/get_organization_role_worker_columns.sql", "unique_id": "macro.workday.get_organization_role_worker_columns", "macro_sql": "{% macro get_organization_role_worker_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"associated_worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.978775, "supported_languages": null}, "macro.workday.get_job_profile_columns": {"name": "get_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_profile_columns.sql", "original_file_path": "macros/get_job_profile_columns.sql", "unique_id": "macro.workday.get_job_profile_columns", "macro_sql": "{% macro get_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_job_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"public_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"referral_payment_plan\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_membership_requirement\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_study_award_source_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_study_requirement_option_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.981473, "supported_languages": null}, "macro.workday.get_organization_role_columns": {"name": "get_organization_role_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_columns.sql", "original_file_path": "macros/get_organization_role_columns.sql", "unique_id": "macro.workday.get_organization_role_columns", "macro_sql": "{% macro get_organization_role_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_role_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.982125, "supported_languages": null}, "macro.workday.get_person_name_columns": {"name": "get_person_name_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_name_columns.sql", "original_file_path": "macros/get_person_name_columns.sql", "unique_id": "macro.workday.get_person_name_columns", "macro_sql": "{% macro get_person_name_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"additional_name_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name_singapore_malaysia\", \"datatype\": dbt.type_string()},\n {\"name\": \"hereditary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"honorary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_salutation\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"professional_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"religious_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"royal_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tertiary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.985804, "supported_languages": null}, "macro.workday.get_job_family_job_profile_columns": {"name": "get_job_family_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_profile_columns.sql", "original_file_path": "macros/get_job_family_job_profile_columns.sql", "unique_id": "macro.workday.get_job_family_job_profile_columns", "macro_sql": "{% macro get_job_family_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.986408, "supported_languages": null}, "macro.workday.get_worker_position_history_columns": {"name": "get_worker_position_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_history_columns.sql", "original_file_path": "macros/get_worker_position_history_columns.sql", "unique_id": "macro.workday.get_worker_position_history_columns", "macro_sql": "{% macro get_worker_position_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_pay_setup_data_annual_work_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_work_percent_of_year\", \"datatype\": dbt.type_float()},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"business_site_summary_display_language\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_local\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"business_site_summary_time_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"default_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"employee_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"exclude_from_head_count\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"expected_assignment_end_date\", \"datatype\": \"date\"},\n {\"name\": \"external_employee\", \"datatype\": dbt.type_string()},\n {\"name\": \"federal_withholding_fein\", \"datatype\": dbt.type_string()},\n {\"name\": \"frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_time_equivalent_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"headcount_restriction_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"host_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"international_assignment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_primary_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"paid_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"payroll_entity\", \"datatype\": dbt.type_string()},\n {\"name\": \"payroll_file_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regular_paid_equivalent_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"specify_paid_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"specify_working_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"start_international_assignment_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_hours_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_space\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_hours_profile_classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"working_time_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.993664, "supported_languages": null}, "macro.workday.get_personal_information_ethnicity_columns": {"name": "get_personal_information_ethnicity_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_ethnicity_columns.sql", "original_file_path": "macros/get_personal_information_ethnicity_columns.sql", "unique_id": "macro.workday.get_personal_information_ethnicity_columns", "macro_sql": "{% macro get_personal_information_ethnicity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ethnicity_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"ethnicity_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9945338, "supported_languages": null}, "macro.workday.get_personal_information_history_columns": {"name": "get_personal_information_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_history_columns.sql", "original_file_path": "macros/get_personal_information_history_columns.sql", "unique_id": "macro.workday.get_personal_information_history_columns", "macro_sql": "{% macro get_personal_information_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"blood_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"citizenship_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_birth\", \"datatype\": \"date\"},\n {\"name\": \"date_of_death\", \"datatype\": \"date\"},\n {\"name\": \"gender\", \"datatype\": dbt.type_string()},\n {\"name\": \"hispanic_or_latino\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hukou_locality\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_subregion\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_medical_exam_date\", \"datatype\": \"date\"},\n {\"name\": \"last_medical_exam_valid_to\", \"datatype\": \"date\"},\n {\"name\": \"local_hukou\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"marital_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"marital_status_date\", \"datatype\": \"date\"},\n {\"name\": \"medical_exam_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"personnel_file_agency\", \"datatype\": dbt.type_string()},\n {\"name\": \"political_affiliation\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"religion\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_benefit\", \"datatype\": dbt.type_string()},\n {\"name\": \"tobacco_use\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9988961, "supported_languages": null}, "macro.workday.get_worker_position_organization_history_columns": {"name": "get_worker_position_organization_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_organization_history_columns.sql", "original_file_path": "macros/get_worker_position_organization_history_columns.sql", "unique_id": "macro.workday.get_worker_position_organization_history_columns", "macro_sql": "{% macro get_worker_position_organization_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_pay_group_assignment\", \"datatype\": \"date\"},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_business_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"used_in_change_organization_assignments\", \"datatype\": dbt.type_boolean()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0001469, "supported_languages": null}, "macro.workday.get_organization_job_family_columns": {"name": "get_organization_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_job_family_columns.sql", "original_file_path": "macros/get_organization_job_family_columns.sql", "unique_id": "macro.workday.get_organization_job_family_columns", "macro_sql": "{% macro get_organization_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.000811, "supported_languages": null}, "macro.workday.get_job_family_columns": {"name": "get_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_columns.sql", "original_file_path": "macros/get_job_family_columns.sql", "unique_id": "macro.workday.get_job_family_columns", "macro_sql": "{% macro get_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0017338, "supported_languages": null}, "macro.workday.get_organization_columns": {"name": "get_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_columns.sql", "original_file_path": "macros/get_organization_columns.sql", "unique_id": "macro.workday.get_organization_columns", "macro_sql": "{% macro get_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"availability_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"external_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"inactive_date\", \"datatype\": \"date\"},\n {\"name\": \"include_manager_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_organization_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"last_updated_date_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"location\", \"datatype\": dbt.type_string()},\n {\"name\": \"manager_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_owner_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"staffing_model\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"superior_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_availability_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_time_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_worker_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"top_level_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"visibility\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.004983, "supported_languages": null}, "macro.workday.get_position_organization_columns": {"name": "get_position_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_organization_columns.sql", "original_file_path": "macros/get_position_organization_columns.sql", "unique_id": "macro.workday.get_position_organization_columns", "macro_sql": "{% macro get_position_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.00576, "supported_languages": null}, "macro.workday.get_position_columns": {"name": "get_position_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_columns.sql", "original_file_path": "macros/get_position_columns.sql", "unique_id": "macro.workday.get_position_columns", "macro_sql": "{% macro get_position_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_eligible\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"availability_date\", \"datatype\": \"date\"},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_overlap\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_recruiting\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"closed\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"compensation_grade_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_package_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_step_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"earliest_overlap_date\", \"datatype\": \"date\"},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_posting_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_time_type_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_amount_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_percent_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"supervisory_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_for_filled_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_type_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.009496, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.009931, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.010828, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.010991, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0111518, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.011335, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.011481, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.011643, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0124202, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.01304, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0143192, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.01456, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.014796, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.015022, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.01525, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.015501, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.015746, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.016043, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0163531, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.016458, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.016578, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.016674, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0170612, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.017735, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.018743, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0193112, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.020053, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.02052, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.020648, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.020776, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0209, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0210292, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.023722, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.023882, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.024041, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0241961, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.025996, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.027013, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0271559, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0274181, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0276842, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.027807, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.027928, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0280461, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.028159, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.028615, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0291378, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0296042, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0297909, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.029989, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.03022, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.031266, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.034848, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.03521, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.035597, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0372028, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.037771, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.038337, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0384908, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.038645, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.03881, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.038953, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0391, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.039878, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.041128, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.041821, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0420601, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0422678, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.04243, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.042589, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0427651, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.043036, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.043145, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0432498, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.043874, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.045089, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.045263, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0460732, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.049419, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0548182, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.056464, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.05696, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.057129, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0573828, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0578198, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.057958, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.058073, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.058225, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.05848, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0587919, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0588999, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.059042, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0594492, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.060246, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.workday._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_deleted", "block_contents": "Indicates if the record was soft-deleted by Fivetran."}, "doc.workday._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_synced", "block_contents": "Timestamp the record was synced by Fivetran."}, "doc.workday._fivetran_start": {"name": "_fivetran_start", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_start", "block_contents": "Timestamp when the record was first created or modified in the source."}, "doc.workday._fivetran_end": {"name": "_fivetran_end", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_end", "block_contents": "Timestamp marking the end of a record being active."}, "doc.workday._fivetran_date": {"name": "_fivetran_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_date", "block_contents": "Date when the record was first created or modified in the source."}, "doc.workday._fivetran_active": {"name": "_fivetran_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_active", "block_contents": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE."}, "doc.workday.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.source_relation", "block_contents": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "doc.workday.academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_end_date", "block_contents": "The end date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_start_date", "block_contents": "The start date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year", "block_contents": "The work percentage of the year in the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date", "block_contents": "The end date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date", "block_contents": "The start date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_suffix": {"name": "academic_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_suffix", "block_contents": "The academic suffix, if applicable (e.g., PhD, MD)."}, "doc.workday.academic_tenure_date": {"name": "academic_tenure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_date", "block_contents": "Date when academic tenure is achieved."}, "doc.workday.academic_tenure_eligible": {"name": "academic_tenure_eligible", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_eligible", "block_contents": "Flag indicating whether the position is eligible for academic tenure."}, "doc.workday.active": {"name": "active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active", "block_contents": "Flag indicating the current active status of the worker."}, "doc.workday.active_status_date": {"name": "active_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active_status_date", "block_contents": "Date when the active status was last updated."}, "doc.workday.additional_job_description": {"name": "additional_job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_job_description", "block_contents": "Additional details or information about the job."}, "doc.workday.additional_name_type": {"name": "additional_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_name_type", "block_contents": "Additional type or category for the person name."}, "doc.workday.additional_nationality": {"name": "additional_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_nationality", "block_contents": "Additional nationality associated with the individual."}, "doc.workday.adoption_notification_date": {"name": "adoption_notification_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_notification_date", "block_contents": "The date of adoption notification."}, "doc.workday.adoption_placement_date": {"name": "adoption_placement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_placement_date", "block_contents": "The date of adoption placement."}, "doc.workday.age_of_dependent": {"name": "age_of_dependent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.age_of_dependent", "block_contents": "The age of the dependent associated with the leave status."}, "doc.workday.annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_currency", "block_contents": "Currency used for annual compensation summaries."}, "doc.workday.annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_frequency", "block_contents": "Frequency of currency for annual compensation summaries."}, "doc.workday.annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual compensation summaries."}, "doc.workday.annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.annual_summary_currency": {"name": "annual_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_currency", "block_contents": "Currency used for annual summaries."}, "doc.workday.annual_summary_frequency": {"name": "annual_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_frequency", "block_contents": "Frequency of currency for annual summaries."}, "doc.workday.annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual summaries."}, "doc.workday.annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.associated_worker_id": {"name": "associated_worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.associated_worker_id", "block_contents": "Identifier for the worker associated with the organization role."}, "doc.workday.availability_date": {"name": "availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.availability_date", "block_contents": "Date when the organization becomes available."}, "doc.workday.available_for_hire": {"name": "available_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_hire", "block_contents": "Flag indicating whether the organization is available for hiring."}, "doc.workday.available_for_overlap": {"name": "available_for_overlap", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_overlap", "block_contents": "Flag indicating whether the position is available for overlap with other positions."}, "doc.workday.available_for_recruiting": {"name": "available_for_recruiting", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_recruiting", "block_contents": "Flag indicating whether the position is available for recruiting."}, "doc.workday.benefits_effect": {"name": "benefits_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_effect", "block_contents": "The effect of leave on benefits."}, "doc.workday.benefits_service_date": {"name": "benefits_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_service_date", "block_contents": "Date when the worker's benefits service starts."}, "doc.workday.blood_type": {"name": "blood_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.blood_type", "block_contents": "The blood type of the individual."}, "doc.workday.business_site_summary_display_language": {"name": "business_site_summary_display_language", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_display_language", "block_contents": "The display language of the business site summary."}, "doc.workday.business_site_summary_local": {"name": "business_site_summary_local", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_local", "block_contents": "Local information related to the business site summary."}, "doc.workday.business_site_summary_location": {"name": "business_site_summary_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location", "block_contents": "The location of the business site summary."}, "doc.workday.business_site_summary_location_type": {"name": "business_site_summary_location_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location_type", "block_contents": "The type of location for the business site summary."}, "doc.workday.business_site_summary_name": {"name": "business_site_summary_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_name", "block_contents": "The name associated with the business site summary."}, "doc.workday.business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the business site summary."}, "doc.workday.business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_time_profile", "block_contents": "The time profile associated with the business site summary."}, "doc.workday.business_title": {"name": "business_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_title", "block_contents": "The business title associated with the worker position."}, "doc.workday.caesarean_section_birth": {"name": "caesarean_section_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.caesarean_section_birth", "block_contents": "Indicator for Caesarean section birth."}, "doc.workday.child_birth_date": {"name": "child_birth_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_birth_date", "block_contents": "The date of child birth."}, "doc.workday.child_sdate_of_death": {"name": "child_sdate_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_sdate_of_death", "block_contents": "The start date of child death.>"}, "doc.workday.citizenship_status": {"name": "citizenship_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.citizenship_status", "block_contents": "The citizenship status of the individual."}, "doc.workday.city_of_birth": {"name": "city_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth", "block_contents": "The city of birth of the individual."}, "doc.workday.city_of_birth_code": {"name": "city_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth_code", "block_contents": "The city of birth code of the individual."}, "doc.workday.closed": {"name": "closed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.closed", "block_contents": "Flag indicating whether the position is closed."}, "doc.workday.code": {"name": "code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.code", "block_contents": "Code assigned to the organization for reference and categorization."}, "doc.workday.company_service_date": {"name": "company_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.company_service_date", "block_contents": "Date when the worker's service with the company started."}, "doc.workday.compensation_effective_date": {"name": "compensation_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_effective_date", "block_contents": "Effective date when changes to the worker's compensation take effect."}, "doc.workday.compensation_grade_code": {"name": "compensation_grade_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_code", "block_contents": "Code associated with the compensation grade of the position."}, "doc.workday.compensation_grade_id": {"name": "compensation_grade_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_id", "block_contents": "Identifier for the compensation grade."}, "doc.workday.compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_code", "block_contents": "Code associated with the compensation grade profile of the position."}, "doc.workday.compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_id", "block_contents": "Unique identifier for the compensation grade profile associated with the worker."}, "doc.workday.compensation_package_code": {"name": "compensation_package_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_package_code", "block_contents": "Code associated with the compensation package of the position."}, "doc.workday.compensation_step_code": {"name": "compensation_step_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_step_code", "block_contents": "Code associated with the compensation step of the position."}, "doc.workday.continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_accrual_effect", "block_contents": "The effect of leave on continuous service accrual."}, "doc.workday.continuous_service_date": {"name": "continuous_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_date", "block_contents": "Date when the worker's continuous service with the organization started."}, "doc.workday.contract_assignment_details": {"name": "contract_assignment_details", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_assignment_details", "block_contents": "Details of the worker's contract assignment."}, "doc.workday.contract_currency_code": {"name": "contract_currency_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_currency_code", "block_contents": "Currency code used for the worker's contract."}, "doc.workday.contract_end_date": {"name": "contract_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_end_date", "block_contents": "Date when the worker's contract is scheduled to end."}, "doc.workday.contract_frequency_name": {"name": "contract_frequency_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_frequency_name", "block_contents": "Frequency of payment for the worker's contract."}, "doc.workday.contract_pay_rate": {"name": "contract_pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_pay_rate", "block_contents": "Pay rate associated with the worker's contract."}, "doc.workday.contract_vendor_name": {"name": "contract_vendor_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_vendor_name", "block_contents": "Name of the vendor associated with the worker's contract."}, "doc.workday.country": {"name": "country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country", "block_contents": "The country associated with the person name."}, "doc.workday.country_of_birth": {"name": "country_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country_of_birth", "block_contents": "The country of birth of the individual."}, "doc.workday.critical_job": {"name": "critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.critical_job", "block_contents": "Flag indicating whether the job is critical."}, "doc.workday.date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_baby_arrived_home_from_hospital", "block_contents": "The date when the baby arrived home from the hospital."}, "doc.workday.date_child_entered_country": {"name": "date_child_entered_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_child_entered_country", "block_contents": "The date when the child entered the country."}, "doc.workday.date_entered_workforce": {"name": "date_entered_workforce", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_entered_workforce", "block_contents": "Date when the worker entered the workforce."}, "doc.workday.date_of_birth": {"name": "date_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_birth", "block_contents": "The date of birth of the individual."}, "doc.workday.date_of_death": {"name": "date_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_death", "block_contents": "The date of death of the individual."}, "doc.workday.date_of_recall": {"name": "date_of_recall", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_recall", "block_contents": "The date of recall."}, "doc.workday.days_at_position": {"name": "days_at_position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_at_position", "block_contents": "The number of days the worker has held their most recent position."}, "doc.workday.days_of_employment": {"name": "days_of_employment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_of_employment", "block_contents": "Number of days employed by the worker."}, "doc.workday.days_unemployed": {"name": "days_unemployed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_unemployed", "block_contents": "Number of days the worker has been unemployed."}, "doc.workday.default_weekly_hours": {"name": "default_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.default_weekly_hours", "block_contents": "The default weekly hours associated with the worker position."}, "doc.workday.departure_date": {"name": "departure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.departure_date", "block_contents": "The departure date for the employee."}, "doc.workday.difficulty_to_fill": {"name": "difficulty_to_fill", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill", "block_contents": "Indication of the difficulty level in filling the job."}, "doc.workday.difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill_code", "block_contents": "Code indicating the difficulty level in filling the position."}, "doc.workday.discharge_date": {"name": "discharge_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.discharge_date", "block_contents": "The date on which the individual was discharged from military service."}, "doc.workday.earliest_hire_date": {"name": "earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_hire_date", "block_contents": "Earliest date when the position can be filled."}, "doc.workday.earliest_overlap_date": {"name": "earliest_overlap_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_overlap_date", "block_contents": "Earliest date when the position can overlap with other positions."}, "doc.workday.effective_date": {"name": "effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.effective_date", "block_contents": "Date when the job profile becomes effective."}, "doc.workday.eligible_for_hire": {"name": "eligible_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_hire", "block_contents": "Flag indicating whether the worker is eligible for hire."}, "doc.workday.eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_rehire_on_latest_termination", "block_contents": "Flag indicating whether the worker is eligible for rehire based on the latest termination."}, "doc.workday.email_address": {"name": "email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_address", "block_contents": "The actual email address of the person."}, "doc.workday.email_code": {"name": "email_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_code", "block_contents": "A code or label associated with the type or purpose of the email address."}, "doc.workday.email_comment": {"name": "email_comment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_comment", "block_contents": "Any additional comments or notes related to the email address."}, "doc.workday.employed_five_years": {"name": "employed_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_five_years", "block_contents": "Tracks whether a worker was employed at least five years."}, "doc.workday.employed_one_year": {"name": "employed_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_one_year", "block_contents": "Tracks whether a worker was employed at least one year."}, "doc.workday.employed_ten_years": {"name": "employed_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_ten_years", "block_contents": "Tracks whether a worker was employed at least ten years."}, "doc.workday.employed_thirty_years": {"name": "employed_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_thirty_years", "block_contents": "Tracks whether a worker was employed at least thirty years."}, "doc.workday.employed_twenty_years": {"name": "employed_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_twenty_years", "block_contents": "Tracks whether a worker was employed at least twenty years."}, "doc.workday.employee_compensation_currency": {"name": "employee_compensation_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_currency", "block_contents": "Currency code used for the worker's employee compensation."}, "doc.workday.employee_compensation_frequency": {"name": "employee_compensation_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_frequency", "block_contents": "Frequency of payment for the worker's employee compensation."}, "doc.workday.employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's employee compensation."}, "doc.workday.employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_base_pay", "block_contents": "Total base pay for the worker's employee compensation."}, "doc.workday.employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's employee compensation."}, "doc.workday.employee_type": {"name": "employee_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_type", "block_contents": "The type of employee associated with the worker position."}, "doc.workday.end_date": {"name": "end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_date", "block_contents": "The end date of the worker position."}, "doc.workday.end_employment_date": {"name": "end_employment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_employment_date", "block_contents": "Date when the worker's employment is scheduled to end."}, "doc.workday.estimated_leave_end_date": {"name": "estimated_leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.estimated_leave_end_date", "block_contents": "The estimated end date of the leave."}, "doc.workday.ethnicity_code": {"name": "ethnicity_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_code", "block_contents": "The code representing the ethnicity of the individual."}, "doc.workday.ethnicity_codes": {"name": "ethnicity_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_codes", "block_contents": "String aggregation of all ethnicity codes associated with an individual."}, "doc.workday.ethnicity_id": {"name": "ethnicity_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_id", "block_contents": "The identifier associated with the ethnicity."}, "doc.workday.exclude_from_head_count": {"name": "exclude_from_head_count", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.exclude_from_head_count", "block_contents": "Flag indicating whether the position is excluded from headcount."}, "doc.workday.expected_assignment_end_date": {"name": "expected_assignment_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_assignment_end_date", "block_contents": "The expected end date of the assignment associated with the worker position."}, "doc.workday.expected_date_of_return": {"name": "expected_date_of_return", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_date_of_return", "block_contents": "Expected date of the worker's return."}, "doc.workday.expected_due_date": {"name": "expected_due_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_due_date", "block_contents": "The expected due date."}, "doc.workday.expected_retirement_date": {"name": "expected_retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_retirement_date", "block_contents": "Expected date of the worker's retirement."}, "doc.workday.external_employee": {"name": "external_employee", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_employee", "block_contents": "Flag indicating whether the worker is an external employee."}, "doc.workday.external_url": {"name": "external_url", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_url", "block_contents": "External URL associated with the organization."}, "doc.workday.federal_withholding_fein": {"name": "federal_withholding_fein", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.federal_withholding_fein", "block_contents": "The Federal Employer Identification Number (FEIN) for federal withholding."}, "doc.workday.first_day_of_work": {"name": "first_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_day_of_work", "block_contents": "The date when the worker started their first day of work."}, "doc.workday.first_name": {"name": "first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_name", "block_contents": "The first name of the individual."}, "doc.workday.frequency": {"name": "frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.frequency", "block_contents": "The frequency associated with the worker position."}, "doc.workday.fte_percent": {"name": "fte_percent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.fte_percent", "block_contents": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek"}, "doc.workday.full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_name_singapore_malaysia", "block_contents": "The full name as used in Singapore and Malaysia."}, "doc.workday.full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_time_equivalent_percentage", "block_contents": "The full-time equivalent (FTE) percentage associated with the worker position."}, "doc.workday.gender": {"name": "gender", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.gender", "block_contents": "The gender of the individual."}, "doc.workday.has_international_assignment": {"name": "has_international_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.has_international_assignment", "block_contents": "Flag indicating whether the worker has an international assignment."}, "doc.workday.headcount_restriction_code": {"name": "headcount_restriction_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.headcount_restriction_code", "block_contents": "The code associated with headcount restriction for the worker position."}, "doc.workday.hereditary_suffix": {"name": "hereditary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hereditary_suffix", "block_contents": "The hereditary suffix, if applicable (e.g., Jr, Sr)."}, "doc.workday.hire_date": {"name": "hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_date", "block_contents": "The date when the worker was hired."}, "doc.workday.hire_reason": {"name": "hire_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_reason", "block_contents": "The reason for hiring the worker."}, "doc.workday.hire_rescinded": {"name": "hire_rescinded", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_rescinded", "block_contents": "Flag indicating whether the worker's hire was rescinded."}, "doc.workday.hiring_freeze": {"name": "hiring_freeze", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hiring_freeze", "block_contents": "Flag indicating whether the organization is under a hiring freeze."}, "doc.workday.hispanic_or_latino": {"name": "hispanic_or_latino", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hispanic_or_latino", "block_contents": "lag indicating whether the individual is Hispanic or Latino."}, "doc.workday.home_country": {"name": "home_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.home_country", "block_contents": "The home country of the worker."}, "doc.workday.honorary_suffix": {"name": "honorary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.honorary_suffix", "block_contents": "The honorary suffix, if applicable."}, "doc.workday.host_country": {"name": "host_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.host_country", "block_contents": "The host country associated with the worker."}, "doc.workday.hourly_frequency_currency": {"name": "hourly_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_currency", "block_contents": "Currency code used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_frequency", "block_contents": "Frequency of payment for the worker's hourly compensation."}, "doc.workday.hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_base_pay", "block_contents": "Total base pay for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's hourly compensation."}, "doc.workday.hukou_locality": {"name": "hukou_locality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_locality", "block_contents": "The locality associated with the Hukou."}, "doc.workday.hukou_postal_code": {"name": "hukou_postal_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_postal_code", "block_contents": "The postal code associated with the Hukou."}, "doc.workday.hukou_region": {"name": "hukou_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_region", "block_contents": "The region associated with the Hukou."}, "doc.workday.hukou_subregion": {"name": "hukou_subregion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_subregion", "block_contents": "The subregion associated with the Hukou."}, "doc.workday.hukou_type": {"name": "hukou_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_type", "block_contents": "The type of Hukou."}, "doc.workday.id": {"name": "id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.id", "block_contents": "Unique identifier."}, "doc.workday.inactive": {"name": "inactive", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive", "block_contents": "Flag indicating whether this is inactive."}, "doc.workday.inactive_date": {"name": "inactive_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive_date", "block_contents": "Date when the organization becomes inactive"}, "doc.workday.include_job_code_in_name": {"name": "include_job_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_job_code_in_name", "block_contents": "Flag indicating whether to include the job code in the job profile name."}, "doc.workday.include_manager_in_name": {"name": "include_manager_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_manager_in_name", "block_contents": "Flag indicating whether to include the manager in the organization name."}, "doc.workday.include_organization_code_in_name": {"name": "include_organization_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_organization_code_in_name", "block_contents": "Flag indicating whether to include the organization code in the name."}, "doc.workday.index": {"name": "index", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.index", "block_contents": "An index for a particular identifier."}, "doc.workday.international_assignment_type": {"name": "international_assignment_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.international_assignment_type", "block_contents": "The type of international assignment associated with the worker position."}, "doc.workday.is_critical_job": {"name": "is_critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_critical_job", "block_contents": "Flag indicating whether the position is considered critical based on the job profile."}, "doc.workday.is_current_employee_five_years": {"name": "is_current_employee_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_five_years", "block_contents": "Tracks whether a worker is active for more than five years."}, "doc.workday.is_current_employee_one_year": {"name": "is_current_employee_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_one_year", "block_contents": "Tracks whether a worker is active for more than a year."}, "doc.workday.is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_ten_years", "block_contents": "Tracks whether a worker is active for more than ten years."}, "doc.workday.is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_thirty_years", "block_contents": "Tracks whether a worker is active for more than thirty years."}, "doc.workday.is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_twenty_years", "block_contents": "Tracks whether a worker is active for more than twenty years."}, "doc.workday.is_employed": {"name": "is_employed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_employed", "block_contents": "Is the worker currently employed?"}, "doc.workday.is_military_service": {"name": "is_military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_military_service", "block_contents": "Whether the employee served in the military."}, "doc.workday.is_primary_job": {"name": "is_primary_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_primary_job", "block_contents": "Flag indicating whether the job is the primary job for the worker."}, "doc.workday.is_regrettable_termination": {"name": "is_regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_regrettable_termination", "block_contents": "Has the worker been regrettably terminated?"}, "doc.workday.is_terminated": {"name": "is_terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_terminated", "block_contents": "Has the worker been terminated?"}, "doc.workday.is_user_active": {"name": "is_user_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_user_active", "block_contents": "Is the user currently active."}, "doc.workday.job_category_code": {"name": "job_category_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_code", "block_contents": "Code indicating the category of the job profile associated with the position."}, "doc.workday.job_category_id": {"name": "job_category_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_id", "block_contents": "Identifier for the job category."}, "doc.workday.job_description": {"name": "job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description", "block_contents": "Detailed description of the job associated with the position."}, "doc.workday.job_description_summary": {"name": "job_description_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description_summary", "block_contents": "Summary or overview of the job description for the position."}, "doc.workday.job_exempt": {"name": "job_exempt", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_exempt", "block_contents": "Indicates whether the job is exempt from certain regulations."}, "doc.workday.job_family": {"name": "job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family", "block_contents": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles."}, "doc.workday.job_family_code": {"name": "job_family_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_code", "block_contents": "Code assigned to the job family"}, "doc.workday.job_family_codes": {"name": "job_family_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_codes", "block_contents": "String array of all job family codes assigned to a job profile."}, "doc.workday.job_family_group": {"name": "job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group", "block_contents": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics."}, "doc.workday.job_family_group_code": {"name": "job_family_group_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_code", "block_contents": "Code assigned to the job family group for reference and categorization."}, "doc.workday.job_family_group_codes": {"name": "job_family_group_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_codes", "block_contents": "String array of all job family group codes assigned to a job profile."}, "doc.workday.job_family_group_id": {"name": "job_family_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_id", "block_contents": "Identifier for the job family group."}, "doc.workday.job_family_group_summary": {"name": "job_family_group_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summary", "block_contents": "The summary of the job family group."}, "doc.workday.job_family_group_summaries": {"name": "job_family_group_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summaries", "block_contents": "String array of all job family group summaries assigned to a job profile."}, "doc.workday.job_family_id": {"name": "job_family_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_id", "block_contents": "Identifier for the job family."}, "doc.workday.job_family_job_family_group": {"name": "job_family_job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_family_group", "block_contents": "Represents the relationship between job families and job family groups in the Workday dataset."}, "doc.workday.job_family_job_profile": {"name": "job_family_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_profile", "block_contents": "Represents the relationship between job families and job profiles in the Workday dataset."}, "doc.workday.job_family_summary": {"name": "job_family_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summary", "block_contents": "The summary of the job family."}, "doc.workday.job_family_summaries": {"name": "job_family_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summaries", "block_contents": "String array of all job family summaries assigned to a job profile."}, "doc.workday.job_group_id": {"name": "job_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_group_id", "block_contents": "The unique identifier for the job group."}, "doc.workday.job_posting_title": {"name": "job_posting_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_posting_title", "block_contents": "Title used for job postings associated with the position."}, "doc.workday.job_private_title": {"name": "job_private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_private_title", "block_contents": "The private title associated with the job."}, "doc.workday.job_profile": {"name": "job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile", "block_contents": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes."}, "doc.workday.job_profile_code": {"name": "job_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_code", "block_contents": "Code assigned to the job profile."}, "doc.workday.job_profile_description": {"name": "job_profile_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_description", "block_contents": "Brief description of the job profile."}, "doc.workday.job_profile_id": {"name": "job_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_id", "block_contents": "Identifier for the job profile."}, "doc.workday.job_summary": {"name": "job_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_summary", "block_contents": "The summary of the job."}, "doc.workday.job_title": {"name": "job_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_title", "block_contents": "The title of the job for the worker."}, "doc.workday.last_date_for_which_paid": {"name": "last_date_for_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_date_for_which_paid", "block_contents": "The last date being paid before leave."}, "doc.workday.last_datefor_which_paid": {"name": "last_datefor_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_datefor_which_paid", "block_contents": "Last date for which the worker was paid."}, "doc.workday.last_medical_exam_date": {"name": "last_medical_exam_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_date", "block_contents": "The date of the last medical exam."}, "doc.workday.last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_valid_to", "block_contents": "The validity date of the last medical exam."}, "doc.workday.last_name": {"name": "last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_name", "block_contents": "The last name or surname of the individual."}, "doc.workday.last_updated_date_time": {"name": "last_updated_date_time", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_updated_date_time", "block_contents": "Date and time when the organization record was last updated."}, "doc.workday.leave_description": {"name": "leave_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_description", "block_contents": "Description of the type of leave"}, "doc.workday.leave_end_date": {"name": "leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_end_date", "block_contents": "The end date of the leave."}, "doc.workday.leave_entitlement_override": {"name": "leave_entitlement_override", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_entitlement_override", "block_contents": "Override for leave entitlement."}, "doc.workday.leave_last_day_of_work": {"name": "leave_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_last_day_of_work", "block_contents": "The last day of work associated with the leave status."}, "doc.workday.leave_of_absence_type": {"name": "leave_of_absence_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_of_absence_type", "block_contents": "The type of leave of absence."}, "doc.workday.leave_percentage": {"name": "leave_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_percentage", "block_contents": "The percentage of leave."}, "doc.workday.leave_request_event_id": {"name": "leave_request_event_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_request_event_id", "block_contents": "The unique identifier for the leave request event."}, "doc.workday.leave_return_event": {"name": "leave_return_event", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_return_event", "block_contents": "The event associated with the return from leave."}, "doc.workday.leave_start_date": {"name": "leave_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_start_date", "block_contents": "The start date of the leave."}, "doc.workday.leave_status_code": {"name": "leave_status_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_status_code", "block_contents": "The code indicating the status of the leave."}, "doc.workday.leave_type_reason": {"name": "leave_type_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_type_reason", "block_contents": "The reason for the leave type."}, "doc.workday.level": {"name": "level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.level", "block_contents": "Level associated with the job profile."}, "doc.workday.local_first_name": {"name": "local_first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name", "block_contents": "The local or native first name of the individual."}, "doc.workday.local_first_name_2": {"name": "local_first_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name_2", "block_contents": "Additional local or native first name, if applicable."}, "doc.workday.local_hukou": {"name": "local_hukou", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_hukou", "block_contents": "Flag indicating whether the Hukou is local."}, "doc.workday.local_last_name": {"name": "local_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name", "block_contents": "The local or native last name of the individual."}, "doc.workday.local_last_name_2": {"name": "local_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name_2", "block_contents": "Additional local or native last name, if applicable."}, "doc.workday.local_middle_name": {"name": "local_middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name", "block_contents": "The local or native middle name of the individual."}, "doc.workday.local_middle_name_2": {"name": "local_middle_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name_2", "block_contents": "Additional local or native middle name, if applicable."}, "doc.workday.local_secondary_last_name": {"name": "local_secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name", "block_contents": "Secondary local or native last name or surname, if applicable."}, "doc.workday.local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name_2", "block_contents": "Additional secondary local or native last name, if applicable."}, "doc.workday.local_termination_reason": {"name": "local_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_termination_reason", "block_contents": "The reason for local termination of the worker."}, "doc.workday.location": {"name": "location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location", "block_contents": "Location associated with the organization."}, "doc.workday.location_during_leave": {"name": "location_during_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location_during_leave", "block_contents": "The location during the leave."}, "doc.workday.management_level": {"name": "management_level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level", "block_contents": "Management level associated with the job profile."}, "doc.workday.management_level_code": {"name": "management_level_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level_code", "block_contents": "Code indicating the management level associated with the job profile."}, "doc.workday.manager_id": {"name": "manager_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.manager_id", "block_contents": "Identifier for the manager associated with the organization."}, "doc.workday.marital_status": {"name": "marital_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status", "block_contents": "The marital status of the individual."}, "doc.workday.marital_status_date": {"name": "marital_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status_date", "block_contents": "The date of the marital status."}, "doc.workday.medical_exam_notes": {"name": "medical_exam_notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.medical_exam_notes", "block_contents": "Notes from the medical exam."}, "doc.workday.middle_name": {"name": "middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.middle_name", "block_contents": "The middle name of the individual."}, "doc.workday.military_service": {"name": "military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_service", "block_contents": "Represents information about an individual's military service in the Workday system."}, "doc.workday.military_status": {"name": "military_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_status", "block_contents": "The military status of the worker."}, "doc.workday.months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.months_continuous_prior_employment", "block_contents": "Number of months of continuous prior employment."}, "doc.workday.most_recent_level": {"name": "most_recent_level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_level", "block_contents": "The most recent level of the worker."}, "doc.workday.most_recent_location": {"name": "most_recent_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_location", "block_contents": "The most recent location of the worker."}, "doc.workday.most_recent_position_effective_date": {"name": "most_recent_position_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_position_effective_date", "block_contents": "The most recent position effective date for the employee."}, "doc.workday.most_recent_position_end_date": {"name": "most_recent_position_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_position_end_date", "block_contents": "The most recent position end date for the employee."}, "doc.workday.most_recent_position_start_date": {"name": "most_recent_position_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_position_start_date", "block_contents": "The most recent position start date for the employee."}, "doc.workday.most_recent_position_type": {"name": "most_recent_position_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_position_type", "block_contents": "The most recent position type of the worker."}, "doc.workday.multiple_child_indicator": {"name": "multiple_child_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.multiple_child_indicator", "block_contents": "Indicator for multiple children."}, "doc.workday.native_region": {"name": "native_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region", "block_contents": "The native region of the individual."}, "doc.workday.native_region_code": {"name": "native_region_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region_code", "block_contents": "The code of the native region."}, "doc.workday.not_returning": {"name": "not_returning", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.not_returning", "block_contents": "Flag indicating whether the worker is not returning."}, "doc.workday.notes": {"name": "notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.notes", "block_contents": "Additional notes or comments related to the military service record."}, "doc.workday.number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_babies_adopted_children", "block_contents": "The number of babies adopted by the worker."}, "doc.workday.number_of_child_dependents": {"name": "number_of_child_dependents", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_child_dependents", "block_contents": "The number of child dependents."}, "doc.workday.number_of_previous_births": {"name": "number_of_previous_births", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_births", "block_contents": "The number of previous births."}, "doc.workday.number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_maternity_leaves", "block_contents": "The number of previous maternity leaves."}, "doc.workday.on_leave": {"name": "on_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.on_leave", "block_contents": "Indicator for whether the worker is on leave."}, "doc.workday.organization": {"name": "organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization", "block_contents": "Identifier for the organization."}, "doc.workday.organization_code": {"name": "organization_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_code", "block_contents": "Code associated with the organization."}, "doc.workday.organization_description": {"name": "organization_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_description", "block_contents": "The description of the organization."}, "doc.workday.organization_id": {"name": "organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_id", "block_contents": "Identifier for the organization."}, "doc.workday.organization_job_family": {"name": "organization_job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_job_family", "block_contents": "Captures the associations between different organizational entities and the job families they are linked to."}, "doc.workday.organization_location": {"name": "organization_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_location", "block_contents": "The location of the organization."}, "doc.workday.organization_name": {"name": "organization_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_name", "block_contents": "Name of the organization."}, "doc.workday.organization_owner_id": {"name": "organization_owner_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_owner_id", "block_contents": "Identifier for the owner of the organization."}, "doc.workday.organization_role": {"name": "organization_role", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role", "block_contents": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities."}, "doc.workday.organization_role_code": {"name": "organization_role_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_code", "block_contents": "Code assigned to the organization role for reference and categorization."}, "doc.workday.organization_role_id": {"name": "organization_role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_id", "block_contents": "The role id associated with the organization."}, "doc.workday.organization_role_worker": {"name": "organization_role_worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_worker", "block_contents": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill."}, "doc.workday.organization_sub_type": {"name": "organization_sub_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_sub_type", "block_contents": "Subtype or classification of the organization."}, "doc.workday.organization_type": {"name": "organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_type", "block_contents": "Type or category of the organization."}, "doc.workday.organization_worker_code": {"name": "organization_worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_worker_code", "block_contents": "The worker code associated with the organization."}, "doc.workday.original_hire_date": {"name": "original_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.original_hire_date", "block_contents": "The original date when the worker was hired."}, "doc.workday.paid_fte": {"name": "paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_fte", "block_contents": "The paid full-time equivalent (FTE) associated with the worker position."}, "doc.workday.paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_time_off_accrual_effect", "block_contents": "The effect of leave on paid time off accrual."}, "doc.workday.pay_group": {"name": "pay_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group", "block_contents": "The pay group associated with the worker position."}, "doc.workday.pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_currency", "block_contents": "Currency code used for the worker's pay group frequency."}, "doc.workday.pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_frequency", "block_contents": "Frequency of payment for the worker's pay group."}, "doc.workday.pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's pay group."}, "doc.workday.pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_base_pay", "block_contents": "Total base pay for the worker's pay group."}, "doc.workday.pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's pay group."}, "doc.workday.pay_rate": {"name": "pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate", "block_contents": "The pay rate associated with the worker position."}, "doc.workday.pay_rate_type": {"name": "pay_rate_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate_type", "block_contents": "The type of pay rate associated with the worker position."}, "doc.workday.pay_through_date": {"name": "pay_through_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_through_date", "block_contents": "The date through which the worker is paid."}, "doc.workday.payroll_effect": {"name": "payroll_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_effect", "block_contents": "The effect of leave on payroll."}, "doc.workday.payroll_entity": {"name": "payroll_entity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_entity", "block_contents": "The payroll entity associated with the worker position."}, "doc.workday.payroll_file_number": {"name": "payroll_file_number", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_file_number", "block_contents": "The file number associated with payroll for the worker position."}, "doc.workday.person_contact_email_address": {"name": "person_contact_email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address", "block_contents": "Represents the email addresses associated with a person in the Workday system."}, "doc.workday.person_contact_email_address_id": {"name": "person_contact_email_address_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address_id", "block_contents": "The identifier of the personal contact email address."}, "doc.workday.person_name": {"name": "person_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name", "block_contents": "Represents the name information for an individual in the Workday system."}, "doc.workday.person_name_type": {"name": "person_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name_type", "block_contents": "The type or category of the person name (e.g., legal name, preferred name)."}, "doc.workday.personal_info_system_id": {"name": "personal_info_system_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_info_system_id", "block_contents": "The system ID associated with the personal information of the individual."}, "doc.workday.personal_information": {"name": "personal_information", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information", "block_contents": "The personal information associated with each worker."}, "doc.workday.personal_information_ethnicity": {"name": "personal_information_ethnicity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_ethnicity", "block_contents": "Represents information about the ethnicity of an individual in the Workday system."}, "doc.workday.personal_information_id": {"name": "personal_information_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_id", "block_contents": "The identifier for each personal information record."}, "doc.workday.personal_information_type": {"name": "personal_information_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_type", "block_contents": "The type of personal information record."}, "doc.workday.personnel_file_agency": {"name": "personnel_file_agency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personnel_file_agency", "block_contents": "The agency associated with the personnel file."}, "doc.workday.political_affiliation": {"name": "political_affiliation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.political_affiliation", "block_contents": "The political affiliation of the individual."}, "doc.workday.position": {"name": "position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position", "block_contents": "Resource for understanding the details and attributes associated with each position."}, "doc.workday.position_code": {"name": "position_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_code", "block_contents": "Code associated with the position for reference and categorization."}, "doc.workday.position_days": {"name": "position_days", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_days", "block_contents": "The days the worker held positions at the company."}, "doc.workday.position_id": {"name": "position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_id", "block_contents": "Identifier for the specific position."}, "doc.workday.position_job_profile": {"name": "position_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile", "block_contents": "Captures the associations between specific positions and the job profiles they are linked to."}, "doc.workday.position_job_profile_name": {"name": "position_job_profile_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile_name", "block_contents": "Name associated with the job profile linked to the position."}, "doc.workday.position_organization": {"name": "position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization", "block_contents": "Captures the associations between specific positions and the organizations to which they belong."}, "doc.workday.position_organization_type": {"name": "position_organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization_type", "block_contents": "Type or category of the position within the organization."}, "doc.workday.position_time_type_code": {"name": "position_time_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_time_type_code", "block_contents": "Code indicating the time type associated with the position."}, "doc.workday.prefix_salutation": {"name": "prefix_salutation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_salutation", "block_contents": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.)."}, "doc.workday.prefix_title": {"name": "prefix_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title", "block_contents": "The prefix or title associated with the name (e.g., Professor)."}, "doc.workday.prefix_title_code": {"name": "prefix_title_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title_code", "block_contents": "The code associated with the prefix or title."}, "doc.workday.primary_compensation_basis": {"name": "primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis", "block_contents": "Primary basis of compensation for the position."}, "doc.workday.primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_amount_change", "block_contents": "Change in the amount of the primary compensation basis."}, "doc.workday.primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_percent_change", "block_contents": "Change in the percentage of the primary compensation basis."}, "doc.workday.primary_nationality": {"name": "primary_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_nationality", "block_contents": "The primary nationality of the individual."}, "doc.workday.primary_termination_category": {"name": "primary_termination_category", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_category", "block_contents": "The primary termination category for the worker."}, "doc.workday.primary_termination_reason": {"name": "primary_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_reason", "block_contents": "The primary termination reason for the worker."}, "doc.workday.private_title": {"name": "private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.private_title", "block_contents": "Private title associated with the job profile."}, "doc.workday.probation_end_date": {"name": "probation_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_end_date", "block_contents": "The date when the worker's probation ends."}, "doc.workday.probation_start_date": {"name": "probation_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_start_date", "block_contents": "The date when the worker's probation starts."}, "doc.workday.professional_suffix": {"name": "professional_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.professional_suffix", "block_contents": "The professional suffix, if applicable (e.g., Esq., CPA)."}, "doc.workday.public_job": {"name": "public_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.public_job", "block_contents": "Flag indicating whether the job is public."}, "doc.workday.rank": {"name": "rank", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rank", "block_contents": "The rank achieved by the individual during military service."}, "doc.workday.reason_reference_id": {"name": "reason_reference_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.reason_reference_id", "block_contents": "The reference ID for the termination reason."}, "doc.workday.referral_payment_plan": {"name": "referral_payment_plan", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.referral_payment_plan", "block_contents": "Referral payment plan associated with the job profile."}, "doc.workday.region_of_birth": {"name": "region_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth", "block_contents": "The region of birth of the individual."}, "doc.workday.region_of_birth_code": {"name": "region_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth_code", "block_contents": "The code of the region of birth."}, "doc.workday.regrettable_termination": {"name": "regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regrettable_termination", "block_contents": "Flag indicating whether the worker's termination is regrettable."}, "doc.workday.regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regular_paid_equivalent_hours", "block_contents": "The regular paid equivalent hours associated with the worker position."}, "doc.workday.rehire": {"name": "rehire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rehire", "block_contents": "Flag indicating whether the worker is eligible for rehire."}, "doc.workday.religion": {"name": "religion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religion", "block_contents": "The religion of the individual."}, "doc.workday.religious_suffix": {"name": "religious_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religious_suffix", "block_contents": "The religious suffix, if applicable."}, "doc.workday.resignation_date": {"name": "resignation_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.resignation_date", "block_contents": "The date when the worker resigned."}, "doc.workday.retired": {"name": "retired", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retired", "block_contents": "Flag indicating whether the worker is retired."}, "doc.workday.retirement_date": {"name": "retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_date", "block_contents": "The date when the worker retired."}, "doc.workday.retirement_eligibility_date": {"name": "retirement_eligibility_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_eligibility_date", "block_contents": "The date when the worker becomes eligible for retirement."}, "doc.workday.return_unknown": {"name": "return_unknown", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.return_unknown", "block_contents": "Flag indicating whether the worker's return status is unknown."}, "doc.workday.role_id": {"name": "role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.role_id", "block_contents": "Identifier for the specific role."}, "doc.workday.royal_suffix": {"name": "royal_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.royal_suffix", "block_contents": "The royal suffix, if applicable."}, "doc.workday.scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the worker position."}, "doc.workday.secondary_last_name": {"name": "secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.secondary_last_name", "block_contents": "Secondary last name or surname, if applicable."}, "doc.workday.seniority_date": {"name": "seniority_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.seniority_date", "block_contents": "The date when the worker's seniority is recorded."}, "doc.workday.service": {"name": "service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service", "block_contents": "The specific military service branch in which the individual served."}, "doc.workday.service_type": {"name": "service_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service_type", "block_contents": "The type or category of military service (e.g., active duty, reserve, etc.)."}, "doc.workday.severance_date": {"name": "severance_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.severance_date", "block_contents": "The date when the worker's severance is recorded."}, "doc.workday.single_parent_indicator": {"name": "single_parent_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.single_parent_indicator", "block_contents": "Indicator for a single parent."}, "doc.workday.social_benefit": {"name": "social_benefit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_benefit", "block_contents": "The social benefit associated with the individual."}, "doc.workday.social_security_disability_code": {"name": "social_security_disability_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_security_disability_code", "block_contents": "The code indicating social security disability."}, "doc.workday.social_suffix": {"name": "social_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix", "block_contents": "The social suffix, if applicable."}, "doc.workday.social_suffix_id": {"name": "social_suffix_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix_id", "block_contents": "The identifier for the social suffix."}, "doc.workday.specify_paid_fte": {"name": "specify_paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_paid_fte", "block_contents": "Flag indicating whether to specify paid FTE for the worker position."}, "doc.workday.specify_working_fte": {"name": "specify_working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_working_fte", "block_contents": "Flag indicating whether to specify working FTE for the worker position."}, "doc.workday.staffing_model": {"name": "staffing_model", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.staffing_model", "block_contents": "Staffing model associated with the organization"}, "doc.workday.start_date": {"name": "start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_date", "block_contents": "The start date of the worker position."}, "doc.workday.start_international_assignment_reason": {"name": "start_international_assignment_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_international_assignment_reason", "block_contents": "The reason for starting an international assignment associated with the worker position."}, "doc.workday.status": {"name": "status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status", "block_contents": "The status of the individual's military service (e.g., active, inactive, retired)."}, "doc.workday.status_begin_date": {"name": "status_begin_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status_begin_date", "block_contents": "The date on which the current military service status began."}, "doc.workday.stock_vesting_effect": {"name": "stock_vesting_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stock_vesting_effect", "block_contents": "The effect of leave on stock vesting."}, "doc.workday.stop_payment_date": {"name": "stop_payment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stop_payment_date", "block_contents": "The date when stop payment occurs."}, "doc.workday.summary": {"name": "summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.summary", "block_contents": "Summary or overview of the job profile."}, "doc.workday.superior_organization_id": {"name": "superior_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.superior_organization_id", "block_contents": "Identifier for the superior organization, if applicable."}, "doc.workday.supervisory_organization_id": {"name": "supervisory_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_organization_id", "block_contents": "Identifier for the supervisory organization associated with the position."}, "doc.workday.supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_availability_date", "block_contents": "Availability date for supervisory positions within the organization."}, "doc.workday.supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_earliest_hire_date", "block_contents": "Earliest hire date for supervisory positions within the organization."}, "doc.workday.supervisory_position_time_type": {"name": "supervisory_position_time_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_time_type", "block_contents": "Time type associated with supervisory positions."}, "doc.workday.supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_worker_type", "block_contents": "Worker type associated with supervisory positions."}, "doc.workday.terminated": {"name": "terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.terminated", "block_contents": "Flag indicating whether the worker is terminated."}, "doc.workday.termination_date": {"name": "termination_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_date", "block_contents": "The date when the worker is terminated."}, "doc.workday.termination_involuntary": {"name": "termination_involuntary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_involuntary", "block_contents": "Flag indicating whether the termination is involuntary."}, "doc.workday.termination_last_day_of_work": {"name": "termination_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_last_day_of_work", "block_contents": "The last day of work for the worker during termination."}, "doc.workday.tertiary_last_name": {"name": "tertiary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tertiary_last_name", "block_contents": "Tertiary last name or surname, if applicable."}, "doc.workday.time_off_service_date": {"name": "time_off_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.time_off_service_date", "block_contents": "The date when the worker's time-off service starts."}, "doc.workday.title": {"name": "title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.title", "block_contents": "Title associated with the job profile."}, "doc.workday.tobacco_use": {"name": "tobacco_use", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tobacco_use", "block_contents": "Flag indicating whether the individual uses tobacco."}, "doc.workday.top_level_organization_id": {"name": "top_level_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.top_level_organization_id", "block_contents": "Identifier for the top-level organization, if applicable."}, "doc.workday.union_code": {"name": "union_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_code", "block_contents": "Code associated with the union related to the job profile."}, "doc.workday.union_membership_requirement": {"name": "union_membership_requirement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_membership_requirement", "block_contents": "Flag indicating whether union membership is a requirement for the job profile."}, "doc.workday.universal_id": {"name": "universal_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.universal_id", "block_contents": "The universal ID associated with the worker."}, "doc.workday.user_id": {"name": "user_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.user_id", "block_contents": "The identifier for the user associated with the worker."}, "doc.workday.vesting_date": {"name": "vesting_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.vesting_date", "block_contents": "The date when the worker's vesting starts."}, "doc.workday.visibility": {"name": "visibility", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.visibility", "block_contents": "Visibility level of the organization."}, "doc.workday.week_of_confinement": {"name": "week_of_confinement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.week_of_confinement", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_hours_profile": {"name": "work_hours_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_hours_profile", "block_contents": "The work hours profile associated with the worker position."}, "doc.workday.work_related": {"name": "work_related", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_related", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_shift": {"name": "work_shift", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift", "block_contents": "The work shift associated with the worker position."}, "doc.workday.work_shift_required": {"name": "work_shift_required", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift_required", "block_contents": "Flag indicating whether a work shift is required."}, "doc.workday.work_space": {"name": "work_space", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_space", "block_contents": "The work space associated with the worker position."}, "doc.workday.work_study_award_source_code": {"name": "work_study_award_source_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_award_source_code", "block_contents": "Code associated with the source of work study awards."}, "doc.workday.work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_requirement_option_code", "block_contents": "Code associated with work study requirement options."}, "doc.workday.workday__employee_overview": {"name": "workday__employee_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__employee_overview", "block_contents": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees."}, "doc.workday.workday__job_overview": {"name": "workday__job_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__job_overview", "block_contents": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings."}, "doc.workday.workday__role_overview": {"name": "workday__role_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__role_overview", "block_contents": "Each record represents a role in an organization, enhanced with additional organizational details."}, "doc.workday.workday__organization_overview": {"name": "workday__organization_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__organization_overview", "block_contents": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures."}, "doc.workday.workday__position_overview": {"name": "workday__position_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__position_overview", "block_contents": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts."}, "doc.workday.worker": {"name": "worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker", "block_contents": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker."}, "doc.workday.worker_code": {"name": "worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_code", "block_contents": "The code associated with the worker."}, "doc.workday.worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_for_filled_position_id", "block_contents": "Identifier for the worker filling the position, if applicable."}, "doc.workday.worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_hours_profile_classification", "block_contents": "The classification of worker hours profile associated with the worker position."}, "doc.workday.worker_id": {"name": "worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_id", "block_contents": "Unique identifier for the worker."}, "doc.workday.worker_leave_status": {"name": "worker_leave_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_leave_status", "block_contents": "Represents the leave status of workers in the Workday system."}, "doc.workday.worker_levels": {"name": "worker_levels", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_levels", "block_contents": "The number of levels the worker has worked at."}, "doc.workday.worker_position": {"name": "worker_position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position", "block_contents": "Represents the positions held by workers in the Workday system"}, "doc.workday.worker_position_organization": {"name": "worker_position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_organization", "block_contents": "Ties together workers to the positions and organizations they hold in the Workday system."}, "doc.workday.worker_position_id": {"name": "worker_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_id", "block_contents": "Identifier for the worker associated with the position."}, "doc.workday.worker_positions": {"name": "worker_positions", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_positions", "block_contents": "The number of positions the worker has held"}, "doc.workday.worker_type_code": {"name": "worker_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_type_code", "block_contents": "Code indicating the type of worker associated with the position."}, "doc.workday.working_fte": {"name": "working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_fte", "block_contents": "The working full-time equivalent (FTE) associated with the worker position."}, "doc.workday.working_time_frequency": {"name": "working_time_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_frequency", "block_contents": "The frequency of working time associated with the worker position."}, "doc.workday.working_time_unit": {"name": "working_time_unit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_unit", "block_contents": "The unit of working time associated with the worker position."}, "doc.workday.working_time_value": {"name": "working_time_value", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_value", "block_contents": "The value of working time associated with the worker position."}, "doc.workday.date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_pay_group_assignment", "block_contents": "Date a group's pay is assigned to be processed."}, "doc.workday.primary_business_site": {"name": "primary_business_site", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_business_site", "block_contents": "Primary location a worker's business is situated."}, "doc.workday.used_in_change_organization_assignments": {"name": "used_in_change_organization_assignments", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.used_in_change_organization_assignments", "block_contents": "If a worker has opted to change these organization assignments."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {}, "parent_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.workday__job_overview": ["model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_group", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_profile"], "model.workday.workday__position_overview": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"], "model.workday.workday__organization_overview": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"], "model.workday.stg_workday__position": ["model.workday.stg_workday__position_base"], "model.workday.stg_workday__job_family_group": ["model.workday.stg_workday__job_family_group_base"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "model.workday.stg_workday__organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "model.workday.stg_workday__organization_role": ["model.workday.stg_workday__organization_role_base"], "model.workday.stg_workday__worker_position": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "model.workday.stg_workday__position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "model.workday.stg_workday__worker_position_organization": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.stg_workday__job_profile": ["model.workday.stg_workday__job_profile_base"], "model.workday.stg_workday__position_organization": ["model.workday.stg_workday__position_organization_base"], "model.workday.stg_workday__worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "model.workday.stg_workday__person_name": ["model.workday.stg_workday__person_name_base"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "model.workday.stg_workday__organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "model.workday.stg_workday__job_family": ["model.workday.stg_workday__job_family_base"], "model.workday.stg_workday__military_service": ["model.workday.stg_workday__military_service_base"], "model.workday.stg_workday__personal_information": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "model.workday.stg_workday__worker": ["model.workday.stg_workday__worker_base"], "model.workday.stg_workday__organization": ["model.workday.stg_workday__organization_base"], "model.workday.stg_workday__worker_position_history": ["source.workday.workday.worker_position_history"], "model.workday.stg_workday__worker_history": ["source.workday.workday.worker_history"], "model.workday.stg_workday__personal_information_history": ["source.workday.workday.personal_information_history"], "model.workday.stg_workday__worker_position_organization_history": ["source.workday.workday.worker_position_organization_history"], "model.workday.stg_workday__job_family_job_family_group_base": ["source.workday.workday.job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["source.workday.workday.personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["source.workday.workday.job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["source.workday.workday.worker_position_organization_history"], "model.workday.stg_workday__position_base": ["source.workday.workday.position"], "model.workday.stg_workday__person_contact_email_address_base": ["source.workday.workday.person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["source.workday.workday.organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["source.workday.workday.job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["source.workday.workday.position_organization"], "model.workday.stg_workday__organization_role_base": ["source.workday.workday.organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["source.workday.workday.worker_leave_status"], "model.workday.stg_workday__job_family_base": ["source.workday.workday.job_family"], "model.workday.stg_workday__job_profile_base": ["source.workday.workday.job_profile"], "model.workday.stg_workday__organization_base": ["source.workday.workday.organization"], "model.workday.stg_workday__organization_role_worker_base": ["source.workday.workday.organization_role_worker"], "model.workday.stg_workday__worker_base": ["source.workday.workday.worker_history"], "model.workday.stg_workday__position_job_profile_base": ["source.workday.workday.position_job_profile"], "model.workday.stg_workday__worker_position_base": ["source.workday.workday.worker_position_history"], "model.workday.stg_workday__person_name_base": ["source.workday.workday.person_name"], "model.workday.stg_workday__military_service_base": ["source.workday.workday.military_service"], "model.workday.stg_workday__personal_information_base": ["source.workday.workday.personal_information_history"], "model.workday.workday__monthly_summary": ["model.workday.workday__employee_daily_history"], "model.workday.workday__employee_daily_history": ["model.workday.int_workday__employee_history"], "model.workday.int_workday__worker_position_enriched": ["model.workday.stg_workday__worker_position"], "model.workday.int_workday__personal_details": ["model.workday.stg_workday__military_service", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__person_name", "model.workday.stg_workday__personal_information", "model.workday.stg_workday__personal_information_ethnicity"], "model.workday.int_workday__worker_details": ["model.workday.stg_workday__worker"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.int_workday__personal_details", "model.workday.int_workday__worker_details", "model.workday.int_workday__worker_position_enriched"], "model.workday.int_workday__employee_history": ["model.workday.stg_workday__personal_information_history", "model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history"], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": ["model.workday.workday__employee_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": ["model.workday.workday__job_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": ["model.workday.workday__job_overview"], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": ["model.workday.workday__position_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": ["model.workday.workday__position_overview"], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": ["model.workday.workday__organization_overview"], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": ["model.workday.workday__organization_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": ["model.workday.workday__organization_overview"], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": ["model.workday.stg_workday__job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": ["model.workday.stg_workday__job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": ["model.workday.stg_workday__job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": ["model.workday.stg_workday__job_family"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": ["model.workday.stg_workday__job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": ["model.workday.stg_workday__job_family_group"], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": ["model.workday.stg_workday__organization_role"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": ["model.workday.stg_workday__organization_role_worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": ["model.workday.stg_workday__organization_job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": ["model.workday.stg_workday__organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": ["model.workday.stg_workday__organization"], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": ["model.workday.stg_workday__position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": ["model.workday.stg_workday__position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": ["model.workday.stg_workday__position"], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": ["model.workday.stg_workday__position_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": ["model.workday.stg_workday__worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": ["model.workday.stg_workday__worker"], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": ["model.workday.stg_workday__personal_information"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": ["model.workday.stg_workday__personal_information"], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": ["model.workday.stg_workday__person_name"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": ["model.workday.stg_workday__military_service"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": ["model.workday.stg_workday__military_service"], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": ["model.workday.stg_workday__worker_position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": ["model.workday.stg_workday__worker_leave_status"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": ["model.workday.stg_workday__worker_position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": ["model.workday.stg_workday__personal_information_history"], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": ["model.workday.stg_workday__personal_information_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": ["model.workday.stg_workday__worker_history"], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": ["model.workday.stg_workday__worker_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": ["model.workday.stg_workday__worker_position_history"], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": ["model.workday.stg_workday__worker_position_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": ["model.workday.workday__monthly_summary"], "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": ["model.workday.workday__monthly_summary"], "source.workday.workday.job_profile": [], "source.workday.workday.job_family_job_profile": [], "source.workday.workday.job_family": [], "source.workday.workday.job_family_job_family_group": [], "source.workday.workday.job_family_group": [], "source.workday.workday.organization_role": [], "source.workday.workday.organization_role_worker": [], "source.workday.workday.organization_job_family": [], "source.workday.workday.organization": [], "source.workday.workday.position_organization": [], "source.workday.workday.position": [], "source.workday.workday.position_job_profile": [], "source.workday.workday.worker_history": [], "source.workday.workday.personal_information_history": [], "source.workday.workday.person_name": [], "source.workday.workday.personal_information_ethnicity": [], "source.workday.workday.military_service": [], "source.workday.workday.person_contact_email_address": [], "source.workday.workday.worker_position_history": [], "source.workday.workday.worker_leave_status": [], "source.workday.workday.worker_position_organization_history": []}, "child_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d", "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97"], "model.workday.workday__job_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857"], "model.workday.workday__position_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "test.workday.not_null_workday__position_overview_position_id.603beb3f22"], "model.workday.workday__organization_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412"], "model.workday.stg_workday__position": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e"], "model.workday.stg_workday__job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c"], "model.workday.stg_workday__organization_role_worker": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72"], "model.workday.stg_workday__organization_role": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f"], "model.workday.stg_workday__worker_position": ["model.workday.int_workday__worker_position_enriched", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755"], "model.workday.stg_workday__position_job_profile": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7"], "model.workday.stg_workday__worker_position_organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b"], "model.workday.stg_workday__job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa"], "model.workday.stg_workday__position_organization": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7"], "model.workday.stg_workday__worker_leave_status": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61"], "model.workday.stg_workday__person_name": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd"], "model.workday.stg_workday__organization_job_family": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e"], "model.workday.stg_workday__job_family": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f"], "model.workday.stg_workday__military_service": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38"], "model.workday.stg_workday__personal_information": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b"], "model.workday.stg_workday__worker": ["model.workday.int_workday__worker_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "test.workday.not_null_stg_workday__worker_worker_id.8dae310560"], "model.workday.stg_workday__organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7"], "model.workday.stg_workday__worker_position_history": ["model.workday.int_workday__employee_history", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b", "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879"], "model.workday.stg_workday__worker_history": ["model.workday.int_workday__employee_history", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df", "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72"], "model.workday.stg_workday__personal_information_history": ["model.workday.int_workday__employee_history", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c", "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc"], "model.workday.stg_workday__worker_position_organization_history": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888", "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398"], "model.workday.stg_workday__job_family_job_family_group_base": ["model.workday.stg_workday__job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["model.workday.stg_workday__personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["model.workday.stg_workday__job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["model.workday.stg_workday__worker_position_organization"], "model.workday.stg_workday__position_base": ["model.workday.stg_workday__position"], "model.workday.stg_workday__person_contact_email_address_base": ["model.workday.stg_workday__person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["model.workday.stg_workday__organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["model.workday.stg_workday__job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["model.workday.stg_workday__position_organization"], "model.workday.stg_workday__organization_role_base": ["model.workday.stg_workday__organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["model.workday.stg_workday__worker_leave_status"], "model.workday.stg_workday__job_family_base": ["model.workday.stg_workday__job_family"], "model.workday.stg_workday__job_profile_base": ["model.workday.stg_workday__job_profile"], "model.workday.stg_workday__organization_base": ["model.workday.stg_workday__organization"], "model.workday.stg_workday__organization_role_worker_base": ["model.workday.stg_workday__organization_role_worker"], "model.workday.stg_workday__worker_base": ["model.workday.stg_workday__worker"], "model.workday.stg_workday__position_job_profile_base": ["model.workday.stg_workday__position_job_profile"], "model.workday.stg_workday__worker_position_base": ["model.workday.stg_workday__worker_position"], "model.workday.stg_workday__person_name_base": ["model.workday.stg_workday__person_name"], "model.workday.stg_workday__military_service_base": ["model.workday.stg_workday__military_service"], "model.workday.stg_workday__personal_information_base": ["model.workday.stg_workday__personal_information"], "model.workday.workday__monthly_summary": ["test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab"], "model.workday.workday__employee_daily_history": ["model.workday.workday__monthly_summary"], "model.workday.int_workday__worker_position_enriched": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__personal_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.workday__employee_overview"], "model.workday.int_workday__employee_history": ["model.workday.workday__employee_daily_history"], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d": [], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": [], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": [], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": [], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": [], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": [], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": [], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": [], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": [], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": [], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": [], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": [], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": [], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": [], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": [], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": [], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": [], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": [], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": [], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": [], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": [], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": [], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": [], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": [], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": [], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": [], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": [], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": [], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": [], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": [], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": [], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": [], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": [], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": [], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": [], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c": [], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": [], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": [], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df": [], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": [], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": [], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": [], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b": [], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": [], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": [], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": [], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": [], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888": [], "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": [], "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": [], "source.workday.workday.job_profile": ["model.workday.stg_workday__job_profile_base"], "source.workday.workday.job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "source.workday.workday.job_family": ["model.workday.stg_workday__job_family_base"], "source.workday.workday.job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "source.workday.workday.job_family_group": ["model.workday.stg_workday__job_family_group_base"], "source.workday.workday.organization_role": ["model.workday.stg_workday__organization_role_base"], "source.workday.workday.organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "source.workday.workday.organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "source.workday.workday.organization": ["model.workday.stg_workday__organization_base"], "source.workday.workday.position_organization": ["model.workday.stg_workday__position_organization_base"], "source.workday.workday.position": ["model.workday.stg_workday__position_base"], "source.workday.workday.position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "source.workday.workday.worker_history": ["model.workday.stg_workday__worker_base", "model.workday.stg_workday__worker_history"], "source.workday.workday.personal_information_history": ["model.workday.stg_workday__personal_information_base", "model.workday.stg_workday__personal_information_history"], "source.workday.workday.person_name": ["model.workday.stg_workday__person_name_base"], "source.workday.workday.personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "source.workday.workday.military_service": ["model.workday.stg_workday__military_service_base"], "source.workday.workday.person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "source.workday.workday.worker_position_history": ["model.workday.stg_workday__worker_position_base", "model.workday.stg_workday__worker_position_history"], "source.workday.workday.worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "source.workday.workday.worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base", "model.workday.stg_workday__worker_position_organization_history"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json index e203889..0f3c05a 100644 --- a/docs/run_results.json +++ b/docs/run_results.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v5.json", "dbt_version": "1.7.8", "generated_at": "2024-03-07T00:46:09.161696Z", "invocation_id": "218a7437-3e28-4317-8406-f68aa2b0221b", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.846769Z", "completed_at": "2024-03-07T00:45:51.906935Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.908639Z", "completed_at": "2024-03-07T00:45:51.908658Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.06975793838500977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.866943Z", "completed_at": "2024-03-07T00:45:51.907304Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.909284Z", "completed_at": "2024-03-07T00:45:51.909287Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.06956982612609863, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.885779Z", "completed_at": "2024-03-07T00:45:51.907930Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.910102Z", "completed_at": "2024-03-07T00:45:51.910108Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.06973481178283691, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.888918Z", "completed_at": "2024-03-07T00:45:51.908162Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.910411Z", "completed_at": "2024-03-07T00:45:51.910414Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.06946611404418945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.917245Z", "completed_at": "2024-03-07T00:45:51.928072Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.929247Z", "completed_at": "2024-03-07T00:45:51.929252Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01671314239501953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.920801Z", "completed_at": "2024-03-07T00:45:51.928442Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.929940Z", "completed_at": "2024-03-07T00:45:51.929943Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.015895843505859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__military_service_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.923264Z", "completed_at": "2024-03-07T00:45:51.929462Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.931854Z", "completed_at": "2024-03-07T00:45:51.931858Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016924142837524414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.925636Z", "completed_at": "2024-03-07T00:45:51.929667Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.932100Z", "completed_at": "2024-03-07T00:45:51.932103Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.016935110092163086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.935060Z", "completed_at": "2024-03-07T00:45:51.946361Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.947868Z", "completed_at": "2024-03-07T00:45:51.947873Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016331195831298828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.938800Z", "completed_at": "2024-03-07T00:45:51.946713Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.948109Z", "completed_at": "2024-03-07T00:45:51.948113Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.015516996383666992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.941702Z", "completed_at": "2024-03-07T00:45:51.947405Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.949631Z", "completed_at": "2024-03-07T00:45:51.949634Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.012670040130615234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.943999Z", "completed_at": "2024-03-07T00:45:51.947618Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.949871Z", "completed_at": "2024-03-07T00:45:51.949875Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.012765169143676758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_name_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.953876Z", "completed_at": "2024-03-07T00:45:51.971493Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.988351Z", "completed_at": "2024-03-07T00:45:51.988358Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.03793501853942871, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.956439Z", "completed_at": "2024-03-07T00:45:51.987108Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.989041Z", "completed_at": "2024-03-07T00:45:51.989044Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0383758544921875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.978293Z", "completed_at": "2024-03-07T00:45:51.988599Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:51.990872Z", "completed_at": "2024-03-07T00:45:51.990875Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.03837895393371582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.993198Z", "completed_at": "2024-03-07T00:45:52.001737Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:52.003114Z", "completed_at": "2024-03-07T00:45:52.003121Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01265096664428711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.996136Z", "completed_at": "2024-03-07T00:45:52.001982Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:52.003356Z", "completed_at": "2024-03-07T00:45:52.003360Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.012262105941772461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.999387Z", "completed_at": "2024-03-07T00:45:52.002231Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:52.003600Z", "completed_at": "2024-03-07T00:45:52.003603Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009099006652832031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:52.013711Z", "completed_at": "2024-03-07T00:45:52.050293Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:52.050779Z", "completed_at": "2024-03-07T00:45:52.050785Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.044867753982543945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_leave_status_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:52.015957Z", "completed_at": "2024-03-07T00:45:52.051704Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:52.052785Z", "completed_at": "2024-03-07T00:45:52.052789Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.05284571647644043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:52.061186Z", "completed_at": "2024-03-07T00:45:52.063853Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:52.064304Z", "completed_at": "2024-03-07T00:45:52.064309Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004138946533203125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:51.959225Z", "completed_at": "2024-03-07T00:45:53.582021Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.585419Z", "completed_at": "2024-03-07T00:45:53.585428Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.8333981037139893, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_history", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"\n \n),\n\nfinal as (\n\n select \n id as worker_id,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"type\",\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"additional_nationality\",\n \"blood_type\",\n \"citizenship_status\",\n \"city_of_birth\",\n \"city_of_birth_code\",\n \"country_of_birth\",\n \"date_of_birth\",\n \"date_of_death\",\n \"gender\",\n \"hispanic_or_latino\",\n \"hukou_locality\",\n \"hukou_postal_code\",\n \"hukou_region\",\n \"hukou_subregion\",\n \"hukou_type\",\n \"last_medical_exam_date\",\n \"last_medical_exam_valid_to\",\n \"local_hukou\",\n \"marital_status\",\n \"marital_status_date\",\n \"medical_exam_notes\",\n \"native_region\",\n \"native_region_code\",\n \"personnel_file_agency\",\n \"political_affiliation\",\n \"primary_nationality\",\n \"region_of_birth\",\n \"region_of_birth_code\",\n \"religion\",\n \"social_benefit\",\n \"tobacco_use\",\n \"ll\"\n from base\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:52.065740Z", "completed_at": "2024-03-07T00:45:53.572330Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.581461Z", "completed_at": "2024-03-07T00:45:53.581482Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.723463773727417, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization_history", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"\n \n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id, \n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"index\",\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"date_of_pay_group_assignment\",\n \"primary_business_site\",\n \"used_in_change_organization_assignments\"\n from base\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:52.053014Z", "completed_at": "2024-03-07T00:45:53.583281Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.586334Z", "completed_at": "2024-03-07T00:45:53.586340Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.7400860786437988, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_history", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"\n \n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(effective_date as timestamp) as effective_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"academic_pay_setup_data_annual_work_period_end_date\",\n \"academic_pay_setup_data_annual_work_period_start_date\",\n \"academic_pay_setup_data_annual_work_period_work_percent_of_year\",\n \"academic_pay_setup_data_disbursement_plan_period_end_date\",\n \"academic_pay_setup_data_disbursement_plan_period_start_date\",\n \"business_site_summary_display_language\",\n \"business_site_summary_local\",\n \"business_site_summary_location\",\n \"business_site_summary_location_type\",\n \"business_site_summary_name\",\n \"business_site_summary_scheduled_weekly_hours\",\n \"business_site_summary_time_profile\",\n \"business_title\",\n \"critical_job\",\n \"default_weekly_hours\",\n \"difficulty_to_fill\",\n \"employee_type\",\n \"end_date\",\n \"exclude_from_head_count\",\n \"expected_assignment_end_date\",\n \"external_employee\",\n \"federal_withholding_fein\",\n \"frequency\",\n \"full_time_equivalent_percentage\",\n \"headcount_restriction_code\",\n \"host_country\",\n \"international_assignment_type\",\n \"is_primary_job\",\n \"job_exempt\",\n \"job_profile_id\",\n \"management_level_code\",\n \"paid_fte\",\n \"pay_group\",\n \"pay_rate\",\n \"pay_rate_type\",\n \"pay_through_date\",\n \"payroll_entity\",\n \"payroll_file_number\",\n \"regular_paid_equivalent_hours\",\n \"scheduled_weekly_hours\",\n \"specify_paid_fte\",\n \"specify_working_fte\",\n \"start_date\",\n \"start_international_assignment_reason\",\n \"work_hours_profile\",\n \"work_shift\",\n \"work_shift_required\",\n \"work_space\",\n \"worker_hours_profile_classification\",\n \"working_fte\",\n \"working_time_frequency\",\n \"working_time_unit\",\n \"working_time_value\"\n from base\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:52.007551Z", "completed_at": "2024-03-07T00:45:53.584473Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.587259Z", "completed_at": "2024-03-07T00:45:53.587266Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.7875421047210693, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_history", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\" \n \n),\n\nfinal as (\n\n select \n id as worker_id, \n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n cast(termination_date as timestamp) as termination_date,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"academic_tenure_date\",\n \"active\",\n \"active_status_date\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_frequency\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_total_salary_and_allowances\",\n \"annual_summary_currency\",\n \"annual_summary_frequency\",\n \"annual_summary_primary_compensation_basis\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_total_salary_and_allowances\",\n \"benefits_service_date\",\n \"company_service_date\",\n \"compensation_effective_date\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"continuous_service_date\",\n \"contract_assignment_details\",\n \"contract_currency_code\",\n \"contract_end_date\",\n \"contract_frequency_name\",\n \"contract_pay_rate\",\n \"contract_vendor_name\",\n \"date_entered_workforce\",\n \"days_unemployed\",\n \"eligible_for_hire\",\n \"eligible_for_rehire_on_latest_termination\",\n \"employee_compensation_currency\",\n \"employee_compensation_frequency\",\n \"employee_compensation_primary_compensation_basis\",\n \"employee_compensation_total_base_pay\",\n \"employee_compensation_total_salary_and_allowances\",\n \"expected_date_of_return\",\n \"expected_retirement_date\",\n \"first_day_of_work\",\n \"has_international_assignment\",\n \"hire_date\",\n \"hire_reason\",\n \"hire_rescinded\",\n \"hourly_frequency_currency\",\n \"hourly_frequency_frequency\",\n \"hourly_frequency_primary_compensation_basis\",\n \"hourly_frequency_total_base_pay\",\n \"hourly_frequency_total_salary_and_allowances\",\n \"last_datefor_which_paid\",\n \"local_termination_reason\",\n \"months_continuous_prior_employment\",\n \"not_returning\",\n \"original_hire_date\",\n \"pay_group_frequency_currency\",\n \"pay_group_frequency_frequency\",\n \"pay_group_frequency_primary_compensation_basis\",\n \"pay_group_frequency_total_base_pay\",\n \"pay_group_frequency_total_salary_and_allowances\",\n \"pay_through_date\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"probation_end_date\",\n \"probation_start_date\",\n \"reason_reference_id\",\n \"regrettable_termination\",\n \"rehire\",\n \"resignation_date\",\n \"retired\",\n \"retirement_date\",\n \"retirement_eligibility_date\",\n \"return_unknown\",\n \"seniority_date\",\n \"severance_date\",\n \"terminated\",\n \"termination_involuntary\",\n \"termination_last_day_of_work\",\n \"time_off_service_date\",\n \"universal_id\",\n \"user_id\",\n \"vesting_date\",\n \"worker_code\"\n from base\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.798448Z", "completed_at": "2024-03-07T00:45:53.800149Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.805674Z", "completed_at": "2024-03-07T00:45:53.805685Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.015598058700561523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.806925Z", "completed_at": "2024-03-07T00:45:53.809483Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.814980Z", "completed_at": "2024-03-07T00:45:53.814986Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.015748977661132812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.809838Z", "completed_at": "2024-03-07T00:45:53.811038Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.815339Z", "completed_at": "2024-03-07T00:45:53.815343Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.015529155731201172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.812036Z", "completed_at": "2024-03-07T00:45:53.813287Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.816189Z", "completed_at": "2024-03-07T00:45:53.816193Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.015238285064697266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.820397Z", "completed_at": "2024-03-07T00:45:53.823782Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.827647Z", "completed_at": "2024-03-07T00:45:53.827653Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.016937255859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.828362Z", "completed_at": "2024-03-07T00:45:53.830001Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.836095Z", "completed_at": "2024-03-07T00:45:53.836100Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.013091802597045898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_military_service_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.830425Z", "completed_at": "2024-03-07T00:45:53.831919Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.836456Z", "completed_at": "2024-03-07T00:45:53.836460Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013055086135864258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.833068Z", "completed_at": "2024-03-07T00:45:53.834426Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.837319Z", "completed_at": "2024-03-07T00:45:53.837324Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013076066970825195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.840646Z", "completed_at": "2024-03-07T00:45:53.841931Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.844770Z", "completed_at": "2024-03-07T00:45:53.844775Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.012792110443115234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.845331Z", "completed_at": "2024-03-07T00:45:53.846603Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.852351Z", "completed_at": "2024-03-07T00:45:53.852355Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.011200666427612305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.846932Z", "completed_at": "2024-03-07T00:45:53.849092Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.852637Z", "completed_at": "2024-03-07T00:45:53.852640Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.011252880096435547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.849948Z", "completed_at": "2024-03-07T00:45:53.851032Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.853339Z", "completed_at": "2024-03-07T00:45:53.853343Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.011279106140136719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_name_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.856006Z", "completed_at": "2024-03-07T00:45:53.857121Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.859415Z", "completed_at": "2024-03-07T00:45:53.859419Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009706974029541016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.859884Z", "completed_at": "2024-03-07T00:45:53.860932Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.865923Z", "completed_at": "2024-03-07T00:45:53.865927Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009475946426391602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.861209Z", "completed_at": "2024-03-07T00:45:53.862182Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.866165Z", "completed_at": "2024-03-07T00:45:53.866168Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.009537220001220703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.863010Z", "completed_at": "2024-03-07T00:45:53.864780Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.866759Z", "completed_at": "2024-03-07T00:45:53.866762Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.009592056274414062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.868973Z", "completed_at": "2024-03-07T00:45:53.869925Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.872111Z", "completed_at": "2024-03-07T00:45:53.872115Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008577823638916016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.872529Z", "completed_at": "2024-03-07T00:45:53.873471Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.877135Z", "completed_at": "2024-03-07T00:45:53.877138Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007742881774902344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.873710Z", "completed_at": "2024-03-07T00:45:53.874580Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.877353Z", "completed_at": "2024-03-07T00:45:53.877356Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0077860355377197266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.875261Z", "completed_at": "2024-03-07T00:45:53.876131Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.877876Z", "completed_at": "2024-03-07T00:45:53.877879Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00783395767211914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.879903Z", "completed_at": "2024-03-07T00:45:53.880789Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:53.882706Z", "completed_at": "2024-03-07T00:45:53.882709Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.013134241104125977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.887299Z", "completed_at": "2024-03-07T00:45:56.050417Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:56.052904Z", "completed_at": "2024-03-07T00:45:56.052908Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 2.312643051147461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_group", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.883098Z", "completed_at": "2024-03-07T00:45:56.049610Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:56.052286Z", "completed_at": "2024-03-07T00:45:56.052290Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 2.314582109451294, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.890988Z", "completed_at": "2024-03-07T00:45:56.050772Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:56.053226Z", "completed_at": "2024-03-07T00:45:56.053230Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 2.3239059448242188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_family_group", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:53.896717Z", "completed_at": "2024-03-07T00:45:56.049179Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:56.051408Z", "completed_at": "2024-03-07T00:45:56.051416Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 2.3119778633117676, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_profile", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:56.236263Z", "completed_at": "2024-03-07T00:45:57.912632Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:57.914710Z", "completed_at": "2024-03-07T00:45:57.914713Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.8086059093475342, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:56.223960Z", "completed_at": "2024-03-07T00:45:57.911884Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:57.914155Z", "completed_at": "2024-03-07T00:45:57.914164Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.8654499053955078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__military_service", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:56.209720Z", "completed_at": "2024-03-07T00:45:57.912881Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:57.914967Z", "completed_at": "2024-03-07T00:45:57.914971Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.870391845703125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_profile", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:56.243499Z", "completed_at": "2024-03-07T00:45:57.912305Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:57.914433Z", "completed_at": "2024-03-07T00:45:57.914437Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.8365581035614014, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_job_family", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:58.043396Z", "completed_at": "2024-03-07T00:45:59.734846Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:59.736333Z", "completed_at": "2024-03-07T00:45:59.736340Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.8759820461273193, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:58.074863Z", "completed_at": "2024-03-07T00:45:59.724177Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:59.733204Z", "completed_at": "2024-03-07T00:45:59.733230Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.848228931427002, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_worker", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:58.080609Z", "completed_at": "2024-03-07T00:45:59.724717Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:59.733791Z", "completed_at": "2024-03-07T00:45:59.733800Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.8489010334014893, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_contact_email_address", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:58.085985Z", "completed_at": "2024-03-07T00:45:59.796212Z"}, {"name": "execute", "started_at": "2024-03-07T00:45:59.796940Z", "completed_at": "2024-03-07T00:45:59.796953Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.9294161796569824, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_name", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:59.998297Z", "completed_at": "2024-03-07T00:46:01.773825Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:01.775726Z", "completed_at": "2024-03-07T00:46:01.775729Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.9938890933990479, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:59.932584Z", "completed_at": "2024-03-07T00:46:01.774586Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:01.776198Z", "completed_at": "2024-03-07T00:46:01.776202Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.9971976280212402, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:45:59.994699Z", "completed_at": "2024-03-07T00:46:01.763304Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:01.774107Z", "completed_at": "2024-03-07T00:46:01.774115Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.9976329803466797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_ethnicity", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:00.005234Z", "completed_at": "2024-03-07T00:46:01.773506Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:01.775280Z", "completed_at": "2024-03-07T00:46:01.775283Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.9241037368774414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_job_profile", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:01.933761Z", "completed_at": "2024-03-07T00:46:03.572962Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.635007Z", "completed_at": "2024-03-07T00:46:03.635016Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.879256248474121, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_organization", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:01.953760Z", "completed_at": "2024-03-07T00:46:03.635812Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.636855Z", "completed_at": "2024-03-07T00:46:03.636860Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.8787379264831543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:01.947605Z", "completed_at": "2024-03-07T00:46:03.636344Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.637812Z", "completed_at": "2024-03-07T00:46:03.637815Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.881014108657837, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_leave_status", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:01.941831Z", "completed_at": "2024-03-07T00:46:03.636626Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.638042Z", "completed_at": "2024-03-07T00:46:03.638045Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.882725715637207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.848116Z", "completed_at": "2024-03-07T00:46:03.855651Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.856948Z", "completed_at": "2024-03-07T00:46:03.856955Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.038478851318359375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.843641Z", "completed_at": "2024-03-07T00:46:03.856305Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.858448Z", "completed_at": "2024-03-07T00:46:03.858452Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.04072999954223633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, position_id, organization_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\n group by worker_id, position_id, organization_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.831157Z", "completed_at": "2024-03-07T00:46:03.856645Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.858749Z", "completed_at": "2024-03-07T00:46:03.858752Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0420989990234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.862847Z", "completed_at": "2024-03-07T00:46:03.872842Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.873406Z", "completed_at": "2024-03-07T00:46:03.873411Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013293981552124023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.870204Z", "completed_at": "2024-03-07T00:46:03.874144Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.875726Z", "completed_at": "2024-03-07T00:46:03.875730Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01432490348815918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.867307Z", "completed_at": "2024-03-07T00:46:03.874659Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.876182Z", "completed_at": "2024-03-07T00:46:03.876184Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017859935760498047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.876879Z", "completed_at": "2024-03-07T00:46:03.881243Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.888741Z", "completed_at": "2024-03-07T00:46:03.888745Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01412510871887207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.884599Z", "completed_at": "2024-03-07T00:46:03.892983Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.894173Z", "completed_at": "2024-03-07T00:46:03.894177Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.014069080352783203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.882064Z", "completed_at": "2024-03-07T00:46:03.893238Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.894405Z", "completed_at": "2024-03-07T00:46:03.894408Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014850139617919922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.890400Z", "completed_at": "2024-03-07T00:46:03.893939Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.895691Z", "completed_at": "2024-03-07T00:46:03.895694Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006713151931762695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.901096Z", "completed_at": "2024-03-07T00:46:03.906452Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.907581Z", "completed_at": "2024-03-07T00:46:03.907585Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011232852935791016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.898360Z", "completed_at": "2024-03-07T00:46:03.906703Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.907989Z", "completed_at": "2024-03-07T00:46:03.907992Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.012237071990966797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, position_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\n group by worker_id, position_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.903961Z", "completed_at": "2024-03-07T00:46:03.907151Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.908642Z", "completed_at": "2024-03-07T00:46:03.908646Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.011667013168334961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.911816Z", "completed_at": "2024-03-07T00:46:03.925066Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.925580Z", "completed_at": "2024-03-07T00:46:03.925585Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.016000986099243164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.914456Z", "completed_at": "2024-03-07T00:46:03.925798Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.926992Z", "completed_at": "2024-03-07T00:46:03.926996Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016865015029907227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.928513Z", "completed_at": "2024-03-07T00:46:03.934062Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.934736Z", "completed_at": "2024-03-07T00:46:03.934740Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008100032806396484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.931648Z", "completed_at": "2024-03-07T00:46:03.934529Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.935595Z", "completed_at": "2024-03-07T00:46:03.935598Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.005167245864868164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.937541Z", "completed_at": "2024-03-07T00:46:03.943240Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.943869Z", "completed_at": "2024-03-07T00:46:03.943873Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.007977962493896484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.940831Z", "completed_at": "2024-03-07T00:46:03.943669Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.944729Z", "completed_at": "2024-03-07T00:46:03.944732Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00811004638671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.946671Z", "completed_at": "2024-03-07T00:46:03.952300Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.953138Z", "completed_at": "2024-03-07T00:46:03.953142Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008135080337524414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_group_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.949876Z", "completed_at": "2024-03-07T00:46:03.952518Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.953359Z", "completed_at": "2024-03-07T00:46:03.953363Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007802009582519531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_group_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.955937Z", "completed_at": "2024-03-07T00:46:03.961882Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.962759Z", "completed_at": "2024-03-07T00:46:03.962764Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008482933044433594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.958751Z", "completed_at": "2024-03-07T00:46:03.962127Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.963004Z", "completed_at": "2024-03-07T00:46:03.963007Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008595943450927734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.965608Z", "completed_at": "2024-03-07T00:46:03.970606Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.971493Z", "completed_at": "2024-03-07T00:46:03.971498Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.007585763931274414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.968084Z", "completed_at": "2024-03-07T00:46:03.970838Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.971756Z", "completed_at": "2024-03-07T00:46:03.971760Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0077419281005859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_group_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.976996Z", "completed_at": "2024-03-07T00:46:03.979800Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.980651Z", "completed_at": "2024-03-07T00:46:03.980655Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007504940032958984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.974475Z", "completed_at": "2024-03-07T00:46:03.980020Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.980882Z", "completed_at": "2024-03-07T00:46:03.980885Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008251190185546875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.983491Z", "completed_at": "2024-03-07T00:46:03.989049Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.989912Z", "completed_at": "2024-03-07T00:46:03.989916Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008065938949584961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.986559Z", "completed_at": "2024-03-07T00:46:03.989274Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.990134Z", "completed_at": "2024-03-07T00:46:03.990137Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008166074752807617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.995298Z", "completed_at": "2024-03-07T00:46:03.997727Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.998593Z", "completed_at": "2024-03-07T00:46:03.998597Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.007147789001464844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.992738Z", "completed_at": "2024-03-07T00:46:03.997945Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:03.998812Z", "completed_at": "2024-03-07T00:46:03.998815Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007869958877563477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.001385Z", "completed_at": "2024-03-07T00:46:04.006286Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.006932Z", "completed_at": "2024-03-07T00:46:04.006936Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.007143974304199219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.003867Z", "completed_at": "2024-03-07T00:46:04.006699Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.007782Z", "completed_at": "2024-03-07T00:46:04.007785Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007721900939941406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.009885Z", "completed_at": "2024-03-07T00:46:04.055965Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.056396Z", "completed_at": "2024-03-07T00:46:04.056401Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0480802059173584, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__job_overview", "compiled": true, "compiled_code": "with job_profile_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.053080Z", "completed_at": "2024-03-07T00:46:04.060204Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.060739Z", "completed_at": "2024-03-07T00:46:04.060744Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.051629066467285156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.057756Z", "completed_at": "2024-03-07T00:46:04.061652Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.062611Z", "completed_at": "2024-03-07T00:46:04.062614Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00815582275390625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.062828Z", "completed_at": "2024-03-07T00:46:04.069170Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.069735Z", "completed_at": "2024-03-07T00:46:04.069742Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00833892822265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.066531Z", "completed_at": "2024-03-07T00:46:04.070965Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.072042Z", "completed_at": "2024-03-07T00:46:04.072046Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009994029998779297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.072267Z", "completed_at": "2024-03-07T00:46:04.077167Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.080572Z", "completed_at": "2024-03-07T00:46:04.080579Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009715080261230469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.077392Z", "completed_at": "2024-03-07T00:46:04.082040Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.085005Z", "completed_at": "2024-03-07T00:46:04.085009Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008765935897827148, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.082268Z", "completed_at": "2024-03-07T00:46:04.085904Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.086953Z", "completed_at": "2024-03-07T00:46:04.086956Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008539199829101562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.087185Z", "completed_at": "2024-03-07T00:46:04.091227Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.094704Z", "completed_at": "2024-03-07T00:46:04.094708Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008924245834350586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.091457Z", "completed_at": "2024-03-07T00:46:04.095589Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.096614Z", "completed_at": "2024-03-07T00:46:04.096618Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00952768325805664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.096849Z", "completed_at": "2024-03-07T00:46:04.101316Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.104356Z", "completed_at": "2024-03-07T00:46:04.104360Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008878707885742188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.101540Z", "completed_at": "2024-03-07T00:46:04.105263Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.106216Z", "completed_at": "2024-03-07T00:46:04.106219Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008323192596435547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_worker_code\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere organization_worker_code is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.106439Z", "completed_at": "2024-03-07T00:46:04.110283Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.113548Z", "completed_at": "2024-03-07T00:46:04.113552Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00845193862915039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect role_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.110517Z", "completed_at": "2024-03-07T00:46:04.114462Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.115431Z", "completed_at": "2024-03-07T00:46:04.115435Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008599996566772461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.115663Z", "completed_at": "2024-03-07T00:46:04.119480Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.122300Z", "completed_at": "2024-03-07T00:46:04.122304Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.007987022399902344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect person_contact_email_address_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\nwhere person_contact_email_address_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.119706Z", "completed_at": "2024-03-07T00:46:04.123213Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.124174Z", "completed_at": "2024-03-07T00:46:04.124177Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009491205215454102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.124390Z", "completed_at": "2024-03-07T00:46:04.129682Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.132791Z", "completed_at": "2024-03-07T00:46:04.132796Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00976705551147461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.129911Z", "completed_at": "2024-03-07T00:46:04.133726Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.134678Z", "completed_at": "2024-03-07T00:46:04.134681Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008431673049926758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect person_name_type\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\nwhere person_name_type is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.134904Z", "completed_at": "2024-03-07T00:46:04.138637Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.141643Z", "completed_at": "2024-03-07T00:46:04.141647Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008083105087280273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.138884Z", "completed_at": "2024-03-07T00:46:04.142552Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.143517Z", "completed_at": "2024-03-07T00:46:04.143521Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00836181640625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.143751Z", "completed_at": "2024-03-07T00:46:04.147598Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.151467Z", "completed_at": "2024-03-07T00:46:04.151472Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009091854095458984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.147835Z", "completed_at": "2024-03-07T00:46:04.152760Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.155839Z", "completed_at": "2024-03-07T00:46:04.155843Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00917196273803711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.153402Z", "completed_at": "2024-03-07T00:46:04.156804Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.157754Z", "completed_at": "2024-03-07T00:46:04.157757Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008201122283935547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.157981Z", "completed_at": "2024-03-07T00:46:04.164827Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.165308Z", "completed_at": "2024-03-07T00:46:04.165312Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00868988037109375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__personal_details", "compiled": true, "compiled_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__personal_details\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.161788Z", "completed_at": "2024-03-07T00:46:04.165992Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.167001Z", "completed_at": "2024-03-07T00:46:04.167004Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.006353855133056641, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.167866Z", "completed_at": "2024-03-07T00:46:04.174756Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.175229Z", "completed_at": "2024-03-07T00:46:04.175234Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008947134017944336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ethnicity_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\nwhere ethnicity_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.171380Z", "completed_at": "2024-03-07T00:46:04.176105Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.177100Z", "completed_at": "2024-03-07T00:46:04.177104Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008610725402832031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.177325Z", "completed_at": "2024-03-07T00:46:04.180383Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.183501Z", "completed_at": "2024-03-07T00:46:04.183506Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007570743560791016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__position_overview", "compiled": true, "compiled_code": "with position_data as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\n),\n\nposition_job_profile_data as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.181004Z", "completed_at": "2024-03-07T00:46:04.184492Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.185622Z", "completed_at": "2024-03-07T00:46:04.185625Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008484840393066406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.185847Z", "completed_at": "2024-03-07T00:46:04.189667Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.192549Z", "completed_at": "2024-03-07T00:46:04.192553Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008165836334228516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.189896Z", "completed_at": "2024-03-07T00:46:04.193490Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.194444Z", "completed_at": "2024-03-07T00:46:04.194447Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008468866348266602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.194678Z", "completed_at": "2024-03-07T00:46:04.198766Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.202750Z", "completed_at": "2024-03-07T00:46:04.202755Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009447097778320312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.199011Z", "completed_at": "2024-03-07T00:46:04.203658Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.204599Z", "completed_at": "2024-03-07T00:46:04.204602Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009158134460449219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.204827Z", "completed_at": "2024-03-07T00:46:04.208497Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.217089Z", "completed_at": "2024-03-07T00:46:04.217094Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.013620138168334961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.208720Z", "completed_at": "2024-03-07T00:46:04.218379Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.221795Z", "completed_at": "2024-03-07T00:46:04.221800Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01428079605102539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__worker_position_enriched", "compiled": true, "compiled_code": "with worker_position_data as (\n\n select \n *,\n now() as current_date\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_at_position,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n),\n\nworker_position_measures as (\n\n select \n worker_id,\n source_relation,\n count(distinct position_id) as worker_positions,\n count(distinct management_level_code) as worker_levels,\n sum(days_at_position) as position_days\n from worker_position_data_enhanced\n group by 1, 2\n),\n\nmost_recent_position as (\n\n select *\n from worker_position_data_enhanced\n where row_number = 1\n),\n\nworker_position_enriched as (\n\n select\n md5(cast(coalesce(cast(worker_position_data_enhanced.worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_at_position,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date,\n worker_position_measures.worker_positions,\n worker_position_measures.worker_levels, \n worker_position_measures.position_days\n from worker_position_data_enhanced\n left join worker_position_measures \n on worker_position_data_enhanced.worker_id = worker_position_measures.worker_id\n and worker_position_data_enhanced.source_relation = worker_position_measures.source_relation\n)\n\nselect * \nfrom worker_position_enriched", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_position_enriched\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.218986Z", "completed_at": "2024-03-07T00:46:04.222884Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.223839Z", "completed_at": "2024-03-07T00:46:04.223842Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008666038513183594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.224062Z", "completed_at": "2024-03-07T00:46:04.227827Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.231890Z", "completed_at": "2024-03-07T00:46:04.231894Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009183168411254883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.228064Z", "completed_at": "2024-03-07T00:46:04.233357Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.236601Z", "completed_at": "2024-03-07T00:46:04.236605Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009689807891845703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.233579Z", "completed_at": "2024-03-07T00:46:04.237501Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.238470Z", "completed_at": "2024-03-07T00:46:04.238474Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008592844009399414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.238700Z", "completed_at": "2024-03-07T00:46:04.242516Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.245454Z", "completed_at": "2024-03-07T00:46:04.245459Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008142709732055664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect leave_request_event_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\nwhere leave_request_event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.242751Z", "completed_at": "2024-03-07T00:46:04.246413Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.247370Z", "completed_at": "2024-03-07T00:46:04.247374Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008472919464111328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.247599Z", "completed_at": "2024-03-07T00:46:04.251580Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.255407Z", "completed_at": "2024-03-07T00:46:04.255411Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009185075759887695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__worker_details", "compiled": true, "compiled_code": "with worker_data as (\n\n select \n *,\n now() as current_date\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_of_employment,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_details\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.251808Z", "completed_at": "2024-03-07T00:46:04.256125Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.257158Z", "completed_at": "2024-03-07T00:46:04.257161Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.006662130355834961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.258011Z", "completed_at": "2024-03-07T00:46:04.263676Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.264158Z", "completed_at": "2024-03-07T00:46:04.264162Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007703065872192383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.261235Z", "completed_at": "2024-03-07T00:46:04.265548Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.268475Z", "completed_at": "2024-03-07T00:46:04.268479Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00819706916809082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.265770Z", "completed_at": "2024-03-07T00:46:04.269396Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.270371Z", "completed_at": "2024-03-07T00:46:04.270375Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008151054382324219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.270587Z", "completed_at": "2024-03-07T00:46:04.274287Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.277921Z", "completed_at": "2024-03-07T00:46:04.277925Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008675813674926758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.274518Z", "completed_at": "2024-03-07T00:46:04.279101Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.281860Z", "completed_at": "2024-03-07T00:46:04.281865Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008521080017089844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.279773Z", "completed_at": "2024-03-07T00:46:04.282820Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:04.283242Z", "completed_at": "2024-03-07T00:46:04.283245Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0048160552978515625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__worker_employee_enhanced", "compiled": true, "compiled_code": "with int_worker_base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_details\" \n),\n\nint_worker_personal_details as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__personal_details\" \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_position_enriched\" \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n days_at_position,\n position_start_date,\n position_end_date,\n position_effective_date,\n worker_positions,\n worker_levels,\n position_days,\n case when days_of_employment >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_of_employment >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_of_employment >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_of_employment >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_of_employment >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_of_employment >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_of_employment >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_of_employment >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_of_employment >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_of_employment >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_employee_enhanced\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.822220Z", "completed_at": "2024-03-07T00:46:05.981907Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:05.984101Z", "completed_at": "2024-03-07T00:46:05.984109Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 2.4985880851745605, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:04.284644Z", "completed_at": "2024-03-07T00:46:05.981205Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:05.983534Z", "completed_at": "2024-03-07T00:46:05.983555Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 2.035376787185669, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_overview", "compiled": true, "compiled_code": "with employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n position_id,\n position_start_date,\n \"source_relation\",\n \"worker_code\",\n \"user_id\",\n \"universal_id\",\n \"is_user_active\",\n \"is_employed\",\n \"hire_date\",\n \"departure_date\",\n \"days_of_employment\",\n \"is_terminated\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"is_regrettable_termination\",\n \"compensation_effective_date\",\n \"employee_compensation_frequency\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_summary_currency\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_primary_compensation_basis\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"first_name\",\n \"last_name\",\n \"date_of_birth\",\n \"gender\",\n \"is_hispanic_or_latino\",\n \"email_address\",\n \"ethnicity_codes\",\n \"military_status\",\n \"business_title\",\n \"job_profile_id\",\n \"employee_type\",\n \"position_location\",\n \"management_level_code\",\n \"fte_percent\",\n \"days_at_position\",\n \"position_end_date\",\n \"position_effective_date\",\n \"worker_positions\",\n \"worker_levels\",\n \"position_days\",\n \"is_employed_one_year\",\n \"is_employed_five_years\",\n \"is_employed_ten_years\",\n \"is_employed_twenty_years\",\n \"is_employed_thirty_years\",\n \"is_current_employee_one_year\",\n \"is_current_employee_five_years\",\n \"is_current_employee_ten_years\",\n \"is_current_employee_twenty_years\",\n \"is_current_employee_thirty_years\"\n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_employee_enhanced\" \n)\n\nselect * \nfrom employee_surrogate_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.331533Z", "completed_at": "2024-03-07T00:46:06.353649Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.355185Z", "completed_at": "2024-03-07T00:46:06.355198Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.03159594535827637, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__organization_overview", "compiled": true, "compiled_code": "with organization_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\n),\n\norganization_role_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\n),\n\nworker_position_organization as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.341604Z", "completed_at": "2024-03-07T00:46:06.354570Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.357457Z", "completed_at": "2024-03-07T00:46:06.357462Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.03265714645385742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.347999Z", "completed_at": "2024-03-07T00:46:06.357056Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.360257Z", "completed_at": "2024-03-07T00:46:06.360263Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.03383207321166992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.362775Z", "completed_at": "2024-03-07T00:46:06.372440Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.378506Z", "completed_at": "2024-03-07T00:46:06.378512Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.019692182540893555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.368347Z", "completed_at": "2024-03-07T00:46:06.378166Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.380036Z", "completed_at": "2024-03-07T00:46:06.380041Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.018911123275756836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.372803Z", "completed_at": "2024-03-07T00:46:06.379711Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.381848Z", "completed_at": "2024-03-07T00:46:06.381852Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01505589485168457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, position_id, position_start_date\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\n group by source_relation, worker_id, position_id, position_start_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.383599Z", "completed_at": "2024-03-07T00:46:06.391074Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.394697Z", "completed_at": "2024-03-07T00:46:06.394702Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.013956069946289062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.387831Z", "completed_at": "2024-03-07T00:46:06.394410Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.395981Z", "completed_at": "2024-03-07T00:46:06.395985Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013688802719116211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.391344Z", "completed_at": "2024-03-07T00:46:06.395719Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.397540Z", "completed_at": "2024-03-07T00:46:06.397543Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.010837078094482422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.398537Z", "completed_at": "2024-03-07T00:46:06.401454Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.401904Z", "completed_at": "2024-03-07T00:46:06.401908Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.005099058151245117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:03.917670Z", "completed_at": "2024-03-07T00:46:06.774535Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:06.777029Z", "completed_at": "2024-03-07T00:46:06.777055Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 3.0155110359191895, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__employee_history", "compiled": true, "compiled_code": "with worker_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\n),\n\nworker_position_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\n),\n\npersonal_information_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\n),\n\nworker_start_records as (\n\n select worker_id, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n _fivetran_start\n from personal_information_history\n order by worker_id, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_history_scd as (\n\n select worker_history_scd.worker_id, \n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as wh_active,\n worker_position_history._fivetran_active as wph_active,\n worker_history.end_employment_date as wh_end_employment_date,\n worker_position_history.end_employment_date as wph_end_employment_date,\n worker_history.pay_through_date as wh_pay_through_date,\n worker_position_history.pay_through_date as wph_pay_through_date,\n \"termination_date\",\n \"academic_tenure_date\",\n \"active\",\n \"active_status_date\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_frequency\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_total_salary_and_allowances\",\n \"annual_summary_currency\",\n \"annual_summary_frequency\",\n \"annual_summary_primary_compensation_basis\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_total_salary_and_allowances\",\n \"benefits_service_date\",\n \"company_service_date\",\n \"compensation_effective_date\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"continuous_service_date\",\n \"contract_assignment_details\",\n \"contract_currency_code\",\n \"contract_end_date\",\n \"contract_frequency_name\",\n \"contract_pay_rate\",\n \"contract_vendor_name\",\n \"date_entered_workforce\",\n \"days_unemployed\",\n \"eligible_for_hire\",\n \"eligible_for_rehire_on_latest_termination\",\n \"employee_compensation_currency\",\n \"employee_compensation_frequency\",\n \"employee_compensation_primary_compensation_basis\",\n \"employee_compensation_total_base_pay\",\n \"employee_compensation_total_salary_and_allowances\",\n \"expected_date_of_return\",\n \"expected_retirement_date\",\n \"first_day_of_work\",\n \"has_international_assignment\",\n \"hire_date\",\n \"hire_reason\",\n \"hire_rescinded\",\n \"hourly_frequency_currency\",\n \"hourly_frequency_frequency\",\n \"hourly_frequency_primary_compensation_basis\",\n \"hourly_frequency_total_base_pay\",\n \"hourly_frequency_total_salary_and_allowances\",\n \"last_datefor_which_paid\",\n \"local_termination_reason\",\n \"months_continuous_prior_employment\",\n \"not_returning\",\n \"original_hire_date\",\n \"pay_group_frequency_currency\",\n \"pay_group_frequency_frequency\",\n \"pay_group_frequency_primary_compensation_basis\",\n \"pay_group_frequency_total_base_pay\",\n \"pay_group_frequency_total_salary_and_allowances\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"probation_end_date\",\n \"probation_start_date\",\n \"reason_reference_id\",\n \"regrettable_termination\",\n \"rehire\",\n \"resignation_date\",\n \"retired\",\n \"retirement_date\",\n \"retirement_eligibility_date\",\n \"return_unknown\",\n \"seniority_date\",\n \"severance_date\",\n \"terminated\",\n \"termination_involuntary\",\n \"termination_last_day_of_work\",\n \"time_off_service_date\",\n \"universal_id\",\n \"user_id\",\n \"vesting_date\",\n \"worker_code\",\n \"effective_date\",\n \"academic_pay_setup_data_annual_work_period_end_date\",\n \"academic_pay_setup_data_annual_work_period_start_date\",\n \"academic_pay_setup_data_annual_work_period_work_percent_of_year\",\n \"academic_pay_setup_data_disbursement_plan_period_end_date\",\n \"academic_pay_setup_data_disbursement_plan_period_start_date\",\n \"business_site_summary_display_language\",\n \"business_site_summary_local\",\n \"business_site_summary_location\",\n \"business_site_summary_location_type\",\n \"business_site_summary_name\",\n \"business_site_summary_scheduled_weekly_hours\",\n \"business_site_summary_time_profile\",\n \"business_title\",\n \"critical_job\",\n \"default_weekly_hours\",\n \"difficulty_to_fill\",\n \"employee_type\",\n \"end_date\",\n \"exclude_from_head_count\",\n \"expected_assignment_end_date\",\n \"external_employee\",\n \"federal_withholding_fein\",\n \"frequency\",\n \"full_time_equivalent_percentage\",\n \"headcount_restriction_code\",\n \"host_country\",\n \"international_assignment_type\",\n \"is_primary_job\",\n \"job_exempt\",\n \"job_profile_id\",\n \"management_level_code\",\n \"paid_fte\",\n \"pay_group\",\n \"pay_rate\",\n \"pay_rate_type\",\n \"payroll_entity\",\n \"payroll_file_number\",\n \"regular_paid_equivalent_hours\",\n \"scheduled_weekly_hours\",\n \"specify_paid_fte\",\n \"specify_working_fte\",\n \"start_date\",\n \"start_international_assignment_reason\",\n \"work_hours_profile\",\n \"work_shift\",\n \"work_shift_required\",\n \"work_space\",\n \"worker_hours_profile_classification\",\n \"working_fte\",\n \"working_time_frequency\",\n \"working_time_unit\",\n \"working_time_value\",\n \"type\",\n \"additional_nationality\",\n \"blood_type\",\n \"citizenship_status\",\n \"city_of_birth\",\n \"city_of_birth_code\",\n \"country_of_birth\",\n \"date_of_birth\",\n \"date_of_death\",\n \"gender\",\n \"hispanic_or_latino\",\n \"hukou_locality\",\n \"hukou_postal_code\",\n \"hukou_region\",\n \"hukou_subregion\",\n \"hukou_type\",\n \"last_medical_exam_date\",\n \"last_medical_exam_valid_to\",\n \"local_hukou\",\n \"marital_status\",\n \"marital_status_date\",\n \"medical_exam_notes\",\n \"native_region\",\n \"native_region_code\",\n \"personnel_file_agency\",\n \"political_affiliation\",\n \"primary_nationality\",\n \"region_of_birth\",\n \"region_of_birth_code\",\n \"religion\",\n \"social_benefit\",\n \"tobacco_use\",\n \"ll\"\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n)\n\nselect * \nfrom employee_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:06.935745Z", "completed_at": "2024-03-07T00:46:08.822772Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:08.823904Z", "completed_at": "2024-03-07T00:46:08.823919Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 2.1995127201080322, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_daily_history", "compiled": true, "compiled_code": "\n \n\n \n\n \n \n\n\nwith spine as (\n \n \n \n\n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 1527\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2020-01-01'as date) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-03-07'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n \n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.employee_id as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-07T00:46:09.139804Z", "completed_at": "2024-03-07T00:46:09.156764Z"}, {"name": "execute", "started_at": "2024-03-07T00:46:09.157710Z", "completed_at": "2024-03-07T00:46:09.157723Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.02240610122680664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__monthly_summary", "compiled": true, "compiled_code": "with row_month_partition as (\n\n select *, \n date_trunc('month', date_day) as date_month,\n row_number() over (partition by employee_id, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n order by employee_id, date_day\n),\n\nend_of_month_history as (\n \n select *\n from row_month_partition\n where recent_dom_row = 1\n order by employee_id, date_day\n),\n\nmonthly_employee_metrics as (\n\n select date_month,\n sum(case when date_month = date_trunc('month', effective_date) then 1 else 0 end) as new_employees,\n sum(case when date_month = date_trunc('month', termination_date) then 1 else 0 end) as churned_employees,\n sum(case when date_month = date_trunc('month', wh_end_employment_date) then 1 else 0 end) as churned_workers\n from end_of_month_history\n group by 1\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees\n from end_of_month_history\n where date_month >= date_trunc('month', effective_date)\n and (date_month <= date_trunc('month', wph_end_employment_date)\n or wph_end_employment_date is null)\n group by 1\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n count(distinct worker_id) as active_workers\n from end_of_month_history\n where (date_month >= date_trunc('month', effective_date)\n and date_month <= date_trunc('month', wh_end_employment_date))\n or wh_end_employment_date is null\n group by 1\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_worker_metrics.active_workers\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n)\n\nselect *\nfrom monthly_summary", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\""}], "elapsed_time": 23.243308782577515, "args": {"target": "postgres", "enable_legacy_logger": false, "use_colors": true, "vars": {}, "log_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests/logs", "static": false, "version_check": true, "profiles_dir": "/Users/avinash.kunnath/.dbt", "write_json": true, "compile": true, "use_colors_file": true, "project_dir": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "defer": false, "macro_debugging": false, "which": "generate", "favor_state": false, "cache_selected_only": false, "invocation_command": "dbt docs generate -t postgres", "empty_catalog": false, "quiet": false, "populate_cache": true, "log_format": "default", "log_format_file": "debug", "strict_mode": false, "indirect_selection": "eager", "warn_error_options": {"include": [], "exclude": []}, "exclude": [], "select": [], "static_parser": true, "partial_parse": true, "log_file_max_bytes": 10485760, "send_anonymous_usage_stats": true, "log_level_file": "debug", "print": true, "log_level": "info", "partial_parse_file_diff": true, "introspect": true, "show_resource_report": false, "printer_width": 80}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v5.json", "dbt_version": "1.7.8", "generated_at": "2024-03-20T19:22:57.337850Z", "invocation_id": "0a684f85-6d1d-433c-bf8d-1857c8ad075a", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.853421Z", "completed_at": "2024-03-20T19:22:53.858690Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.860561Z", "completed_at": "2024-03-20T19:22:53.860574Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.039659738540649414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.850208Z", "completed_at": "2024-03-20T19:22:53.858983Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.860874Z", "completed_at": "2024-03-20T19:22:53.860878Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.04099917411804199, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.825138Z", "completed_at": "2024-03-20T19:22:53.859230Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.861123Z", "completed_at": "2024-03-20T19:22:53.861126Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.042452096939086914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.855917Z", "completed_at": "2024-03-20T19:22:53.859482Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.861367Z", "completed_at": "2024-03-20T19:22:53.861370Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.04064631462097168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.872817Z", "completed_at": "2024-03-20T19:22:53.877570Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.878042Z", "completed_at": "2024-03-20T19:22:53.878047Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012719154357910156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.867164Z", "completed_at": "2024-03-20T19:22:53.879013Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.881052Z", "completed_at": "2024-03-20T19:22:53.881057Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.019382953643798828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.869760Z", "completed_at": "2024-03-20T19:22:53.879610Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.883736Z", "completed_at": "2024-03-20T19:22:53.883739Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01950693130493164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__military_service_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.875072Z", "completed_at": "2024-03-20T19:22:53.879827Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.883993Z", "completed_at": "2024-03-20T19:22:53.883997Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.019271135330200195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.881302Z", "completed_at": "2024-03-20T19:22:53.885931Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.888117Z", "completed_at": "2024-03-20T19:22:53.888121Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012238264083862305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.888807Z", "completed_at": "2024-03-20T19:22:53.898106Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.902208Z", "completed_at": "2024-03-20T19:22:53.902212Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01660919189453125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.894737Z", "completed_at": "2024-03-20T19:22:53.900834Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.902447Z", "completed_at": "2024-03-20T19:22:53.902450Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01624608039855957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_name_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.891772Z", "completed_at": "2024-03-20T19:22:53.901068Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.902692Z", "completed_at": "2024-03-20T19:22:53.902696Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.016979217529296875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.898429Z", "completed_at": "2024-03-20T19:22:53.901981Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.904498Z", "completed_at": "2024-03-20T19:22:53.904502Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.008352041244506836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.908279Z", "completed_at": "2024-03-20T19:22:53.941296Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.942647Z", "completed_at": "2024-03-20T19:22:53.942654Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.03750491142272949, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.934944Z", "completed_at": "2024-03-20T19:22:53.941679Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.942924Z", "completed_at": "2024-03-20T19:22:53.942928Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.03739595413208008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.938334Z", "completed_at": "2024-03-20T19:22:53.942404Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.944502Z", "completed_at": "2024-03-20T19:22:53.944509Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.03753089904785156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.950225Z", "completed_at": "2024-03-20T19:22:53.961350Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.961878Z", "completed_at": "2024-03-20T19:22:53.961885Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01639699935913086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.947757Z", "completed_at": "2024-03-20T19:22:53.962100Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.963540Z", "completed_at": "2024-03-20T19:22:53.963545Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.018558979034423828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.965242Z", "completed_at": "2024-03-20T19:22:53.972402Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.972934Z", "completed_at": "2024-03-20T19:22:53.972940Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.009508848190307617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_leave_status_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.969548Z", "completed_at": "2024-03-20T19:22:53.974419Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.983997Z", "completed_at": "2024-03-20T19:22:53.984007Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016412973403930664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.987196Z", "completed_at": "2024-03-20T19:22:53.990205Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.990820Z", "completed_at": "2024-03-20T19:22:53.990826Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00480198860168457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.910740Z", "completed_at": "2024-03-20T19:22:54.220268Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.222588Z", "completed_at": "2024-03-20T19:22:54.222603Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.341001033782959, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"\n \n),\n\nfinal as (\n\n select \n id as worker_id,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"type\",\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"additional_nationality\",\n \"blood_type\",\n \"citizenship_status\",\n \"city_of_birth\",\n \"city_of_birth_code\",\n \"country_of_birth\",\n \"date_of_birth\",\n \"date_of_death\",\n \"gender\",\n \"hispanic_or_latino\",\n \"hukou_locality\",\n \"hukou_postal_code\",\n \"hukou_region\",\n \"hukou_subregion\",\n \"hukou_type\",\n \"last_medical_exam_date\",\n \"last_medical_exam_valid_to\",\n \"local_hukou\",\n \"marital_status\",\n \"marital_status_date\",\n \"medical_exam_notes\",\n \"native_region\",\n \"native_region_code\",\n \"personnel_file_agency\",\n \"political_affiliation\",\n \"primary_nationality\",\n \"region_of_birth\",\n \"region_of_birth_code\",\n \"religion\",\n \"social_benefit\",\n \"tobacco_use\",\n \"ll\"\n from base\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.952892Z", "completed_at": "2024-03-20T19:22:54.220981Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.223155Z", "completed_at": "2024-03-20T19:22:54.223161Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.3022439479827881, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\" \n \n),\n\nfinal as (\n\n select \n id as worker_id, \n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n cast(termination_date as timestamp) as termination_date,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"academic_tenure_date\",\n \"active\",\n \"active_status_date\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_frequency\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_total_salary_and_allowances\",\n \"annual_summary_currency\",\n \"annual_summary_frequency\",\n \"annual_summary_primary_compensation_basis\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_total_salary_and_allowances\",\n \"benefits_service_date\",\n \"company_service_date\",\n \"compensation_effective_date\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"continuous_service_date\",\n \"contract_assignment_details\",\n \"contract_currency_code\",\n \"contract_end_date\",\n \"contract_frequency_name\",\n \"contract_pay_rate\",\n \"contract_vendor_name\",\n \"date_entered_workforce\",\n \"days_unemployed\",\n \"eligible_for_hire\",\n \"eligible_for_rehire_on_latest_termination\",\n \"employee_compensation_currency\",\n \"employee_compensation_frequency\",\n \"employee_compensation_primary_compensation_basis\",\n \"employee_compensation_total_base_pay\",\n \"employee_compensation_total_salary_and_allowances\",\n \"expected_date_of_return\",\n \"expected_retirement_date\",\n \"first_day_of_work\",\n \"has_international_assignment\",\n \"hire_date\",\n \"hire_reason\",\n \"hire_rescinded\",\n \"hourly_frequency_currency\",\n \"hourly_frequency_frequency\",\n \"hourly_frequency_primary_compensation_basis\",\n \"hourly_frequency_total_base_pay\",\n \"hourly_frequency_total_salary_and_allowances\",\n \"last_datefor_which_paid\",\n \"local_termination_reason\",\n \"months_continuous_prior_employment\",\n \"not_returning\",\n \"original_hire_date\",\n \"pay_group_frequency_currency\",\n \"pay_group_frequency_frequency\",\n \"pay_group_frequency_primary_compensation_basis\",\n \"pay_group_frequency_total_base_pay\",\n \"pay_group_frequency_total_salary_and_allowances\",\n \"pay_through_date\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"probation_end_date\",\n \"probation_start_date\",\n \"reason_reference_id\",\n \"regrettable_termination\",\n \"rehire\",\n \"resignation_date\",\n \"retired\",\n \"retirement_date\",\n \"retirement_eligibility_date\",\n \"return_unknown\",\n \"seniority_date\",\n \"severance_date\",\n \"terminated\",\n \"termination_involuntary\",\n \"termination_last_day_of_work\",\n \"time_off_service_date\",\n \"universal_id\",\n \"user_id\",\n \"vesting_date\",\n \"worker_code\"\n from base\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.258375Z", "completed_at": "2024-03-20T19:22:54.262577Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.267183Z", "completed_at": "2024-03-20T19:22:54.267185Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.013428926467895508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.263363Z", "completed_at": "2024-03-20T19:22:54.265198Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.267416Z", "completed_at": "2024-03-20T19:22:54.267418Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012661933898925781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.271959Z", "completed_at": "2024-03-20T19:22:54.273717Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.276816Z", "completed_at": "2024-03-20T19:22:54.276823Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00778508186340332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.274169Z", "completed_at": "2024-03-20T19:22:54.275712Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.277176Z", "completed_at": "2024-03-20T19:22:54.277180Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.007893085479736328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.281425Z", "completed_at": "2024-03-20T19:22:54.282912Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.285499Z", "completed_at": "2024-03-20T19:22:54.285504Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0065152645111083984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.283285Z", "completed_at": "2024-03-20T19:22:54.284612Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.285808Z", "completed_at": "2024-03-20T19:22:54.285811Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006572723388671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_military_service_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.992486Z", "completed_at": "2024-03-20T19:22:54.257731Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.266922Z", "completed_at": "2024-03-20T19:22:54.266942Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.3338618278503418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"\n \n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id, \n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"index\",\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"date_of_pay_group_assignment\",\n \"primary_business_site\",\n \"used_in_change_organization_assignments\"\n from base\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.289399Z", "completed_at": "2024-03-20T19:22:54.323072Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.325303Z", "completed_at": "2024-03-20T19:22:54.325309Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.03838396072387695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.323653Z", "completed_at": "2024-03-20T19:22:54.324535Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.326007Z", "completed_at": "2024-03-20T19:22:54.326010Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.03857994079589844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.329187Z", "completed_at": "2024-03-20T19:22:54.330179Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.333114Z", "completed_at": "2024-03-20T19:22:54.333118Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0063860416412353516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.330637Z", "completed_at": "2024-03-20T19:22:54.331467Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.333577Z", "completed_at": "2024-03-20T19:22:54.333580Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.006680727005004883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.331887Z", "completed_at": "2024-03-20T19:22:54.332701Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.334361Z", "completed_at": "2024-03-20T19:22:54.334365Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006838083267211914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.337603Z", "completed_at": "2024-03-20T19:22:54.338569Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.342282Z", "completed_at": "2024-03-20T19:22:54.342287Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007045269012451172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_name_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.338998Z", "completed_at": "2024-03-20T19:22:54.340557Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.342692Z", "completed_at": "2024-03-20T19:22:54.342695Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.007110118865966797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.340975Z", "completed_at": "2024-03-20T19:22:54.341803Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.343342Z", "completed_at": "2024-03-20T19:22:54.343345Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.007217884063720703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.346321Z", "completed_at": "2024-03-20T19:22:54.347260Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.350116Z", "completed_at": "2024-03-20T19:22:54.350119Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00613093376159668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.347672Z", "completed_at": "2024-03-20T19:22:54.348485Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.350522Z", "completed_at": "2024-03-20T19:22:54.350525Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.006268978118896484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.348890Z", "completed_at": "2024-03-20T19:22:54.349707Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.351227Z", "completed_at": "2024-03-20T19:22:54.351230Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006395101547241211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.354221Z", "completed_at": "2024-03-20T19:22:54.355160Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.359303Z", "completed_at": "2024-03-20T19:22:54.359309Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00747227668762207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.355593Z", "completed_at": "2024-03-20T19:22:54.357394Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.359770Z", "completed_at": "2024-03-20T19:22:54.359773Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0075931549072265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.357921Z", "completed_at": "2024-03-20T19:22:54.358791Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.360459Z", "completed_at": "2024-03-20T19:22:54.360462Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.007729768753051758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.363535Z", "completed_at": "2024-03-20T19:22:54.364562Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.373640Z", "completed_at": "2024-03-20T19:22:54.373645Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.012626171112060547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.975207Z", "completed_at": "2024-03-20T19:22:54.406566Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.407064Z", "completed_at": "2024-03-20T19:22:54.407071Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.4517478942871094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"\n \n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(effective_date as timestamp) as effective_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n cast(start_date as timestamp) as position_start_date,\n cast(end_date as timestamp) as position_end_date,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"academic_pay_setup_data_annual_work_period_end_date\",\n \"academic_pay_setup_data_annual_work_period_start_date\",\n \"academic_pay_setup_data_annual_work_period_work_percent_of_year\",\n \"academic_pay_setup_data_disbursement_plan_period_end_date\",\n \"academic_pay_setup_data_disbursement_plan_period_start_date\",\n \"business_site_summary_display_language\",\n \"business_site_summary_local\",\n \"business_site_summary_location\",\n \"business_site_summary_location_type\",\n \"business_site_summary_name\",\n \"business_site_summary_scheduled_weekly_hours\",\n \"business_site_summary_time_profile\",\n \"business_title\",\n \"critical_job\",\n \"default_weekly_hours\",\n \"difficulty_to_fill\",\n \"employee_type\",\n \"exclude_from_head_count\",\n \"expected_assignment_end_date\",\n \"external_employee\",\n \"federal_withholding_fein\",\n \"frequency\",\n \"full_time_equivalent_percentage\",\n \"headcount_restriction_code\",\n \"host_country\",\n \"international_assignment_type\",\n \"is_primary_job\",\n \"job_exempt\",\n \"job_profile_id\",\n \"management_level_code\",\n \"paid_fte\",\n \"pay_group\",\n \"pay_rate\",\n \"pay_rate_type\",\n \"pay_through_date\",\n \"payroll_entity\",\n \"payroll_file_number\",\n \"regular_paid_equivalent_hours\",\n \"scheduled_weekly_hours\",\n \"specify_paid_fte\",\n \"specify_working_fte\",\n \"start_international_assignment_reason\",\n \"work_hours_profile\",\n \"work_shift\",\n \"work_shift_required\",\n \"work_space\",\n \"worker_hours_profile_classification\",\n \"working_fte\",\n \"working_time_frequency\",\n \"working_time_unit\",\n \"working_time_value\"\n from base\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.365044Z", "completed_at": "2024-03-20T19:22:54.670418Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.671628Z", "completed_at": "2024-03-20T19:22:54.671638Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.3360600471496582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_family_group", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.376414Z", "completed_at": "2024-03-20T19:22:54.671177Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.672674Z", "completed_at": "2024-03-20T19:22:54.672679Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.3236069679260254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.427344Z", "completed_at": "2024-03-20T19:22:54.723156Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.724405Z", "completed_at": "2024-03-20T19:22:54.724413Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.3279109001159668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_profile", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.369036Z", "completed_at": "2024-03-20T19:22:54.767245Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.768078Z", "completed_at": "2024-03-20T19:22:54.768086Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.43586111068725586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_group", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.703618Z", "completed_at": "2024-03-20T19:22:55.006111Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.006960Z", "completed_at": "2024-03-20T19:22:55.006968Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.32674193382263184, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.762336Z", "completed_at": "2024-03-20T19:22:55.057034Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.058199Z", "completed_at": "2024-03-20T19:22:55.058203Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.3261561393737793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__military_service", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.800322Z", "completed_at": "2024-03-20T19:22:55.056661Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.057893Z", "completed_at": "2024-03-20T19:22:55.057900Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.28280210494995117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_job_family", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.710293Z", "completed_at": "2024-03-20T19:22:55.129952Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.130515Z", "completed_at": "2024-03-20T19:22:55.130521Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.4560582637786865, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_profile", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.030663Z", "completed_at": "2024-03-20T19:22:55.302882Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.304090Z", "completed_at": "2024-03-20T19:22:55.304108Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.29746294021606445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.085442Z", "completed_at": "2024-03-20T19:22:55.367333Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.374170Z", "completed_at": "2024-03-20T19:22:55.374181Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.3119988441467285, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_worker", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.091120Z", "completed_at": "2024-03-20T19:22:55.373574Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.375236Z", "completed_at": "2024-03-20T19:22:55.375240Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.3200991153717041, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_name", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.159484Z", "completed_at": "2024-03-20T19:22:55.547232Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.548296Z", "completed_at": "2024-03-20T19:22:55.548305Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.423598051071167, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_contact_email_address", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.367731Z", "completed_at": "2024-03-20T19:22:55.630530Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.631022Z", "completed_at": "2024-03-20T19:22:55.631027Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.2849609851837158, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.398063Z", "completed_at": "2024-03-20T19:22:55.649471Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.649989Z", "completed_at": "2024-03-20T19:22:55.649996Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.3051462173461914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_ethnicity", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.584534Z", "completed_at": "2024-03-20T19:22:55.832045Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.833460Z", "completed_at": "2024-03-20T19:22:55.833464Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.2690160274505615, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_job_profile", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.406039Z", "completed_at": "2024-03-20T19:22:55.831721Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.833157Z", "completed_at": "2024-03-20T19:22:55.833165Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.45456981658935547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.703658Z", "completed_at": "2024-03-20T19:22:55.954388Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.954865Z", "completed_at": "2024-03-20T19:22:55.954871Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.27274489402770996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_organization", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.652628Z", "completed_at": "2024-03-20T19:22:55.955302Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.955744Z", "completed_at": "2024-03-20T19:22:55.955748Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.3304009437561035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.983609Z", "completed_at": "2024-03-20T19:22:55.991876Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.992391Z", "completed_at": "2024-03-20T19:22:55.992397Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00984501838684082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.996291Z", "completed_at": "2024-03-20T19:22:56.003762Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.004290Z", "completed_at": "2024-03-20T19:22:56.004295Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008965015411376953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.005814Z", "completed_at": "2024-03-20T19:22:56.008755Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.009274Z", "completed_at": "2024-03-20T19:22:56.009279Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0044400691986083984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.010915Z", "completed_at": "2024-03-20T19:22:56.014919Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.015387Z", "completed_at": "2024-03-20T19:22:56.015391Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.005471944808959961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.016874Z", "completed_at": "2024-03-20T19:22:56.020385Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.020836Z", "completed_at": "2024-03-20T19:22:56.020841Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00490117073059082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.023339Z", "completed_at": "2024-03-20T19:22:56.026077Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.026521Z", "completed_at": "2024-03-20T19:22:56.026525Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.005155086517333984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.027905Z", "completed_at": "2024-03-20T19:22:56.030469Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.030884Z", "completed_at": "2024-03-20T19:22:56.030888Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0038378238677978516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.032232Z", "completed_at": "2024-03-20T19:22:56.034972Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.035443Z", "completed_at": "2024-03-20T19:22:56.035448Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004103899002075195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.036868Z", "completed_at": "2024-03-20T19:22:56.040421Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.040935Z", "completed_at": "2024-03-20T19:22:56.040939Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0049970149993896484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, position_id, organization_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\n group by worker_id, position_id, organization_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.042529Z", "completed_at": "2024-03-20T19:22:56.046055Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.046532Z", "completed_at": "2024-03-20T19:22:56.046538Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004970073699951172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.048169Z", "completed_at": "2024-03-20T19:22:56.052301Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.052764Z", "completed_at": "2024-03-20T19:22:56.052769Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.005892753601074219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.055039Z", "completed_at": "2024-03-20T19:22:56.058329Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.058776Z", "completed_at": "2024-03-20T19:22:56.058780Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004701137542724609, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.060145Z", "completed_at": "2024-03-20T19:22:56.063026Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.063478Z", "completed_at": "2024-03-20T19:22:56.063482Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004221916198730469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.064887Z", "completed_at": "2024-03-20T19:22:56.067606Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.068104Z", "completed_at": "2024-03-20T19:22:56.068108Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004121065139770508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.861121Z", "completed_at": "2024-03-20T19:22:56.115320Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.115802Z", "completed_at": "2024-03-20T19:22:56.115808Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.2756631374359131, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.137701Z", "completed_at": "2024-03-20T19:22:56.141145Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.141639Z", "completed_at": "2024-03-20T19:22:56.141644Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005063056945800781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, position_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\n group by worker_id, position_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.143219Z", "completed_at": "2024-03-20T19:22:56.146620Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.147070Z", "completed_at": "2024-03-20T19:22:56.147075Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004786252975463867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.148516Z", "completed_at": "2024-03-20T19:22:56.151614Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.152179Z", "completed_at": "2024-03-20T19:22:56.152184Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004590034484863281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.153939Z", "completed_at": "2024-03-20T19:22:56.157217Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.157705Z", "completed_at": "2024-03-20T19:22:56.157710Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004952192306518555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.159265Z", "completed_at": "2024-03-20T19:22:56.162208Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.162821Z", "completed_at": "2024-03-20T19:22:56.162826Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004584074020385742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.164441Z", "completed_at": "2024-03-20T19:22:56.168796Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.169405Z", "completed_at": "2024-03-20T19:22:56.169411Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005961179733276367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.171029Z", "completed_at": "2024-03-20T19:22:56.174952Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.175420Z", "completed_at": "2024-03-20T19:22:56.175424Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0054149627685546875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_group_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.176925Z", "completed_at": "2024-03-20T19:22:56.179543Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.179985Z", "completed_at": "2024-03-20T19:22:56.179989Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.003998994827270508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.181405Z", "completed_at": "2024-03-20T19:22:56.184126Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.184617Z", "completed_at": "2024-03-20T19:22:56.184622Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004127025604248047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.186089Z", "completed_at": "2024-03-20T19:22:56.188760Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.189193Z", "completed_at": "2024-03-20T19:22:56.189197Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.003970146179199219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.190573Z", "completed_at": "2024-03-20T19:22:56.193654Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.194095Z", "completed_at": "2024-03-20T19:22:56.194098Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004400014877319336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.195496Z", "completed_at": "2024-03-20T19:22:56.198839Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.199269Z", "completed_at": "2024-03-20T19:22:56.199272Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004672050476074219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.200668Z", "completed_at": "2024-03-20T19:22:56.203406Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.203848Z", "completed_at": "2024-03-20T19:22:56.203852Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004105091094970703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.205234Z", "completed_at": "2024-03-20T19:22:56.207858Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.208288Z", "completed_at": "2024-03-20T19:22:56.208291Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0039141178131103516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_group_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.209653Z", "completed_at": "2024-03-20T19:22:56.213275Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.213785Z", "completed_at": "2024-03-20T19:22:56.213791Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005074977874755859, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_group_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.215397Z", "completed_at": "2024-03-20T19:22:56.219113Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.219863Z", "completed_at": "2024-03-20T19:22:56.219871Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005532979965209961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.221695Z", "completed_at": "2024-03-20T19:22:56.224616Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.225056Z", "completed_at": "2024-03-20T19:22:56.225060Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004439115524291992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.226568Z", "completed_at": "2024-03-20T19:22:56.230533Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.231011Z", "completed_at": "2024-03-20T19:22:56.231016Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005384922027587891, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.232421Z", "completed_at": "2024-03-20T19:22:56.235241Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.235683Z", "completed_at": "2024-03-20T19:22:56.235688Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004168033599853516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.237116Z", "completed_at": "2024-03-20T19:22:56.239957Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.240469Z", "completed_at": "2024-03-20T19:22:56.240473Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004266023635864258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.241953Z", "completed_at": "2024-03-20T19:22:56.244718Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.245158Z", "completed_at": "2024-03-20T19:22:56.245163Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0041120052337646484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.246582Z", "completed_at": "2024-03-20T19:22:56.249089Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.265871Z", "completed_at": "2024-03-20T19:22:56.265878Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.02035689353942871, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.267591Z", "completed_at": "2024-03-20T19:22:56.274934Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.275383Z", "completed_at": "2024-03-20T19:22:56.275387Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.008794307708740234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__job_overview", "compiled": true, "compiled_code": "with job_profile_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.276883Z", "completed_at": "2024-03-20T19:22:56.279650Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.280090Z", "completed_at": "2024-03-20T19:22:56.280093Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004181861877441406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.282190Z", "completed_at": "2024-03-20T19:22:56.284963Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.285403Z", "completed_at": "2024-03-20T19:22:56.285408Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004405975341796875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.286797Z", "completed_at": "2024-03-20T19:22:56.290425Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.290873Z", "completed_at": "2024-03-20T19:22:56.290877Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005030155181884766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.292377Z", "completed_at": "2024-03-20T19:22:56.294970Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.295403Z", "completed_at": "2024-03-20T19:22:56.295407Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.003947019577026367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.296783Z", "completed_at": "2024-03-20T19:22:56.299388Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.299826Z", "completed_at": "2024-03-20T19:22:56.299830Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00394129753112793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.301301Z", "completed_at": "2024-03-20T19:22:56.304832Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.305319Z", "completed_at": "2024-03-20T19:22:56.305324Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004971981048583984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.854193Z", "completed_at": "2024-03-20T19:22:56.273965Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.274447Z", "completed_at": "2024-03-20T19:22:56.274452Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.4576129913330078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_leave_status", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.306790Z", "completed_at": "2024-03-20T19:22:56.310125Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.310778Z", "completed_at": "2024-03-20T19:22:56.310782Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005326986312866211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.313502Z", "completed_at": "2024-03-20T19:22:56.319686Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.320559Z", "completed_at": "2024-03-20T19:22:56.320566Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00877690315246582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_worker_code\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere organization_worker_code is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.316986Z", "completed_at": "2024-03-20T19:22:56.319921Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.320790Z", "completed_at": "2024-03-20T19:22:56.320793Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.009083986282348633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect role_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.330851Z", "completed_at": "2024-03-20T19:22:56.333516Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.334380Z", "completed_at": "2024-03-20T19:22:56.334385Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0076520442962646484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect person_name_type\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\nwhere person_name_type is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.328098Z", "completed_at": "2024-03-20T19:22:56.333735Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.334613Z", "completed_at": "2024-03-20T19:22:56.334617Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008652925491333008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.340583Z", "completed_at": "2024-03-20T19:22:56.349541Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.350020Z", "completed_at": "2024-03-20T19:22:56.350026Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.014188051223754883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.337284Z", "completed_at": "2024-03-20T19:22:56.351279Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.357253Z", "completed_at": "2024-03-20T19:22:56.357257Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.021886825561523438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.358412Z", "completed_at": "2024-03-20T19:22:56.364607Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.365089Z", "completed_at": "2024-03-20T19:22:56.365094Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009048223495483398, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect person_contact_email_address_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\nwhere person_contact_email_address_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.362087Z", "completed_at": "2024-03-20T19:22:56.365296Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.366453Z", "completed_at": "2024-03-20T19:22:56.366456Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0056421756744384766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.367966Z", "completed_at": "2024-03-20T19:22:56.374602Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.375535Z", "completed_at": "2024-03-20T19:22:56.375540Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009533882141113281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.372058Z", "completed_at": "2024-03-20T19:22:56.374836Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.375783Z", "completed_at": "2024-03-20T19:22:56.375787Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005182981491088867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.977131Z", "completed_at": "2024-03-20T19:22:56.350278Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.356394Z", "completed_at": "2024-03-20T19:22:56.356399Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.4085690975189209, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.378499Z", "completed_at": "2024-03-20T19:22:56.384357Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.389234Z", "completed_at": "2024-03-20T19:22:56.389239Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.012815237045288086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__personal_details", "compiled": true, "compiled_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__personal_details\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.381291Z", "completed_at": "2024-03-20T19:22:56.384620Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.389476Z", "completed_at": "2024-03-20T19:22:56.389480Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012935161590576172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.391947Z", "completed_at": "2024-03-20T19:22:56.396662Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.403852Z", "completed_at": "2024-03-20T19:22:56.403858Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.014946699142456055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ethnicity_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\nwhere ethnicity_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.396926Z", "completed_at": "2024-03-20T19:22:56.404119Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.405695Z", "completed_at": "2024-03-20T19:22:56.405699Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.011803865432739258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.400556Z", "completed_at": "2024-03-20T19:22:56.405167Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.406905Z", "completed_at": "2024-03-20T19:22:56.406909Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012347936630249023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.408014Z", "completed_at": "2024-03-20T19:22:56.414445Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.417302Z", "completed_at": "2024-03-20T19:22:56.417311Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.011888980865478516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.411958Z", "completed_at": "2024-03-20T19:22:56.417027Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.418332Z", "completed_at": "2024-03-20T19:22:56.418335Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008518218994140625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.415160Z", "completed_at": "2024-03-20T19:22:56.418552Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.420311Z", "completed_at": "2024-03-20T19:22:56.420314Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00958108901977539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__position_overview", "compiled": true, "compiled_code": "with position_data as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\n),\n\nposition_job_profile_data as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.069565Z", "completed_at": "2024-03-20T19:22:56.391454Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.396097Z", "completed_at": "2024-03-20T19:22:56.396105Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.35953378677368164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__employee_history", "compiled": true, "compiled_code": "\n\nwith worker_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\n),\n\nworker_position_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\n),\n\npersonal_information_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\n),\n\nworker_start_records as (\n\n select worker_id, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n _fivetran_start\n from personal_information_history\n order by worker_id, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_history_scd as (\n\n select worker_history_scd.worker_id, \n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as wh_active,\n worker_position_history._fivetran_active as wph_active,\n personal_information_history._fivetran_active as pih_active,\n worker_history.end_employment_date as wh_end_employment_date,\n worker_position_history.end_employment_date as wph_end_employment_date,\n worker_history.pay_through_date as wh_pay_through_date,\n worker_position_history.pay_through_date as wph_pay_through_date,\n \"termination_date\",\n \"academic_tenure_date\",\n \"active\",\n \"active_status_date\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_frequency\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_total_salary_and_allowances\",\n \"annual_summary_currency\",\n \"annual_summary_frequency\",\n \"annual_summary_primary_compensation_basis\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_total_salary_and_allowances\",\n \"benefits_service_date\",\n \"company_service_date\",\n \"compensation_effective_date\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"continuous_service_date\",\n \"contract_assignment_details\",\n \"contract_currency_code\",\n \"contract_end_date\",\n \"contract_frequency_name\",\n \"contract_pay_rate\",\n \"contract_vendor_name\",\n \"date_entered_workforce\",\n \"days_unemployed\",\n \"eligible_for_hire\",\n \"eligible_for_rehire_on_latest_termination\",\n \"employee_compensation_currency\",\n \"employee_compensation_frequency\",\n \"employee_compensation_primary_compensation_basis\",\n \"employee_compensation_total_base_pay\",\n \"employee_compensation_total_salary_and_allowances\",\n \"expected_date_of_return\",\n \"expected_retirement_date\",\n \"first_day_of_work\",\n \"has_international_assignment\",\n \"hire_date\",\n \"hire_reason\",\n \"hire_rescinded\",\n \"hourly_frequency_currency\",\n \"hourly_frequency_frequency\",\n \"hourly_frequency_primary_compensation_basis\",\n \"hourly_frequency_total_base_pay\",\n \"hourly_frequency_total_salary_and_allowances\",\n \"last_datefor_which_paid\",\n \"local_termination_reason\",\n \"months_continuous_prior_employment\",\n \"not_returning\",\n \"original_hire_date\",\n \"pay_group_frequency_currency\",\n \"pay_group_frequency_frequency\",\n \"pay_group_frequency_primary_compensation_basis\",\n \"pay_group_frequency_total_base_pay\",\n \"pay_group_frequency_total_salary_and_allowances\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"probation_end_date\",\n \"probation_start_date\",\n \"reason_reference_id\",\n \"regrettable_termination\",\n \"rehire\",\n \"resignation_date\",\n \"retired\",\n \"retirement_date\",\n \"retirement_eligibility_date\",\n \"return_unknown\",\n \"seniority_date\",\n \"severance_date\",\n \"terminated\",\n \"termination_involuntary\",\n \"termination_last_day_of_work\",\n \"time_off_service_date\",\n \"universal_id\",\n \"user_id\",\n \"vesting_date\",\n \"worker_code\",\n \"effective_date\",\n \"position_start_date\",\n \"position_end_date\",\n \"academic_pay_setup_data_annual_work_period_end_date\",\n \"academic_pay_setup_data_annual_work_period_start_date\",\n \"academic_pay_setup_data_annual_work_period_work_percent_of_year\",\n \"academic_pay_setup_data_disbursement_plan_period_end_date\",\n \"academic_pay_setup_data_disbursement_plan_period_start_date\",\n \"business_site_summary_display_language\",\n \"business_site_summary_local\",\n \"business_site_summary_location\",\n \"business_site_summary_location_type\",\n \"business_site_summary_name\",\n \"business_site_summary_scheduled_weekly_hours\",\n \"business_site_summary_time_profile\",\n \"business_title\",\n \"critical_job\",\n \"default_weekly_hours\",\n \"difficulty_to_fill\",\n \"employee_type\",\n \"exclude_from_head_count\",\n \"expected_assignment_end_date\",\n \"external_employee\",\n \"federal_withholding_fein\",\n \"frequency\",\n \"full_time_equivalent_percentage\",\n \"headcount_restriction_code\",\n \"host_country\",\n \"international_assignment_type\",\n \"is_primary_job\",\n \"job_exempt\",\n \"job_profile_id\",\n \"management_level_code\",\n \"paid_fte\",\n \"pay_group\",\n \"pay_rate\",\n \"pay_rate_type\",\n \"payroll_entity\",\n \"payroll_file_number\",\n \"regular_paid_equivalent_hours\",\n \"scheduled_weekly_hours\",\n \"specify_paid_fte\",\n \"specify_working_fte\",\n \"start_international_assignment_reason\",\n \"work_hours_profile\",\n \"work_shift\",\n \"work_shift_required\",\n \"work_space\",\n \"worker_hours_profile_classification\",\n \"working_fte\",\n \"working_time_frequency\",\n \"working_time_unit\",\n \"working_time_value\",\n \"type\",\n \"additional_nationality\",\n \"blood_type\",\n \"citizenship_status\",\n \"city_of_birth\",\n \"city_of_birth_code\",\n \"country_of_birth\",\n \"date_of_birth\",\n \"date_of_death\",\n \"gender\",\n \"hispanic_or_latino\",\n \"hukou_locality\",\n \"hukou_postal_code\",\n \"hukou_region\",\n \"hukou_subregion\",\n \"hukou_type\",\n \"last_medical_exam_date\",\n \"last_medical_exam_valid_to\",\n \"local_hukou\",\n \"marital_status\",\n \"marital_status_date\",\n \"medical_exam_notes\",\n \"native_region\",\n \"native_region_code\",\n \"personnel_file_agency\",\n \"political_affiliation\",\n \"primary_nationality\",\n \"region_of_birth\",\n \"region_of_birth_code\",\n \"religion\",\n \"social_benefit\",\n \"tobacco_use\",\n \"ll\"\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select md5(cast(coalesce(cast(employee_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.421639Z", "completed_at": "2024-03-20T19:22:56.429271Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.433569Z", "completed_at": "2024-03-20T19:22:56.433575Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.014799118041992188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.425927Z", "completed_at": "2024-03-20T19:22:56.430057Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.434067Z", "completed_at": "2024-03-20T19:22:56.434071Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016888856887817383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.430821Z", "completed_at": "2024-03-20T19:22:56.438126Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.440087Z", "completed_at": "2024-03-20T19:22:56.440091Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.014565229415893555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.434849Z", "completed_at": "2024-03-20T19:22:56.439285Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.443806Z", "completed_at": "2024-03-20T19:22:56.443809Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.02226400375366211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.440744Z", "completed_at": "2024-03-20T19:22:56.453127Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.455183Z", "completed_at": "2024-03-20T19:22:56.455187Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.05900287628173828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.444049Z", "completed_at": "2024-03-20T19:22:56.454001Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.497293Z", "completed_at": "2024-03-20T19:22:56.497299Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.06145596504211426, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__worker_details", "compiled": true, "compiled_code": "with worker_data as (\n\n select \n *,\n now() as current_date\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_details\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.455424Z", "completed_at": "2024-03-20T19:22:56.501294Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.503345Z", "completed_at": "2024-03-20T19:22:56.503349Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.05093717575073242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.498100Z", "completed_at": "2024-03-20T19:22:56.503112Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.511342Z", "completed_at": "2024-03-20T19:22:56.511347Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.05753898620605469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.504766Z", "completed_at": "2024-03-20T19:22:56.513131Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.517625Z", "completed_at": "2024-03-20T19:22:56.517630Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0193021297454834, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__worker_position_enriched", "compiled": true, "compiled_code": "with worker_position_data as (\n\n select \n *,\n now() as current_date\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n md5(cast(coalesce(cast(worker_position_data_enhanced.worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_position_enriched\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.508517Z", "completed_at": "2024-03-20T19:22:56.513470Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.517889Z", "completed_at": "2024-03-20T19:22:56.517893Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.019405126571655273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.514729Z", "completed_at": "2024-03-20T19:22:56.522455Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.524578Z", "completed_at": "2024-03-20T19:22:56.524582Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013069868087768555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.518198Z", "completed_at": "2024-03-20T19:22:56.523312Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.525181Z", "completed_at": "2024-03-20T19:22:56.525185Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01700878143310547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.528521Z", "completed_at": "2024-03-20T19:22:56.532867Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.539683Z", "completed_at": "2024-03-20T19:22:56.539689Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0165860652923584, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.525865Z", "completed_at": "2024-03-20T19:22:56.533101Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.539956Z", "completed_at": "2024-03-20T19:22:56.539960Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01735401153564453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.533538Z", "completed_at": "2024-03-20T19:22:56.540189Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.542371Z", "completed_at": "2024-03-20T19:22:56.542376Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.011712074279785156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.537109Z", "completed_at": "2024-03-20T19:22:56.541600Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.543933Z", "completed_at": "2024-03-20T19:22:56.543937Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.012629032135009766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect leave_request_event_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\nwhere leave_request_event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.548648Z", "completed_at": "2024-03-20T19:22:56.552065Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.558256Z", "completed_at": "2024-03-20T19:22:56.558262Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01580190658569336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__organization_overview", "compiled": true, "compiled_code": "with organization_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\n),\n\norganization_role_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\n),\n\nworker_position_organization as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.545193Z", "completed_at": "2024-03-20T19:22:56.552278Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.558502Z", "completed_at": "2024-03-20T19:22:56.558505Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016873836517333984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.552520Z", "completed_at": "2024-03-20T19:22:56.559301Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.561512Z", "completed_at": "2024-03-20T19:22:56.561516Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.011976003646850586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.555785Z", "completed_at": "2024-03-20T19:22:56.560274Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.562266Z", "completed_at": "2024-03-20T19:22:56.562269Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014113187789916992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.563143Z", "completed_at": "2024-03-20T19:22:56.570460Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.574485Z", "completed_at": "2024-03-20T19:22:56.574489Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.016679048538208008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.566399Z", "completed_at": "2024-03-20T19:22:56.571506Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.577976Z", "completed_at": "2024-03-20T19:22:56.577980Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017210006713867188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.571936Z", "completed_at": "2024-03-20T19:22:56.578557Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.580457Z", "completed_at": "2024-03-20T19:22:56.580461Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.018957138061523438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.574932Z", "completed_at": "2024-03-20T19:22:56.579795Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.589302Z", "completed_at": "2024-03-20T19:22:56.589306Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.019706249237060547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.590711Z", "completed_at": "2024-03-20T19:22:56.594571Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.601225Z", "completed_at": "2024-03-20T19:22:56.601232Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.021100997924804688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__worker_employee_enhanced", "compiled": true, "compiled_code": "with int_worker_base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_details\" \n),\n\nint_worker_personal_details as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__personal_details\" \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_position_enriched\" \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_employee_enhanced\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.594802Z", "completed_at": "2024-03-20T19:22:56.601473Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.603071Z", "completed_at": "2024-03-20T19:22:56.603074Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.010800838470458984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.598768Z", "completed_at": "2024-03-20T19:22:56.602790Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.604500Z", "completed_at": "2024-03-20T19:22:56.604503Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.013361930847167969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.604971Z", "completed_at": "2024-03-20T19:22:56.613624Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.614384Z", "completed_at": "2024-03-20T19:22:56.614390Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.011507034301757812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.581230Z", "completed_at": "2024-03-20T19:22:56.855047Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.855569Z", "completed_at": "2024-03-20T19:22:56.855576Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.2964460849761963, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_daily_history", "compiled": true, "compiled_code": "\n\n\n \n\n \n\n \n \n\n\nwith spine as (\n \n \n \n\n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 1540\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2020-01-01'as date) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-03-20'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.876938Z", "completed_at": "2024-03-20T19:22:56.884787Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.885256Z", "completed_at": "2024-03-20T19:22:56.885262Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00927591323852539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__monthly_summary", "compiled": true, "compiled_code": "\n\nwith row_month_partition as (\n\n select *, \n date_trunc('month', date_day) as date_month,\n row_number() over (partition by employee_id, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n order by employee_id, date_day\n),\n\nend_of_month_history as (\n \n select *,\n now() as current_date\n from row_month_partition\n where recent_dom_row = 1\n order by employee_id, date_day\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select date_month,\n sum(case when date_month = date_trunc('month', effective_date) then 1 else 0 end) as new_employees,\n sum(case when date_month = date_trunc('month', termination_date) then 1 else 0 end) as churned_employees,\n sum(case when (date_month = date_trunc('month', termination_date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = date_trunc('month', termination_date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = date_trunc('month', wh_end_employment_date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where date_month >= date_trunc('month', effective_date)\n and (date_month <= date_trunc('month', wph_end_employment_date)\n or wph_end_employment_date is null)\n group by 1\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (date_month >= date_trunc('month', effective_date)\n and date_month <= date_trunc('month', wh_end_employment_date))\n or wh_end_employment_date is null\n group by 1\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n order by monthly_employee_metrics.date_month\n)\n\nselect *\nfrom monthly_summary\norder by metrics_month", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.886786Z", "completed_at": "2024-03-20T19:22:56.894061Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.894995Z", "completed_at": "2024-03-20T19:22:56.895003Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.00988626480102539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metrics_month\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.890288Z", "completed_at": "2024-03-20T19:22:56.895426Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.897130Z", "completed_at": "2024-03-20T19:22:56.897136Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008086919784545898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab", "compiled": true, "compiled_code": "\n \n \n\nselect\n metrics_month as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is not null\ngroup by metrics_month\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.608608Z", "completed_at": "2024-03-20T19:22:57.279218Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:57.280874Z", "completed_at": "2024-03-20T19:22:57.280893Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.6991431713104248, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_overview", "compiled": true, "compiled_code": "with employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n position_id,\n position_start_date,\n \"source_relation\",\n \"worker_code\",\n \"user_id\",\n \"universal_id\",\n \"is_user_active\",\n \"is_employed\",\n \"hire_date\",\n \"departure_date\",\n \"days_as_worker\",\n \"is_terminated\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"is_regrettable_termination\",\n \"compensation_effective_date\",\n \"employee_compensation_frequency\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_summary_currency\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_primary_compensation_basis\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"first_name\",\n \"last_name\",\n \"date_of_birth\",\n \"gender\",\n \"is_hispanic_or_latino\",\n \"email_address\",\n \"ethnicity_codes\",\n \"military_status\",\n \"business_title\",\n \"job_profile_id\",\n \"employee_type\",\n \"position_location\",\n \"management_level_code\",\n \"fte_percent\",\n \"position_end_date\",\n \"position_effective_date\",\n \"days_employed\",\n \"is_employed_one_year\",\n \"is_employed_five_years\",\n \"is_employed_ten_years\",\n \"is_employed_twenty_years\",\n \"is_employed_thirty_years\",\n \"is_current_employee_one_year\",\n \"is_current_employee_five_years\",\n \"is_current_employee_ten_years\",\n \"is_current_employee_twenty_years\",\n \"is_current_employee_thirty_years\"\n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_employee_enhanced\" \n)\n\nselect * \nfrom employee_surrogate_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:57.313947Z", "completed_at": "2024-03-20T19:22:57.330021Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:57.332078Z", "completed_at": "2024-03-20T19:22:57.332092Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.021736860275268555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, position_id, position_start_date\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\n group by source_relation, worker_id, position_id, position_start_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:57.323815Z", "completed_at": "2024-03-20T19:22:57.330732Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:57.332584Z", "completed_at": "2024-03-20T19:22:57.332592Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.012320995330810547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "relation_name": null}], "elapsed_time": 4.7460479736328125, "args": {"log_level": "info", "partial_parse": true, "select": [], "target": "postgres", "quiet": false, "warn_error_options": {"include": [], "exclude": []}, "exclude": [], "log_format": "default", "version_check": true, "vars": {}, "cache_selected_only": false, "printer_width": 80, "write_json": true, "profiles_dir": "/Users/avinash.kunnath/.dbt", "enable_legacy_logger": false, "indirect_selection": "eager", "introspect": true, "project_dir": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "send_anonymous_usage_stats": true, "partial_parse_file_diff": true, "print": true, "favor_state": false, "log_level_file": "debug", "which": "generate", "invocation_command": "dbt docs generate -t postgres", "use_colors": true, "log_format_file": "debug", "use_colors_file": true, "static": false, "defer": false, "empty_catalog": false, "log_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests/logs", "populate_cache": true, "static_parser": true, "show_resource_report": false, "macro_debugging": false, "compile": true, "log_file_max_bytes": 10485760, "strict_mode": false}} \ No newline at end of file diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 6191f45..697e3fd 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -33,6 +33,8 @@ vars: workday_worker_leave_status_identifier: "workday_worker_leave_status_data" workday_worker_position_organization_history_identifier: "workday_worker_position_organization_history_data" + employee_history_enabled: true + seeds: +quote_columns: "{{ true if target.type in ('redshift', 'postgres') else false }}" +column_types: diff --git a/models/intermediate/workday_history/int_workday__employee_history.sql b/models/intermediate/workday_history/int_workday__employee_history.sql index 0e244a9..0f2f911 100644 --- a/models/intermediate/workday_history/int_workday__employee_history.sql +++ b/models/intermediate/workday_history/int_workday__employee_history.sql @@ -1,54 +1,21 @@ -{{ config( - enabled= var('employee_history_enabled', False), - materialized='incremental', - unique_key='history_unique_key', - incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'spark', 'databricks') else 'delete+insert', - partition_by={ - "field": "_fivetran_date", - "data_type": "date" - } if target.type not in ('spark','databricks') else ['_fivetran_date'], - file_format='parquet', - on_schema_change='fail' - ) -}} +{{ config(enabled=var('employee_history_enabled', False)) }} with worker_history as ( select * from {{ ref('stg_workday__worker_history') }} - {% if is_incremental() %} - where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= (select max(cast((_fivetran_start) as {{ dbt.type_timestamp() }})) from {{ this }} ) - {% else %} - {% if var('employee_history_start_date',[]) %} - where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('employee_history_start_date') }}" - {% endif %} - {% endif %} ), worker_position_history as ( select * from {{ ref('stg_workday__worker_position_history') }} - {% if is_incremental() %} - where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= (select max(cast((_fivetran_start) as {{ dbt.type_timestamp() }})) from {{ this }} ) - {% else %} - {% if var('employee_history_start_date',[]) %} - where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('employee_history_start_date') }}" - {% endif %} - {% endif %} ), personal_information_history as ( select * from {{ ref('stg_workday__personal_information_history') }} - {% if is_incremental() %} - where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= (select max(cast((_fivetran_start) as {{ dbt.type_timestamp() }})) from {{ this }} ) - {% else %} - {% if var('employee_history_start_date',[]) %} - where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('employee_history_start_date') }}" - {% endif %} - {% endif %} ), worker_start_records as ( @@ -91,6 +58,7 @@ employee_history_scd as ( worker_history_scd._fivetran_end, worker_history._fivetran_active as wh_active, worker_position_history._fivetran_active as wph_active, + personal_information_history._fivetran_active as pih_active, worker_history.end_employment_date as wh_end_employment_date, worker_position_history.end_employment_date as wph_end_employment_date, worker_history.pay_through_date as wh_pay_through_date, @@ -124,9 +92,16 @@ employee_key as ( cast(_fivetran_start as date) as _fivetran_date, employee_history_scd.* from employee_history_scd +), + +history_surrogate_key as ( + + select {{ dbt_utils.generate_surrogate_key(['employee_id', '_fivetran_date']) }} as history_unique_key, + employee_key.* + from employee_key ) select * -from employee_key +from history_surrogate_key diff --git a/models/staging/workday_history/stg_workday__personal_information_history.sql b/models/staging/workday_history/stg_workday__personal_information_history.sql index f58a215..25c6add 100644 --- a/models/staging/workday_history/stg_workday__personal_information_history.sql +++ b/models/staging/workday_history/stg_workday__personal_information_history.sql @@ -1,16 +1,4 @@ -{{ config( - enabled= var('employee_history_enabled', False), - materialized='incremental', - unique_key='history_unique_key', - incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'spark', 'databricks') else 'delete+insert', - partition_by={ - "field": "_fivetran_date", - "data_type": "date" - } if target.type not in ('spark','databricks') else ['_fivetran_date'], - file_format='parquet', - on_schema_change='fail' - ) -}} +{{ config(enabled=var('employee_history_enabled', False)) }} with base as ( diff --git a/models/staging/workday_history/stg_workday__worker_history.sql b/models/staging/workday_history/stg_workday__worker_history.sql index eb3e216..b360c64 100644 --- a/models/staging/workday_history/stg_workday__worker_history.sql +++ b/models/staging/workday_history/stg_workday__worker_history.sql @@ -1,16 +1,4 @@ -{{ config( - enabled= var('employee_history_enabled', False), - materialized='incremental', - unique_key='history_unique_key', - incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'spark', 'databricks') else 'delete+insert', - partition_by={ - "field": "_fivetran_date", - "data_type": "date" - } if target.type not in ('spark','databricks') else ['_fivetran_date'], - file_format='parquet', - on_schema_change='fail' - ) -}} +{{ config(enabled=var('employee_history_enabled', False)) }} with base as ( diff --git a/models/staging/workday_history/stg_workday__worker_position_history.sql b/models/staging/workday_history/stg_workday__worker_position_history.sql index c4a14c3..641ded4 100644 --- a/models/staging/workday_history/stg_workday__worker_position_history.sql +++ b/models/staging/workday_history/stg_workday__worker_position_history.sql @@ -1,16 +1,4 @@ -{{ config( - enabled= var('employee_history_enabled', False), - materialized='incremental', - unique_key='history_unique_key', - incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'spark', 'databricks') else 'delete+insert', - partition_by={ - "field": "_fivetran_date", - "data_type": "date" - } if target.type not in ('spark','databricks') else ['_fivetran_date'], - file_format='parquet', - on_schema_change='fail' - ) -}} +{{ config(enabled=var('employee_history_enabled', False)) }} with base as ( diff --git a/models/staging/workday_history/stg_workday__worker_position_organization_history.sql b/models/staging/workday_history/stg_workday__worker_position_organization_history.sql index 0003c3e..5752cff 100644 --- a/models/staging/workday_history/stg_workday__worker_position_organization_history.sql +++ b/models/staging/workday_history/stg_workday__worker_position_organization_history.sql @@ -1,16 +1,4 @@ -{{ config( - enabled= var('employee_history_enabled', False), - materialized='incremental', - unique_key='history_unique_key', - incremental_strategy='insert_overwrite' if target.type in ('bigquery', 'spark', 'databricks') else 'delete+insert', - partition_by={ - "field": "_fivetran_date", - "data_type": "date" - } if target.type not in ('spark','databricks') else ['_fivetran_date'], - file_format='parquet', - on_schema_change='fail' - ) -}} +{{ config(enabled=var('employee_history_enabled', True)) }} with base as ( diff --git a/models/staging/workday_history/stg_workday_history.yml b/models/staging/workday_history/stg_workday_history.yml index fe5b025..2d31430 100644 --- a/models/staging/workday_history/stg_workday_history.yml +++ b/models/staging/workday_history/stg_workday_history.yml @@ -507,7 +507,7 @@ models: - name: difficulty_to_fill description: '{{ doc("difficulty_to_fill") }}' - - name: position_effective_date + - name: effective_date description: '{{ doc("effective_date") }}' - name: employee_type diff --git a/models/workday_history/workday__employee_daily_history.sql b/models/workday_history/workday__employee_daily_history.sql index bb43657..5d0b767 100644 --- a/models/workday_history/workday__employee_daily_history.sql +++ b/models/workday_history/workday__employee_daily_history.sql @@ -1,17 +1,4 @@ -{{ - config( - enabled = var('employee_history_enabled', False), - materialized = 'incremental', - partition_by = { - 'field': 'date_day', - 'data_type': 'date' - } if target.type not in ['spark', 'databricks'] else ['date_day'], - unique_key = 'employee_day_id', - incremental_strategy = 'insert_overwrite' if target.type in ('bigquery', 'spark', 'databricks') else 'delete+insert', - file_format = 'parquet', - on_schema_change = 'fail' - ) -}} +{{ config(enabled=var('employee_history_enabled', False)) }} {% if execute %} {% set date_query %} @@ -44,13 +31,6 @@ employee_history as ( select * from {{ ref('int_workday__employee_history') }} - {% if is_incremental() %} - where _fivetran_start >= (select max(cast((_fivetran_start) as {{ dbt.type_timestamp() }})) from {{ this }} ) - {% else %} - {% if var('employee_history_start_date',[]) %} - where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('employee_history_start_date') }}" - {% endif %} - {% endif %} ), order_daily_values as ( @@ -73,7 +53,7 @@ get_latest_daily_value as ( daily_history as ( select - {{ dbt_utils.generate_surrogate_key(['spine.date_day','get_latest_daily_value.employee_id']) }} as employee_day_id, + {{ dbt_utils.generate_surrogate_key(['spine.date_day','get_latest_daily_value.history_unique_key']) }} as employee_day_id, cast(spine.date_day as date) as date_day, get_latest_daily_value.* from get_latest_daily_value diff --git a/models/workday_history/workday_history.yml b/models/workday_history/workday_history.yml index e69de29..95cc131 100644 --- a/models/workday_history/workday_history.yml +++ b/models/workday_history/workday_history.yml @@ -0,0 +1,433 @@ +version: 2 + +models: + - name: workday__employee_daily_history + description: Each record is a daily record in an employee, starting with its first active date and updating up toward either the current date (if still active) or its last active date. + columns: + - name: employee_day_id + description: Surrogate key hashed on `date_day` and `employee_id` + tests: + - unique + - not_null + + - name: date_day + description: Date on which the account had these field values. + + - name: employee_id + description: '{{ doc("employee_id") }}' + + - name: _fivetran_date + description: '{{ doc("_fivetran_date") }}' + + - name: worker_id + description: '{{ doc("worker_id") }}' + + - name: position_id + description: '{{ doc("position_id") }}' + + - name: _fivetran_start + description: '{{ doc("_fivetran_start") }}' + + - name: _fivetran_end + description: '{{ doc("_fivetran_end") }}' + + - name: wh_active + description: Is the worker history record the most recently active. + + - name: wph_active + description: Is the worker position history record the most recently active. + + - name: wh_end_employment_date + description: '{{ doc("end_employment_date") }}' + + - name: wph_end_employment_date + description: '{{ doc("end_employment_date") }}' + + - name: wh_pay_through_date + description: '{{ doc("pay_through_date") }}' + + - name: wph_pay_through_date + description: '{{ doc("pay_through_date") }}' + + - name: termination_date + description: '{{ doc("termination_date") }}' + + - name: academic_tenure_date + description: '{{ doc("academic_tenure_date") }}' + + - name: active + description: '{{ doc("active") }}' + + - name: active_status_date + description: '{{ doc("active_status_date") }}' + + - name: annual_currency_summary_currency + description: '{{ doc("annual_currency_summary_currency") }}' + + - name: annual_currency_summary_frequency + description: '{{ doc("annual_currency_summary_frequency") }}' + + - name: annual_currency_summary_primary_compensation_basis + description: '{{ doc("annual_currency_summary_primary_compensation_basis") }}' + + - name: annual_currency_summary_total_base_pay + description: '{{ doc("annual_currency_summary_total_base_pay") }}' + + - name: annual_currency_summary_total_salary_and_allowances + description: '{{ doc("annual_currency_summary_total_salary_and_allowances") }}' + + - name: annual_summary_currency + description: '{{ doc("annual_summary_currency") }}' + + - name: annual_summary_frequency + description: '{{ doc("annual_summary_frequency") }}' + + - name: annual_summary_primary_compensation_basis + description: '{{ doc("annual_summary_primary_compensation_basis") }}' + + - name: annual_summary_total_base_pay + description: '{{ doc("annual_summary_total_base_pay") }}' + + - name: annual_summary_total_salary_and_allowances + description: '{{ doc("annual_summary_total_salary_and_allowances") }}' + + - name: benefits_service_date + description: '{{ doc("benefits_service_date") }}' + + - name: company_service_date + description: '{{ doc("company_service_date") }}' + + - name: compensation_effective_date + description: '{{ doc("compensation_effective_date") }}' + + - name: compensation_grade_id + description: '{{ doc("compensation_grade_id") }}' + + - name: compensation_grade_profile_id + description: '{{ doc("compensation_grade_profile_id") }}' + + - name: continuous_service_date + description: '{{ doc("continuous_service_date") }}' + + - name: contract_assignment_details + description: '{{ doc("contract_assignment_details") }}' + + - name: contract_currency_code + description: '{{ doc("contract_currency_code") }}' + + - name: contract_end_date + description: '{{ doc("contract_end_date") }}' + + - name: contract_frequency_name + description: '{{ doc("contract_frequency_name") }}' + + - name: contract_pay_rate + description: '{{ doc("contract_pay_rate") }}' + + - name: contract_vendor_name + description: '{{ doc("contract_vendor_name") }}' + + - name: date_entered_workforce + description: '{{ doc("date_entered_workforce") }}' + + - name: days_unemployed + description: '{{ doc("days_unemployed") }}' + + - name: eligible_for_hire + description: '{{ doc("eligible_for_hire") }}' + + - name: eligible_for_rehire_on_latest_termination + description: '{{ doc("eligible_for_rehire_on_latest_termination") }}' + + - name: employee_compensation_currency + description: '{{ doc("employee_compensation_currency") }}' + + - name: employee_compensation_frequency + description: '{{ doc("employee_compensation_frequency") }}' + + - name: employee_compensation_primary_compensation_basis + description: '{{ doc("employee_compensation_primary_compensation_basis") }}' + + - name: employee_compensation_total_base_pay + description: '{{ doc("employee_compensation_total_base_pay") }}' + + - name: employee_compensation_total_salary_and_allowances + description: '{{ doc("employee_compensation_total_salary_and_allowances") }}' + + - name: end_employment_date + description: '{{ doc("end_employment_date") }}' + + - name: expected_date_of_return + description: '{{ doc("expected_date_of_return") }}' + + - name: expected_retirement_date + description: '{{ doc("expected_retirement_date") }}' + + - name: first_day_of_work + description: '{{ doc("first_day_of_work") }}' + + - name: is_has_international_assignment + description: '{{ doc("has_international_assignment") }}' + + - name: hire_date + description: '{{ doc("hire_date") }}' + + - name: hire_reason + description: '{{ doc("hire_reason") }}' + + - name: is_hire_rescinded + description: '{{ doc("hire_rescinded") }}' + + - name: home_country + description: '{{ doc("home_country") }}' + + - name: hourly_frequency_currency + description: '{{ doc("hourly_frequency_currency") }}' + + - name: hourly_frequency_frequency + description: '{{ doc("hourly_frequency_frequency") }}' + + - name: hourly_frequency_primary_compensation_basis + description: '{{ doc("hourly_frequency_primary_compensation_basis") }}' + + - name: hourly_frequency_total_base_pay + description: '{{ doc("hourly_frequency_total_base_pay") }}' + + - name: hourly_frequency_total_salary_and_allowances + description: '{{ doc("hourly_frequency_total_salary_and_allowances") }}' + + - name: last_datefor_which_paid + description: '{{ doc("last_datefor_which_paid") }}' + + - name: local_termination_reason + description: '{{ doc("local_termination_reason") }}' + + - name: months_continuous_prior_employment + description: '{{ doc("months_continuous_prior_employment") }}' + + - name: is_not_returning + description: '{{ doc("not_returning") }}' + + - name: original_hire_date + description: '{{ doc("original_hire_date") }}' + + - name: pay_group_frequency_currency + description: '{{ doc("pay_group_frequency_currency") }}' + + - name: pay_group_frequency_frequency + description: '{{ doc("pay_group_frequency_frequency") }}' + + - name: pay_group_frequency_primary_compensation_basis + description: '{{ doc("pay_group_frequency_primary_compensation_basis") }}' + + - name: pay_group_frequency_total_base_pay + description: '{{ doc("pay_group_frequency_total_base_pay") }}' + + - name: pay_group_frequency_total_salary_and_allowances + description: '{{ doc("pay_group_frequency_total_salary_and_allowances") }}' + + - name: pay_through_date + description: '{{ doc("pay_through_date") }}' + + - name: primary_termination_category + description: '{{ doc("primary_termination_category") }}' + + - name: primary_termination_reason + description: '{{ doc("primary_termination_reason") }}' + + - name: probation_end_date + description: '{{ doc("probation_end_date") }}' + + - name: probation_start_date + description: '{{ doc("probation_start_date") }}' + + - name: reason_reference_id + description: '{{ doc("reason_reference_id") }}' + + - name: is_regrettable_termination + description: '{{ doc("regrettable_termination") }}' + + - name: is_rehire + description: '{{ doc("rehire") }}' + + - name: resignation_date + description: '{{ doc("resignation_date") }}' + + - name: is_retired + description: '{{ doc("retired") }}' + + - name: retirement_date + description: '{{ doc("retirement_date") }}' + + - name: retirement_eligibility_date + description: '{{ doc("retirement_eligibility_date") }}' + + - name: is_return_unknown + description: '{{ doc("return_unknown") }}' + + - name: seniority_date + description: '{{ doc("seniority_date") }}' + + - name: severance_date + description: '{{ doc("severance_date") }}' + + - name: is_terminated + description: '{{ doc("is_terminated") }}' + + - name: termination_date + description: '{{ doc("termination_date") }}' + + - name: is_termination_involuntary + description: '{{ doc("termination_involuntary") }}' + + - name: termination_last_day_of_work + description: '{{ doc("termination_last_day_of_work") }}' + + - name: time_off_service_date + description: '{{ doc("time_off_service_date") }}' + + - name: universal_id + description: '{{ doc("universal_id") }}' + + - name: user_id + description: '{{ doc("user_id") }}' + + - name: vesting_date + description: '{{ doc("vesting_date") }}' + + - name: worker_code + description: '{{ doc("worker_code") }}' + + - name: effective_date + + - name: position_start_date + + - name: position_end_date + + + - name: workday__monthly_summary + description: Each record is a month, aggregated from the last day of each month of the employee daily history. This captures monthly metrics. + columns: + - name: metrics_month + description: Month in which metrics are being aggregated. + tests: + - unique + - not_null + + - name: new_employees + description: New employees that came in this month. + + - name: churned_employees + description: Churned employees that came in this month. + + - name: churned_voluntary_employees + description: Voluntary churned employees that came in this month. + + - name: churned_involuntary_employees + description: Involuntary churned employees that came in this month. + + - name: churned_workers + description: Churned workers that came in this month. + + - name: active_employees + description: Employees considered active this month. + + - name: active_male_employees + description: Male employees considered active this month. + + - name: active_female_employees + description: Female employees considered active this month. + + - name: active_workers + description: Workers considered active this month. + + - name: active_known_gender_employees + description: Known gender employees considered active this month. + + - name: avg_employee_primary_compensation + description: Average primary compensation salary of employee that month. + + - name: avg_employee_base_pay + description: Average base pay of the employee that month. + + - name: avg_employee_salary_and_allowances + description: Average salary and allowances of the employee that month. + + - name: avg_days_as_employee + description: Average days employee has been active month. + + - name: avg_worker_primary_compensation + description: Average primary compensation for the worker this month. + + - name: avg_worker_base_pay + description: Average base pay for the worker this month. + + - name: avg_worker_salary_and_allowances + description: Average salary plus allowances for the worker this month. + + - name: avg_days_as_worker + description: Average days as a worker this month. + +models: + - name: workday__monthly_summary + description: Each record is a month, with aggregated metrics regarding employees for a customer. + columns: + - name: metrics_month + description: Month with aggregated metrics + tests: + - unique + - not_null + + - name: new_employees + description: New employees added in the specified month. + + - name: churned_employees + description: Employees that churned in the specified month. + + - name: churned_voluntary_employees + description: Employees that churned voluntarily in the specified month. + + - name: churned_involuntary_employees + description: Employees that churned involuntarily in the specified month. + + - name: churned_workers + description: Workers that churned in the specified month. + + - name: active_employees + description: Employees considered active in the specified month. + + - name: active_male_employees + description: Employees with a known gender of male that were active in the specified month. + + - name: active_female_employees + description: Employees with a known gender of female that were active in the specified month. + + - name: active_workers + description: Workers considered active in the specified month. + + - name: active_known_gender_employees + description: Employees with a known gender that were active in the specified month. + + - name: avg_employee_primary_compensation + description: Average primary compensation for employees in the specified month. + + - name: avg_employee_base_pay + description: Average base pay for employees in the specified month. + + - name: avg_employee_salary_and_allowances + description: Average salary and allowances for employees in the specified month. + + - name: avg_days_as_employee + description: Average number of days an employee has been employed in the specified month. + + - name: avg_worker_primary_compensation + description: Average primary compensation for workers in the specified month. + + - name: avg_worker_base_pay + description: Average base pay for workers in the specified month. + + - name: avg_worker_salary_and_allowances + description: Average salary and allowances for workers in the specified month. + + - name: avg_days_as_worker + description: Average number of days a worker has been employed in the specified month. \ No newline at end of file From a91d72b8e69ff6d7174474d651ddc45781492769 Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Mon, 25 Mar 2024 11:56:58 -0400 Subject: [PATCH 10/20] add worker-position-org history model and documentation --- .buildkite/scripts/run_models.sh | 2 - CHANGELOG.md | 14 ++- DECISIONLOG.md | 10 +- models/docs.md | 2 + .../workday__employee_daily_history.sql | 2 +- ...day__worker_position_org_daily_history.sql | 68 +++++++++++ models/workday_history/workday_history.yml | 109 ++++++++---------- 7 files changed, 139 insertions(+), 68 deletions(-) create mode 100644 models/workday_history/workday__worker_position_org_daily_history.sql diff --git a/.buildkite/scripts/run_models.sh b/.buildkite/scripts/run_models.sh index a289f22..778d9f5 100644 --- a/.buildkite/scripts/run_models.sh +++ b/.buildkite/scripts/run_models.sh @@ -21,7 +21,5 @@ dbt run --target "$db" --full-refresh dbt test --target "$db" dbt run --vars '{employee_history_enabled: true}' --target "$db" --full-refresh dbt test --target "$db" -dbt run --vars '{employee_history_enabled: true}' --target "$db" --full-refresh -dbt test --target "$db" dbt run-operation fivetran_utils.drop_schemas_automation --target "$db" \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c0e964..1eb786c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,18 +7,22 @@ - Using this surrogate key as our grain will hopefully provide uniqueness for the majority of Workday HCM customer cases. ## 🚀 Feature Updates 🚀 -- We have added staging history mode models in the [`models/history`](https://github.com/fivetran/dbt_workday/tree/main/models/staging/history) folder [to support Fivetran's history mode feature](https://fivetran.com/docs/core-concepts/sync-modes/history-mode). +- We have added three end models in the [`models/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/workday_history) folder -This will allow customers to utilize the Fivetran history mode feature, which records every version of each record in the source table from the moment this mode is activated in the equivalent tables. +- We have added staging history mode models in the [`models/staging/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/staging/workday_history) folder [to support Fivetran's history mode feature](https://fivetran.com/docs/core-concepts/sync-modes/history-mode). -These staging models include: +- This will allow customers to utilize the Fivetran history mode feature, which records every version of each record in the source table from the moment this mode is activated in the equivalent tables. + +- These staging models include: - `stg_workday__personal_information_history`: Containing historical records of a worker's personal information. - `stg_workday__worker_history`: Containing historical records of a worker's history. - `stg_workday__worker_position_history`: Containing historical records of a worker's position history. - - `stg_workday__worker_position_organization_history`: Containing historical records of a worker's position history. + - `stg_workday__worker_position_organization_history`: Containing historical records of a worker's position and organization history. + +- We have then utilized the `workday__employee_daily_history` model in the [`models/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/workday_history) folder [based off of Fivetran's history mode feature](https://fivetran.com/docs/core-concepts/sync-modes/history-mode), pulling from Workday HCM source models you can view in the [`models/staging/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/staging/ -- We have then utilized the `workday__employee_daily_history` model in the [`models/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/workday_history) folder [based off of Fivetran's history mode feature](https://fivetran.com/docs/core-concepts/sync-modes/history-mode), pulling from Workday HCM source models you can view in the [`models/staging/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/staging/workday_history) folder. +- We have kept the `stg_workday__worker_position_organization_history` model separate, as organizational data is too flexible in Workday to effectively join in the majority of data. We leave it to the customer - These models are disabled by default due to their size, so you will need to set the below variable configurations for each of the individual models you want to utilize in your `dbt_project.yml`. diff --git a/DECISIONLOG.md b/DECISIONLOG.md index e36dd49..4a9ebaa 100644 --- a/DECISIONLOG.md +++ b/DECISIONLOG.md @@ -7,4 +7,12 @@ However, in the Workday HCM case, we have found that History Mode does not fit t For this reason, we will recommend users utilize the `--full-refresh` method to grab records to maintain accuracy. So we recommend that you optimize your refresh strategy when using this package to reduce warehouse load and minimize costs. -We welcome all attempts to optimize this strategy though, and would be open to enhancements to the package! \ No newline at end of file +We welcome all attempts to optimize this strategy though, and would be open to enhancements to the package! + +## Why we kept the worker position organization history model separate from the employee daily history model + +The intent of the `workday__employee_daily_history` model was to combine historical data from all relevant worker history models and gather a daily look at that data based on employee and worker. + +However, with `stg_workday__worker_position_organization_history`, the values for organization are too customizable, and thus impossible to just into an `employee_daily_history` model with any clear definitions. + +Instead we have decided to keep the model separate in `workday__worker_position_org_history`, leaving end customers the ability to configure what organizations they end up joining into the employee daily history within their warehouses. The `int_workday__employee_history` model provides a solid guide into configuring your own custom-type history mode model. \ No newline at end of file diff --git a/models/docs.md b/models/docs.md index cc2063b..98db6a2 100644 --- a/models/docs.md +++ b/models/docs.md @@ -194,6 +194,8 @@ {% docs email_comment %} Any additional comments or notes related to the email address. {% enddocs %} +{% docs employee_id %} Surrogate key on `worker_id`, `position_id`, `position_start_date` to create unique identifier for a Workday employee. {% enddocs %} + {% docs employed_five_years %} Tracks whether a worker was employed at least five years. {% enddocs %} {% docs employed_one_year %} Tracks whether a worker was employed at least one year. {% enddocs %} diff --git a/models/workday_history/workday__employee_daily_history.sql b/models/workday_history/workday__employee_daily_history.sql index 5d0b767..a1cd084 100644 --- a/models/workday_history/workday__employee_daily_history.sql +++ b/models/workday_history/workday__employee_daily_history.sql @@ -3,7 +3,7 @@ {% if execute %} {% set date_query %} select - {{ dbt.date_trunc('day', dbt.current_timestamp_backcompat()) }} as max_date + {{ dbt.date_trunc('day', dbt.current_timestamp()) }} as max_date {% endset %} {% set last_date = run_query(date_query).columns[0][0]|string %} diff --git a/models/workday_history/workday__worker_position_org_daily_history.sql b/models/workday_history/workday__worker_position_org_daily_history.sql new file mode 100644 index 0000000..36b420f --- /dev/null +++ b/models/workday_history/workday__worker_position_org_daily_history.sql @@ -0,0 +1,68 @@ +{{ config(enabled=var('employee_history_enabled', False)) }} + +{% if execute %} + {% set date_query %} + select + {{ dbt.date_trunc('day', dbt.current_timestamp()) }} as max_date + {% endset %} + + {% set last_date = run_query(date_query).columns[0][0]|string %} + + {# If only compiling, creates range going back 1 year #} + {% else %} + {% set last_date = dbt.dateadd("year", "-1", "current_date") %} +{% endif %} + + +with spine as ( + {# Prioritizes variables over calculated dates #} + {% set first_date = var('employee_history_start_date', '2020-01-01')|string %} + {% set last_date = last_date|string %} + + {{ dbt_utils.date_spine( + datepart="day", + start_date = "cast('" ~ first_date[0:10] ~ "'as date)", + end_date = "cast('" ~ last_date[0:10] ~ "'as date)" + ) + }} +), + +worker_position_org_history as ( + + select * + from {{ ref('stg_workday__worker_position_organization_history') }} +), + + +order_daily_values as ( + + select + *, + row_number() over ( + partition by _fivetran_date, history_unique_key + order by _fivetran_start desc) as row_num + from worker_position_org_history +), + +get_latest_daily_value as ( + + select * + from order_daily_values + where row_num = 1 +), + +daily_history as ( + + select + {{ dbt_utils.generate_surrogate_key(['spine.date_day', + 'get_latest_daily_value.history_unique_key']) }} + as wpo_day_id, + cast(spine.date_day as date) as date_day, + get_latest_daily_value.* + from get_latest_daily_value + join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }}) + and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }}) +) + +select * +from daily_history \ No newline at end of file diff --git a/models/workday_history/workday_history.yml b/models/workday_history/workday_history.yml index 95cc131..0687f2f 100644 --- a/models/workday_history/workday_history.yml +++ b/models/workday_history/workday_history.yml @@ -368,66 +368,57 @@ models: - name: avg_days_as_worker description: Average days as a worker this month. -models: - - name: workday__monthly_summary - description: Each record is a month, with aggregated metrics regarding employees for a customer. + - name: workday__worker_position_org_daily_history + description: Each record is a daily record for a worker/position/organization combination, starting with its first active date and updating up toward either the current date (if still active) or its last active date. columns: - - name: metrics_month - description: Month with aggregated metrics + - name: wpo_day_id + description: Surrogate key hashed on `date_day` and `history_unique_key` tests: - unique - not_null - - - name: new_employees - description: New employees added in the specified month. - - - name: churned_employees - description: Employees that churned in the specified month. - - - name: churned_voluntary_employees - description: Employees that churned voluntarily in the specified month. - - - name: churned_involuntary_employees - description: Employees that churned involuntarily in the specified month. - - - name: churned_workers - description: Workers that churned in the specified month. - - - name: active_employees - description: Employees considered active in the specified month. - - - name: active_male_employees - description: Employees with a known gender of male that were active in the specified month. - - - name: active_female_employees - description: Employees with a known gender of female that were active in the specified month. - - - name: active_workers - description: Workers considered active in the specified month. - - - name: active_known_gender_employees - description: Employees with a known gender that were active in the specified month. - - - name: avg_employee_primary_compensation - description: Average primary compensation for employees in the specified month. - - - name: avg_employee_base_pay - description: Average base pay for employees in the specified month. - - - name: avg_employee_salary_and_allowances - description: Average salary and allowances for employees in the specified month. - - - name: avg_days_as_employee - description: Average number of days an employee has been employed in the specified month. - - - name: avg_worker_primary_compensation - description: Average primary compensation for workers in the specified month. - - - name: avg_worker_base_pay - description: Average base pay for workers in the specified month. - - - name: avg_worker_salary_and_allowances - description: Average salary and allowances for workers in the specified month. - - - name: avg_days_as_worker - description: Average number of days a worker has been employed in the specified month. \ No newline at end of file + - name: date_day + description: Date on which the account had these field values. + - name: worker_id + description: '{{ doc("worker_id") }}' + tests: + - not_null + + - name: position_id + description: '{{ doc("position_id") }}' + tests: + - not_null + + - name: organization_id + description: '{{ doc("organization_id") }}' + tests: + - not_null + + - name: _fivetran_start + description: '{{ doc("_fivetran_start") }}' + + - name: _fivetran_end + description: '{{ doc("_fivetran_end") }}' + + - name: _fivetran_date + description: '{{ doc("_fivetran_date") }}' + + - name: history_unique_key + description: Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, and `_fivetran_start` . + + - name: _fivetran_active + description: '{{ doc("_fivetran_active") }}' + + - name: _fivetran_synced + description: '{{ doc("_fivetran_synced") }}' + + - name: index + description: '{{ doc("index") }}' + + - name: date_of_pay_group_assignment + description: '{{ doc("date_of_pay_group_assignment") }}' + + - name: primary_business_site + description: '{{ doc("primary_business_site") }}' + + - name: is_used_in_change_organization_assignments + description: '{{ doc("used_in_change_organization_assignments") }}' \ No newline at end of file From 62a1fa062e76da94d8464e6a1fcb54ead8e57ea0 Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Wed, 27 Mar 2024 00:17:32 -0400 Subject: [PATCH 11/20] model & documentation updates --- CHANGELOG.md | 22 ++++++++++++------- ..._workday__personal_information_history.sql | 6 ++++- .../stg_workday__worker_history.sql | 16 ++++++++++++-- .../stg_workday__worker_position_history.sql | 11 +++++++++- ...__worker_position_organization_history.sql | 4 +++- models/workday_history/workday_history.yml | 10 +++++---- 6 files changed, 52 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1eb786c..d29580f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,17 +1,20 @@ # dbt_workday v0.2.0 ## 🚨 Breaking Changes 🚨 -- Created a surrogate key `employee_id` in `workday__employee_overview` that combines `worker_id`, `position_id`, and `position_start_date`. This accounts for the edge cases where: +- Created a surrogate key `employee_id` in `workday__employee_overview` that combines `worker_id`, `position_id`, and `position_start_date`. This accounts for edge cases like when: - A worker can hold multiple positions concurrently. - A position being held by multiple workers concurrently. - - A worker being rehired for the same position. -- Using this surrogate key as our grain will hopefully provide uniqueness for the majority of Workday HCM customer cases. + - A worker being rehired for the same position. ## 🚀 Feature Updates 🚀 -- We have added three end models in the [`models/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/workday_history) folder +- We have added three end models in the [`models/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/workday_history) folder [thanks to support from Fivetran's history mode feature](https://fivetran.com/docs/core-concepts/sync-modes/history-mode). These models provide historical daily data looks into crucial worker/employee Workday models, as well as allowing users to assess monthly summary metrics. These end models include: -- We have added staging history mode models in the [`models/staging/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/staging/workday_history) folder [to support Fivetran's history mode feature](https://fivetran.com/docs/core-concepts/sync-modes/history-mode). + - `workday__employee_daily_history`: Each record is a daily record in an employee, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to track the daily history of their employees from when they started. -- This will allow customers to utilize the Fivetran history mode feature, which records every version of each record in the source table from the moment this mode is activated in the equivalent tables. + - `workday__monthly_summary`: Each record is a month, aggregated from the last day of each month of the employee daily history. This captures monthly metrics of workers, such as average salary, churned and retained employees, etc. + + - `workday_worker_position_org_daily_history`: Each record is a daily record for a worker/position/organization combination, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to tie in organizations to employees via other organization models (such as `workday__organization_overview`) more easily in their warehouses. + +- We have added staging history mode models in the [`models/staging/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/staging/workday_history) folder. This allows customers to utilize the Fivetran history mode feature, which records every version of each record in the source table from the moment this mode is activated in the equivalent tables. - These staging models include: @@ -20,9 +23,9 @@ - `stg_workday__worker_position_history`: Containing historical records of a worker's position history. - `stg_workday__worker_position_organization_history`: Containing historical records of a worker's position and organization history. -- We have then utilized the `workday__employee_daily_history` model in the [`models/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/workday_history) folder [based off of Fivetran's history mode feature](https://fivetran.com/docs/core-concepts/sync-modes/history-mode), pulling from Workday HCM source models you can view in the [`models/staging/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/staging/ +- We have then utilized the `workday__employee_daily_history` model in the [`models/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/workday_history) folder [based off of Fivetran's history mode feature](https://fivetran.com/docs/core-concepts/sync-modes/history-mode), pulling from Workday HCM source models you can view in the [`models/staging/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/staging/) -- We have kept the `stg_workday__worker_position_organization_history` model separate, as organizational data is too flexible in Workday to effectively join in the majority of data. We leave it to the customer +- We have kept the `stg_workday__worker_position_organization_history` model separate, as organizational data is too flexible in Workday to effectively join in the majority of data. We leave it to the customer to use their best judgement in joining this data into other end models in their own warehouse. [See the DECISIONLOG for more details](https://github.com/fivetran/dbt_workday/blob/main/DECISIONLOG.md). - These models are disabled by default due to their size, so you will need to set the below variable configurations for each of the individual models you want to utilize in your `dbt_project.yml`. @@ -39,6 +42,9 @@ vars: - Workday HCM History Mode models can contain a multitude of rows if you bring in all historical data, so we've introduced the flexibility to set first date filters to bring in only the historical data you need. [More details can be found in the README](https://github.com/fivetran/dbt_workday/blob/main/README.md#filter-your-workday-hcm-history-mode-models). +## 🚘 Under the Hood 🚘 +- Created `int_workday__worker_employee_enhanced` model to simplify end model processing in the `workday__employee_overview`, which is now focused on generating the surrogate key. + # dbt_workday v0.1.1 [PR #4](https://github.com/fivetran/dbt_workday/pull/4) contains the following updates: diff --git a/models/staging/workday_history/stg_workday__personal_information_history.sql b/models/staging/workday_history/stg_workday__personal_information_history.sql index 25c6add..970ed1a 100644 --- a/models/staging/workday_history/stg_workday__personal_information_history.sql +++ b/models/staging/workday_history/stg_workday__personal_information_history.sql @@ -16,9 +16,13 @@ final as ( cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, cast(_fivetran_start as date) as _fivetran_date, + hispanic_or_latino as is_hispanic_or_latino, + local_hukou as is_local_hukou, + tobacco_use as is_tobacco_use, {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key, {{ dbt_utils.star(from=source('workday','personal_information_history'), - except=["id", "_fivetran_start", "_fivetran_end"]) }} + except=["id", "_fivetran_start", "_fivetran_end", "hispanic_or_latino", + "local_hukou", "tobacco_use"]) }} from base ) diff --git a/models/staging/workday_history/stg_workday__worker_history.sql b/models/staging/workday_history/stg_workday__worker_history.sql index b360c64..34e8a1f 100644 --- a/models/staging/workday_history/stg_workday__worker_history.sql +++ b/models/staging/workday_history/stg_workday__worker_history.sql @@ -16,11 +16,23 @@ final as ( cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, cast(_fivetran_start as date) as _fivetran_date, - cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date, + cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date, cast(termination_date as {{ dbt.type_timestamp() }}) as termination_date, + active as is_active, + has_international_assignment as is_has_international_assignment, + hire_rescinded as is_hire_rescinded, + not_returning as is_not_returning, + regrettable_termination as is_regrettable_termination, + rehire as is_rehire, + retired as is_retired, + return_unknown as is_return_unknown, + terminated as is_terminated, + termination_involuntary as is_termination_involuntary, {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key, {{ dbt_utils.star(from=source('workday','worker_history'), - except=["id", "_fivetran_start", "_fivetran_end", "home_country", "end_employment_date", "termination_date"]) }} + except=["id", "_fivetran_start", "_fivetran_end", "home_country", "end_employment_date", "termination_date", "active", + "has_international_assignment", "hire_rescinded", "not_returning", "regrettable_termination", "rehire", + "retired", "return_unknown", "terminated", "termination_involuntary"]) }} from base ) diff --git a/models/staging/workday_history/stg_workday__worker_position_history.sql b/models/staging/workday_history/stg_workday__worker_position_history.sql index 641ded4..e74af43 100644 --- a/models/staging/workday_history/stg_workday__worker_position_history.sql +++ b/models/staging/workday_history/stg_workday__worker_position_history.sql @@ -21,11 +21,20 @@ final as ( cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date, cast(start_date as {{ dbt.type_timestamp() }}) as position_start_date, cast(end_date as {{ dbt.type_timestamp() }}) as position_end_date, + business_site_summary_location as position_location, + exclude_from_head_count as is_exclude_from_head_count, + full_time_equivalent_percentage as fte_percent, + job_exempt as is_job_exempt, + specify_paid_fte as is_specify_paid_fte, + specify_working_fte as is_specify_working_fte, + work_shift_required as is_work_shift_required, {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', '_fivetran_start']) }} as history_unique_key, {{ dbt_utils.star(from=source('workday','worker_position_history'), except=["worker_id", "position_id", "_fivetran_start", "_fivetran_end", "home_country", "effective_date", "end_employment_date", - "start_date", "end_date"]) }} + "start_date", "end_date", "business_site_summary_location", "exclude_from_head_count", + "full_time_equivalent_percentage", "job_exempt", "specify_paid_fte", + "specify_working_fte", "work_shift_required"]) }} from base ) diff --git a/models/staging/workday_history/stg_workday__worker_position_organization_history.sql b/models/staging/workday_history/stg_workday__worker_position_organization_history.sql index 5752cff..ce8d00c 100644 --- a/models/staging/workday_history/stg_workday__worker_position_organization_history.sql +++ b/models/staging/workday_history/stg_workday__worker_position_organization_history.sql @@ -18,9 +18,11 @@ final as ( cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, cast(_fivetran_start as date) as _fivetran_date, + used_in_change_organization_assignments as is_used_in_change_organization_assignments, {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'organization_id', '_fivetran_start']) }} as history_unique_key, {{ dbt_utils.star(from=source('workday','worker_position_organization_history'), - except=["worker_id", "position_id", "organization_id", "_fivetran_start", "_fivetran_end"]) }} + except=["worker_id", "position_id", "organization_id", "_fivetran_start", "_fivetran_end", + "used_in_change_organization_assignments"]) }} from base ) diff --git a/models/workday_history/workday_history.yml b/models/workday_history/workday_history.yml index 0687f2f..bc992a9 100644 --- a/models/workday_history/workday_history.yml +++ b/models/workday_history/workday_history.yml @@ -2,7 +2,7 @@ version: 2 models: - name: workday__employee_daily_history - description: Each record is a daily record in an employee, starting with its first active date and updating up toward either the current date (if still active) or its last active date. + description: Each record is a daily record in an employee, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to track the daily history of their employees from when they started. columns: - name: employee_day_id description: Surrogate key hashed on `date_day` and `employee_id` @@ -299,14 +299,16 @@ models: description: '{{ doc("worker_code") }}' - name: effective_date + description: '{{ doc("effective_date") }}' - name: position_start_date + description: '{{ doc("start_date") }}' - name: position_end_date - + description: '{{ doc("end_date") }}' - name: workday__monthly_summary - description: Each record is a month, aggregated from the last day of each month of the employee daily history. This captures monthly metrics. + description: Each record is a month, aggregated from the last day of each month of the employee daily history. This captures monthly metrics of workers, such as average salary, churned and retained employees, etc. columns: - name: metrics_month description: Month in which metrics are being aggregated. @@ -369,7 +371,7 @@ models: description: Average days as a worker this month. - name: workday__worker_position_org_daily_history - description: Each record is a daily record for a worker/position/organization combination, starting with its first active date and updating up toward either the current date (if still active) or its last active date. + description: Each record is a daily record for a worker/position/organization combination, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to tie in organizations to employees via other organization models (such as `workday__organization_overview`) more easily in their warehouses. columns: - name: wpo_day_id description: Surrogate key hashed on `date_day` and `history_unique_key` From 533e4661d14aed4398fec0506fd42c3338a0166d Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Mon, 1 Apr 2024 04:13:34 -0700 Subject: [PATCH 12/20] PR review notes --- .buildkite/scripts/run_models.sh | 3 +- CHANGELOG.md | 19 +- DECISIONLOG.md | 2 - README.md | 57 ++--- dbt_project.yml | 4 +- models/docs.md | 16 +- .../int_workday__worker_position_enriched.sql | 2 - .../int_workday__employee_history.sql | 213 ++++++++++++++++-- ..._workday__personal_information_history.sql | 57 +++++ .../stg_workday__worker_history.sql | 107 +++++++++ .../stg_workday__worker_position_history.sql | 90 ++++++++ ...__worker_position_organization_history.sql | 19 +- .../stg_workday_history.yml | 24 +- ..._workday__personal_information_history.sql | 30 --- .../stg_workday__worker_history.sql | 40 ---- .../stg_workday__worker_position_history.sql | 42 ---- models/workday.yml | 51 +---- models/workday__employee_overview.sql | 54 ++++- .../workday__employee_daily_history.sql | 28 ++- .../workday__monthly_summary.sql | 22 +- ...day__worker_position_org_daily_history.sql | 35 ++- models/workday_history/workday_history.yml | 27 ++- 22 files changed, 652 insertions(+), 290 deletions(-) create mode 100644 models/staging/stg_workday_history/stg_workday__personal_information_history.sql create mode 100644 models/staging/stg_workday_history/stg_workday__worker_history.sql create mode 100644 models/staging/stg_workday_history/stg_workday__worker_position_history.sql rename models/staging/{workday_history => stg_workday_history}/stg_workday__worker_position_organization_history.sql (50%) rename models/staging/{workday_history => stg_workday_history}/stg_workday_history.yml (97%) delete mode 100644 models/staging/workday_history/stg_workday__personal_information_history.sql delete mode 100644 models/staging/workday_history/stg_workday__worker_history.sql delete mode 100644 models/staging/workday_history/stg_workday__worker_position_history.sql diff --git a/.buildkite/scripts/run_models.sh b/.buildkite/scripts/run_models.sh index 778d9f5..1001f6b 100644 --- a/.buildkite/scripts/run_models.sh +++ b/.buildkite/scripts/run_models.sh @@ -21,5 +21,6 @@ dbt run --target "$db" --full-refresh dbt test --target "$db" dbt run --vars '{employee_history_enabled: true}' --target "$db" --full-refresh dbt test --target "$db" - +dbt run --vars '{employee_history_enabled: true}' --target "$db" +dbt test --target "$db" dbt run-operation fivetran_utils.drop_schemas_automation --target "$db" \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index d29580f..216698e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # dbt_workday v0.2.0 -## 🚨 Breaking Changes 🚨 -- Created a surrogate key `employee_id` in `workday__employee_overview` that combines `worker_id`, `position_id`, and `position_start_date`. This accounts for edge cases like when: +## 🔑 New Primary Key 🔑 +- Created a surrogate key `employee_id` in `workday__employee_overview` that combines `worker_id`, `source_relation`, `position_id`, and `position_start_date`. This accounts for edge cases like when: - A worker can hold multiple positions concurrently. - A position being held by multiple workers concurrently. - A worker being rehired for the same position. @@ -14,7 +14,7 @@ - `workday_worker_position_org_daily_history`: Each record is a daily record for a worker/position/organization combination, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to tie in organizations to employees via other organization models (such as `workday__organization_overview`) more easily in their warehouses. -- We have added staging history mode models in the [`models/staging/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/staging/workday_history) folder. This allows customers to utilize the Fivetran history mode feature, which records every version of each record in the source table from the moment this mode is activated in the equivalent tables. +- We have added staging history mode models in the [`models/staging/stg_workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/staging/stg_workday_history) folder. This allows customers to utilize the Fivetran history mode feature, which records every version of each record in the source table from the moment this mode is activated in the equivalent tables. - These staging models include: @@ -23,7 +23,7 @@ - `stg_workday__worker_position_history`: Containing historical records of a worker's position history. - `stg_workday__worker_position_organization_history`: Containing historical records of a worker's position and organization history. -- We have then utilized the `workday__employee_daily_history` model in the [`models/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/workday_history) folder [based off of Fivetran's history mode feature](https://fivetran.com/docs/core-concepts/sync-modes/history-mode), pulling from Workday HCM source models you can view in the [`models/staging/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/staging/) +- We have then utilized the `workday__employee_daily_history` model in the [`models/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/workday_history) folder [based off of Fivetran's history mode feature](https://fivetran.com/docs/core-concepts/sync-modes/history-mode), pulling from Workday HCM source models you can view in the [`models/staging/stg_workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/staging/stg_workday_history) folder. - We have kept the `stg_workday__worker_position_organization_history` model separate, as organizational data is too flexible in Workday to effectively join in the majority of data. We leave it to the customer to use their best judgement in joining this data into other end models in their own warehouse. [See the DECISIONLOG for more details](https://github.com/fivetran/dbt_workday/blob/main/DECISIONLOG.md). @@ -31,15 +31,20 @@ ```yml vars: - employee_history_enabled: true ##Ex: employee_history_enabled: true + employee_history_enabled: true +``` + +- Users can set a custom `employee_history_start_date` filter to narrow down the number of historical records they bring into your staging and end models. By default, the package will use the minimum `_fivetran_start` date to generate the start date for the final daily history models. This default may be overwritten to your liking by leveraging the below variable. + +```yml +vars: + employee_history_start_date: 'YYYY-MM-DD' # The first `_fivetran_start` date you'd like to filter data on in all your history models. ``` - We have also added the `workday__monthly_summary` model in the [`models/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/workday_history) folder. This table aggregates high-level monthly metrics to track changes over time to overall employee data for a customer. - We have chosen not to implement incremental logic in the history models due to the future-facing updating of Workday HCM transactions beyond current daily updates. [See the DECISIONLOG](https://github.com/fivetran/dbt_workday/blob/main/DECISIONLOG.md) for more details. -- We support the option to pull from both your Workday HCM and History Mode connectors simultaneously from their specific database/schemas. We also support pulling from just your History Mode connector on its own and bypassing the standard connector on its own. [See more detailed instructions in the README](https://github.com/fivetran/dbt_workday/blob/main/README.md#configuring-your-workday-history-mode-database-and-schema-variables). - - Workday HCM History Mode models can contain a multitude of rows if you bring in all historical data, so we've introduced the flexibility to set first date filters to bring in only the historical data you need. [More details can be found in the README](https://github.com/fivetran/dbt_workday/blob/main/README.md#filter-your-workday-hcm-history-mode-models). ## 🚘 Under the Hood 🚘 diff --git a/DECISIONLOG.md b/DECISIONLOG.md index 4a9ebaa..0b8cfc3 100644 --- a/DECISIONLOG.md +++ b/DECISIONLOG.md @@ -5,8 +5,6 @@ However, in the Workday HCM case, we have found that History Mode does not fit t * Transactions can be future-dated. The most common case is an employee being hired for a future date beyond the current date, so an incremental run will pick up numerous records in the future, leading to potential duplications down the road for an employee's records. * There are additional cases where an employee's record can be updated in the past beyond a common incremental window. -For this reason, we will recommend users utilize the `--full-refresh` method to grab records to maintain accuracy. So we recommend that you optimize your refresh strategy when using this package to reduce warehouse load and minimize costs. - We welcome all attempts to optimize this strategy though, and would be open to enhancements to the package! ## Why we kept the worker position organization history model separate from the employee daily history model diff --git a/README.md b/README.md index a8ba483..599884f 100644 --- a/README.md +++ b/README.md @@ -34,14 +34,16 @@ This package generates a comprehensive data dictionary of your Workday HCM data The following table provides a detailed list of all models materialized within this package by default. > TIP: See more details about these models in the package's [dbt docs site](https://fivetran.github.io/dbt_workday/#!/overview/workday). -| **model** | **description** |**available in Quickstart?** +| **model** | **description** | ------------------------- | ------------------------------------------------------------------------------------------------------------------|------------------------------ -| [workday__employee_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__employee_overview) | Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees. | Yes -| [workday__job_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__job_overview) | Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings. | Yes -| [workday__organization_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__organization_overview) | Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures. | Yes -| [workday__position_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__position_overview) | Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts. | Yes -| [workday__employee_daily_history](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__employee_daily_history) | Each record represents a daily record for an employee, employee position, and employee personal information within Workday HCM, to help customers gather the most historically accurate data regarding their employees. | No -| [workday__monthly_summary](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__monthly_summary) | Each record is a month, aggregated from the last day of each month of the employee daily history. This captures monthly aggregated metrics to track trends like employee additions and churns, salary movements, demographic changes, etc. | No +| [workday__employee_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__employee_overview) | Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees. +| [workday__job_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__job_overview) | Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings. +| [workday__organization_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__organization_overview) | Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures. +| [workday__position_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__position_overview) | Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts. +| [workday__employee_daily_history](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__employee_daily_history) | Each record represents a daily record for an employee, employee position, and employee personal information within Workday HCM, to help customers gather the most historically accurate data regarding their employees. +| [workday__monthly_summary](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__monthly_summary) | Each record is a month, aggregated from the last day of each month of the employee daily history. This captures monthly aggregated metrics to track trends like employee additions and churns, salary movements, demographic changes, etc. +| [workday__worker_position_org_daily](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__worker_position_org_daily) | Each record is a daily record for a worker/position/organization combination, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to tie in organizations to employees via other organization models (such as `workday__organization_overview`) more easily in their warehouses. + # 🎯 How do I use the dbt package? @@ -95,51 +97,19 @@ Please be aware that the native `source.yml` connection set up in the package wi To connect your multiple schema/database sources to the package models, follow the steps outlined in the [Union Data Defined Sources Configuration](https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source) section of the Fivetran Utils documentation for the union_data macro. This will ensure a proper configuration and correct visualization of connections in the DAG. -## (Optional) Step 4: Utilizing Workday HCM History Mode records +## (Optional) Step 4: Utilizing Workday HCM History Mode -If you have History Mode enabled for your Workday HCM connector, we now include support for the worker, worker position, worker position organization, and personal information tables directly. You can view these files in the [`staging/workday_history`](https://github.com/fivetran/dbt_workday/blob/main/models/staging/workday_history) folder. This staging data then flows into the employee daily history model, which in turn populates the monthly summary model. This will allow you access to your historical data for these tables for the most accurate record of your data over time. +If you have History Mode enabled for your Workday HCM connector, we now include support for the worker, worker position, worker position organization, and personal information tables directly. You can view these files in the [`staging/stg_workday_history`](https://github.com/fivetran/dbt_workday/blob/main/models/staging/stg_workday_history) folder. This staging data then flows into the employee daily history model, which in turn populates the monthly summary model. This will allow you access to your historical data for these tables for the most accurate record of your data over time. ### IMPORTANT: How To Update Your History Models To ensure maximum value for these history mode models and avoid messy historical data that could come with picking and choosing which fields you bring in, **all fields in your Workday HCM history mode connector are being synced into the workday history staging models**. - To update the history mode models, you must follow these steps: 1) Go to your Fivetran Workday HCM History Mode connector page. -2) Update the fields that you are bringing into the model. -3) Run a `dbt run --full-refresh` on the specific staging models you've updated to bring in these fields and all the historical data available with these fields. +2) Update the fields that you are bringing into the model. We are aware that bringing in additional fields will be very process-heavy, so we do emphasize caution in making changes to your history mode connector. It would be best to batch as many field changes as possible before executing a `--full-refresh` to save on processing. - -### Configuring Your Workday HCM History Mode Database and Schema Variables -Customers leveraging the Workday HCM connector generally fall into one of two categories when taking advantage of History mode. They either have one connector that is syncing non-historical records and a separate connector that syncs historical records, **or** they have one connector that is syncing historical records. We have designed this feature to support both scenarios. - -#### Option 1: Two connectors, one with non-historical data and another with historical data -If you are gathering data from both standard Workday HCM as well as Workday HCM History Mode, and your target database and schema differ as well, you will need to add an additional configuration for the history schema and database to your `dbt_project.yml`. - -```yml -vars: - workday_database: your_database_name # workday by default - workday_schema: your_schema_name - - workday_history_database: your_history_database_name # workday_history by default - workday_history_schema: your_history_schema_name -``` - -#### Option 2: One connector being used to sync historical data -Perhaps you may only want to use the Workday HCM History Mode to bring in your data. Because the Workday HCM schema is pointing to the default `workday` schema and database, you will want to add the following variable into your `dbt_project.yml` to point it to the `workday_history` equivalents. - -```yml -vars: - workday_database: your_history_database_name # workday by default - workday_schema: your_history_schema_name - - workday_history_database: your_history_database_name # workday_history by default - workday_history_schema: your_history_schema_name -``` - -**IMPORTANT**: If you utilize Option 2, you must sync the equivalent enabled tables and fields in your history mode connector that are being brought into your end reports. Examine your data lineage and the model fields within the `workday` folder to see which tables and fields you are using and need to bring in and sync in the history mode connector. - ### Enabling Workday HCM History Mode Models The History Mode models can get quite expansive since it will take in **ALL** historical records, so we've disabled them by default. You can enable the history models you'd like to utilize by adding the below variable configurations within your `dbt_project.yml` file for the equivalent models. @@ -152,11 +122,10 @@ vars: ``` ### Filter your Workday HCM History Mode models -By default, these history models are set to bring in all your data from Workday HCM History, but you may be interested in bringing in only a smaller sample of historical records, given the relative size of the Workday HCM history source tables. By default, the package will use `2020-01-01` as the minimum date for the historical end models. This date was chosen to ensure there was a limit to the amount of historical data processed on first run. This default may be overwritten to your liking by leveraging the below variables. +By default, these history models are set to bring in all your data from Workday HCM History, but you may be interested in bringing in only a smaller sample of historical records, given the relative size of the Workday HCM history source tables. By default, the package will use the minimum `_fivetran_start` date for the historical end models. This default may be overwritten to your liking by leveraging the below variable. We have set up where conditions in our staging models to allow you to bring in only the data you need to run in. You can set a global history filter that would apply to all of our staging history models in your `dbt_project.yml`: - ```yml vars: employee_history_start_date: 'YYYY-MM-DD' # The first `_fivetran_start` date you'd like to filter data on in all your history models. diff --git a/dbt_project.yml b/dbt_project.yml index 0beabc4..6f70016 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -8,10 +8,12 @@ models: +schema: workday +materialized: table intermediate: - +materialized: table + +materialized: ephemeral staging: +materialized: view +schema: stg_workday + stg_workday_history: + +materialized: ephemeral workday_history: +materialized: table diff --git a/models/docs.md b/models/docs.md index 98db6a2..7322d16 100644 --- a/models/docs.md +++ b/models/docs.md @@ -162,7 +162,7 @@ {% docs date_of_recall %} The date of recall. {% enddocs %} -{% docs days_at_position %} The number of days the worker has held their most recent position. {% enddocs %} +{% docs days_employed %} The number of days the employee held their position. {% enddocs %} {% docs days_of_employment %} Number of days employed by the worker. {% enddocs %} @@ -194,7 +194,7 @@ {% docs email_comment %} Any additional comments or notes related to the email address. {% enddocs %} -{% docs employee_id %} Surrogate key on `worker_id`, `position_id`, `position_start_date` to create unique identifier for a Workday employee. {% enddocs %} +{% docs employee_id %} Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee. {% enddocs %} {% docs employed_five_years %} Tracks whether a worker was employed at least five years. {% enddocs %} @@ -479,17 +479,13 @@ {% docs months_continuous_prior_employment %} Number of months of continuous prior employment. {% enddocs %} -{% docs most_recent_level %} The most recent level of the worker. {% enddocs %} +{% docs position_location %} The position location of the employee. {% enddocs %} -{% docs most_recent_location %} The most recent location of the worker. {% enddocs %} +{% docs position_effective_date %} The position effective date for the employee. {% enddocs %} -{% docs most_recent_position_effective_date %} The most recent position effective date for the employee. {% enddocs %} +{% docs position_end_date %} The position end date for this employee. {% enddocs %} -{% docs most_recent_position_end_date %} The most recent position end date for the employee. {% enddocs %} - -{% docs most_recent_position_start_date %} The most recent position start date for the employee. {% enddocs %} - -{% docs most_recent_position_type %} The most recent position type of the worker. {% enddocs %} +{% docs position_start_date %} The position start date for this employee. {% enddocs %} {% docs multiple_child_indicator %} Indicator for multiple children. {% enddocs %} diff --git a/models/intermediate/int_workday__worker_position_enriched.sql b/models/intermediate/int_workday__worker_position_enriched.sql index 58f18ab..c6c7c79 100644 --- a/models/intermediate/int_workday__worker_position_enriched.sql +++ b/models/intermediate/int_workday__worker_position_enriched.sql @@ -32,8 +32,6 @@ worker_position_data_enhanced as ( worker_position_enriched as ( select - {{ dbt_utils.generate_surrogate_key(['worker_position_data_enhanced.worker_id', - 'position_id', 'position_start_date']) }} as employee_id, worker_position_data_enhanced.worker_id, worker_position_data_enhanced.source_relation, worker_position_data_enhanced.position_id, diff --git a/models/intermediate/workday_history/int_workday__employee_history.sql b/models/intermediate/workday_history/int_workday__employee_history.sql index 0f2f911..ac39913 100644 --- a/models/intermediate/workday_history/int_workday__employee_history.sql +++ b/models/intermediate/workday_history/int_workday__employee_history.sql @@ -20,24 +20,27 @@ personal_information_history as ( worker_start_records as ( - select worker_id, + select worker_id, + source_relation, _fivetran_start from worker_history union distinct select worker_id, + source_relation, _fivetran_start from worker_position_history union distinct select worker_id, + source_relation, _fivetran_start from personal_information_history - order by worker_id, _fivetran_start + order by worker_id, source_relation, _fivetran_start ), worker_history_end_values as ( select *, - lead({{ dbt.dateadd('microsecond', -1, '_fivetran_start') }} ) over(partition by worker_id order by _fivetran_start) as eventual_fivetran_end + lead({{ dbt.dateadd('microsecond', -1, '_fivetran_start') }} ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end from worker_start_records ), @@ -47,48 +50,224 @@ worker_history_scd as ( coalesce(cast(eventual_fivetran_end as {{ dbt.type_timestamp() }}), cast('9999-12-31 23:59:59.999000' as {{ dbt.type_timestamp() }})) as _fivetran_end from worker_history_end_values - order by worker_id, _fivetran_start, _fivetran_end + order by worker_id, source_relation, _fivetran_start, _fivetran_end ), employee_history_scd as ( - select worker_history_scd.worker_id, + select worker_history_scd.worker_id, + worker_history_scd.source_relation, worker_position_history.position_id, worker_history_scd._fivetran_start, worker_history_scd._fivetran_end, - worker_history._fivetran_active as wh_active, - worker_position_history._fivetran_active as wph_active, - personal_information_history._fivetran_active as pih_active, - worker_history.end_employment_date as wh_end_employment_date, - worker_position_history.end_employment_date as wph_end_employment_date, - worker_history.pay_through_date as wh_pay_through_date, - worker_position_history.pay_through_date as wph_pay_through_date, - {{ dbt_utils.star(from=ref('stg_workday__worker_history'), except=["worker_id", "_fivetran_start", "_fivetran_end", "_fivetran_synced", "_fivetran_active", "_fivetran_date", "history_unique_key", "end_employment_date", "pay_through_date"]) }}, - {{ dbt_utils.star(from=ref('stg_workday__worker_position_history'), except=["worker_id", "position_id", "_fivetran_start", "_fivetran_end", "_fivetran_synced", "_fivetran_active", "_fivetran_date", "history_unique_key", "end_employment_date", "pay_through_date"])}}, - {{ dbt_utils.star(from=ref('stg_workday__personal_information_history'), except=["worker_id", "_fivetran_start", "_fivetran_end", "_fivetran_synced", "_fivetran_active", "_fivetran_date", "history_unique_key"])}} + worker_history._fivetran_active as is_wh_fivetran_active, + worker_position_history._fivetran_active as is_wph_fivetran_active, + personal_information_history._fivetran_active as is_pih_fivetran_active, + worker_history.academic_tenure_date, + worker_history.is_active, + worker_history.active_status_date, + worker_history.annual_currency_summary_currency, + worker_history.annual_currency_summary_frequency, + worker_history.annual_currency_summary_primary_compensation_basis, + worker_history.annual_currency_summary_total_base_pay, + worker_history.annual_currency_summary_total_salary_and_allowances, + worker_history.annual_summary_currency, + worker_history.annual_summary_frequency, + worker_history.annual_summary_primary_compensation_basis, + worker_history.annual_summary_total_base_pay, + worker_history.annual_summary_total_salary_and_allowances, + worker_history.benefits_service_date, + worker_history.company_service_date, + worker_history.compensation_effective_date, + worker_history.compensation_grade_id, + worker_history.compensation_grade_profile_id, + worker_history.continuous_service_date, + worker_history.contract_assignment_details, + worker_history.contract_currency_code, + worker_history.contract_end_date, + worker_history.contract_frequency_name, + worker_history.contract_pay_rate, + worker_history.contract_vendor_name, + worker_history.date_entered_workforce, + worker_history.days_unemployed, + worker_history.eligible_for_hire, + worker_history.eligible_for_rehire_on_latest_termination, + worker_history.employee_compensation_currency, + worker_history.employee_compensation_frequency, + worker_history.employee_compensation_primary_compensation_basis, + worker_history.employee_compensation_total_base_pay, + worker_history.employee_compensation_total_salary_and_allowances, + worker_history.end_employment_date, + worker_history.expected_date_of_return, + worker_history.expected_retirement_date, + worker_history.first_day_of_work, + worker_history.is_has_international_assignment, + worker_history.hire_date, + worker_history.hire_reason, + worker_history.is_hire_rescinded, + worker_history.home_country, + worker_history.hourly_frequency_currency, + worker_history.hourly_frequency_frequency, + worker_history.hourly_frequency_primary_compensation_basis, + worker_history.hourly_frequency_total_base_pay, + worker_history.hourly_frequency_total_salary_and_allowances, + worker_history.last_datefor_which_paid, + worker_history.local_termination_reason, + worker_history.months_continuous_prior_employment, + worker_history.is_not_returning, + worker_history.original_hire_date, + worker_history.pay_group_frequency_currency, + worker_history.pay_group_frequency_frequency, + worker_history.pay_group_frequency_primary_compensation_basis, + worker_history.pay_group_frequency_total_base_pay, + worker_history.pay_group_frequency_total_salary_and_allowances, + worker_history.pay_through_date, + worker_history.primary_termination_category, + worker_history.primary_termination_reason, + worker_history.probation_end_date, + worker_history.probation_start_date, + worker_history.reason_reference_id, + worker_history.is_regrettable_termination, + worker_history.is_rehire, + worker_history.resignation_date, + worker_history.is_retired, + worker_history.retirement_date, + worker_history.retirement_eligibility_date, + worker_history.is_return_unknown, + worker_history.seniority_date, + worker_history.severance_date, + worker_history.is_terminated, + worker_history.termination_date, + worker_history.is_termination_involuntary, + worker_history.termination_last_day_of_work, + worker_history.time_off_service_date, + worker_history.universal_id, + worker_history.user_id, + worker_history.vesting_date, + worker_history.worker_code, + worker_position_history.position_location, + worker_position_history.is_exclude_from_head_count, + worker_position_history.fte_percent, + worker_position_history.is_job_exempt, + worker_position_history.is_specify_paid_fte, + worker_position_history.is_specify_working_fte, + worker_position_history.is_work_shift_required, + worker_position_history.academic_pay_setup_data_annual_work_period_end_date, + worker_position_history.academic_pay_setup_data_annual_work_period_start_date, + worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year, + worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date, + worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date, + worker_position_history.business_site_summary_display_language, + worker_position_history.business_site_summary_local, + worker_position_history.position_location, + worker_position_history.business_site_summary_location_type, + worker_position_history.business_site_summary_name, + worker_position_history.business_site_summary_scheduled_weekly_hours, + worker_position_history.business_site_summary_time_profile, + worker_position_history.business_title, + worker_position_history.is_critical_job, + worker_position_history.default_weekly_hours, + worker_position_history.difficulty_to_fill, + worker_position_history.position_effective_date, + worker_position_history.employee_type, + worker_position_history.position_end_date, + worker_position_history.end_employment_date, + worker_position_history.is_exclude_from_head_count, + worker_position_history.expected_assignment_end_date, + worker_position_history.external_employee, + worker_position_history.federal_withholding_fein, + worker_position_history.frequency, + worker_position_history.fte_percent, + worker_position_history.headcount_restriction_code, + worker_position_history.home_country, + worker_position_history.host_country, + worker_position_history.international_assignment_type, + worker_position_history.is_primary_job, + worker_position_history.is_job_exempt, + worker_position_history.job_profile_id, + worker_position_history.management_level_code, + worker_position_history.paid_fte, + worker_position_history.pay_group, + worker_position_history.pay_rate, + worker_position_history.pay_rate_type, + worker_position_history.pay_through_date, + worker_position_history.payroll_entity, + worker_position_history.payroll_file_number, + worker_position_history.regular_paid_equivalent_hours, + worker_position_history.scheduled_weekly_hours, + worker_position_history.is_specify_paid_fte, + worker_position_history.is_specify_working_fte, + worker_position_history.position_start_date, + worker_position_history.start_international_assignment_reason, + worker_position_history.work_hours_profile, + worker_position_history.work_shift, + worker_position_history.is_work_shift_required, + worker_position_history.work_space, + worker_position_history.worker_hours_profile_classification, + worker_position_history.worker_id, + worker_position_history.working_fte, + worker_position_history.working_time_frequency, + worker_position_history.working_time_unit, + worker_position_history.working_time_value, + personal_information_history.additional_nationality, + personal_information_history.blood_type, + personal_information_history.citizenship_status, + personal_information_history.city_of_birth, + personal_information_history.city_of_birth_code, + personal_information_history.country_of_birth, + personal_information_history.date_of_birth, + personal_information_history.date_of_death, + personal_information_history.gender, + personal_information_history.is_hispanic_or_latino, + personal_information_history.hukou_locality, + personal_information_history.hukou_postal_code, + personal_information_history.hukou_region, + personal_information_history.hukou_subregion, + personal_information_history.hukou_type, + personal_information_history.last_medical_exam_date, + personal_information_history.last_medical_exam_valid_to, + personal_information_history.is_local_hukou, + personal_information_history.marital_status, + personal_information_history.marital_status_date, + personal_information_history.medical_exam_notes, + personal_information_history.native_region, + personal_information_history.native_region_code, + personal_information_history.personnel_file_agency, + personal_information_history.political_affiliation, + personal_information_history.primary_nationality, + personal_information_history.region_of_birth, + personal_information_history.region_of_birth_code, + personal_information_history.religion, + personal_information_history.social_benefit, + personal_information_history.is_tobacco_use, + personal_information_history.type + from worker_history_scd left join worker_history on worker_history_scd.worker_id = worker_history.worker_id + and worker_history_scd.source_relation = worker_history.source_relation and worker_history_scd._fivetran_start <= worker_history._fivetran_end and worker_history_scd._fivetran_end >= worker_history._fivetran_start left join worker_position_history on worker_history_scd.worker_id = worker_position_history.worker_id + and worker_history_scd.source_relation = worker_position_history.source_relation and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start left join personal_information_history on worker_history_scd.worker_id = personal_information_history.worker_id + and worker_history_scd.source_relation = personal_information_history.source_relation and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start - order by worker_id, _fivetran_start, _fivetran_end + order by worker_id, source_relation, _fivetran_start, _fivetran_end ), employee_key as ( - select {{ dbt_utils.generate_surrogate_key(['worker_id','position_id','position_start_date']) }} as employee_id, + select {{ dbt_utils.generate_surrogate_key(['worker_id', 'source_relation', 'position_id', 'position_start_date']) }} as employee_id, cast(_fivetran_start as date) as _fivetran_date, employee_history_scd.* from employee_history_scd diff --git a/models/staging/stg_workday_history/stg_workday__personal_information_history.sql b/models/staging/stg_workday_history/stg_workday__personal_information_history.sql new file mode 100644 index 0000000..80db142 --- /dev/null +++ b/models/staging/stg_workday_history/stg_workday__personal_information_history.sql @@ -0,0 +1,57 @@ +{{ config(enabled=var('employee_history_enabled', False)) }} + +with base as ( + + select * + from {{ ref('stg_workday__personal_information_base') }} + {% if var('employee_history_start_date',[]) %} + where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('employee_history_start_date') }}" + {% endif %} +), + +final as ( + + select + id as worker_id, + source_relation, + cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, + cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, + cast(_fivetran_start as date) as _fivetran_date, + {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as stg_history_unique_key, + additional_nationality, + blood_type, + citizenship_status, + city_of_birth, + city_of_birth_code, + country_of_birth, + date_of_birth, + date_of_death, + gender, + hispanic_or_latino as is_hispanic_or_latino, + hukou_locality, + hukou_postal_code, + hukou_region, + hukou_subregion, + hukou_type, + last_medical_exam_date, + last_medical_exam_valid_to, + local_hukou as is_local_hukou, + marital_status, + marital_status_date, + medical_exam_notes, + native_region, + native_region_code, + personnel_file_agency, + political_affiliation, + primary_nationality, + region_of_birth, + region_of_birth_code, + religion, + social_benefit, + tobacco_use as is_tobacco_use, + type + from base +) + +select * +from final \ No newline at end of file diff --git a/models/staging/stg_workday_history/stg_workday__worker_history.sql b/models/staging/stg_workday_history/stg_workday__worker_history.sql new file mode 100644 index 0000000..2520363 --- /dev/null +++ b/models/staging/stg_workday_history/stg_workday__worker_history.sql @@ -0,0 +1,107 @@ +{{ config(enabled=var('employee_history_enabled', False)) }} + +with base as ( + + select * + from {{ ref('stg_workday__worker_base') }} + {% if var('employee_history_start_date',[]) %} + where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('employee_history_start_date') }}" + {% endif %} +), + +final as ( + + select + id as worker_id, + source_relation, + cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, + cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, + cast(_fivetran_start as date) as _fivetran_date, + {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key, + academic_tenure_date, + active as is_active, + active_status_date, + annual_currency_summary_currency, + annual_currency_summary_frequency, + annual_currency_summary_primary_compensation_basis, + annual_currency_summary_total_base_pay, + annual_currency_summary_total_salary_and_allowances, + annual_summary_currency, + annual_summary_frequency, + annual_summary_primary_compensation_basis, + annual_summary_total_base_pay, + annual_summary_total_salary_and_allowances, + benefits_service_date, + company_service_date, + compensation_effective_date, + compensation_grade_id, + compensation_grade_profile_id, + continuous_service_date, + contract_assignment_details, + contract_currency_code, + contract_end_date, + contract_frequency_name, + contract_pay_rate, + contract_vendor_name, + date_entered_workforce, + days_unemployed, + eligible_for_hire, + eligible_for_rehire_on_latest_termination, + employee_compensation_currency, + employee_compensation_frequency, + employee_compensation_primary_compensation_basis, + employee_compensation_total_base_pay, + employee_compensation_total_salary_and_allowances, + cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date, + expected_date_of_return, + expected_retirement_date, + first_day_of_work, + has_international_assignment as is_has_international_assignment, + hire_date, + hire_reason, + hire_rescinded as is_hire_rescinded, + home_country, + hourly_frequency_currency, + hourly_frequency_frequency, + hourly_frequency_primary_compensation_basis, + hourly_frequency_total_base_pay, + hourly_frequency_total_salary_and_allowances, + last_datefor_which_paid, + local_termination_reason, + months_continuous_prior_employment, + not_returning as is_not_returning, + original_hire_date, + pay_group_frequency_currency, + pay_group_frequency_frequency, + pay_group_frequency_primary_compensation_basis, + pay_group_frequency_total_base_pay, + pay_group_frequency_total_salary_and_allowances, + pay_through_date, + primary_termination_category, + primary_termination_reason, + probation_end_date, + probation_start_date, + reason_reference_id, + regrettable_termination as is_regrettable_termination, + rehire as is_rehire, + resignation_date, + retired as is_retired, + retirement_date, + retirement_eligibility_date, + return_unknown as is_return_unknown, + seniority_date, + severance_date, + terminated as is_terminated, + cast(termination_date as {{ dbt.type_timestamp() }}) as termination_date, + termination_involuntary as is_termination_involuntary, + termination_last_day_of_work, + time_off_service_date, + universal_id, + user_id, + vesting_date, + worker_code + from base +) + +select * +from final \ No newline at end of file diff --git a/models/staging/stg_workday_history/stg_workday__worker_position_history.sql b/models/staging/stg_workday_history/stg_workday__worker_position_history.sql new file mode 100644 index 0000000..3219d58 --- /dev/null +++ b/models/staging/stg_workday_history/stg_workday__worker_position_history.sql @@ -0,0 +1,90 @@ +{{ config(enabled=var('employee_history_enabled', False)) }} + +with base as ( + + select * + from {{ ref('stg_workday__worker_position_base') }} + {% if var('employee_history_start_date',[]) %} + where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('employee_history_start_date') }}" + {% endif %} +), + +final as ( + + select + worker_id, + position_id, + source_relation, + cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, + cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, + cast(_fivetran_start as date) as _fivetran_date, + {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', '_fivetran_start']) }} as stg_history_unique_key, + business_site_summary_location as position_location, + exclude_from_head_count as is_exclude_from_head_count, + full_time_equivalent_percentage as fte_percent, + job_exempt as is_job_exempt, + specify_paid_fte as is_specify_paid_fte, + specify_working_fte as is_specify_working_fte, + work_shift_required as is_work_shift_required, + academic_pay_setup_data_annual_work_period_end_date, + academic_pay_setup_data_annual_work_period_start_date, + academic_pay_setup_data_annual_work_period_work_percent_of_year, + academic_pay_setup_data_disbursement_plan_period_end_date, + academic_pay_setup_data_disbursement_plan_period_start_date, + business_site_summary_display_language, + business_site_summary_local, + business_site_summary_location as position_location, + business_site_summary_location_type, + business_site_summary_name, + business_site_summary_scheduled_weekly_hours, + business_site_summary_time_profile, + business_title, + critical_job as is_critical_job, + default_weekly_hours, + difficulty_to_fill, + cast(effective_date as {{ dbt.type_timestamp() }}) as position_effective_date, + employee_type, + cast(end_date as {{ dbt.type_timestamp() }}) as position_end_date, + cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date, + exclude_from_head_count as is_exclude_from_head_count, + expected_assignment_end_date, + external_employee, + federal_withholding_fein, + frequency, + full_time_equivalent_percentage as fte_percent, + headcount_restriction_code, + home_country, + host_country, + international_assignment_type, + is_primary_job, + job_exempt as is_job_exempt, + job_profile_id, + management_level_code, + paid_fte, + pay_group, + pay_rate, + pay_rate_type, + pay_through_date, + payroll_entity, + payroll_file_number, + regular_paid_equivalent_hours, + scheduled_weekly_hours, + specify_paid_fte as is_specify_paid_fte, + specify_working_fte as is_specify_working_fte, + cast(start_date as {{ dbt.type_timestamp() }}) as position_start_date, + start_international_assignment_reason, + work_hours_profile, + work_shift, + work_shift_required as is_work_shift_required, + work_space, + worker_hours_profile_classification, + worker_id, + working_fte, + working_time_frequency, + working_time_unit, + working_time_value + from base +) + +select * +from final \ No newline at end of file diff --git a/models/staging/workday_history/stg_workday__worker_position_organization_history.sql b/models/staging/stg_workday_history/stg_workday__worker_position_organization_history.sql similarity index 50% rename from models/staging/workday_history/stg_workday__worker_position_organization_history.sql rename to models/staging/stg_workday_history/stg_workday__worker_position_organization_history.sql index ce8d00c..060f6c9 100644 --- a/models/staging/workday_history/stg_workday__worker_position_organization_history.sql +++ b/models/staging/stg_workday_history/stg_workday__worker_position_organization_history.sql @@ -1,9 +1,9 @@ -{{ config(enabled=var('employee_history_enabled', True)) }} +{{ config(enabled=var('employee_history_enabled', False)) }} with base as ( select * - from {{ source('workday','worker_position_organization_history') }} + from {{ ref('stg_workday__position_organization_base') }} {% if var('employee_history_start_date',[]) %} where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('employee_history_start_date') }}" {% endif %} @@ -14,15 +14,16 @@ final as ( select worker_id, position_id, - organization_id, + organization_id, + source_relation, cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, - cast(_fivetran_start as date) as _fivetran_date, - used_in_change_organization_assignments as is_used_in_change_organization_assignments, - {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'organization_id', '_fivetran_start']) }} as history_unique_key, - {{ dbt_utils.star(from=source('workday','worker_position_organization_history'), - except=["worker_id", "position_id", "organization_id", "_fivetran_start", "_fivetran_end", - "used_in_change_organization_assignments"]) }} + cast(_fivetran_start as date) as _fivetran_date, + {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'organization_id', 'source_relation', '_fivetran_start']) }} as stg_history_unique_key, + index, + date_of_pay_group_assignment, + primary_business_site, + used_in_change_organization_assignments as is_used_in_change_organization_assignments from base ) diff --git a/models/staging/workday_history/stg_workday_history.yml b/models/staging/stg_workday_history/stg_workday_history.yml similarity index 97% rename from models/staging/workday_history/stg_workday_history.yml rename to models/staging/stg_workday_history/stg_workday_history.yml index 2d31430..91c966d 100644 --- a/models/staging/workday_history/stg_workday_history.yml +++ b/models/staging/stg_workday_history/stg_workday_history.yml @@ -15,6 +15,9 @@ models: tests: - not_null + - name: source_relation + description: '{{ doc("source_relation") }}' + - name: _fivetran_start description: '{{ doc("_fivetran_start") }}' @@ -24,7 +27,7 @@ models: - name: _fivetran_date description: '{{ doc("_fivetran_date") }}' - - name: history_unique_key + - name: stg_history_unique_key description: Surrogate key hashed on `worker_id` and `_fivetran_start`. tests: - unique @@ -147,6 +150,9 @@ models: tests: - not_null + - name: source_relation + description: '{{ doc("source_relation") }}' + - name: _fivetran_start description: '{{ doc("_fivetran_start") }}' @@ -156,14 +162,11 @@ models: - name: _fivetran_date description: '{{ doc("_fivetran_date") }}' - - name: history_unique_key + - name: stg_history_unique_key description: Surrogate key hashed on `worker_id` and `_fivetran_start`. tests: - unique - not_null - tests: - - unique - - not_null - name: _fivetran_active description: '{{ doc("_fivetran_active") }}' @@ -437,6 +440,9 @@ models: description: '{{ doc("position_id") }}' tests: - not_null + + - name: source_relation + description: '{{ doc("source_relation") }}' - name: _fivetran_start description: '{{ doc("_fivetran_start") }}' @@ -447,7 +453,7 @@ models: - name: _fivetran_date description: '{{ doc("_fivetran_date") }}' - - name: history_unique_key + - name: stg_history_unique_key description: Surrogate key hashed on `position_id`, `worker_id` and `_fivetran_start` . tests: - unique @@ -626,7 +632,6 @@ models: - name: working_time_value description: '{{ doc("working_time_value") }}' - - name: stg_workday__worker_position_organization_history @@ -655,6 +660,9 @@ models: tests: - not_null + - name: source_relation + description: '{{ doc("source_relation") }}' + - name: _fivetran_start description: '{{ doc("_fivetran_start") }}' @@ -664,7 +672,7 @@ models: - name: _fivetran_date description: '{{ doc("_fivetran_date") }}' - - name: history_unique_key + - name: stg_history_unique_key description: Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, and `_fivetran_start` . tests: - unique diff --git a/models/staging/workday_history/stg_workday__personal_information_history.sql b/models/staging/workday_history/stg_workday__personal_information_history.sql deleted file mode 100644 index 970ed1a..0000000 --- a/models/staging/workday_history/stg_workday__personal_information_history.sql +++ /dev/null @@ -1,30 +0,0 @@ -{{ config(enabled=var('employee_history_enabled', False)) }} - -with base as ( - - select * - from {{ source('workday','personal_information_history') }} - {% if var('employee_history_start_date',[]) %} - where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('employee_history_start_date') }}" - {% endif %} -), - -final as ( - - select - id as worker_id, - cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, - cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, - cast(_fivetran_start as date) as _fivetran_date, - hispanic_or_latino as is_hispanic_or_latino, - local_hukou as is_local_hukou, - tobacco_use as is_tobacco_use, - {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key, - {{ dbt_utils.star(from=source('workday','personal_information_history'), - except=["id", "_fivetran_start", "_fivetran_end", "hispanic_or_latino", - "local_hukou", "tobacco_use"]) }} - from base -) - -select * -from final \ No newline at end of file diff --git a/models/staging/workday_history/stg_workday__worker_history.sql b/models/staging/workday_history/stg_workday__worker_history.sql deleted file mode 100644 index 34e8a1f..0000000 --- a/models/staging/workday_history/stg_workday__worker_history.sql +++ /dev/null @@ -1,40 +0,0 @@ -{{ config(enabled=var('employee_history_enabled', False)) }} - -with base as ( - - select * - from {{ source('workday','worker_history') }} - {% if var('employee_history_start_date',[]) %} - where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('employee_history_start_date') }}" - {% endif %} -), - -final as ( - - select - id as worker_id, - cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, - cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, - cast(_fivetran_start as date) as _fivetran_date, - cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date, - cast(termination_date as {{ dbt.type_timestamp() }}) as termination_date, - active as is_active, - has_international_assignment as is_has_international_assignment, - hire_rescinded as is_hire_rescinded, - not_returning as is_not_returning, - regrettable_termination as is_regrettable_termination, - rehire as is_rehire, - retired as is_retired, - return_unknown as is_return_unknown, - terminated as is_terminated, - termination_involuntary as is_termination_involuntary, - {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key, - {{ dbt_utils.star(from=source('workday','worker_history'), - except=["id", "_fivetran_start", "_fivetran_end", "home_country", "end_employment_date", "termination_date", "active", - "has_international_assignment", "hire_rescinded", "not_returning", "regrettable_termination", "rehire", - "retired", "return_unknown", "terminated", "termination_involuntary"]) }} - from base -) - -select * -from final \ No newline at end of file diff --git a/models/staging/workday_history/stg_workday__worker_position_history.sql b/models/staging/workday_history/stg_workday__worker_position_history.sql deleted file mode 100644 index e74af43..0000000 --- a/models/staging/workday_history/stg_workday__worker_position_history.sql +++ /dev/null @@ -1,42 +0,0 @@ -{{ config(enabled=var('employee_history_enabled', False)) }} - -with base as ( - - select * - from {{ source('workday','worker_position_history') }} - {% if var('employee_history_start_date',[]) %} - where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('employee_history_start_date') }}" - {% endif %} -), - -final as ( - - select - worker_id, - position_id, - cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, - cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, - cast(_fivetran_start as date) as _fivetran_date, - cast(effective_date as {{ dbt.type_timestamp() }}) as effective_date, - cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date, - cast(start_date as {{ dbt.type_timestamp() }}) as position_start_date, - cast(end_date as {{ dbt.type_timestamp() }}) as position_end_date, - business_site_summary_location as position_location, - exclude_from_head_count as is_exclude_from_head_count, - full_time_equivalent_percentage as fte_percent, - job_exempt as is_job_exempt, - specify_paid_fte as is_specify_paid_fte, - specify_working_fte as is_specify_working_fte, - work_shift_required as is_work_shift_required, - {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', '_fivetran_start']) }} as history_unique_key, - {{ dbt_utils.star(from=source('workday','worker_position_history'), - except=["worker_id", "position_id", "_fivetran_start", "_fivetran_end", - "home_country", "effective_date", "end_employment_date", - "start_date", "end_date", "business_site_summary_location", "exclude_from_head_count", - "full_time_equivalent_percentage", "job_exempt", "specify_paid_fte", - "specify_working_fte", "work_shift_required"]) }} - from base -) - -select * -from final \ No newline at end of file diff --git a/models/workday.yml b/models/workday.yml index 6180282..95d71cf 100644 --- a/models/workday.yml +++ b/models/workday.yml @@ -3,20 +3,21 @@ version: 2 models: - name: workday__employee_overview description: '{{ doc("workday__employee_overview") }}' - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - source_relation - - worker_id - - position_id - - position_start_date - columns: + - name: employee_id + description: '{{ doc("employee_id") }}' + tests: + - unique + - not_null + - name: worker_id description: '{{ doc("worker_id") }}' tests: - not_null + - name: position_id + description: '{{ doc("position_id") }}' + - name: source_relation description: '{{ doc("source_relation") }}' @@ -110,47 +111,17 @@ models: - name: military_status description: '{{ doc("military_status") }}' - - name: position_id - description: '{{ doc("position_id") }}' - - name: business_title description: '{{ doc("business_title") }}' - name: job_profile_id description: '{{ doc("job_profile_id") }}' - - - name: most_recent_position_type - description: '{{ doc("most_recent_position_type") }}' - - - name: most_recent_location - description: '{{ doc("most_recent_location") }}' - - - name: most_recent_level - description: '{{ doc("most_recent_level") }}' - name: fte_percent description: '{{ doc("fte_percent") }}' - - name: days_at_position - description: '{{ doc("days_at_position") }}' - - - name: most_recent_position_start_date - description: '{{ doc("most_recent_position_start_date") }}' - - - name: most_recent_position_end_date - description: '{{ doc("most_recent_position_end_date") }}' - - - name: most_recent_position_effective_date - description: '{{ doc("most_recent_position_effective_date") }}' - - - name: worker_positions - description: '{{ doc("worker_positions") }}' - - - name: worker_levels - description: '{{ doc("worker_levels") }}' - - - name: position_days - description: '{{ doc("position_days") }}' + - name: days_employed + description: '{{ doc("days_employed") }}' - name: is_employed_one_year description: '{{ doc("employed_one_year") }}' diff --git a/models/workday__employee_overview.sql b/models/workday__employee_overview.sql index 2c3c106..fbc192c 100644 --- a/models/workday__employee_overview.sql +++ b/models/workday__employee_overview.sql @@ -1,11 +1,61 @@ with employee_surrogate_key as ( select - {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'position_start_date']) }} as employee_id, + {{ dbt_utils.generate_surrogate_key(['worker_id', 'source_relation', 'position_id', 'position_start_date']) }} as employee_id, worker_id, + source_relation, position_id, position_start_date, - {{ dbt_utils.star(ref('int_workday__worker_employee_enhanced'), except=['worker_id', 'position_id', 'position_start_date']) }} + worker_code, + user_id, + universal_id, + is_user_active, + is_employed, + hire_date, + departure_date, + days_as_worker, + is_terminated, + primary_termination_category, + primary_termination_reason, + is_regrettable_termination, + compensation_effective_date, + employee_compensation_frequency, + annual_currency_summary_currency, + annual_currency_summary_total_base_pay, + annual_currency_summary_primary_compensation_basis, + annual_summary_currency, + annual_summary_total_base_pay, + annual_summary_primary_compensation_basis, + compensation_grade_id, + compensation_grade_profile_id + first_name, + last_name, + date_of_birth, + gender, + is_hispanic_or_latino, + email_address, + ethnicity_codes, + military_status, + business_title, + job_profile_id, + employee_type, + position_location, + management_level_code, + fte_percent, + position_start_date, + position_end_date, + position_effective_date, + days_employed, + is_employed_one_year, + is_employed_five_years, + is_employed_ten_years, + is_employed_twenty_years, + is_employed_thirty_years, + is_current_employee_one_year, + is_current_employee_five_years, + is_current_employee_ten_years, + is_current_employee_twenty_years, + is_current_employee_thirty_years from {{ ref('int_workday__worker_employee_enhanced') }} ) diff --git a/models/workday_history/workday__employee_daily_history.sql b/models/workday_history/workday__employee_daily_history.sql index a1cd084..5a22fa4 100644 --- a/models/workday_history/workday__employee_daily_history.sql +++ b/models/workday_history/workday__employee_daily_history.sql @@ -1,22 +1,34 @@ {{ config(enabled=var('employee_history_enabled', False)) }} -{% if execute %} - {% set date_query %} +{% if execute %} + with max_start_value as ( + + select max(_fivetran_start) as max_start + from {{ ref('int_workday__employee_history') }} + ) + select - {{ dbt.date_trunc('day', dbt.current_timestamp()) }} as max_date - {% endset %} + case when max_start >= dbt.current_timestamp() + then max_start + else {{ dbt.date_trunc('day', dbt.current_timestamp()) }} + end as max_date + from max_start_value - {% set last_date = run_query(date_query).columns[0][0]|string %} + {% set last_date = run_query(max_date).columns[0][0]|string %} - {# If only compiling, creates range going back 1 year #} - {% else %} +{# If only compiling, creates range going back 1 year #} +{% else %} {% set last_date = dbt.dateadd("year", "-1", "current_date") %} {% endif %} +{% set min_start = run_query("select min(_fivetran_start) from {{ ref('int_workday__employee_history') }}") %} + + with spine as ( {# Prioritizes variables over calculated dates #} - {% set first_date = var('employee_history_start_date', '2020-01-01')|string %} + {% set first_date = coalesce(var('employee_history_start_date')|string, + min_start[0][0]|string) %} {% set last_date = last_date|string %} {{ dbt_utils.date_spine( diff --git a/models/workday_history/workday__monthly_summary.sql b/models/workday_history/workday__monthly_summary.sql index f8e3229..af27157 100644 --- a/models/workday_history/workday__monthly_summary.sql +++ b/models/workday_history/workday__monthly_summary.sql @@ -1,12 +1,11 @@ -{{ config(enabled=var('employee_history_enabled', False)) }} +{{ config(enabled=var('employee_history_enabled', False)) }} with row_month_partition as ( select *, - {{ dbt.date_trunc("month", "date_day") }} as date_month, - row_number() over (partition by employee_id, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row + cast({{ dbt.date_trunc("month", "date_day") }} as date) as date_month, + row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row from {{ ref('workday__employee_daily_history') }} - order by employee_id, date_day ), end_of_month_history as ( @@ -15,7 +14,6 @@ end_of_month_history as ( {{ dbt.current_timestamp() }} as current_date from row_month_partition where recent_dom_row = 1 - order by employee_id, date_day ), months_employed as ( @@ -35,6 +33,7 @@ months_employed as ( monthly_employee_metrics as ( select date_month, + source_relation, sum(case when date_month = {{ dbt.date_trunc("month", "effective_date") }} then 1 else 0 end) as new_employees, sum(case when date_month = {{ dbt.date_trunc("month", "termination_date") }} then 1 else 0 end) as churned_employees, sum(case when (date_month = {{ dbt.date_trunc("month", "termination_date") }} and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees, @@ -47,6 +46,7 @@ monthly_employee_metrics as ( monthly_active_employee_metrics as ( select date_month, + source_relation, count(distinct employee_id) as active_employees, sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees, sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees, @@ -59,12 +59,13 @@ monthly_active_employee_metrics as ( where date_month >= {{ dbt.date_trunc("month", "effective_date") }} and (date_month <= {{ dbt.date_trunc("month", "wph_end_employment_date") }} or wph_end_employment_date is null) - group by 1 + group by 1, 2 ), monthly_active_worker_metrics as ( select date_month, + source_relation, count(distinct worker_id) as active_workers, avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation, avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay, @@ -74,13 +75,14 @@ monthly_active_worker_metrics as ( where (date_month >= {{ dbt.date_trunc("month", "effective_date") }} and date_month <= {{ dbt.date_trunc("month", "wh_end_employment_date") }}) or wh_end_employment_date is null - group by 1 + group by 1, 2 ), monthly_summary as ( select monthly_employee_metrics.date_month as metrics_month, + monthly_employee_metrics.source_relation, monthly_employee_metrics.new_employees, monthly_employee_metrics.churned_employees, monthly_employee_metrics.churned_voluntary_employees, @@ -102,11 +104,11 @@ monthly_summary as ( from monthly_employee_metrics left join monthly_active_employee_metrics on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month + on monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation left join monthly_active_worker_metrics on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month - order by monthly_employee_metrics.date_month + on monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation ) select * -from monthly_summary -order by metrics_month \ No newline at end of file +from monthly_summary \ No newline at end of file diff --git a/models/workday_history/workday__worker_position_org_daily_history.sql b/models/workday_history/workday__worker_position_org_daily_history.sql index 36b420f..1a18046 100644 --- a/models/workday_history/workday__worker_position_org_daily_history.sql +++ b/models/workday_history/workday__worker_position_org_daily_history.sql @@ -1,22 +1,34 @@ {{ config(enabled=var('employee_history_enabled', False)) }} -{% if execute %} - {% set date_query %} - select - {{ dbt.date_trunc('day', dbt.current_timestamp()) }} as max_date - {% endset %} - - {% set last_date = run_query(date_query).columns[0][0]|string %} +{% if execute %} + with max_start_value as ( + select max(_fivetran_start) as max_start + from {{ ref('stg_workday__worker_position_organization_history') }} + ) - {# If only compiling, creates range going back 1 year #} - {% else %} - {% set last_date = dbt.dateadd("year", "-1", "current_date") %} + select + case when max_start >= dbt.current_timestamp() + then max_start + else {{ dbt.date_trunc('day', dbt.current_timestamp()) }} + end as max_date + from max_start_value; + + {% set last_date_query = run_query("select max(_fivetran_start) from {{ ref('stg_workday__worker_position_organization_history') }}") %} + {% set last_date = last_date_query.columns[0][0]|string %} + +{# If only compiling, creates range going back 1 year #} +{% else %} + {% set last_date = dbt.dateadd("year", "-1", "current_date") %} {% endif %} +{% set min_start = run_query("select min(_fivetran_start) from {{ ref('stg_workday__worker_position_organization_history') }}y") %} + with spine as ( {# Prioritizes variables over calculated dates #} - {% set first_date = var('employee_history_start_date', '2020-01-01')|string %} + + {% set first_date = coalesce(var('employee_history_start_date')|string, + min_start[0][0]|string) %} {% set last_date = last_date|string %} {{ dbt_utils.date_spine( @@ -33,7 +45,6 @@ worker_position_org_history as ( from {{ ref('stg_workday__worker_position_organization_history') }} ), - order_daily_values as ( select diff --git a/models/workday_history/workday_history.yml b/models/workday_history/workday_history.yml index bc992a9..e2ea483 100644 --- a/models/workday_history/workday_history.yml +++ b/models/workday_history/workday_history.yml @@ -13,6 +13,12 @@ models: - name: date_day description: Date on which the account had these field values. + - name: source_relation + description: '{{ doc("source_relation") }}' + + - name: history_unique_key + description: Surrogate key hashed on 'employee_id' and '_fivetran_date'. + - name: employee_id description: '{{ doc("employee_id") }}' @@ -31,11 +37,14 @@ models: - name: _fivetran_end description: '{{ doc("_fivetran_end") }}' - - name: wh_active - description: Is the worker history record the most recently active. + - name: is_wh_fivetran_active + description: Is the worker history record the most recent fivetran active record. + + - name: is_wph_fivetran_active + description: Is the worker position history record the most recent fivetranactive record. - - name: wph_active - description: Is the worker position history record the most recently active. + - name: is_pih_fivetran_active + description: Is the personal information history record the most recent fivetran active record. - name: wh_end_employment_date description: '{{ doc("end_employment_date") }}' @@ -316,6 +325,9 @@ models: - unique - not_null + - name: source_relation + description: '{{ doc("source_relation") }}' + - name: new_employees description: New employees that came in this month. @@ -378,8 +390,10 @@ models: tests: - unique - not_null + - name: date_day description: Date on which the account had these field values. + - name: worker_id description: '{{ doc("worker_id") }}' tests: @@ -395,6 +409,9 @@ models: tests: - not_null + - name: source_relation + description: '{{ doc("source_relation") }}' + - name: _fivetran_start description: '{{ doc("_fivetran_start") }}' @@ -405,7 +422,7 @@ models: description: '{{ doc("_fivetran_date") }}' - name: history_unique_key - description: Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, and `_fivetran_start` . + description: Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, `source_relation`, and `_fivetran_start` . - name: _fivetran_active description: '{{ doc("_fivetran_active") }}' From 20ce0ecddb91645edc1d782a10cecda30db96553 Mon Sep 17 00:00:00 2001 From: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com> Date: Mon, 1 Apr 2024 10:34:57 -0500 Subject: [PATCH 13/20] review/jm-datespine-edits --- dbt_project.yml | 10 ++++-- .../int_workday__employee_history.sql | 16 ++------- ..._workday__personal_information_history.sql | 23 ++++++++++++- .../staging}/stg_workday__worker_history.sql | 23 ++++++++++++- .../stg_workday__worker_position_history.sql | 31 ++++++++++++----- ...__worker_position_organization_history.sql | 26 +++++++++++++-- .../staging}/stg_workday_history.yml | 0 .../workday__employee_daily_history.sql | 33 ++++++++++--------- ...day__worker_position_org_daily_history.sql | 33 ++++++++++--------- 9 files changed, 133 insertions(+), 62 deletions(-) rename models/{intermediate/workday_history => workday_history/intermediate}/int_workday__employee_history.sql (94%) rename models/{staging/stg_workday_history => workday_history/staging}/stg_workday__personal_information_history.sql (74%) rename models/{staging/stg_workday_history => workday_history/staging}/stg_workday__worker_history.sql (87%) rename models/{staging/stg_workday_history => workday_history/staging}/stg_workday__worker_position_history.sql (84%) rename models/{staging/stg_workday_history => workday_history/staging}/stg_workday__worker_position_organization_history.sql (59%) rename models/{staging/stg_workday_history => workday_history/staging}/stg_workday_history.yml (100%) diff --git a/dbt_project.yml b/dbt_project.yml index 6f70016..f47d42a 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -10,12 +10,16 @@ models: intermediate: +materialized: ephemeral staging: - +materialized: view + +materialized: ephemeral +schema: stg_workday - stg_workday_history: - +materialized: ephemeral + base: + +materialized: view workday_history: +materialized: table + intermediate: + +materialized: view + staging: + +materialized: ephemeral vars: job_profile: "{{ source('workday','job_profile') }}" diff --git a/models/intermediate/workday_history/int_workday__employee_history.sql b/models/workday_history/intermediate/int_workday__employee_history.sql similarity index 94% rename from models/intermediate/workday_history/int_workday__employee_history.sql rename to models/workday_history/intermediate/int_workday__employee_history.sql index ac39913..eaa8ef3 100644 --- a/models/intermediate/workday_history/int_workday__employee_history.sql +++ b/models/workday_history/intermediate/int_workday__employee_history.sql @@ -50,12 +50,12 @@ worker_history_scd as ( coalesce(cast(eventual_fivetran_end as {{ dbt.type_timestamp() }}), cast('9999-12-31 23:59:59.999000' as {{ dbt.type_timestamp() }})) as _fivetran_end from worker_history_end_values - order by worker_id, source_relation, _fivetran_start, _fivetran_end ), employee_history_scd as ( - select worker_history_scd.worker_id, + select + worker_history_scd.worker_id, worker_history_scd.source_relation, worker_position_history.position_id, worker_history_scd._fivetran_start, @@ -159,7 +159,6 @@ employee_history_scd as ( worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date, worker_position_history.business_site_summary_display_language, worker_position_history.business_site_summary_local, - worker_position_history.position_location, worker_position_history.business_site_summary_location_type, worker_position_history.business_site_summary_name, worker_position_history.business_site_summary_scheduled_weekly_hours, @@ -171,40 +170,30 @@ employee_history_scd as ( worker_position_history.position_effective_date, worker_position_history.employee_type, worker_position_history.position_end_date, - worker_position_history.end_employment_date, - worker_position_history.is_exclude_from_head_count, worker_position_history.expected_assignment_end_date, worker_position_history.external_employee, worker_position_history.federal_withholding_fein, worker_position_history.frequency, - worker_position_history.fte_percent, worker_position_history.headcount_restriction_code, - worker_position_history.home_country, worker_position_history.host_country, worker_position_history.international_assignment_type, worker_position_history.is_primary_job, - worker_position_history.is_job_exempt, worker_position_history.job_profile_id, worker_position_history.management_level_code, worker_position_history.paid_fte, worker_position_history.pay_group, worker_position_history.pay_rate, worker_position_history.pay_rate_type, - worker_position_history.pay_through_date, worker_position_history.payroll_entity, worker_position_history.payroll_file_number, worker_position_history.regular_paid_equivalent_hours, worker_position_history.scheduled_weekly_hours, - worker_position_history.is_specify_paid_fte, - worker_position_history.is_specify_working_fte, worker_position_history.position_start_date, worker_position_history.start_international_assignment_reason, worker_position_history.work_hours_profile, worker_position_history.work_shift, - worker_position_history.is_work_shift_required, worker_position_history.work_space, worker_position_history.worker_hours_profile_classification, - worker_position_history.worker_id, worker_position_history.working_fte, worker_position_history.working_time_frequency, worker_position_history.working_time_unit, @@ -262,7 +251,6 @@ employee_history_scd as ( and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start - order by worker_id, source_relation, _fivetran_start, _fivetran_end ), employee_key as ( diff --git a/models/staging/stg_workday_history/stg_workday__personal_information_history.sql b/models/workday_history/staging/stg_workday__personal_information_history.sql similarity index 74% rename from models/staging/stg_workday_history/stg_workday__personal_information_history.sql rename to models/workday_history/staging/stg_workday__personal_information_history.sql index 80db142..f97c42e 100644 --- a/models/staging/stg_workday_history/stg_workday__personal_information_history.sql +++ b/models/workday_history/staging/stg_workday__personal_information_history.sql @@ -9,6 +9,26 @@ with base as ( {% endif %} ), +fill_columns as ( + + select + {{ + fivetran_utils.fill_staging_columns( + source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_base')), + staging_columns=get_personal_information_history_columns() + ) + }} + + {{ + fivetran_utils.source_relation( + union_schema_variable='workday_union_schemas', + union_database_variable='workday_union_databases' + ) + }} + + from base +), + final as ( select @@ -17,6 +37,7 @@ final as ( cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, cast(_fivetran_start as date) as _fivetran_date, + _fivetran_active, {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as stg_history_unique_key, additional_nationality, blood_type, @@ -50,7 +71,7 @@ final as ( social_benefit, tobacco_use as is_tobacco_use, type - from base + from fill_columns ) select * diff --git a/models/staging/stg_workday_history/stg_workday__worker_history.sql b/models/workday_history/staging/stg_workday__worker_history.sql similarity index 87% rename from models/staging/stg_workday_history/stg_workday__worker_history.sql rename to models/workday_history/staging/stg_workday__worker_history.sql index 2520363..e51ed01 100644 --- a/models/staging/stg_workday_history/stg_workday__worker_history.sql +++ b/models/workday_history/staging/stg_workday__worker_history.sql @@ -9,6 +9,26 @@ with base as ( {% endif %} ), +fill_columns as ( + + select + {{ + fivetran_utils.fill_staging_columns( + source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_base')), + staging_columns=get_worker_history_columns() + ) + }} + + {{ + fivetran_utils.source_relation( + union_schema_variable='workday_union_schemas', + union_database_variable='workday_union_databases' + ) + }} + + from base +), + final as ( select @@ -17,6 +37,7 @@ final as ( cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, cast(_fivetran_start as date) as _fivetran_date, + _fivetran_active, {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key, academic_tenure_date, active as is_active, @@ -100,7 +121,7 @@ final as ( user_id, vesting_date, worker_code - from base + from fill_columns ) select * diff --git a/models/staging/stg_workday_history/stg_workday__worker_position_history.sql b/models/workday_history/staging/stg_workday__worker_position_history.sql similarity index 84% rename from models/staging/stg_workday_history/stg_workday__worker_position_history.sql rename to models/workday_history/staging/stg_workday__worker_position_history.sql index 3219d58..31ec2ad 100644 --- a/models/staging/stg_workday_history/stg_workday__worker_position_history.sql +++ b/models/workday_history/staging/stg_workday__worker_position_history.sql @@ -9,6 +9,26 @@ with base as ( {% endif %} ), +fill_columns as ( + + select + {{ + fivetran_utils.fill_staging_columns( + source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_base')), + staging_columns=get_worker_position_history_columns() + ) + }} + + {{ + fivetran_utils.source_relation( + union_schema_variable='workday_union_schemas', + union_database_variable='workday_union_databases' + ) + }} + + from base +), + final as ( select @@ -18,6 +38,7 @@ final as ( cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, cast(_fivetran_start as date) as _fivetran_date, + _fivetran_active, {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', '_fivetran_start']) }} as stg_history_unique_key, business_site_summary_location as position_location, exclude_from_head_count as is_exclude_from_head_count, @@ -33,7 +54,6 @@ final as ( academic_pay_setup_data_disbursement_plan_period_start_date, business_site_summary_display_language, business_site_summary_local, - business_site_summary_location as position_location, business_site_summary_location_type, business_site_summary_name, business_site_summary_scheduled_weekly_hours, @@ -46,18 +66,15 @@ final as ( employee_type, cast(end_date as {{ dbt.type_timestamp() }}) as position_end_date, cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date, - exclude_from_head_count as is_exclude_from_head_count, expected_assignment_end_date, external_employee, federal_withholding_fein, frequency, - full_time_equivalent_percentage as fte_percent, headcount_restriction_code, home_country, host_country, international_assignment_type, is_primary_job, - job_exempt as is_job_exempt, job_profile_id, management_level_code, paid_fte, @@ -69,21 +86,17 @@ final as ( payroll_file_number, regular_paid_equivalent_hours, scheduled_weekly_hours, - specify_paid_fte as is_specify_paid_fte, - specify_working_fte as is_specify_working_fte, cast(start_date as {{ dbt.type_timestamp() }}) as position_start_date, start_international_assignment_reason, work_hours_profile, work_shift, - work_shift_required as is_work_shift_required, work_space, worker_hours_profile_classification, - worker_id, working_fte, working_time_frequency, working_time_unit, working_time_value - from base + from fill_columns ) select * diff --git a/models/staging/stg_workday_history/stg_workday__worker_position_organization_history.sql b/models/workday_history/staging/stg_workday__worker_position_organization_history.sql similarity index 59% rename from models/staging/stg_workday_history/stg_workday__worker_position_organization_history.sql rename to models/workday_history/staging/stg_workday__worker_position_organization_history.sql index 060f6c9..148e894 100644 --- a/models/staging/stg_workday_history/stg_workday__worker_position_organization_history.sql +++ b/models/workday_history/staging/stg_workday__worker_position_organization_history.sql @@ -3,12 +3,32 @@ with base as ( select * - from {{ ref('stg_workday__position_organization_base') }} + from {{ ref('stg_workday__worker_position_organization_base') }} {% if var('employee_history_start_date',[]) %} where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= "{{ var('employee_history_start_date') }}" {% endif %} ), +fill_columns as ( + + select + {{ + fivetran_utils.fill_staging_columns( + source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_organization_base')), + staging_columns=get_worker_position_organization_history_columns() + ) + }} + + {{ + fivetran_utils.source_relation( + union_schema_variable='workday_union_schemas', + union_database_variable='workday_union_databases' + ) + }} + + from base +), + final as ( select @@ -19,12 +39,12 @@ final as ( cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, cast(_fivetran_start as date) as _fivetran_date, - {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'organization_id', 'source_relation', '_fivetran_start']) }} as stg_history_unique_key, + {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'organization_id', 'source_relation', '_fivetran_start']) }} as history_unique_key, index, date_of_pay_group_assignment, primary_business_site, used_in_change_organization_assignments as is_used_in_change_organization_assignments - from base + from fill_columns ) select * diff --git a/models/staging/stg_workday_history/stg_workday_history.yml b/models/workday_history/staging/stg_workday_history.yml similarity index 100% rename from models/staging/stg_workday_history/stg_workday_history.yml rename to models/workday_history/staging/stg_workday_history.yml diff --git a/models/workday_history/workday__employee_daily_history.sql b/models/workday_history/workday__employee_daily_history.sql index 5a22fa4..759a9ea 100644 --- a/models/workday_history/workday__employee_daily_history.sql +++ b/models/workday_history/workday__employee_daily_history.sql @@ -1,39 +1,42 @@ +-- depends_on: {{ ref('int_workday__employee_history') }} {{ config(enabled=var('employee_history_enabled', False)) }} {% if execute %} - with max_start_value as ( + {% set first_last_date_query %} + with min_max_values as ( - select max(_fivetran_start) as max_start + select + min(_fivetran_start) as min_start, + max(_fivetran_start) as max_start from {{ ref('int_workday__employee_history') }} ) select - case when max_start >= dbt.current_timestamp() + min_start, + case when max_start >= {{ dbt.current_timestamp() }} then max_start else {{ dbt.date_trunc('day', dbt.current_timestamp()) }} - end as max_date - from max_start_value + end as max_start + from min_max_values + + {% endset %} - {% set last_date = run_query(max_date).columns[0][0]|string %} + {% set start_date = run_query(first_last_date_query).columns[0][0]|string %} + {% set last_date = run_query(first_last_date_query).columns[1][0]|string %} {# If only compiling, creates range going back 1 year #} {% else %} - {% set last_date = dbt.dateadd("year", "-1", "current_date") %} + {% set start_date = dbt.dateadd("year", "-2", "current_date") %} -- Arbitrarily picked. Choose a more appropriate default if necessary. + {% set last_date = dbt.dateadd("year", "-1", "current_date") %} {% endif %} -{% set min_start = run_query("select min(_fivetran_start) from {{ ref('int_workday__employee_history') }}") %} - - with spine as ( {# Prioritizes variables over calculated dates #} - {% set first_date = coalesce(var('employee_history_start_date')|string, - min_start[0][0]|string) %} - {% set last_date = last_date|string %} - + {# Arbitrarily picked employee_history_start_date variable value. Choose a more appropriate default if necessary. #} {{ dbt_utils.date_spine( datepart="day", - start_date = "cast('" ~ first_date[0:10] ~ "'as date)", + start_date = "greatest(cast('" ~ start_date[0:10] ~ "'as date),'" ~ var('employee_history_start_date','2000-12-31') ~ "')", end_date = "cast('" ~ last_date[0:10] ~ "'as date)" ) }} diff --git a/models/workday_history/workday__worker_position_org_daily_history.sql b/models/workday_history/workday__worker_position_org_daily_history.sql index 1a18046..50f9b20 100644 --- a/models/workday_history/workday__worker_position_org_daily_history.sql +++ b/models/workday_history/workday__worker_position_org_daily_history.sql @@ -1,39 +1,40 @@ +-- depends_on: {{ ref('stg_workday__worker_position_organization_base') }} {{ config(enabled=var('employee_history_enabled', False)) }} {% if execute %} - with max_start_value as ( - select max(_fivetran_start) as max_start - from {{ ref('stg_workday__worker_position_organization_history') }} + {% set first_last_date_query %} + with min_max_values as ( + select + min(_fivetran_start) as min_start, + max(_fivetran_start) as max_start + from {{ ref('stg_workday__worker_position_organization_base') }} ) select - case when max_start >= dbt.current_timestamp() + min_start, + case when max_start >= {{ dbt.current_timestamp() }} then max_start else {{ dbt.date_trunc('day', dbt.current_timestamp()) }} end as max_date - from max_start_value; + from min_max_values - {% set last_date_query = run_query("select max(_fivetran_start) from {{ ref('stg_workday__worker_position_organization_history') }}") %} - {% set last_date = last_date_query.columns[0][0]|string %} + {% endset %} + + {% set start_date = run_query(first_last_date_query).columns[0][0]|string %} + {% set last_date = run_query(first_last_date_query).columns[1][0]|string %} {# If only compiling, creates range going back 1 year #} {% else %} + {% set start_date = dbt.dateadd("year", "-2", "current_date") %} -- Arbitrarily picked. Choose a more appropriate default if necessary. {% set last_date = dbt.dateadd("year", "-1", "current_date") %} {% endif %} -{% set min_start = run_query("select min(_fivetran_start) from {{ ref('stg_workday__worker_position_organization_history') }}y") %} - - with spine as ( {# Prioritizes variables over calculated dates #} - - {% set first_date = coalesce(var('employee_history_start_date')|string, - min_start[0][0]|string) %} - {% set last_date = last_date|string %} - + {# Arbitrarily picked employee_history_start_date variable value. Choose a more appropriate default if necessary. #} {{ dbt_utils.date_spine( datepart="day", - start_date = "cast('" ~ first_date[0:10] ~ "'as date)", + start_date = "greatest(cast('" ~ start_date[0:10] ~ "'as date),'" ~ var('employee_history_start_date','2000-12-31') ~ "')", end_date = "cast('" ~ last_date[0:10] ~ "'as date)" ) }} From 84826e9ee036eb4a8cde736a198a95c86d9ae0b5 Mon Sep 17 00:00:00 2001 From: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com> Date: Mon, 1 Apr 2024 11:12:10 -0500 Subject: [PATCH 14/20] final changes to compile properly --- models/workday__employee_overview.sql | 1 - .../workday__monthly_summary.sql | 31 ++++++++++--------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/models/workday__employee_overview.sql b/models/workday__employee_overview.sql index fbc192c..595aba0 100644 --- a/models/workday__employee_overview.sql +++ b/models/workday__employee_overview.sql @@ -42,7 +42,6 @@ with employee_surrogate_key as ( position_location, management_level_code, fte_percent, - position_start_date, position_end_date, position_effective_date, days_employed, diff --git a/models/workday_history/workday__monthly_summary.sql b/models/workday_history/workday__monthly_summary.sql index af27157..8552a46 100644 --- a/models/workday_history/workday__monthly_summary.sql +++ b/models/workday_history/workday__monthly_summary.sql @@ -32,15 +32,16 @@ months_employed as ( monthly_employee_metrics as ( - select date_month, + select + date_month, source_relation, - sum(case when date_month = {{ dbt.date_trunc("month", "effective_date") }} then 1 else 0 end) as new_employees, - sum(case when date_month = {{ dbt.date_trunc("month", "termination_date") }} then 1 else 0 end) as churned_employees, - sum(case when (date_month = {{ dbt.date_trunc("month", "termination_date") }} and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees, - sum(case when (date_month = {{ dbt.date_trunc("month", "termination_date") }} and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees, - sum(case when date_month = {{ dbt.date_trunc("month", "wh_end_employment_date") }} then 1 else 0 end) as churned_workers + sum(case when cast(date_month as date) = cast({{ dbt.date_trunc("month", "position_effective_date") }} as date) then 1 else 0 end) as new_employees, + sum(case when cast(date_month as date) = cast({{ dbt.date_trunc("month", "termination_date") }} as date) then 1 else 0 end) as churned_employees, + sum(case when (cast(date_month as date) = cast({{ dbt.date_trunc("month", "termination_date") }} as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees, + sum(case when (cast(date_month as date) = cast({{ dbt.date_trunc("month", "termination_date") }} as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees, + sum(case when cast(date_month as date) = cast({{ dbt.date_trunc("month", "end_employment_date") }} as date) then 1 else 0 end) as churned_workers from months_employed - group by 1 + group by 1, 2 ), monthly_active_employee_metrics as ( @@ -56,9 +57,9 @@ monthly_active_employee_metrics as ( avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances, avg(days_as_employee) as avg_days_as_employee from months_employed - where date_month >= {{ dbt.date_trunc("month", "effective_date") }} - and (date_month <= {{ dbt.date_trunc("month", "wph_end_employment_date") }} - or wph_end_employment_date is null) + where cast(date_month as date) >= cast({{ dbt.date_trunc("month", "position_effective_date") }} as date) + and (cast(date_month as date) <= cast({{ dbt.date_trunc("month", "end_employment_date") }} as date) + or end_employment_date is null) group by 1, 2 ), @@ -72,9 +73,9 @@ monthly_active_worker_metrics as ( avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances, avg(days_as_worker) as avg_days_as_worker from months_employed - where (date_month >= {{ dbt.date_trunc("month", "effective_date") }} - and date_month <= {{ dbt.date_trunc("month", "wh_end_employment_date") }}) - or wh_end_employment_date is null + where (cast(date_month as date) >= cast({{ dbt.date_trunc("month", "position_effective_date") }} as date) + and cast(date_month as date) <= cast({{ dbt.date_trunc("month", "end_employment_date") }} as date)) + or end_employment_date is null group by 1, 2 ), @@ -104,10 +105,10 @@ monthly_summary as ( from monthly_employee_metrics left join monthly_active_employee_metrics on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month - on monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation + and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation left join monthly_active_worker_metrics on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month - on monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation + and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation ) select * From b625b805f5c121854c320aacea8b9dc6028085f4 Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Mon, 1 Apr 2024 13:49:42 -0700 Subject: [PATCH 15/20] Joe PR fixes --- .../staging/stg_workday__personal_information_history.sql | 2 +- .../staging/stg_workday__worker_position_history.sql | 2 +- models/workday_history/staging/stg_workday_history.yml | 8 ++++---- .../workday_history/workday__employee_daily_history.sql | 2 +- .../workday__worker_position_org_daily_history.sql | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/models/workday_history/staging/stg_workday__personal_information_history.sql b/models/workday_history/staging/stg_workday__personal_information_history.sql index f97c42e..2798d45 100644 --- a/models/workday_history/staging/stg_workday__personal_information_history.sql +++ b/models/workday_history/staging/stg_workday__personal_information_history.sql @@ -38,7 +38,7 @@ final as ( cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, cast(_fivetran_start as date) as _fivetran_date, _fivetran_active, - {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as stg_history_unique_key, + {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key, additional_nationality, blood_type, citizenship_status, diff --git a/models/workday_history/staging/stg_workday__worker_position_history.sql b/models/workday_history/staging/stg_workday__worker_position_history.sql index 31ec2ad..5a5548f 100644 --- a/models/workday_history/staging/stg_workday__worker_position_history.sql +++ b/models/workday_history/staging/stg_workday__worker_position_history.sql @@ -39,7 +39,7 @@ final as ( cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, cast(_fivetran_start as date) as _fivetran_date, _fivetran_active, - {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', '_fivetran_start']) }} as stg_history_unique_key, + {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', '_fivetran_start']) }} as history_unique_key, business_site_summary_location as position_location, exclude_from_head_count as is_exclude_from_head_count, full_time_equivalent_percentage as fte_percent, diff --git a/models/workday_history/staging/stg_workday_history.yml b/models/workday_history/staging/stg_workday_history.yml index 91c966d..6769934 100644 --- a/models/workday_history/staging/stg_workday_history.yml +++ b/models/workday_history/staging/stg_workday_history.yml @@ -27,7 +27,7 @@ models: - name: _fivetran_date description: '{{ doc("_fivetran_date") }}' - - name: stg_history_unique_key + - name: history_unique_key description: Surrogate key hashed on `worker_id` and `_fivetran_start`. tests: - unique @@ -162,7 +162,7 @@ models: - name: _fivetran_date description: '{{ doc("_fivetran_date") }}' - - name: stg_history_unique_key + - name: history_unique_key description: Surrogate key hashed on `worker_id` and `_fivetran_start`. tests: - unique @@ -453,7 +453,7 @@ models: - name: _fivetran_date description: '{{ doc("_fivetran_date") }}' - - name: stg_history_unique_key + - name: history_unique_key description: Surrogate key hashed on `position_id`, `worker_id` and `_fivetran_start` . tests: - unique @@ -672,7 +672,7 @@ models: - name: _fivetran_date description: '{{ doc("_fivetran_date") }}' - - name: stg_history_unique_key + - name: history_unique_key description: Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, and `_fivetran_start` . tests: - unique diff --git a/models/workday_history/workday__employee_daily_history.sql b/models/workday_history/workday__employee_daily_history.sql index 759a9ea..c3191e4 100644 --- a/models/workday_history/workday__employee_daily_history.sql +++ b/models/workday_history/workday__employee_daily_history.sql @@ -36,7 +36,7 @@ with spine as ( {# Arbitrarily picked employee_history_start_date variable value. Choose a more appropriate default if necessary. #} {{ dbt_utils.date_spine( datepart="day", - start_date = "greatest(cast('" ~ start_date[0:10] ~ "'as date),'" ~ var('employee_history_start_date','2000-12-31') ~ "')", + start_date = "greatest(cast('" ~ start_date[0:10] ~ "' as date), cast('" ~ var('employee_history_start_date','2000-12-31') ~ "' as date))", end_date = "cast('" ~ last_date[0:10] ~ "'as date)" ) }} diff --git a/models/workday_history/workday__worker_position_org_daily_history.sql b/models/workday_history/workday__worker_position_org_daily_history.sql index 50f9b20..ee4bbae 100644 --- a/models/workday_history/workday__worker_position_org_daily_history.sql +++ b/models/workday_history/workday__worker_position_org_daily_history.sql @@ -34,7 +34,7 @@ with spine as ( {# Arbitrarily picked employee_history_start_date variable value. Choose a more appropriate default if necessary. #} {{ dbt_utils.date_spine( datepart="day", - start_date = "greatest(cast('" ~ start_date[0:10] ~ "'as date),'" ~ var('employee_history_start_date','2000-12-31') ~ "')", + start_date = "greatest(cast('" ~ start_date[0:10] ~ "' as date), cast('" ~ var('employee_history_start_date','2000-12-31') ~ "' as date))", end_date = "cast('" ~ last_date[0:10] ~ "'as date)" ) }} From 7ae41b3a9065c9f25f222320629b48d63782302a Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Mon, 1 Apr 2024 15:54:55 -0700 Subject: [PATCH 16/20] regen docs --- docs/catalog.json | 2 +- docs/manifest.json | 2 +- docs/run_results.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/catalog.json b/docs/catalog.json index 705d884..47bb642 100644 --- a/docs/catalog.json +++ b/docs/catalog.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.7.8", "generated_at": "2024-03-20T19:22:58.240569Z", "invocation_id": "0a684f85-6d1d-433c-bf8d-1857c8ad075a", "env": {}}, "nodes": {"seed.workday_integration_tests.workday_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_data"}, "seed.workday_integration_tests.workday_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data"}, "seed.workday_integration_tests.workday_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_profile_data"}, "seed.workday_integration_tests.workday_military_service_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_military_service_data"}, "seed.workday_integration_tests.workday_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_data"}, "seed.workday_integration_tests.workday_organization_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data"}, "seed.workday_integration_tests.workday_organization_role_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_data"}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data"}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data"}, "seed.workday_integration_tests.workday_person_name_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_name_data"}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data"}, "seed.workday_integration_tests.workday_personal_information_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data"}, "seed.workday_integration_tests.workday_position_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_data"}, "seed.workday_integration_tests.workday_position_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data"}, "seed.workday_integration_tests.workday_position_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_organization_data"}, "seed.workday_integration_tests.workday_worker_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_history_data"}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data"}, "seed.workday_integration_tests.workday_worker_position_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data"}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data"}, "model.workday.stg_workday__job_family": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 3, "name": "effective_date", "comment": null}, "job_family_id": {"type": "text", "index": 4, "name": "job_family_id", "comment": null}, "is_inactive": {"type": "boolean", "index": 5, "name": "is_inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "job_family_summary": {"type": "text", "index": 7, "name": "job_family_summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family"}, "model.workday.stg_workday__job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_base"}, "model.workday.stg_workday__job_family_group": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 3, "name": "effective_date", "comment": null}, "job_family_group_id": {"type": "text", "index": 4, "name": "job_family_group_id", "comment": null}, "is_inactive": {"type": "boolean", "index": 5, "name": "is_inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "job_family_group_summary": {"type": "text", "index": 7, "name": "job_family_group_summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_group"}, "model.workday.stg_workday__job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_group_base"}, "model.workday.stg_workday__job_family_job_family_group": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "job_family_id": {"type": "text", "index": 3, "name": "job_family_id", "comment": null}, "job_family_group_id": {"type": "text", "index": 4, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_family_group"}, "model.workday.stg_workday__job_family_job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base"}, "model.workday.stg_workday__job_family_job_profile": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "job_family_id": {"type": "text", "index": 3, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 4, "name": "job_profile_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_profile"}, "model.workday.stg_workday__job_family_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_profile_base"}, "model.workday.stg_workday__job_profile": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 3, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 4, "name": "compensation_grade_id", "comment": null}, "is_critical_job": {"type": "boolean", "index": 5, "name": "is_critical_job", "comment": null}, "job_description": {"type": "text", "index": 6, "name": "job_description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 7, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 8, "name": "effective_date", "comment": null}, "job_profile_id": {"type": "text", "index": 9, "name": "job_profile_id", "comment": null}, "is_inactive": {"type": "boolean", "index": 10, "name": "is_inactive", "comment": null}, "is_include_job_code_in_name": {"type": "boolean", "index": 11, "name": "is_include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "is_public_job": {"type": "boolean", "index": 17, "name": "is_public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "job_summary": {"type": "text", "index": 19, "name": "job_summary", "comment": null}, "job_title": {"type": "text", "index": 20, "name": "job_title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 23, "name": "is_work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_profile"}, "model.workday.stg_workday__job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_profile_base"}, "model.workday.stg_workday__military_service": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 4, "name": "discharge_date", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "military_status": {"type": "text", "index": 10, "name": "military_status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__military_service"}, "model.workday.stg_workday__military_service_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__military_service_base"}, "model.workday.stg_workday__organization": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 3, "name": "availability_date", "comment": null}, "is_available_for_hire": {"type": "integer", "index": 4, "name": "is_available_for_hire", "comment": null}, "code": {"type": "integer", "index": 5, "name": "code", "comment": null}, "organization_description": {"type": "integer", "index": 6, "name": "organization_description", "comment": null}, "external_url": {"type": "text", "index": 7, "name": "external_url", "comment": null}, "is_hiring_freeze": {"type": "boolean", "index": 8, "name": "is_hiring_freeze", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "is_inactive": {"type": "boolean", "index": 10, "name": "is_inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "is_include_manager_in_name": {"type": "boolean", "index": 12, "name": "is_include_manager_in_name", "comment": null}, "is_include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "is_include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "organization_location": {"type": "text", "index": 15, "name": "organization_location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "organization_name": {"type": "text", "index": 17, "name": "organization_name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "organization_sub_type": {"type": "text", "index": 21, "name": "organization_sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "organization_type": {"type": "text", "index": 28, "name": "organization_type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization"}, "model.workday.stg_workday__organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_base"}, "model.workday.stg_workday__organization_job_family": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 3, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 4, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 5, "name": "organization_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_job_family"}, "model.workday.stg_workday__organization_job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_job_family_base"}, "model.workday.stg_workday__organization_role": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "organization_id": {"type": "text", "index": 3, "name": "organization_id", "comment": null}, "organization_role_code": {"type": "text", "index": 4, "name": "organization_role_code", "comment": null}, "organization_role_id": {"type": "text", "index": 5, "name": "organization_role_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role"}, "model.workday.stg_workday__organization_role_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_base"}, "model.workday.stg_workday__organization_role_worker": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "organization_worker_code": {"type": "integer", "index": 3, "name": "organization_worker_code", "comment": null}, "organization_id": {"type": "text", "index": 4, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 5, "name": "role_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_worker"}, "model.workday.stg_workday__organization_role_worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_worker_base"}, "model.workday.stg_workday__person_contact_email_address": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 4, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 5, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 6, "name": "email_comment", "comment": null}, "person_contact_email_address_id": {"type": "text", "index": 7, "name": "person_contact_email_address_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_contact_email_address"}, "model.workday.stg_workday__person_contact_email_address_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_contact_email_address_base"}, "model.workday.stg_workday__person_name": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 4, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 5, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 6, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 7, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 8, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 9, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 10, "name": "honorary_suffix", "comment": null}, "index": {"type": "integer", "index": 11, "name": "index", "comment": null}, "last_name": {"type": "text", "index": 12, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 13, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 14, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 15, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 16, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 17, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 18, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 19, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 20, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 21, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 22, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 23, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 24, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 25, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 26, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 27, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 28, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 29, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 30, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 31, "name": "tertiary_last_name", "comment": null}, "person_name_type": {"type": "text", "index": 32, "name": "person_name_type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_name"}, "model.workday.stg_workday__person_name_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_name_base"}, "model.workday.stg_workday__personal_information": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 4, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 5, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 6, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 7, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 8, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 9, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 10, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 11, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 12, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 13, "name": "is_hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 14, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 15, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 16, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 17, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 18, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 19, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 20, "name": "last_medical_exam_valid_to", "comment": null}, "is_local_hukou": {"type": "integer", "index": 21, "name": "is_local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 22, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 23, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 24, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 25, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 26, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 27, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 28, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 29, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 30, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 31, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 32, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 33, "name": "social_benefit", "comment": null}, "is_tobacco_use": {"type": "boolean", "index": 34, "name": "is_tobacco_use", "comment": null}, "type": {"type": "text", "index": 35, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information"}, "model.workday.stg_workday__personal_information_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_base"}, "model.workday.stg_workday__personal_information_ethnicity": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 4, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 5, "name": "ethnicity_id", "comment": null}, "index": {"type": "integer", "index": 6, "name": "index", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_ethnicity"}, "model.workday.stg_workday__personal_information_ethnicity_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base"}, "model.workday.stg_workday__personal_information_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_end", "comment": null}, "_fivetran_date": {"type": "date", "index": 4, "name": "_fivetran_date", "comment": null}, "history_unique_key": {"type": "text", "index": 5, "name": "history_unique_key", "comment": null}, "type": {"type": "text", "index": 6, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 7, "name": "_fivetran_active", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 9, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 10, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 11, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 12, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 13, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 14, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 15, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 16, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 17, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 18, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 19, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 20, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 21, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 22, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 23, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 24, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 25, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 26, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 27, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 28, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 29, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 30, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 31, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 32, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 33, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 34, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 35, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 36, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 37, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 38, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 39, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 40, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_history"}, "model.workday.stg_workday__position": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "is_academic_tenure_eligible": {"type": "boolean", "index": 3, "name": "is_academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 4, "name": "availability_date", "comment": null}, "is_available_for_hire": {"type": "boolean", "index": 5, "name": "is_available_for_hire", "comment": null}, "is_available_for_overlap": {"type": "boolean", "index": 6, "name": "is_available_for_overlap", "comment": null}, "is_available_for_recruiting": {"type": "boolean", "index": 7, "name": "is_available_for_recruiting", "comment": null}, "is_closed": {"type": "boolean", "index": 8, "name": "is_closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 9, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 10, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 11, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 12, "name": "compensation_step_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 13, "name": "is_critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 14, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 15, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 16, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 17, "name": "effective_date", "comment": null}, "is_hiring_freeze": {"type": "boolean", "index": 18, "name": "is_hiring_freeze", "comment": null}, "position_id": {"type": "text", "index": 19, "name": "position_id", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 29, "name": "is_work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position"}, "model.workday.stg_workday__position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_base"}, "model.workday.stg_workday__position_job_profile": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 3, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 4, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 5, "name": "job_category_code", "comment": null}, "job_profile_id": {"type": "text", "index": 6, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 7, "name": "management_level_code", "comment": null}, "position_job_profile_name": {"type": "text", "index": 8, "name": "position_job_profile_name", "comment": null}, "position_id": {"type": "text", "index": 9, "name": "position_id", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 10, "name": "is_work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_job_profile"}, "model.workday.stg_workday__position_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_job_profile_base"}, "model.workday.stg_workday__position_organization": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "organization_id": {"type": "text", "index": 3, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 5, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_organization"}, "model.workday.stg_workday__position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_organization_base"}, "model.workday.stg_workday__worker": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 4, "name": "academic_tenure_date", "comment": null}, "is_active": {"type": "boolean", "index": 5, "name": "is_active", "comment": null}, "active_status_date": {"type": "date", "index": 6, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 7, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 8, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 9, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 10, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 11, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 12, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 13, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 14, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 15, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 16, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 17, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 18, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 19, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 20, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 21, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 22, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 23, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 24, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 25, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 26, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 27, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 28, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 29, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 30, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 31, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 32, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 33, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 34, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 35, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 36, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 37, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 38, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 39, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 40, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 41, "name": "first_day_of_work", "comment": null}, "is_has_international_assignment": {"type": "boolean", "index": 42, "name": "is_has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 43, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 44, "name": "hire_reason", "comment": null}, "is_hire_rescinded": {"type": "boolean", "index": 45, "name": "is_hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 46, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 47, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 48, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 49, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 50, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 51, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 52, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 53, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 54, "name": "months_continuous_prior_employment", "comment": null}, "is_not_returning": {"type": "boolean", "index": 55, "name": "is_not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 56, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 57, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 58, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 59, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 60, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 61, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 62, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 63, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 64, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 65, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 66, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 67, "name": "reason_reference_id", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 68, "name": "is_regrettable_termination", "comment": null}, "is_rehire": {"type": "boolean", "index": 69, "name": "is_rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 70, "name": "resignation_date", "comment": null}, "is_retired": {"type": "boolean", "index": 71, "name": "is_retired", "comment": null}, "retirement_date": {"type": "integer", "index": 72, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 73, "name": "retirement_eligibility_date", "comment": null}, "is_return_unknown": {"type": "boolean", "index": 74, "name": "is_return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 75, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 76, "name": "severance_date", "comment": null}, "is_terminated": {"type": "boolean", "index": 77, "name": "is_terminated", "comment": null}, "termination_date": {"type": "date", "index": 78, "name": "termination_date", "comment": null}, "is_termination_involuntary": {"type": "boolean", "index": 79, "name": "is_termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 80, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 81, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 82, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 83, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 84, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 85, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker"}, "model.workday.stg_workday__worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_base"}, "model.workday.stg_workday__worker_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_end", "comment": null}, "_fivetran_date": {"type": "date", "index": 4, "name": "_fivetran_date", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 5, "name": "end_employment_date", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 6, "name": "termination_date", "comment": null}, "history_unique_key": {"type": "text", "index": 7, "name": "history_unique_key", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 8, "name": "_fivetran_active", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 10, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 11, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 12, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 13, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 14, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 15, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 16, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 17, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 18, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 19, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 20, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 22, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 23, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 24, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 25, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 26, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 27, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 28, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 29, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 30, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 31, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 32, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 33, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 34, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 35, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 36, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 37, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 38, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 39, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 40, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 41, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 42, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 43, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 44, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 45, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 46, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 47, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 48, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 49, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 50, "name": "hire_rescinded", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 51, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 52, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 53, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 54, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 55, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 56, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 57, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 58, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 59, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 60, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 61, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 62, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 63, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 64, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 65, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 66, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 67, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 68, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 69, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 70, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 71, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 72, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 73, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 74, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 75, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 76, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 77, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 78, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 79, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 80, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 81, "name": "terminated", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 82, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 83, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 84, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 85, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 86, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 87, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 88, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_history"}, "model.workday.stg_workday__worker_leave_status": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 3, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 4, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 5, "name": "age_of_dependent", "comment": null}, "is_benefits_effect": {"type": "boolean", "index": 6, "name": "is_benefits_effect", "comment": null}, "child_birth_date": {"type": "date", "index": 7, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 8, "name": "child_sdate_of_death", "comment": null}, "is_continuous_service_accrual_effect": {"type": "boolean", "index": 9, "name": "is_continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 10, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 11, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 12, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 13, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 14, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 15, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 16, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 17, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 18, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 19, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 20, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 21, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 22, "name": "leave_percentage", "comment": null}, "leave_request_event_id": {"type": "text", "index": 23, "name": "leave_request_event_id", "comment": null}, "leave_return_event": {"type": "integer", "index": 24, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 25, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 26, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 27, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 28, "name": "location_during_leave", "comment": null}, "is_multiple_child_indicator": {"type": "integer", "index": 29, "name": "is_multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 30, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 31, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 32, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 33, "name": "number_of_previous_maternity_leaves", "comment": null}, "is_on_leave": {"type": "boolean", "index": 34, "name": "is_on_leave", "comment": null}, "is_paid_time_off_accrual_effect": {"type": "boolean", "index": 35, "name": "is_paid_time_off_accrual_effect", "comment": null}, "is_payroll_effect": {"type": "boolean", "index": 36, "name": "is_payroll_effect", "comment": null}, "is_single_parent_indicator": {"type": "integer", "index": 37, "name": "is_single_parent_indicator", "comment": null}, "is_caesarean_section_birth": {"type": "integer", "index": 38, "name": "is_caesarean_section_birth", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 39, "name": "social_security_disability_code", "comment": null}, "is_stock_vesting_effect": {"type": "boolean", "index": 40, "name": "is_stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 41, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 42, "name": "week_of_confinement", "comment": null}, "is_work_related": {"type": "integer", "index": 43, "name": "is_work_related", "comment": null}, "worker_id": {"type": "text", "index": 44, "name": "worker_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_leave_status"}, "model.workday.stg_workday__worker_leave_status_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_leave_status_base"}, "model.workday.stg_workday__worker_position": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 3, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 4, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 5, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 6, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 8, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 9, "name": "business_site_summary_local", "comment": null}, "position_location": {"type": "text", "index": 10, "name": "position_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 11, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 12, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 13, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 14, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 15, "name": "business_title", "comment": null}, "is_critical_job": {"type": "boolean", "index": 16, "name": "is_critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 17, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 18, "name": "difficulty_to_fill", "comment": null}, "position_effective_date": {"type": "date", "index": 19, "name": "position_effective_date", "comment": null}, "employee_type": {"type": "text", "index": 20, "name": "employee_type", "comment": null}, "position_end_date": {"type": "date", "index": 21, "name": "position_end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 22, "name": "end_employment_date", "comment": null}, "is_exclude_from_head_count": {"type": "boolean", "index": 23, "name": "is_exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 24, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 25, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 26, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 27, "name": "frequency", "comment": null}, "fte_percent": {"type": "integer", "index": 28, "name": "fte_percent", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 29, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 30, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 31, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 32, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 33, "name": "is_primary_job", "comment": null}, "is_job_exempt": {"type": "boolean", "index": 34, "name": "is_job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 35, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 36, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 37, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 38, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 39, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 40, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 41, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 42, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 43, "name": "payroll_file_number", "comment": null}, "position_id": {"type": "text", "index": 44, "name": "position_id", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 45, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 46, "name": "scheduled_weekly_hours", "comment": null}, "is_specify_paid_fte": {"type": "boolean", "index": 47, "name": "is_specify_paid_fte", "comment": null}, "is_specify_working_fte": {"type": "boolean", "index": 48, "name": "is_specify_working_fte", "comment": null}, "position_start_date": {"type": "date", "index": 49, "name": "position_start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 50, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 51, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 52, "name": "work_shift", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 53, "name": "is_work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 54, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 55, "name": "worker_hours_profile_classification", "comment": null}, "worker_id": {"type": "text", "index": 56, "name": "worker_id", "comment": null}, "working_fte": {"type": "double precision", "index": 57, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 58, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 59, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 60, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position"}, "model.workday.stg_workday__worker_position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_base"}, "model.workday.stg_workday__worker_position_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_date": {"type": "date", "index": 5, "name": "_fivetran_date", "comment": null}, "effective_date": {"type": "timestamp without time zone", "index": 6, "name": "effective_date", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 7, "name": "end_employment_date", "comment": null}, "position_start_date": {"type": "timestamp without time zone", "index": 8, "name": "position_start_date", "comment": null}, "position_end_date": {"type": "timestamp without time zone", "index": 9, "name": "position_end_date", "comment": null}, "history_unique_key": {"type": "text", "index": 10, "name": "history_unique_key", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 11, "name": "_fivetran_active", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 12, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 13, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 14, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 15, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 16, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 17, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 18, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 19, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 20, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 21, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 22, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 23, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 24, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 25, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 26, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 27, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 28, "name": "difficulty_to_fill", "comment": null}, "employee_type": {"type": "text", "index": 29, "name": "employee_type", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 30, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 31, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 32, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 33, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 34, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 35, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 36, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 37, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 38, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 39, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 40, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 41, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 42, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 43, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 44, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 45, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 46, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 47, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 48, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 49, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 50, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 51, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 52, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 53, "name": "specify_working_fte", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 54, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 55, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 56, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 57, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 58, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 59, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 60, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 61, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 62, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 63, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_history"}, "model.workday.stg_workday__worker_position_organization": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"source_relation": {"type": "text", "index": 1, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "index": {"type": "integer", "index": 5, "name": "index", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 6, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 7, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 8, "name": "primary_business_site", "comment": null}, "is_used_in_change_organization_assignments": {"type": "boolean", "index": 9, "name": "is_used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_organization"}, "model.workday.stg_workday__worker_position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_organization_base"}, "model.workday.stg_workday__worker_position_organization_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "organization_id": {"type": "text", "index": 3, "name": "organization_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_date": {"type": "date", "index": 6, "name": "_fivetran_date", "comment": null}, "history_unique_key": {"type": "text", "index": 7, "name": "history_unique_key", "comment": null}, "index": {"type": "integer", "index": 8, "name": "index", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 9, "name": "_fivetran_active", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 11, "name": "date_of_pay_group_assignment", "comment": null}, "primary_business_site": {"type": "integer", "index": 12, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 13, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_organization_history"}, "model.workday.int_workday__employee_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"history_unique_key": {"type": "text", "index": 1, "name": "history_unique_key", "comment": null}, "employee_id": {"type": "text", "index": 2, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 3, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 5, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_end", "comment": null}, "wh_active": {"type": "boolean", "index": 8, "name": "wh_active", "comment": null}, "wph_active": {"type": "boolean", "index": 9, "name": "wph_active", "comment": null}, "pih_active": {"type": "boolean", "index": 10, "name": "pih_active", "comment": null}, "wh_end_employment_date": {"type": "timestamp without time zone", "index": 11, "name": "wh_end_employment_date", "comment": null}, "wph_end_employment_date": {"type": "timestamp without time zone", "index": 12, "name": "wph_end_employment_date", "comment": null}, "wh_pay_through_date": {"type": "date", "index": 13, "name": "wh_pay_through_date", "comment": null}, "wph_pay_through_date": {"type": "date", "index": 14, "name": "wph_pay_through_date", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 15, "name": "termination_date", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 16, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 17, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 18, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 19, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 20, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 21, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 22, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 23, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 24, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 25, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 26, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 27, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 28, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 29, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 30, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 31, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 32, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 33, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 34, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 35, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 36, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 37, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 38, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 39, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 40, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 41, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 42, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 43, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 44, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 45, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 46, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 47, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 48, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 49, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 50, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 51, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 52, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 53, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 54, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 55, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 56, "name": "hire_rescinded", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 57, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 58, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 59, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 60, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 61, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 62, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 63, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 64, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 65, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 66, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 67, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 68, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 69, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 70, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 71, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "primary_termination_category": {"type": "text", "index": 72, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 73, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 74, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 75, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 76, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 77, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 78, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 79, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 80, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 81, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 82, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 83, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 84, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 85, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 86, "name": "terminated", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 87, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 88, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 89, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 90, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 91, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 92, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 93, "name": "worker_code", "comment": null}, "effective_date": {"type": "timestamp without time zone", "index": 94, "name": "effective_date", "comment": null}, "position_start_date": {"type": "timestamp without time zone", "index": 95, "name": "position_start_date", "comment": null}, "position_end_date": {"type": "timestamp without time zone", "index": 96, "name": "position_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 97, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 98, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 99, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 100, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 101, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 102, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 103, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 104, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 105, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 106, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 107, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 108, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 109, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 110, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 111, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 112, "name": "difficulty_to_fill", "comment": null}, "employee_type": {"type": "text", "index": 113, "name": "employee_type", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 114, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 115, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 116, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 117, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 118, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 119, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 120, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 121, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 122, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 123, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 124, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 125, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 126, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 127, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 128, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 129, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 130, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 131, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 132, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 133, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 134, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 135, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 136, "name": "specify_working_fte", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 137, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 138, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 139, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 140, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 141, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 142, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 143, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 144, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 145, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 146, "name": "working_time_value", "comment": null}, "type": {"type": "text", "index": 147, "name": "type", "comment": null}, "additional_nationality": {"type": "integer", "index": 148, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 149, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 150, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 151, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 152, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 153, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 154, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 155, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 156, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 157, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 158, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 159, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 160, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 161, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 162, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 163, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 164, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 165, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 166, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 167, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 168, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 169, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 170, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 171, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 172, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 173, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 174, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 175, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 176, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 177, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 178, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 179, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__employee_history"}, "model.workday.int_workday__personal_details": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "int_workday__personal_details", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "date_of_birth": {"type": "date", "index": 3, "name": "date_of_birth", "comment": null}, "gender": {"type": "text", "index": 4, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 5, "name": "is_hispanic_or_latino", "comment": null}, "first_name": {"type": "text", "index": 6, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 7, "name": "last_name", "comment": null}, "email_address": {"type": "text", "index": 8, "name": "email_address", "comment": null}, "ethnicity_codes": {"type": "text", "index": 9, "name": "ethnicity_codes", "comment": null}, "military_status": {"type": "text", "index": 10, "name": "military_status", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__personal_details"}, "model.workday.int_workday__worker_details": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_details", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "worker_code": {"type": "integer", "index": 3, "name": "worker_code", "comment": null}, "user_id": {"type": "text", "index": 4, "name": "user_id", "comment": null}, "universal_id": {"type": "integer", "index": 5, "name": "universal_id", "comment": null}, "is_user_active": {"type": "boolean", "index": 6, "name": "is_user_active", "comment": null}, "is_employed": {"type": "boolean", "index": 7, "name": "is_employed", "comment": null}, "hire_date": {"type": "date", "index": 8, "name": "hire_date", "comment": null}, "departure_date": {"type": "date", "index": 9, "name": "departure_date", "comment": null}, "days_as_worker": {"type": "integer", "index": 10, "name": "days_as_worker", "comment": null}, "is_terminated": {"type": "boolean", "index": 11, "name": "is_terminated", "comment": null}, "primary_termination_category": {"type": "text", "index": 12, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 13, "name": "primary_termination_reason", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 14, "name": "is_regrettable_termination", "comment": null}, "compensation_effective_date": {"type": "date", "index": 15, "name": "compensation_effective_date", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 16, "name": "employee_compensation_frequency", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 17, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 19, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_summary_currency": {"type": "text", "index": 20, "name": "annual_summary_currency", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_summary_primary_compensation_basis", "comment": null}, "compensation_grade_id": {"type": "text", "index": 23, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 24, "name": "compensation_grade_profile_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__worker_details"}, "model.workday.int_workday__worker_employee_enhanced": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_employee_enhanced", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"worker_id": {"type": "text", "index": 1, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "worker_code": {"type": "integer", "index": 3, "name": "worker_code", "comment": null}, "user_id": {"type": "text", "index": 4, "name": "user_id", "comment": null}, "universal_id": {"type": "integer", "index": 5, "name": "universal_id", "comment": null}, "is_user_active": {"type": "boolean", "index": 6, "name": "is_user_active", "comment": null}, "is_employed": {"type": "boolean", "index": 7, "name": "is_employed", "comment": null}, "hire_date": {"type": "date", "index": 8, "name": "hire_date", "comment": null}, "departure_date": {"type": "date", "index": 9, "name": "departure_date", "comment": null}, "days_as_worker": {"type": "integer", "index": 10, "name": "days_as_worker", "comment": null}, "is_terminated": {"type": "boolean", "index": 11, "name": "is_terminated", "comment": null}, "primary_termination_category": {"type": "text", "index": 12, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 13, "name": "primary_termination_reason", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 14, "name": "is_regrettable_termination", "comment": null}, "compensation_effective_date": {"type": "date", "index": 15, "name": "compensation_effective_date", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 16, "name": "employee_compensation_frequency", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 17, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 19, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_summary_currency": {"type": "text", "index": 20, "name": "annual_summary_currency", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_summary_primary_compensation_basis", "comment": null}, "compensation_grade_id": {"type": "text", "index": 23, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 24, "name": "compensation_grade_profile_id", "comment": null}, "first_name": {"type": "text", "index": 25, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 26, "name": "last_name", "comment": null}, "date_of_birth": {"type": "date", "index": 27, "name": "date_of_birth", "comment": null}, "gender": {"type": "text", "index": 28, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 29, "name": "is_hispanic_or_latino", "comment": null}, "email_address": {"type": "text", "index": 30, "name": "email_address", "comment": null}, "ethnicity_codes": {"type": "text", "index": 31, "name": "ethnicity_codes", "comment": null}, "military_status": {"type": "text", "index": 32, "name": "military_status", "comment": null}, "position_id": {"type": "text", "index": 33, "name": "position_id", "comment": null}, "business_title": {"type": "text", "index": 34, "name": "business_title", "comment": null}, "job_profile_id": {"type": "text", "index": 35, "name": "job_profile_id", "comment": null}, "employee_type": {"type": "text", "index": 36, "name": "employee_type", "comment": null}, "position_location": {"type": "text", "index": 37, "name": "position_location", "comment": null}, "management_level_code": {"type": "text", "index": 38, "name": "management_level_code", "comment": null}, "fte_percent": {"type": "integer", "index": 39, "name": "fte_percent", "comment": null}, "position_start_date": {"type": "date", "index": 40, "name": "position_start_date", "comment": null}, "position_end_date": {"type": "date", "index": 41, "name": "position_end_date", "comment": null}, "position_effective_date": {"type": "date", "index": 42, "name": "position_effective_date", "comment": null}, "days_employed": {"type": "integer", "index": 43, "name": "days_employed", "comment": null}, "is_employed_one_year": {"type": "boolean", "index": 44, "name": "is_employed_one_year", "comment": null}, "is_employed_five_years": {"type": "boolean", "index": 45, "name": "is_employed_five_years", "comment": null}, "is_employed_ten_years": {"type": "boolean", "index": 46, "name": "is_employed_ten_years", "comment": null}, "is_employed_twenty_years": {"type": "boolean", "index": 47, "name": "is_employed_twenty_years", "comment": null}, "is_employed_thirty_years": {"type": "boolean", "index": 48, "name": "is_employed_thirty_years", "comment": null}, "is_current_employee_one_year": {"type": "boolean", "index": 49, "name": "is_current_employee_one_year", "comment": null}, "is_current_employee_five_years": {"type": "boolean", "index": 50, "name": "is_current_employee_five_years", "comment": null}, "is_current_employee_ten_years": {"type": "boolean", "index": 51, "name": "is_current_employee_ten_years", "comment": null}, "is_current_employee_twenty_years": {"type": "boolean", "index": 52, "name": "is_current_employee_twenty_years", "comment": null}, "is_current_employee_thirty_years": {"type": "boolean", "index": 53, "name": "is_current_employee_thirty_years", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__worker_employee_enhanced"}, "model.workday.int_workday__worker_position_enriched": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_position_enriched", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_id": {"type": "text", "index": 1, "name": "employee_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "business_title": {"type": "text", "index": 5, "name": "business_title", "comment": null}, "job_profile_id": {"type": "text", "index": 6, "name": "job_profile_id", "comment": null}, "employee_type": {"type": "text", "index": 7, "name": "employee_type", "comment": null}, "position_location": {"type": "text", "index": 8, "name": "position_location", "comment": null}, "management_level_code": {"type": "text", "index": 9, "name": "management_level_code", "comment": null}, "fte_percent": {"type": "integer", "index": 10, "name": "fte_percent", "comment": null}, "days_employed": {"type": "integer", "index": 11, "name": "days_employed", "comment": null}, "position_start_date": {"type": "date", "index": 12, "name": "position_start_date", "comment": null}, "position_end_date": {"type": "date", "index": 13, "name": "position_end_date", "comment": null}, "position_effective_date": {"type": "date", "index": 14, "name": "position_effective_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__worker_position_enriched"}, "model.workday.workday__employee_daily_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_day_id": {"type": "text", "index": 1, "name": "employee_day_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "history_unique_key": {"type": "text", "index": 3, "name": "history_unique_key", "comment": null}, "employee_id": {"type": "text", "index": 4, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 5, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 6, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 7, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_end", "comment": null}, "wh_active": {"type": "boolean", "index": 10, "name": "wh_active", "comment": null}, "wph_active": {"type": "boolean", "index": 11, "name": "wph_active", "comment": null}, "pih_active": {"type": "boolean", "index": 12, "name": "pih_active", "comment": null}, "wh_end_employment_date": {"type": "timestamp without time zone", "index": 13, "name": "wh_end_employment_date", "comment": null}, "wph_end_employment_date": {"type": "timestamp without time zone", "index": 14, "name": "wph_end_employment_date", "comment": null}, "wh_pay_through_date": {"type": "date", "index": 15, "name": "wh_pay_through_date", "comment": null}, "wph_pay_through_date": {"type": "date", "index": 16, "name": "wph_pay_through_date", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 17, "name": "termination_date", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 18, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 19, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 20, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 21, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 22, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 23, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 24, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 25, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 26, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 27, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 28, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 29, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 30, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 31, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 32, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 33, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 34, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 35, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 36, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 37, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 38, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 39, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 40, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 41, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 42, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 43, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 44, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 45, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 46, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 47, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 48, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 49, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 50, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 51, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 52, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 53, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 54, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 55, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 56, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 57, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 58, "name": "hire_rescinded", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 59, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 60, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 61, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 63, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 64, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 65, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 66, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 67, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 68, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 69, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 70, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 71, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 72, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 73, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "primary_termination_category": {"type": "text", "index": 74, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 75, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 76, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 77, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 78, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 79, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 80, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 81, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 82, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 83, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 84, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 85, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 86, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 87, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 88, "name": "terminated", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 89, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 90, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 91, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 92, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 93, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 94, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 95, "name": "worker_code", "comment": null}, "effective_date": {"type": "timestamp without time zone", "index": 96, "name": "effective_date", "comment": null}, "position_start_date": {"type": "timestamp without time zone", "index": 97, "name": "position_start_date", "comment": null}, "position_end_date": {"type": "timestamp without time zone", "index": 98, "name": "position_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 99, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 100, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 101, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 102, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 103, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 104, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 105, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 106, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 107, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 108, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 109, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 110, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 111, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 112, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 113, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 114, "name": "difficulty_to_fill", "comment": null}, "employee_type": {"type": "text", "index": 115, "name": "employee_type", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 116, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 117, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 118, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 119, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 120, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 121, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 122, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 123, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 124, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 125, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 126, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 127, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 128, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 129, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 130, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 131, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 132, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 133, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 134, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 135, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 136, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 137, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 138, "name": "specify_working_fte", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 139, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 140, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 141, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 142, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 143, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 144, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 145, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 146, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 147, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 148, "name": "working_time_value", "comment": null}, "type": {"type": "text", "index": 149, "name": "type", "comment": null}, "additional_nationality": {"type": "integer", "index": 150, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 151, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 152, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 153, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 154, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 155, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 156, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 157, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 158, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 159, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 160, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 161, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 162, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 163, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 164, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 165, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 166, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 167, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 168, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 169, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 170, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 171, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 172, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 173, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 174, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 175, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 176, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 177, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 178, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 179, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 180, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 181, "name": "ll", "comment": null}, "row_num": {"type": "bigint", "index": 182, "name": "row_num", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_daily_history"}, "model.workday.workday__employee_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_id": {"type": "text", "index": 1, "name": "employee_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "position_start_date": {"type": "date", "index": 4, "name": "position_start_date", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "worker_code": {"type": "integer", "index": 6, "name": "worker_code", "comment": null}, "user_id": {"type": "text", "index": 7, "name": "user_id", "comment": null}, "universal_id": {"type": "integer", "index": 8, "name": "universal_id", "comment": null}, "is_user_active": {"type": "boolean", "index": 9, "name": "is_user_active", "comment": null}, "is_employed": {"type": "boolean", "index": 10, "name": "is_employed", "comment": null}, "hire_date": {"type": "date", "index": 11, "name": "hire_date", "comment": null}, "departure_date": {"type": "date", "index": 12, "name": "departure_date", "comment": null}, "days_as_worker": {"type": "integer", "index": 13, "name": "days_as_worker", "comment": null}, "is_terminated": {"type": "boolean", "index": 14, "name": "is_terminated", "comment": null}, "primary_termination_category": {"type": "text", "index": 15, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 16, "name": "primary_termination_reason", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 17, "name": "is_regrettable_termination", "comment": null}, "compensation_effective_date": {"type": "date", "index": 18, "name": "compensation_effective_date", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 19, "name": "employee_compensation_frequency", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 20, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_summary_currency": {"type": "text", "index": 23, "name": "annual_summary_currency", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 24, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 25, "name": "annual_summary_primary_compensation_basis", "comment": null}, "compensation_grade_id": {"type": "text", "index": 26, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 27, "name": "compensation_grade_profile_id", "comment": null}, "first_name": {"type": "text", "index": 28, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 29, "name": "last_name", "comment": null}, "date_of_birth": {"type": "date", "index": 30, "name": "date_of_birth", "comment": null}, "gender": {"type": "text", "index": 31, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 32, "name": "is_hispanic_or_latino", "comment": null}, "email_address": {"type": "text", "index": 33, "name": "email_address", "comment": null}, "ethnicity_codes": {"type": "text", "index": 34, "name": "ethnicity_codes", "comment": null}, "military_status": {"type": "text", "index": 35, "name": "military_status", "comment": null}, "business_title": {"type": "text", "index": 36, "name": "business_title", "comment": null}, "job_profile_id": {"type": "text", "index": 37, "name": "job_profile_id", "comment": null}, "employee_type": {"type": "text", "index": 38, "name": "employee_type", "comment": null}, "position_location": {"type": "text", "index": 39, "name": "position_location", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "fte_percent": {"type": "integer", "index": 41, "name": "fte_percent", "comment": null}, "position_end_date": {"type": "date", "index": 42, "name": "position_end_date", "comment": null}, "position_effective_date": {"type": "date", "index": 43, "name": "position_effective_date", "comment": null}, "days_employed": {"type": "integer", "index": 44, "name": "days_employed", "comment": null}, "is_employed_one_year": {"type": "boolean", "index": 45, "name": "is_employed_one_year", "comment": null}, "is_employed_five_years": {"type": "boolean", "index": 46, "name": "is_employed_five_years", "comment": null}, "is_employed_ten_years": {"type": "boolean", "index": 47, "name": "is_employed_ten_years", "comment": null}, "is_employed_twenty_years": {"type": "boolean", "index": 48, "name": "is_employed_twenty_years", "comment": null}, "is_employed_thirty_years": {"type": "boolean", "index": 49, "name": "is_employed_thirty_years", "comment": null}, "is_current_employee_one_year": {"type": "boolean", "index": 50, "name": "is_current_employee_one_year", "comment": null}, "is_current_employee_five_years": {"type": "boolean", "index": 51, "name": "is_current_employee_five_years", "comment": null}, "is_current_employee_ten_years": {"type": "boolean", "index": 52, "name": "is_current_employee_ten_years", "comment": null}, "is_current_employee_twenty_years": {"type": "boolean", "index": 53, "name": "is_current_employee_twenty_years", "comment": null}, "is_current_employee_thirty_years": {"type": "boolean", "index": 54, "name": "is_current_employee_thirty_years", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_overview"}, "model.workday.workday__job_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "job_profile_code": {"type": "text", "index": 3, "name": "job_profile_code", "comment": null}, "job_title": {"type": "text", "index": 4, "name": "job_title", "comment": null}, "private_title": {"type": "integer", "index": 5, "name": "private_title", "comment": null}, "job_summary": {"type": "text", "index": 6, "name": "job_summary", "comment": null}, "job_description": {"type": "text", "index": 7, "name": "job_description", "comment": null}, "job_family_codes": {"type": "text", "index": 8, "name": "job_family_codes", "comment": null}, "job_family_summaries": {"type": "text", "index": 9, "name": "job_family_summaries", "comment": null}, "job_family_group_codes": {"type": "text", "index": 10, "name": "job_family_group_codes", "comment": null}, "job_family_group_summaries": {"type": "text", "index": 11, "name": "job_family_group_summaries", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__job_overview"}, "model.workday.workday__monthly_summary": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"metrics_month": {"type": "timestamp with time zone", "index": 1, "name": "metrics_month", "comment": null}, "new_employees": {"type": "bigint", "index": 2, "name": "new_employees", "comment": null}, "churned_employees": {"type": "bigint", "index": 3, "name": "churned_employees", "comment": null}, "churned_voluntary_employees": {"type": "bigint", "index": 4, "name": "churned_voluntary_employees", "comment": null}, "churned_involuntary_employees": {"type": "bigint", "index": 5, "name": "churned_involuntary_employees", "comment": null}, "churned_workers": {"type": "bigint", "index": 6, "name": "churned_workers", "comment": null}, "active_employees": {"type": "bigint", "index": 7, "name": "active_employees", "comment": null}, "active_male_employees": {"type": "bigint", "index": 8, "name": "active_male_employees", "comment": null}, "active_female_employees": {"type": "bigint", "index": 9, "name": "active_female_employees", "comment": null}, "active_workers": {"type": "bigint", "index": 10, "name": "active_workers", "comment": null}, "active_known_gender_employees": {"type": "bigint", "index": 11, "name": "active_known_gender_employees", "comment": null}, "avg_employee_primary_compensation": {"type": "double precision", "index": 12, "name": "avg_employee_primary_compensation", "comment": null}, "avg_employee_base_pay": {"type": "double precision", "index": 13, "name": "avg_employee_base_pay", "comment": null}, "avg_employee_salary_and_allowances": {"type": "double precision", "index": 14, "name": "avg_employee_salary_and_allowances", "comment": null}, "avg_days_as_employee": {"type": "numeric", "index": 15, "name": "avg_days_as_employee", "comment": null}, "avg_worker_primary_compensation": {"type": "double precision", "index": 16, "name": "avg_worker_primary_compensation", "comment": null}, "avg_worker_base_pay": {"type": "double precision", "index": 17, "name": "avg_worker_base_pay", "comment": null}, "avg_worker_salary_and_allowances": {"type": "double precision", "index": 18, "name": "avg_worker_salary_and_allowances", "comment": null}, "avg_days_as_worker": {"type": "numeric", "index": 19, "name": "avg_days_as_worker", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__monthly_summary"}, "model.workday.workday__organization_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "organization_role_id": {"type": "text", "index": 2, "name": "organization_role_id", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "organization_code": {"type": "text", "index": 6, "name": "organization_code", "comment": null}, "organization_name": {"type": "text", "index": 7, "name": "organization_name", "comment": null}, "organization_type": {"type": "text", "index": 8, "name": "organization_type", "comment": null}, "organization_sub_type": {"type": "text", "index": 9, "name": "organization_sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 10, "name": "superior_organization_id", "comment": null}, "top_level_organization_id": {"type": "text", "index": 11, "name": "top_level_organization_id", "comment": null}, "manager_id": {"type": "text", "index": 12, "name": "manager_id", "comment": null}, "organization_role_code": {"type": "text", "index": 13, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__organization_overview"}, "model.workday.workday__position_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "position_code": {"type": "text", "index": 3, "name": "position_code", "comment": null}, "job_posting_title": {"type": "text", "index": 4, "name": "job_posting_title", "comment": null}, "effective_date": {"type": "date", "index": 5, "name": "effective_date", "comment": null}, "is_closed": {"type": "boolean", "index": 6, "name": "is_closed", "comment": null}, "is_hiring_freeze": {"type": "boolean", "index": 7, "name": "is_hiring_freeze", "comment": null}, "is_available_for_hire": {"type": "boolean", "index": 8, "name": "is_available_for_hire", "comment": null}, "availability_date": {"type": "date", "index": 9, "name": "availability_date", "comment": null}, "is_available_for_recruiting": {"type": "boolean", "index": 10, "name": "is_available_for_recruiting", "comment": null}, "earliest_hire_date": {"type": "date", "index": 11, "name": "earliest_hire_date", "comment": null}, "is_available_for_overlap": {"type": "boolean", "index": 12, "name": "is_available_for_overlap", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 13, "name": "earliest_overlap_date", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 14, "name": "worker_for_filled_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 15, "name": "worker_type_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 16, "name": "position_time_type_code", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 17, "name": "supervisory_organization_id", "comment": null}, "job_profile_id": {"type": "text", "index": 18, "name": "job_profile_id", "comment": null}, "compensation_package_code": {"type": "integer", "index": 19, "name": "compensation_package_code", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 20, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 21, "name": "compensation_grade_profile_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__position_overview"}}, "sources": {"source.workday.workday.job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family"}, "source.workday.workday.job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_group"}, "source.workday.workday.job_family_job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_family_group"}, "source.workday.workday.job_family_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_profile"}, "source.workday.workday.job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_profile"}, "source.workday.workday.military_service": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.military_service"}, "source.workday.workday.organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization"}, "source.workday.workday.organization_job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_job_family"}, "source.workday.workday.organization_role": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role"}, "source.workday.workday.organization_role_worker": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role_worker"}, "source.workday.workday.person_contact_email_address": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_contact_email_address"}, "source.workday.workday.person_name": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_name"}, "source.workday.workday.personal_information_ethnicity": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_ethnicity"}, "source.workday.workday.personal_information_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_history"}, "source.workday.workday.position": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position"}, "source.workday.workday.position_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_job_profile"}, "source.workday.workday.position_organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_organization"}, "source.workday.workday.worker_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_history"}, "source.workday.workday.worker_leave_status": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_leave_status"}, "source.workday.workday.worker_position_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_history"}, "source.workday.workday.worker_position_organization_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_organization_history"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.7.8", "generated_at": "2024-04-01T22:52:26.288504Z", "invocation_id": "8e65a20c-cb81-4843-9da9-8c7f4213e39a", "env": {}}, "nodes": {"seed.workday_integration_tests.workday_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_data"}, "seed.workday_integration_tests.workday_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data"}, "seed.workday_integration_tests.workday_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_profile_data"}, "seed.workday_integration_tests.workday_military_service_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_military_service_data"}, "seed.workday_integration_tests.workday_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_data"}, "seed.workday_integration_tests.workday_organization_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data"}, "seed.workday_integration_tests.workday_organization_role_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_data"}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data"}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data"}, "seed.workday_integration_tests.workday_person_name_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_name_data"}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data"}, "seed.workday_integration_tests.workday_personal_information_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data"}, "seed.workday_integration_tests.workday_position_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_data"}, "seed.workday_integration_tests.workday_position_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data"}, "seed.workday_integration_tests.workday_position_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_organization_data"}, "seed.workday_integration_tests.workday_worker_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_history_data"}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data"}, "seed.workday_integration_tests.workday_worker_position_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data"}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data"}, "model.workday.stg_workday__job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_base"}, "model.workday.stg_workday__job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_group_base"}, "model.workday.stg_workday__job_family_job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base"}, "model.workday.stg_workday__job_family_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_profile_base"}, "model.workday.stg_workday__job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_profile_base"}, "model.workday.stg_workday__military_service_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__military_service_base"}, "model.workday.stg_workday__organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_base"}, "model.workday.stg_workday__organization_job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_job_family_base"}, "model.workday.stg_workday__organization_role_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_base"}, "model.workday.stg_workday__organization_role_worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_worker_base"}, "model.workday.stg_workday__person_contact_email_address_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_contact_email_address_base"}, "model.workday.stg_workday__person_name_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_name_base"}, "model.workday.stg_workday__personal_information_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_base"}, "model.workday.stg_workday__personal_information_ethnicity_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base"}, "model.workday.stg_workday__position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_base"}, "model.workday.stg_workday__position_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_job_profile_base"}, "model.workday.stg_workday__position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_organization_base"}, "model.workday.stg_workday__worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_base"}, "model.workday.stg_workday__worker_leave_status_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_leave_status_base"}, "model.workday.stg_workday__worker_position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_base"}, "model.workday.stg_workday__worker_position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_organization_base"}, "model.workday.int_workday__employee_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"history_unique_key": {"type": "text", "index": 1, "name": "history_unique_key", "comment": null}, "employee_id": {"type": "text", "index": 2, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 3, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 6, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_end", "comment": null}, "is_wh_fivetran_active": {"type": "boolean", "index": 9, "name": "is_wh_fivetran_active", "comment": null}, "is_wph_fivetran_active": {"type": "boolean", "index": 10, "name": "is_wph_fivetran_active", "comment": null}, "is_pih_fivetran_active": {"type": "boolean", "index": 11, "name": "is_pih_fivetran_active", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 12, "name": "academic_tenure_date", "comment": null}, "is_active": {"type": "boolean", "index": 13, "name": "is_active", "comment": null}, "active_status_date": {"type": "date", "index": 14, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 15, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 16, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 17, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 19, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 20, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 21, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 23, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 24, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 25, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 26, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 27, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 28, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 29, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 30, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 31, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 32, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 33, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 34, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 35, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 36, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 37, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 38, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 39, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 40, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 41, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 42, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 43, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 44, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 45, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 46, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 47, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 48, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 49, "name": "first_day_of_work", "comment": null}, "is_has_international_assignment": {"type": "boolean", "index": 50, "name": "is_has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 51, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 52, "name": "hire_reason", "comment": null}, "is_hire_rescinded": {"type": "boolean", "index": 53, "name": "is_hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 54, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 55, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 56, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 57, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 58, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 59, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 60, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 61, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 62, "name": "months_continuous_prior_employment", "comment": null}, "is_not_returning": {"type": "boolean", "index": 63, "name": "is_not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 64, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 65, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 66, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 67, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 68, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 69, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 70, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 71, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 72, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 73, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 74, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 75, "name": "reason_reference_id", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 76, "name": "is_regrettable_termination", "comment": null}, "is_rehire": {"type": "boolean", "index": 77, "name": "is_rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 78, "name": "resignation_date", "comment": null}, "is_retired": {"type": "boolean", "index": 79, "name": "is_retired", "comment": null}, "retirement_date": {"type": "integer", "index": 80, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 81, "name": "retirement_eligibility_date", "comment": null}, "is_return_unknown": {"type": "boolean", "index": 82, "name": "is_return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 83, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 84, "name": "severance_date", "comment": null}, "is_terminated": {"type": "boolean", "index": 85, "name": "is_terminated", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 86, "name": "termination_date", "comment": null}, "is_termination_involuntary": {"type": "boolean", "index": 87, "name": "is_termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 88, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 89, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 90, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 91, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 92, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 93, "name": "worker_code", "comment": null}, "position_location": {"type": "text", "index": 94, "name": "position_location", "comment": null}, "is_exclude_from_head_count": {"type": "boolean", "index": 95, "name": "is_exclude_from_head_count", "comment": null}, "fte_percent": {"type": "integer", "index": 96, "name": "fte_percent", "comment": null}, "is_job_exempt": {"type": "boolean", "index": 97, "name": "is_job_exempt", "comment": null}, "is_specify_paid_fte": {"type": "boolean", "index": 98, "name": "is_specify_paid_fte", "comment": null}, "is_specify_working_fte": {"type": "boolean", "index": 99, "name": "is_specify_working_fte", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 100, "name": "is_work_shift_required", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 101, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 102, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 103, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 104, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 105, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 106, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 107, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 108, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 109, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 110, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 111, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 112, "name": "business_title", "comment": null}, "is_critical_job": {"type": "boolean", "index": 113, "name": "is_critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 114, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 115, "name": "difficulty_to_fill", "comment": null}, "position_effective_date": {"type": "timestamp without time zone", "index": 116, "name": "position_effective_date", "comment": null}, "employee_type": {"type": "text", "index": 117, "name": "employee_type", "comment": null}, "position_end_date": {"type": "timestamp without time zone", "index": 118, "name": "position_end_date", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 119, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 120, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 121, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 122, "name": "frequency", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 123, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 124, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 125, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 126, "name": "is_primary_job", "comment": null}, "job_profile_id": {"type": "text", "index": 127, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 128, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 129, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 130, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 131, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 132, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 133, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 134, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 135, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 136, "name": "scheduled_weekly_hours", "comment": null}, "position_start_date": {"type": "timestamp without time zone", "index": 137, "name": "position_start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 138, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 139, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 140, "name": "work_shift", "comment": null}, "work_space": {"type": "integer", "index": 141, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 142, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 143, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 144, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 145, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 146, "name": "working_time_value", "comment": null}, "additional_nationality": {"type": "integer", "index": 147, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 148, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 149, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 150, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 151, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 152, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 153, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 154, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 155, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 156, "name": "is_hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 157, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 158, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 159, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 160, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 161, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 162, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 163, "name": "last_medical_exam_valid_to", "comment": null}, "is_local_hukou": {"type": "integer", "index": 164, "name": "is_local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 165, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 166, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 167, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 168, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 169, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 170, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 171, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 172, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 173, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 174, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 175, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 176, "name": "social_benefit", "comment": null}, "is_tobacco_use": {"type": "boolean", "index": 177, "name": "is_tobacco_use", "comment": null}, "type": {"type": "text", "index": 178, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__employee_history"}, "model.workday.workday__employee_daily_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_day_id": {"type": "text", "index": 1, "name": "employee_day_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "history_unique_key": {"type": "text", "index": 3, "name": "history_unique_key", "comment": null}, "employee_id": {"type": "text", "index": 4, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 5, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 6, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 8, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_end", "comment": null}, "is_wh_fivetran_active": {"type": "boolean", "index": 11, "name": "is_wh_fivetran_active", "comment": null}, "is_wph_fivetran_active": {"type": "boolean", "index": 12, "name": "is_wph_fivetran_active", "comment": null}, "is_pih_fivetran_active": {"type": "boolean", "index": 13, "name": "is_pih_fivetran_active", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 14, "name": "academic_tenure_date", "comment": null}, "is_active": {"type": "boolean", "index": 15, "name": "is_active", "comment": null}, "active_status_date": {"type": "date", "index": 16, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 17, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 18, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 19, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 20, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 22, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 23, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 24, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 25, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 26, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 27, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 28, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 29, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 30, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 31, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 32, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 33, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 34, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 35, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 36, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 37, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 38, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 39, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 40, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 41, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 42, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 43, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 44, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 45, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 46, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 47, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 48, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 49, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 50, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 51, "name": "first_day_of_work", "comment": null}, "is_has_international_assignment": {"type": "boolean", "index": 52, "name": "is_has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 53, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 54, "name": "hire_reason", "comment": null}, "is_hire_rescinded": {"type": "boolean", "index": 55, "name": "is_hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 56, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 57, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 58, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 59, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 60, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 61, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 62, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 63, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 64, "name": "months_continuous_prior_employment", "comment": null}, "is_not_returning": {"type": "boolean", "index": 65, "name": "is_not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 66, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 67, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 68, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 69, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 70, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 71, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 72, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 73, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 74, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 75, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 76, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 77, "name": "reason_reference_id", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 78, "name": "is_regrettable_termination", "comment": null}, "is_rehire": {"type": "boolean", "index": 79, "name": "is_rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 80, "name": "resignation_date", "comment": null}, "is_retired": {"type": "boolean", "index": 81, "name": "is_retired", "comment": null}, "retirement_date": {"type": "integer", "index": 82, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 83, "name": "retirement_eligibility_date", "comment": null}, "is_return_unknown": {"type": "boolean", "index": 84, "name": "is_return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 85, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 86, "name": "severance_date", "comment": null}, "is_terminated": {"type": "boolean", "index": 87, "name": "is_terminated", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 88, "name": "termination_date", "comment": null}, "is_termination_involuntary": {"type": "boolean", "index": 89, "name": "is_termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 90, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 91, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 92, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 93, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 94, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 95, "name": "worker_code", "comment": null}, "position_location": {"type": "text", "index": 96, "name": "position_location", "comment": null}, "is_exclude_from_head_count": {"type": "boolean", "index": 97, "name": "is_exclude_from_head_count", "comment": null}, "fte_percent": {"type": "integer", "index": 98, "name": "fte_percent", "comment": null}, "is_job_exempt": {"type": "boolean", "index": 99, "name": "is_job_exempt", "comment": null}, "is_specify_paid_fte": {"type": "boolean", "index": 100, "name": "is_specify_paid_fte", "comment": null}, "is_specify_working_fte": {"type": "boolean", "index": 101, "name": "is_specify_working_fte", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 102, "name": "is_work_shift_required", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 103, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 104, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 105, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 106, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 107, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 108, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 109, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 110, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 111, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 112, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 113, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 114, "name": "business_title", "comment": null}, "is_critical_job": {"type": "boolean", "index": 115, "name": "is_critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 116, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 117, "name": "difficulty_to_fill", "comment": null}, "position_effective_date": {"type": "timestamp without time zone", "index": 118, "name": "position_effective_date", "comment": null}, "employee_type": {"type": "text", "index": 119, "name": "employee_type", "comment": null}, "position_end_date": {"type": "timestamp without time zone", "index": 120, "name": "position_end_date", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 121, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 122, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 123, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 124, "name": "frequency", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 125, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 126, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 127, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 128, "name": "is_primary_job", "comment": null}, "job_profile_id": {"type": "text", "index": 129, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 130, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 131, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 132, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 133, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 134, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 135, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 136, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 137, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 138, "name": "scheduled_weekly_hours", "comment": null}, "position_start_date": {"type": "timestamp without time zone", "index": 139, "name": "position_start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 140, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 141, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 142, "name": "work_shift", "comment": null}, "work_space": {"type": "integer", "index": 143, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 144, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 145, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 146, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 147, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 148, "name": "working_time_value", "comment": null}, "additional_nationality": {"type": "integer", "index": 149, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 150, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 151, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 152, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 153, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 154, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 155, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 156, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 157, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 158, "name": "is_hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 159, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 160, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 161, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 162, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 163, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 164, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 165, "name": "last_medical_exam_valid_to", "comment": null}, "is_local_hukou": {"type": "integer", "index": 166, "name": "is_local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 167, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 168, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 169, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 170, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 171, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 172, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 173, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 174, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 175, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 176, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 177, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 178, "name": "social_benefit", "comment": null}, "is_tobacco_use": {"type": "boolean", "index": 179, "name": "is_tobacco_use", "comment": null}, "type": {"type": "text", "index": 180, "name": "type", "comment": null}, "row_num": {"type": "bigint", "index": 181, "name": "row_num", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_daily_history"}, "model.workday.workday__employee_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_id": {"type": "text", "index": 1, "name": "employee_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "position_start_date": {"type": "date", "index": 5, "name": "position_start_date", "comment": null}, "worker_code": {"type": "integer", "index": 6, "name": "worker_code", "comment": null}, "user_id": {"type": "text", "index": 7, "name": "user_id", "comment": null}, "universal_id": {"type": "integer", "index": 8, "name": "universal_id", "comment": null}, "is_user_active": {"type": "boolean", "index": 9, "name": "is_user_active", "comment": null}, "is_employed": {"type": "boolean", "index": 10, "name": "is_employed", "comment": null}, "hire_date": {"type": "date", "index": 11, "name": "hire_date", "comment": null}, "departure_date": {"type": "date", "index": 12, "name": "departure_date", "comment": null}, "days_as_worker": {"type": "integer", "index": 13, "name": "days_as_worker", "comment": null}, "is_terminated": {"type": "boolean", "index": 14, "name": "is_terminated", "comment": null}, "primary_termination_category": {"type": "text", "index": 15, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 16, "name": "primary_termination_reason", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 17, "name": "is_regrettable_termination", "comment": null}, "compensation_effective_date": {"type": "date", "index": 18, "name": "compensation_effective_date", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 19, "name": "employee_compensation_frequency", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 20, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_summary_currency": {"type": "text", "index": 23, "name": "annual_summary_currency", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 24, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 25, "name": "annual_summary_primary_compensation_basis", "comment": null}, "compensation_grade_id": {"type": "text", "index": 26, "name": "compensation_grade_id", "comment": null}, "first_name": {"type": "text", "index": 27, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 28, "name": "last_name", "comment": null}, "date_of_birth": {"type": "date", "index": 29, "name": "date_of_birth", "comment": null}, "gender": {"type": "text", "index": 30, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 31, "name": "is_hispanic_or_latino", "comment": null}, "email_address": {"type": "text", "index": 32, "name": "email_address", "comment": null}, "ethnicity_codes": {"type": "text", "index": 33, "name": "ethnicity_codes", "comment": null}, "military_status": {"type": "text", "index": 34, "name": "military_status", "comment": null}, "business_title": {"type": "text", "index": 35, "name": "business_title", "comment": null}, "job_profile_id": {"type": "text", "index": 36, "name": "job_profile_id", "comment": null}, "employee_type": {"type": "text", "index": 37, "name": "employee_type", "comment": null}, "position_location": {"type": "text", "index": 38, "name": "position_location", "comment": null}, "management_level_code": {"type": "text", "index": 39, "name": "management_level_code", "comment": null}, "fte_percent": {"type": "integer", "index": 40, "name": "fte_percent", "comment": null}, "position_end_date": {"type": "date", "index": 41, "name": "position_end_date", "comment": null}, "position_effective_date": {"type": "date", "index": 42, "name": "position_effective_date", "comment": null}, "days_employed": {"type": "integer", "index": 43, "name": "days_employed", "comment": null}, "is_employed_one_year": {"type": "boolean", "index": 44, "name": "is_employed_one_year", "comment": null}, "is_employed_five_years": {"type": "boolean", "index": 45, "name": "is_employed_five_years", "comment": null}, "is_employed_ten_years": {"type": "boolean", "index": 46, "name": "is_employed_ten_years", "comment": null}, "is_employed_twenty_years": {"type": "boolean", "index": 47, "name": "is_employed_twenty_years", "comment": null}, "is_employed_thirty_years": {"type": "boolean", "index": 48, "name": "is_employed_thirty_years", "comment": null}, "is_current_employee_one_year": {"type": "boolean", "index": 49, "name": "is_current_employee_one_year", "comment": null}, "is_current_employee_five_years": {"type": "boolean", "index": 50, "name": "is_current_employee_five_years", "comment": null}, "is_current_employee_ten_years": {"type": "boolean", "index": 51, "name": "is_current_employee_ten_years", "comment": null}, "is_current_employee_twenty_years": {"type": "boolean", "index": 52, "name": "is_current_employee_twenty_years", "comment": null}, "is_current_employee_thirty_years": {"type": "boolean", "index": 53, "name": "is_current_employee_thirty_years", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_overview"}, "model.workday.workday__job_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "job_profile_code": {"type": "text", "index": 3, "name": "job_profile_code", "comment": null}, "job_title": {"type": "text", "index": 4, "name": "job_title", "comment": null}, "private_title": {"type": "integer", "index": 5, "name": "private_title", "comment": null}, "job_summary": {"type": "text", "index": 6, "name": "job_summary", "comment": null}, "job_description": {"type": "text", "index": 7, "name": "job_description", "comment": null}, "job_family_codes": {"type": "text", "index": 8, "name": "job_family_codes", "comment": null}, "job_family_summaries": {"type": "text", "index": 9, "name": "job_family_summaries", "comment": null}, "job_family_group_codes": {"type": "text", "index": 10, "name": "job_family_group_codes", "comment": null}, "job_family_group_summaries": {"type": "text", "index": 11, "name": "job_family_group_summaries", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__job_overview"}, "model.workday.workday__monthly_summary": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"metrics_month": {"type": "date", "index": 1, "name": "metrics_month", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "new_employees": {"type": "bigint", "index": 3, "name": "new_employees", "comment": null}, "churned_employees": {"type": "bigint", "index": 4, "name": "churned_employees", "comment": null}, "churned_voluntary_employees": {"type": "bigint", "index": 5, "name": "churned_voluntary_employees", "comment": null}, "churned_involuntary_employees": {"type": "bigint", "index": 6, "name": "churned_involuntary_employees", "comment": null}, "churned_workers": {"type": "bigint", "index": 7, "name": "churned_workers", "comment": null}, "active_employees": {"type": "bigint", "index": 8, "name": "active_employees", "comment": null}, "active_male_employees": {"type": "bigint", "index": 9, "name": "active_male_employees", "comment": null}, "active_female_employees": {"type": "bigint", "index": 10, "name": "active_female_employees", "comment": null}, "active_workers": {"type": "bigint", "index": 11, "name": "active_workers", "comment": null}, "active_known_gender_employees": {"type": "bigint", "index": 12, "name": "active_known_gender_employees", "comment": null}, "avg_employee_primary_compensation": {"type": "double precision", "index": 13, "name": "avg_employee_primary_compensation", "comment": null}, "avg_employee_base_pay": {"type": "double precision", "index": 14, "name": "avg_employee_base_pay", "comment": null}, "avg_employee_salary_and_allowances": {"type": "double precision", "index": 15, "name": "avg_employee_salary_and_allowances", "comment": null}, "avg_days_as_employee": {"type": "numeric", "index": 16, "name": "avg_days_as_employee", "comment": null}, "avg_worker_primary_compensation": {"type": "double precision", "index": 17, "name": "avg_worker_primary_compensation", "comment": null}, "avg_worker_base_pay": {"type": "double precision", "index": 18, "name": "avg_worker_base_pay", "comment": null}, "avg_worker_salary_and_allowances": {"type": "double precision", "index": 19, "name": "avg_worker_salary_and_allowances", "comment": null}, "avg_days_as_worker": {"type": "numeric", "index": 20, "name": "avg_days_as_worker", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__monthly_summary"}, "model.workday.workday__organization_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "organization_role_id": {"type": "text", "index": 2, "name": "organization_role_id", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "organization_code": {"type": "text", "index": 6, "name": "organization_code", "comment": null}, "organization_name": {"type": "text", "index": 7, "name": "organization_name", "comment": null}, "organization_type": {"type": "text", "index": 8, "name": "organization_type", "comment": null}, "organization_sub_type": {"type": "text", "index": 9, "name": "organization_sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 10, "name": "superior_organization_id", "comment": null}, "top_level_organization_id": {"type": "text", "index": 11, "name": "top_level_organization_id", "comment": null}, "manager_id": {"type": "text", "index": 12, "name": "manager_id", "comment": null}, "organization_role_code": {"type": "text", "index": 13, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__organization_overview"}, "model.workday.workday__position_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "position_code": {"type": "text", "index": 3, "name": "position_code", "comment": null}, "job_posting_title": {"type": "text", "index": 4, "name": "job_posting_title", "comment": null}, "effective_date": {"type": "date", "index": 5, "name": "effective_date", "comment": null}, "is_closed": {"type": "boolean", "index": 6, "name": "is_closed", "comment": null}, "is_hiring_freeze": {"type": "boolean", "index": 7, "name": "is_hiring_freeze", "comment": null}, "is_available_for_hire": {"type": "boolean", "index": 8, "name": "is_available_for_hire", "comment": null}, "availability_date": {"type": "date", "index": 9, "name": "availability_date", "comment": null}, "is_available_for_recruiting": {"type": "boolean", "index": 10, "name": "is_available_for_recruiting", "comment": null}, "earliest_hire_date": {"type": "date", "index": 11, "name": "earliest_hire_date", "comment": null}, "is_available_for_overlap": {"type": "boolean", "index": 12, "name": "is_available_for_overlap", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 13, "name": "earliest_overlap_date", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 14, "name": "worker_for_filled_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 15, "name": "worker_type_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 16, "name": "position_time_type_code", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 17, "name": "supervisory_organization_id", "comment": null}, "job_profile_id": {"type": "text", "index": 18, "name": "job_profile_id", "comment": null}, "compensation_package_code": {"type": "integer", "index": 19, "name": "compensation_package_code", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 20, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 21, "name": "compensation_grade_profile_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__position_overview"}, "model.workday.workday__worker_position_org_daily_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__worker_position_org_daily_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"wpo_day_id": {"type": "text", "index": 1, "name": "wpo_day_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "organization_id": {"type": "text", "index": 5, "name": "organization_id", "comment": null}, "source_relation": {"type": "text", "index": 6, "name": "source_relation", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_end", "comment": null}, "_fivetran_date": {"type": "date", "index": 9, "name": "_fivetran_date", "comment": null}, "history_unique_key": {"type": "text", "index": 10, "name": "history_unique_key", "comment": null}, "index": {"type": "integer", "index": 11, "name": "index", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 12, "name": "date_of_pay_group_assignment", "comment": null}, "primary_business_site": {"type": "integer", "index": 13, "name": "primary_business_site", "comment": null}, "is_used_in_change_organization_assignments": {"type": "boolean", "index": 14, "name": "is_used_in_change_organization_assignments", "comment": null}, "row_num": {"type": "bigint", "index": 15, "name": "row_num", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__worker_position_org_daily_history"}}, "sources": {"source.workday.workday.job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family"}, "source.workday.workday.job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_group"}, "source.workday.workday.job_family_job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_family_group"}, "source.workday.workday.job_family_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_profile"}, "source.workday.workday.job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_profile"}, "source.workday.workday.military_service": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.military_service"}, "source.workday.workday.organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization"}, "source.workday.workday.organization_job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_job_family"}, "source.workday.workday.organization_role": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role"}, "source.workday.workday.organization_role_worker": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role_worker"}, "source.workday.workday.person_contact_email_address": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_contact_email_address"}, "source.workday.workday.person_name": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_name"}, "source.workday.workday.personal_information_ethnicity": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_ethnicity"}, "source.workday.workday.personal_information_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_history"}, "source.workday.workday.position": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position"}, "source.workday.workday.position_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_job_profile"}, "source.workday.workday.position_organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_organization"}, "source.workday.workday.worker_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_history"}, "source.workday.workday.worker_leave_status": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_leave_status"}, "source.workday.workday.worker_position_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_history"}, "source.workday.workday.worker_position_organization_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_organization_history"}}, "errors": null} \ No newline at end of file diff --git a/docs/manifest.json b/docs/manifest.json index f274c18..12fb929 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v11.json", "dbt_version": "1.7.8", "generated_at": "2024-03-20T19:22:52.483230Z", "invocation_id": "0a684f85-6d1d-433c-bf8d-1857c8ad075a", "env": {}, "project_name": "workday_integration_tests", "project_id": "457920b1e5594993369a050db836d437", "user_id": "81581f81-d5af-4143-8fbf-c2f0001e4f56", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_job_family_group_data"], "alias": "workday_job_family_job_family_group_data", "checksum": {"name": "sha256", "checksum": "a4c9b0101811381ac698bec0ba8dd2474fa563f2d2dc6bdf1e072bd3f890313f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.385779, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_history_data.csv", "original_file_path": "seeds/workday_personal_information_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "fqn": ["workday_integration_tests", "workday_personal_information_history_data"], "alias": "workday_personal_information_history_data", "checksum": {"name": "sha256", "checksum": "2810574ec93fc886e6f1faa097951c8d7c96336fbd1a03b75a22b5a7bb85d13a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.431494, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_ethnicity_data.csv", "original_file_path": "seeds/workday_personal_information_ethnicity_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "fqn": ["workday_integration_tests", "workday_personal_information_ethnicity_data"], "alias": "workday_personal_information_ethnicity_data", "checksum": {"name": "sha256", "checksum": "986222e9224bcca39693358ca9829277b4f6a2c56111ba9aa2db56734d128e9a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.432908, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_group_data"], "alias": "workday_job_family_group_data", "checksum": {"name": "sha256", "checksum": "394c43d528af65ce740ba8ebd24d6d14e6ea99f5d57abcdd2690070f408378f9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.4341571, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_history_data.csv", "original_file_path": "seeds/workday_worker_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "fqn": ["workday_integration_tests", "workday_worker_history_data"], "alias": "workday_worker_history_data", "checksum": {"name": "sha256", "checksum": "b3b80c42d748789791fca4630504aafa22afd1dca315e0d63bc0f9f9fe33a68d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "annual_currency_summary_primary_compensation_basis": "float", "annual_currency_summary_total_base_pay": "float", "annual_currency_summary_total_salary_and_allowances": "float", "annual_summary_primary_compensation_basis": "float", "annual_summary_total_base_pay": "float", "annual_summary_total_salary_and_allowances": "float", "contract_pay_rate": "float", "days_unemployed": "float", "employee_compensation_primary_compensation_basis": "float", "employee_compensation_total_base_pay": "float", "employee_compensation_total_salary_and_allowances": "float", "hourly_frequency_primary_compensation_basis": "float", "hourly_frequency_total_base_pay": "float", "hourly_frequency_total_salary_and_allowances": "float", "months_continuous_prior_employment": "float", "pay_group_frequency_primary_compensation_basis": "float", "pay_group_frequency_total_base_pay": "float", "pay_group_frequency_total_salary_and_allowances": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "annual_currency_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "contract_pay_rate": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "days_unemployed": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "months_continuous_prior_employment": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1710962552.4355829, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_leave_status_data.csv", "original_file_path": "seeds/workday_worker_leave_status_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "fqn": ["workday_integration_tests", "workday_worker_leave_status_data"], "alias": "workday_worker_leave_status_data", "checksum": {"name": "sha256", "checksum": "bec6fe9af70bc7bebcfebbd12d41d1674fa78fc88497783bf7be995f1290b901"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "age_of_dependent": "float", "leave_entitlement_override": "float", "leave_percentage": "float", "number_of_babies_adopted_children": "float", "number_of_child_dependents": "float", "number_of_previous_births": "float", "number_of_previous_maternity_leaves": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "age_of_dependent": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_entitlement_override": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_percentage": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_babies_adopted_children": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_child_dependents": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_births": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_maternity_leaves": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1710962552.436896, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_organization_history_data.csv", "original_file_path": "seeds/workday_worker_position_organization_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_organization_history_data"], "alias": "workday_worker_position_organization_history_data", "checksum": {"name": "sha256", "checksum": "79d43cf1c2b3425d03d23b014705613022d55eb282108d972cbeb58bf55ed0d3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.438129, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_data.csv", "original_file_path": "seeds/workday_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_data", "fqn": ["workday_integration_tests", "workday_job_family_data"], "alias": "workday_job_family_data", "checksum": {"name": "sha256", "checksum": "727b3c01934259786bd85a1bed73ac70611363839a611bdea640bf9bd95cba2d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.439363, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_history_data.csv", "original_file_path": "seeds/workday_worker_position_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_history_data"], "alias": "workday_worker_position_history_data", "checksum": {"name": "sha256", "checksum": "434f6ed5606c6606bbbf41d1427584a275a825ae285f88c1b12d2c3d7da3c07d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "float", "business_site_summary_scheduled_weekly_hours": "float", "default_weekly_hours": "float", "start_date": "timestamp", "end_date": "timestamp"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "business_site_summary_scheduled_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "default_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "start_date": "timestamp", "end_date": "timestamp"}, "created_at": 1710962552.440778, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_name_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_name_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_name_data.csv", "original_file_path": "seeds/workday_person_name_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_name_data", "fqn": ["workday_integration_tests", "workday_person_name_data"], "alias": "workday_person_name_data", "checksum": {"name": "sha256", "checksum": "104b5d938091b1587548c91aa46a0e5b38ebccec81cbc569993b8a971b116881"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.441965, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_data.csv", "original_file_path": "seeds/workday_organization_role_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "fqn": ["workday_integration_tests", "workday_organization_role_data"], "alias": "workday_organization_role_data", "checksum": {"name": "sha256", "checksum": "b3e1187179e8afc95fbf180efac810d5a8f4f57e118393c60fca2c2c7f09e024"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.443108, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_military_service_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_military_service_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_military_service_data.csv", "original_file_path": "seeds/workday_military_service_data.csv", "unique_id": "seed.workday_integration_tests.workday_military_service_data", "fqn": ["workday_integration_tests", "workday_military_service_data"], "alias": "workday_military_service_data", "checksum": {"name": "sha256", "checksum": "f3d25deafee7b4188b4bdfe815b40397bdd80cd135db866b9ddf2b3a0b346b07"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.444256, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_data.csv", "original_file_path": "seeds/workday_position_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_data", "fqn": ["workday_integration_tests", "workday_position_data"], "alias": "workday_position_data", "checksum": {"name": "sha256", "checksum": "f31ec8364b56eb931ab406b25be5cfc0301bba65908bc448aeb170ed79805894"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "primary_compensation_basis": "float", "primary_compensation_basis_amount_change": "float", "primary_compensation_basis_percent_change": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_amount_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_percent_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1710962552.445407, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_data.csv", "original_file_path": "seeds/workday_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_data", "fqn": ["workday_integration_tests", "workday_organization_data"], "alias": "workday_organization_data", "checksum": {"name": "sha256", "checksum": "e0ece91ba5a270a01be9bbe91ea46b49c9e5c3c56e7234b5a597c9d81f63b4cc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.446773, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_organization_data.csv", "original_file_path": "seeds/workday_position_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "fqn": ["workday_integration_tests", "workday_position_organization_data"], "alias": "workday_position_organization_data", "checksum": {"name": "sha256", "checksum": "c0cd526bcf4b91f1842484875ce4fe803d510862d4d4ddba72c6d1724c8e9ea8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.4479601, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_profile_data.csv", "original_file_path": "seeds/workday_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_profile_data"], "alias": "workday_job_profile_data", "checksum": {"name": "sha256", "checksum": "677a184272cdd2e0d746d5616d33ad4ce394c74e759f73bf0e51f8dda5cc96e4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.449088, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_contact_email_address_data.csv", "original_file_path": "seeds/workday_person_contact_email_address_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "fqn": ["workday_integration_tests", "workday_person_contact_email_address_data"], "alias": "workday_person_contact_email_address_data", "checksum": {"name": "sha256", "checksum": "4641c91d789ed134081a55cf0aaafc5a61a7ea075904691a353389552038dbe9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.4506738, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_job_family_data.csv", "original_file_path": "seeds/workday_organization_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "fqn": ["workday_integration_tests", "workday_organization_job_family_data"], "alias": "workday_organization_job_family_data", "checksum": {"name": "sha256", "checksum": "2db2016b7eea202409836faff94ba2f168ce13dfd9e00ee1d1591eb85315cd47"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.451971, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_profile_data.csv", "original_file_path": "seeds/workday_job_family_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_family_job_profile_data"], "alias": "workday_job_family_job_profile_data", "checksum": {"name": "sha256", "checksum": "bc99975db9382af8f66fd46976db4cca2a987b1e9de24d17ceeb1ebf6e5ecb68"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.4534762, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_job_profile_data.csv", "original_file_path": "seeds/workday_position_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "fqn": ["workday_integration_tests", "workday_position_job_profile_data"], "alias": "workday_position_job_profile_data", "checksum": {"name": "sha256", "checksum": "e5d675b82b521d6856d8f516209642745a595a31d88d147f6561bcbc970433b3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.454724, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_worker_data.csv", "original_file_path": "seeds/workday_organization_role_worker_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "fqn": ["workday_integration_tests", "workday_organization_role_worker_data"], "alias": "workday_organization_role_worker_data", "checksum": {"name": "sha256", "checksum": "e24079f7ed64c407174d546132b71c69a9b1eaa9951b5a91772a3da7b3ff95f8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1710962552.456189, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "model.workday.workday__employee_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "resource_type": "model", "package_name": "workday", "path": "workday__employee_overview.sql", "original_file_path": "models/workday__employee_overview.sql", "unique_id": "model.workday.workday__employee_overview", "fqn": ["workday", "workday__employee_overview"], "alias": "workday__employee_overview", "checksum": {"name": "sha256", "checksum": "ca1fe167285bcc6ddfec4bc354f4a743f1a754a9d287d0526ee7780dfb69591a"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_user_active": {"name": "is_user_active", "description": "Is the user currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed": {"name": "is_employed", "description": "Is the worker currently employed?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "departure_date": {"name": "departure_date", "description": "The departure date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_of_employment": {"name": "days_of_employment", "description": "Number of days employed by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Has the worker been regrettably terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_codes": {"name": "ethnicity_codes", "description": "String aggregation of all ethnicity codes associated with an individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The military status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_position_type": {"name": "most_recent_position_type", "description": "The most recent position type of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_location": {"name": "most_recent_location", "description": "The most recent location of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_level": {"name": "most_recent_level", "description": "The most recent level of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_at_position": {"name": "days_at_position", "description": "The number of days the worker has held their most recent position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_position_start_date": {"name": "most_recent_position_start_date", "description": "The most recent position start date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_position_end_date": {"name": "most_recent_position_end_date", "description": "The most recent position end date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "most_recent_position_effective_date": {"name": "most_recent_position_effective_date", "description": "The most recent position effective date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_positions": {"name": "worker_positions", "description": "The number of positions the worker has held", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_levels": {"name": "worker_levels", "description": "The number of levels the worker has worked at.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_days": {"name": "position_days", "description": "The days the worker held positions at the company.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_one_year": {"name": "is_employed_one_year", "description": "Tracks whether a worker was employed at least one year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_five_years": {"name": "is_employed_five_years", "description": "Tracks whether a worker was employed at least five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_ten_years": {"name": "is_employed_ten_years", "description": "Tracks whether a worker was employed at least ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_twenty_years": {"name": "is_employed_twenty_years", "description": "Tracks whether a worker was employed at least twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_thirty_years": {"name": "is_employed_thirty_years", "description": "Tracks whether a worker was employed at least thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_one_year": {"name": "is_current_employee_one_year", "description": "Tracks whether a worker is active for more than a year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_five_years": {"name": "is_current_employee_five_years", "description": "Tracks whether a worker is active for more than five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "description": "Tracks whether a worker is active for more than ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "description": "Tracks whether a worker is active for more than twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "description": "Tracks whether a worker is active for more than thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1710962553.38735, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"", "raw_code": "with employee_surrogate_key as (\n \n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'position_start_date']) }} as employee_id,\n worker_id,\n position_id,\n position_start_date,\n {{ dbt_utils.star(ref('int_workday__worker_employee_enhanced'), except=['worker_id', 'position_id', 'position_start_date']) }}\n from {{ ref('int_workday__worker_employee_enhanced') }} \n)\n\nselect * \nfrom employee_surrogate_key", "language": "sql", "refs": [{"name": "int_workday__worker_employee_enhanced", "package": null, "version": null}, {"name": "int_workday__worker_employee_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key", "macro.dbt_utils.star"], "nodes": ["model.workday.int_workday__worker_employee_enhanced"]}, "compiled_path": "target/compiled/workday/models/workday__employee_overview.sql", "compiled": true, "compiled_code": "with employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n position_id,\n position_start_date,\n \"source_relation\",\n \"worker_code\",\n \"user_id\",\n \"universal_id\",\n \"is_user_active\",\n \"is_employed\",\n \"hire_date\",\n \"departure_date\",\n \"days_as_worker\",\n \"is_terminated\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"is_regrettable_termination\",\n \"compensation_effective_date\",\n \"employee_compensation_frequency\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_summary_currency\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_primary_compensation_basis\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"first_name\",\n \"last_name\",\n \"date_of_birth\",\n \"gender\",\n \"is_hispanic_or_latino\",\n \"email_address\",\n \"ethnicity_codes\",\n \"military_status\",\n \"business_title\",\n \"job_profile_id\",\n \"employee_type\",\n \"position_location\",\n \"management_level_code\",\n \"fte_percent\",\n \"position_end_date\",\n \"position_effective_date\",\n \"days_employed\",\n \"is_employed_one_year\",\n \"is_employed_five_years\",\n \"is_employed_ten_years\",\n \"is_employed_twenty_years\",\n \"is_employed_thirty_years\",\n \"is_current_employee_one_year\",\n \"is_current_employee_five_years\",\n \"is_current_employee_ten_years\",\n \"is_current_employee_twenty_years\",\n \"is_current_employee_thirty_years\"\n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_employee_enhanced\" \n)\n\nselect * \nfrom employee_surrogate_key", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__job_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "resource_type": "model", "package_name": "workday", "path": "workday__job_overview.sql", "original_file_path": "models/workday__job_overview.sql", "unique_id": "model.workday.workday__job_overview", "fqn": ["workday", "workday__job_overview"], "alias": "workday__job_overview", "checksum": {"name": "sha256", "checksum": "b50072f5be5632d10a64a1e777aa62ae6f2283f22244bd033fea5fc20ce66165"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "The private title associated with the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "The summary of the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_codes": {"name": "job_family_codes", "description": "String array of all job family codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summaries": {"name": "job_family_summaries", "description": "String array of all job family summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_codes": {"name": "job_family_group_codes", "description": "String array of all job family group codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summaries": {"name": "job_family_group_summaries", "description": "String array of all job family group summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1710962553.388972, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"", "raw_code": "with job_profile_data as (\n\n select * \n from {{ ref('stg_workday__job_profile') }}\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_profile') }}\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from {{ ref('stg_workday__job_family') }}\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_family_group') }}\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from {{ ref('stg_workday__job_family_group') }}\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_code', \"', '\" ) }} as job_family_codes,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_summary', \"', '\" ) }} as job_family_summaries, \n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_code', \"', '\" ) }} as job_family_group_codes,\n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_summary', \"', '\" ) }} as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom job_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}, {"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg", "macro.dbt_utils.group_by"], "nodes": ["model.workday.stg_workday__job_profile", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/workday__job_overview.sql", "compiled": true, "compiled_code": "with job_profile_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__position_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "resource_type": "model", "package_name": "workday", "path": "workday__position_overview.sql", "original_file_path": "models/workday__position_overview.sql", "unique_id": "model.workday.workday__position_overview", "fqn": ["workday", "workday__position_overview"], "alias": "workday__position_overview", "checksum": {"name": "sha256", "checksum": "567db8a61cd72c8faec1aac1963cbf05b776d0fe170a7f8c0ae8ea3d076464d3"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts.", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1710962553.391677, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"", "raw_code": "with position_data as (\n\n select *\n from {{ ref('stg_workday__position') }}\n),\n\nposition_job_profile_data as (\n\n select *\n from {{ ref('stg_workday__position_job_profile') }}\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}, {"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/workday__position_overview.sql", "compiled": true, "compiled_code": "with position_data as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\n),\n\nposition_job_profile_data as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__organization_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "resource_type": "model", "package_name": "workday", "path": "workday__organization_overview.sql", "original_file_path": "models/workday__organization_overview.sql", "unique_id": "model.workday.workday__organization_overview", "fqn": ["workday", "workday__organization_overview"], "alias": "workday__organization_overview", "checksum": {"name": "sha256", "checksum": "0df19685be8a2ffee5d5e16069cbc9771cc639372004929a73f500f9d7c59798"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1710962553.393333, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"", "raw_code": "with organization_data as (\n\n select * \n from {{ ref('stg_workday__organization') }}\n),\n\norganization_role_data as (\n\n select * \n from {{ ref('stg_workday__organization_role') }}\n),\n\nworker_position_organization as (\n\n select *\n from {{ ref('stg_workday__worker_position_organization') }}\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}, {"name": "stg_workday__organization_role", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/workday__organization_overview.sql", "compiled": true, "compiled_code": "with organization_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\n),\n\norganization_role_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\n),\n\nworker_position_organization as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position.sql", "original_file_path": "models/staging/stg_workday__position.sql", "unique_id": "model.workday.stg_workday__position", "fqn": ["workday", "staging", "stg_workday__position"], "alias": "stg_workday__position", "checksum": {"name": "sha256", "checksum": "a8eea235110df116f941d206b25f965ace56ec776662153af05d70a2bdf1cd4b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_academic_tenure_eligible": {"name": "is_academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.540752, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_base')),\n staging_columns=get_position_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_base", "package": null, "version": null}, {"name": "stg_workday__position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_group"], "alias": "stg_workday__job_family_group", "checksum": {"name": "sha256", "checksum": "91495541dd20c1e46fd9fc7074605bd8d766196513173eb2e6d6d2abd779474a"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summary": {"name": "job_family_group_summary", "description": "The summary of the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.536891, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_group_base')),\n staging_columns=get_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_profile.sql", "original_file_path": "models/staging/stg_workday__job_family_job_profile.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile", "fqn": ["workday", "staging", "stg_workday__job_family_job_profile"], "alias": "stg_workday__job_family_job_profile", "checksum": {"name": "sha256", "checksum": "22f926dc89704581204ef1db5906e7fc184c404d53dc5141b47056de357d6066"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.535511, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_profile_base')),\n staging_columns=get_job_family_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role_worker.sql", "original_file_path": "models/staging/stg_workday__organization_role_worker.sql", "unique_id": "model.workday.stg_workday__organization_role_worker", "fqn": ["workday", "staging", "stg_workday__organization_role_worker"], "alias": "stg_workday__organization_role_worker", "checksum": {"name": "sha256", "checksum": "6cbf3f20ac378d061a6c9034bd75c08e7cf7079ac12c8b167c31e6e1c0e54fa6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_worker_code": {"name": "organization_worker_code", "description": "The worker code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.537707, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_worker_base')),\n staging_columns=get_organization_role_worker_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_worker_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role_worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role.sql", "original_file_path": "models/staging/stg_workday__organization_role.sql", "unique_id": "model.workday.stg_workday__organization_role", "fqn": ["workday", "staging", "stg_workday__organization_role"], "alias": "stg_workday__organization_role", "checksum": {"name": "sha256", "checksum": "d20118b8c8234cda8e96b2df978fdce2aa46bbdb356ebac5b29680663d105e05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.5372338, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_base')),\n staging_columns=get_organization_role_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position.sql", "original_file_path": "models/staging/stg_workday__worker_position.sql", "unique_id": "model.workday.stg_workday__worker_position", "fqn": ["workday", "staging", "stg_workday__worker_position"], "alias": "stg_workday__worker_position", "checksum": {"name": "sha256", "checksum": "f812d4b0a33146284f402362816bc05ca7a5e85fa228207ea0df356396906025"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the positions held by workers in the Workday system", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.549796, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_base')),\n staging_columns=get_worker_position_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_contact_email_address.sql", "original_file_path": "models/staging/stg_workday__person_contact_email_address.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address", "fqn": ["workday", "staging", "stg_workday__person_contact_email_address"], "alias": "stg_workday__person_contact_email_address", "checksum": {"name": "sha256", "checksum": "fc93cd7747b3087ad994ab34f0feec9a8293e02f719a8ddb64bf652d786f50e5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_contact_email_address_id": {"name": "person_contact_email_address_id", "description": "The identifier of the personal contact email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.547522, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_contact_email_address_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_contact_email_address_base')),\n staging_columns=get_person_contact_email_address_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_contact_email_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_contact_email_address_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_contact_email_address.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_job_profile.sql", "original_file_path": "models/staging/stg_workday__position_job_profile.sql", "unique_id": "model.workday.stg_workday__position_job_profile", "fqn": ["workday", "staging", "stg_workday__position_job_profile"], "alias": "stg_workday__position_job_profile", "checksum": {"name": "sha256", "checksum": "1bd56f05d8c66dff4d5741a2ca3963cd4859341229686f1e9155289aa86ca3f3"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_job_profile_name": {"name": "position_job_profile_name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.5413241, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_job_profile_base')),\n staging_columns=get_position_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__position_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position_organization.sql", "original_file_path": "models/staging/stg_workday__worker_position_organization.sql", "unique_id": "model.workday.stg_workday__worker_position_organization", "fqn": ["workday", "staging", "stg_workday__worker_position_organization"], "alias": "stg_workday__worker_position_organization", "checksum": {"name": "sha256", "checksum": "c06c632d0c5bc211074ad78e1d36ea19e68ad03423068316bd207e3978472684"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.552685, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_organization_base')),\n staging_columns=get_worker_position_organization_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_profile.sql", "original_file_path": "models/staging/stg_workday__job_profile.sql", "unique_id": "model.workday.stg_workday__job_profile", "fqn": ["workday", "staging", "stg_workday__job_profile"], "alias": "stg_workday__job_profile", "checksum": {"name": "sha256", "checksum": "c58fefde4e2bab4dfcc7d23f270ba41e4b3a785de9c0f221854b44ce088753d6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_job_code_in_name": {"name": "is_include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_public_job": {"name": "is_public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.535151, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_profile_base')),\n staging_columns=get_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_organization.sql", "original_file_path": "models/staging/stg_workday__position_organization.sql", "unique_id": "model.workday.stg_workday__position_organization", "fqn": ["workday", "staging", "stg_workday__position_organization"], "alias": "stg_workday__position_organization", "checksum": {"name": "sha256", "checksum": "3e066e026cb6c5a57a3780d60185e331275a40666ec842bd51a9f5214c8106f0"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.539766, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_organization_base')),\n staging_columns=get_position_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_organization_base", "package": null, "version": null}, {"name": "stg_workday__position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_leave_status.sql", "original_file_path": "models/staging/stg_workday__worker_leave_status.sql", "unique_id": "model.workday.stg_workday__worker_leave_status", "fqn": ["workday", "staging", "stg_workday__worker_leave_status"], "alias": "stg_workday__worker_leave_status", "checksum": {"name": "sha256", "checksum": "7a780769764a426e346115891309d38326b383297d43976f5b368feefe555e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the leave status of workers in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_benefits_effect": {"name": "is_benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_caesarean_section_birth": {"name": "is_caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_continuous_service_accrual_effect": {"name": "is_continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_multiple_child_indicator": {"name": "is_multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_on_leave": {"name": "is_on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_paid_time_off_accrual_effect": {"name": "is_paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_payroll_effect": {"name": "is_payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_single_parent_indicator": {"name": "is_single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_stock_vesting_effect": {"name": "is_stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_related": {"name": "is_work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.552245, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_leave_status_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_leave_status_base')),\n staging_columns=get_worker_leave_status_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}, {"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_leave_status_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__worker_leave_status_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_leave_status.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_name.sql", "original_file_path": "models/staging/stg_workday__person_name.sql", "unique_id": "model.workday.stg_workday__person_name", "fqn": ["workday", "staging", "stg_workday__person_name"], "alias": "stg_workday__person_name", "checksum": {"name": "sha256", "checksum": "da74b8517c3659e32fa4600075b2c78fd9edf3b9d67b062a39aceeb7007a8106"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the name information for an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_name_type": {"name": "person_name_type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.546201, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_name_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_name_base')),\n staging_columns=get_person_name_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_name_base", "package": null, "version": null}, {"name": "stg_workday__person_name_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_name_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_name_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_name.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information_ethnicity.sql", "original_file_path": "models/staging/stg_workday__personal_information_ethnicity.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity", "fqn": ["workday", "staging", "stg_workday__personal_information_ethnicity"], "alias": "stg_workday__personal_information_ethnicity", "checksum": {"name": "sha256", "checksum": "1cddb347cc063152fdf7519ab20008979c18819cf57eda40f40b5c0ae4df795c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.546577, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_ethnicity_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_ethnicity_base')),\n staging_columns=get_personal_information_ethnicity_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_ethnicity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information_ethnicity.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_job_family.sql", "original_file_path": "models/staging/stg_workday__organization_job_family.sql", "unique_id": "model.workday.stg_workday__organization_job_family", "fqn": ["workday", "staging", "stg_workday__organization_job_family"], "alias": "stg_workday__organization_job_family", "checksum": {"name": "sha256", "checksum": "25a30264c730bb3d4ed427d08d7262415aa13c72bda44f292aef305dabadb4dc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.538048, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_job_family_base')),\n staging_columns=get_organization_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family_base", "package": null, "version": null}, {"name": "stg_workday__organization_job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family.sql", "original_file_path": "models/staging/stg_workday__job_family.sql", "unique_id": "model.workday.stg_workday__job_family", "fqn": ["workday", "staging", "stg_workday__job_family"], "alias": "stg_workday__job_family", "checksum": {"name": "sha256", "checksum": "2b55aade2b7c5f3aaa66b8689637aecadf3960de67f0df66ecd9d511ec3f4a2c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summary": {"name": "job_family_summary", "description": "The summary of the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.536078, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_base')),\n staging_columns=get_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_base", "package": null, "version": null}, {"name": "stg_workday__job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__military_service.sql", "original_file_path": "models/staging/stg_workday__military_service.sql", "unique_id": "model.workday.stg_workday__military_service", "fqn": ["workday", "staging", "stg_workday__military_service"], "alias": "stg_workday__military_service", "checksum": {"name": "sha256", "checksum": "2723e93ad3a6b887aa7d9b8c5d97bee2714a4b0d8ff0c80decb8be429e77b709"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about an individual's military service in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.547035, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__military_service_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__military_service_base')),\n staging_columns=get_military_service_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__military_service_base", "package": null, "version": null}, {"name": "stg_workday__military_service_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_military_service_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__military_service_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__military_service.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information.sql", "original_file_path": "models/staging/stg_workday__personal_information.sql", "unique_id": "model.workday.stg_workday__personal_information", "fqn": ["workday", "staging", "stg_workday__personal_information"], "alias": "stg_workday__personal_information", "checksum": {"name": "sha256", "checksum": "99c2547b9cba3b9798c54da22173f0f4e2d0db3f9623673fc37f0c6f081646bd"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "The personal information associated with each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.545239, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_base')),\n staging_columns=get_personal_information_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__personal_information_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_job_family_group"], "alias": "stg_workday__job_family_job_family_group", "checksum": {"name": "sha256", "checksum": "6fd4740d69f85753d0bf54a02768c8d9b8887e6e58481511bb3067f6dbe9b7eb"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.536408, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_family_group_base')),\n staging_columns=get_job_family_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker.sql", "original_file_path": "models/staging/stg_workday__worker.sql", "unique_id": "model.workday.stg_workday__worker", "fqn": ["workday", "staging", "stg_workday__worker"], "alias": "stg_workday__worker", "checksum": {"name": "sha256", "checksum": "eabb44e7218212b2cfa0ed153715acd2cd920d91f48a20884f237d3307a8d88d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.544092, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_base')),\n staging_columns=get_worker_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization.sql", "original_file_path": "models/staging/stg_workday__organization.sql", "unique_id": "model.workday.stg_workday__organization", "fqn": ["workday", "staging", "stg_workday__organization"], "alias": "stg_workday__organization", "checksum": {"name": "sha256", "checksum": "ddc0897b633fd79f01412ef8b78788ca8168409bbdd6a076e7ae77eae46e5b4c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Identifier for the organization.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_description": {"name": "organization_description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_manager_in_name": {"name": "is_include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_organization_code_in_name": {"name": "is_include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_location": {"name": "organization_location", "description": "The location of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962553.539417, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"", "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_base')),\n staging_columns=get_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_base", "package": null, "version": null}, {"name": "stg_workday__organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_history": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_history", "resource_type": "model", "package_name": "workday", "path": "staging/workday_history/stg_workday__worker_position_history.sql", "original_file_path": "models/staging/workday_history/stg_workday__worker_position_history.sql", "unique_id": "model.workday.stg_workday__worker_position_history", "fqn": ["workday", "staging", "workday_history", "stg_workday__worker_position_history"], "alias": "stg_workday__worker_position_history", "checksum": {"name": "sha256", "checksum": "f04d2a20aca6980435ca6a1069116ccb7e90a73b47ca7cff00d568a4f208002d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id` and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/workday_history/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view", "enabled": true}, "created_at": 1710962553.647357, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ source('workday','worker_position_history') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %}\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(effective_date as {{ dbt.type_timestamp() }}) as effective_date,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date,\n cast(start_date as {{ dbt.type_timestamp() }}) as position_start_date,\n cast(end_date as {{ dbt.type_timestamp() }}) as position_end_date,\n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', '_fivetran_start']) }} as history_unique_key,\n {{ dbt_utils.star(from=source('workday','worker_position_history'),\n except=[\"worker_id\", \"position_id\", \"_fivetran_start\", \"_fivetran_end\", \n \"home_country\", \"effective_date\", \"end_employment_date\", \n \"start_date\", \"end_date\"]) }}\n from base\n)\n\nselect *\nfrom final", "language": "sql", "refs": [], "sources": [["workday", "worker_position_history"], ["workday", "worker_position_history"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key", "macro.dbt_utils.star"], "nodes": ["source.workday.workday.worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday__worker_position_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"\n \n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(effective_date as timestamp) as effective_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n cast(start_date as timestamp) as position_start_date,\n cast(end_date as timestamp) as position_end_date,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"academic_pay_setup_data_annual_work_period_end_date\",\n \"academic_pay_setup_data_annual_work_period_start_date\",\n \"academic_pay_setup_data_annual_work_period_work_percent_of_year\",\n \"academic_pay_setup_data_disbursement_plan_period_end_date\",\n \"academic_pay_setup_data_disbursement_plan_period_start_date\",\n \"business_site_summary_display_language\",\n \"business_site_summary_local\",\n \"business_site_summary_location\",\n \"business_site_summary_location_type\",\n \"business_site_summary_name\",\n \"business_site_summary_scheduled_weekly_hours\",\n \"business_site_summary_time_profile\",\n \"business_title\",\n \"critical_job\",\n \"default_weekly_hours\",\n \"difficulty_to_fill\",\n \"employee_type\",\n \"exclude_from_head_count\",\n \"expected_assignment_end_date\",\n \"external_employee\",\n \"federal_withholding_fein\",\n \"frequency\",\n \"full_time_equivalent_percentage\",\n \"headcount_restriction_code\",\n \"host_country\",\n \"international_assignment_type\",\n \"is_primary_job\",\n \"job_exempt\",\n \"job_profile_id\",\n \"management_level_code\",\n \"paid_fte\",\n \"pay_group\",\n \"pay_rate\",\n \"pay_rate_type\",\n \"pay_through_date\",\n \"payroll_entity\",\n \"payroll_file_number\",\n \"regular_paid_equivalent_hours\",\n \"scheduled_weekly_hours\",\n \"specify_paid_fte\",\n \"specify_working_fte\",\n \"start_international_assignment_reason\",\n \"work_hours_profile\",\n \"work_shift\",\n \"work_shift_required\",\n \"work_space\",\n \"worker_hours_profile_classification\",\n \"working_fte\",\n \"working_time_frequency\",\n \"working_time_unit\",\n \"working_time_value\"\n from base\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_history": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_history", "resource_type": "model", "package_name": "workday", "path": "staging/workday_history/stg_workday__worker_history.sql", "original_file_path": "models/staging/workday_history/stg_workday__worker_history.sql", "unique_id": "model.workday.stg_workday__worker_history", "fqn": ["workday", "staging", "workday_history", "stg_workday__worker_history"], "alias": "stg_workday__worker_history", "checksum": {"name": "sha256", "checksum": "085c9abbdde2ed7e5def47a656842cf5a7750a0f97a75e6dce6cd8c9220efdb5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/workday_history/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view", "enabled": true}, "created_at": 1710962553.64576, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ source('workday','worker_history') }} \n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfinal as (\n\n select \n id as worker_id, \n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date,\n cast(termination_date as {{ dbt.type_timestamp() }}) as termination_date,\n {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key,\n {{ dbt_utils.star(from=source('workday','worker_history'),\n except=[\"id\", \"_fivetran_start\", \"_fivetran_end\", \"home_country\", \"end_employment_date\", \"termination_date\"]) }}\n from base\n)\n\nselect *\nfrom final", "language": "sql", "refs": [], "sources": [["workday", "worker_history"], ["workday", "worker_history"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key", "macro.dbt_utils.star"], "nodes": ["source.workday.workday.worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday__worker_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\" \n \n),\n\nfinal as (\n\n select \n id as worker_id, \n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n cast(termination_date as timestamp) as termination_date,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"academic_tenure_date\",\n \"active\",\n \"active_status_date\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_frequency\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_total_salary_and_allowances\",\n \"annual_summary_currency\",\n \"annual_summary_frequency\",\n \"annual_summary_primary_compensation_basis\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_total_salary_and_allowances\",\n \"benefits_service_date\",\n \"company_service_date\",\n \"compensation_effective_date\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"continuous_service_date\",\n \"contract_assignment_details\",\n \"contract_currency_code\",\n \"contract_end_date\",\n \"contract_frequency_name\",\n \"contract_pay_rate\",\n \"contract_vendor_name\",\n \"date_entered_workforce\",\n \"days_unemployed\",\n \"eligible_for_hire\",\n \"eligible_for_rehire_on_latest_termination\",\n \"employee_compensation_currency\",\n \"employee_compensation_frequency\",\n \"employee_compensation_primary_compensation_basis\",\n \"employee_compensation_total_base_pay\",\n \"employee_compensation_total_salary_and_allowances\",\n \"expected_date_of_return\",\n \"expected_retirement_date\",\n \"first_day_of_work\",\n \"has_international_assignment\",\n \"hire_date\",\n \"hire_reason\",\n \"hire_rescinded\",\n \"hourly_frequency_currency\",\n \"hourly_frequency_frequency\",\n \"hourly_frequency_primary_compensation_basis\",\n \"hourly_frequency_total_base_pay\",\n \"hourly_frequency_total_salary_and_allowances\",\n \"last_datefor_which_paid\",\n \"local_termination_reason\",\n \"months_continuous_prior_employment\",\n \"not_returning\",\n \"original_hire_date\",\n \"pay_group_frequency_currency\",\n \"pay_group_frequency_frequency\",\n \"pay_group_frequency_primary_compensation_basis\",\n \"pay_group_frequency_total_base_pay\",\n \"pay_group_frequency_total_salary_and_allowances\",\n \"pay_through_date\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"probation_end_date\",\n \"probation_start_date\",\n \"reason_reference_id\",\n \"regrettable_termination\",\n \"rehire\",\n \"resignation_date\",\n \"retired\",\n \"retirement_date\",\n \"retirement_eligibility_date\",\n \"return_unknown\",\n \"seniority_date\",\n \"severance_date\",\n \"terminated\",\n \"termination_involuntary\",\n \"termination_last_day_of_work\",\n \"time_off_service_date\",\n \"universal_id\",\n \"user_id\",\n \"vesting_date\",\n \"worker_code\"\n from base\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_history": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_history", "resource_type": "model", "package_name": "workday", "path": "staging/workday_history/stg_workday__personal_information_history.sql", "original_file_path": "models/staging/workday_history/stg_workday__personal_information_history.sql", "unique_id": "model.workday.stg_workday__personal_information_history", "fqn": ["workday", "staging", "workday_history", "stg_workday__personal_information_history"], "alias": "stg_workday__personal_information_history", "checksum": {"name": "sha256", "checksum": "bacf5998e041007a9d8ebeb9504492ae57a7e5c9dd4f0ce9298089ff73ce7fd5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/workday_history/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view", "enabled": true}, "created_at": 1710962553.643112, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ source('workday','personal_information_history') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfinal as (\n\n select \n id as worker_id,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key,\n {{ dbt_utils.star(from=source('workday','personal_information_history'),\n except=[\"id\", \"_fivetran_start\", \"_fivetran_end\"]) }}\n from base\n)\n\nselect *\nfrom final", "language": "sql", "refs": [], "sources": [["workday", "personal_information_history"], ["workday", "personal_information_history"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key", "macro.dbt_utils.star"], "nodes": ["source.workday.workday.personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday__personal_information_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"\n \n),\n\nfinal as (\n\n select \n id as worker_id,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"type\",\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"additional_nationality\",\n \"blood_type\",\n \"citizenship_status\",\n \"city_of_birth\",\n \"city_of_birth_code\",\n \"country_of_birth\",\n \"date_of_birth\",\n \"date_of_death\",\n \"gender\",\n \"hispanic_or_latino\",\n \"hukou_locality\",\n \"hukou_postal_code\",\n \"hukou_region\",\n \"hukou_subregion\",\n \"hukou_type\",\n \"last_medical_exam_date\",\n \"last_medical_exam_valid_to\",\n \"local_hukou\",\n \"marital_status\",\n \"marital_status_date\",\n \"medical_exam_notes\",\n \"native_region\",\n \"native_region_code\",\n \"personnel_file_agency\",\n \"political_affiliation\",\n \"primary_nationality\",\n \"region_of_birth\",\n \"region_of_birth_code\",\n \"religion\",\n \"social_benefit\",\n \"tobacco_use\",\n \"ll\"\n from base\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_history", "resource_type": "model", "package_name": "workday", "path": "staging/workday_history/stg_workday__worker_position_organization_history.sql", "original_file_path": "models/staging/workday_history/stg_workday__worker_position_organization_history.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_history", "fqn": ["workday", "staging", "workday_history", "stg_workday__worker_position_organization_history"], "alias": "stg_workday__worker_position_organization_history", "checksum": {"name": "sha256", "checksum": "ed6ca08d361c0457dfc950c973a8cbdb1337bb83ec53c2519530ad6a641270c1"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/workday_history/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view", "enabled": true}, "created_at": 1710962553.6479208, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', True)) }}\n\nwith base as (\n\n select * \n from {{ source('workday','worker_position_organization_history') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id, \n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'organization_id', '_fivetran_start']) }} as history_unique_key,\n {{ dbt_utils.star(from=source('workday','worker_position_organization_history'),\n except=[\"worker_id\", \"position_id\", \"organization_id\", \"_fivetran_start\", \"_fivetran_end\"]) }}\n from base\n)\n\nselect *\nfrom final", "language": "sql", "refs": [], "sources": [["workday", "worker_position_organization_history"], ["workday", "worker_position_organization_history"]], "metrics": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key", "macro.dbt_utils.star"], "nodes": ["source.workday.workday.worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday__worker_position_organization_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"\n \n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id, \n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"index\",\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"date_of_pay_group_assignment\",\n \"primary_business_site\",\n \"used_in_change_organization_assignments\"\n from base\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_family_group_base"], "alias": "stg_workday__job_family_job_family_group_base", "checksum": {"name": "sha256", "checksum": "e2032528b0352adb9b447a62934a158666a681a00bfd8821c454342850710217"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.8625631, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_family_group"], ["workday", "job_family_job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_ethnicity_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_ethnicity_base"], "alias": "stg_workday__personal_information_ethnicity_base", "checksum": {"name": "sha256", "checksum": "83d4f52d542558f35ac9c4bca924abf5d50bd6d060b57de257d9b3a8011375bc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.88027, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_ethnicity', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_ethnicity',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_ethnicity"], ["workday", "personal_information_ethnicity"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_group_base"], "alias": "stg_workday__job_family_group_base", "checksum": {"name": "sha256", "checksum": "bea26ff96c14d3e08fd64f97fbc8fbefc3cc6cc6726f7eb27132f966e3ace85d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.8838122, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_group"], ["workday", "job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_organization_base.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_organization_base"], "alias": "stg_workday__worker_position_organization_base", "checksum": {"name": "sha256", "checksum": "42729b33f262620d892e95707fef1e711b95c66a4df3fb612d1eb73d024a7e38"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.887763, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_organization_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_organization_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_organization_history"], ["workday", "worker_position_organization_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_base.sql", "original_file_path": "models/staging/base/stg_workday__position_base.sql", "unique_id": "model.workday.stg_workday__position_base", "fqn": ["workday", "staging", "base", "stg_workday__position_base"], "alias": "stg_workday__position_base", "checksum": {"name": "sha256", "checksum": "4ccfff02ed1a6e0e94868985aa08ad5eaac5c78e608ae24eb36ebeb3da3b1443"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.8912902, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position"], ["workday", "position"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_contact_email_address_base.sql", "original_file_path": "models/staging/base/stg_workday__person_contact_email_address_base.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "fqn": ["workday", "staging", "base", "stg_workday__person_contact_email_address_base"], "alias": "stg_workday__person_contact_email_address_base", "checksum": {"name": "sha256", "checksum": "2bfb4c913c999795db2691f4b3bc115fbae9bbad6e4eb59ad305bc057e7e0e5b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.894624, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_contact_email_address', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_contact_email_address',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_contact_email_address"], ["workday", "person_contact_email_address"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_contact_email_address_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_job_family_base.sql", "unique_id": "model.workday.stg_workday__organization_job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_job_family_base"], "alias": "stg_workday__organization_job_family_base", "checksum": {"name": "sha256", "checksum": "8a999ebe4367e8c4e6994124834c09f9d1eeb411d6e00353c9995bc0900ee1ea"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.8997178, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_job_family"], ["workday", "organization_job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_profile_base"], "alias": "stg_workday__job_family_job_profile_base", "checksum": {"name": "sha256", "checksum": "61149fbd447008acfc11c0cce919a3dcdfc878b1e43f1a904bed99cd0e12e934"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.9045918, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_profile"], ["workday", "job_family_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__position_organization_base.sql", "unique_id": "model.workday.stg_workday__position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__position_organization_base"], "alias": "stg_workday__position_organization_base", "checksum": {"name": "sha256", "checksum": "e9e1144f5ba976bda0612b7899e5c418c8f2880a69bb98c7bd61826b438cf705"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.908597, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_organization"], ["workday", "position_organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_base.sql", "unique_id": "model.workday.stg_workday__organization_role_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_base"], "alias": "stg_workday__organization_role_base", "checksum": {"name": "sha256", "checksum": "7da1ae4c5e420c6a429f6082802496377da44449aefb62728c64e31c64923832"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.913055, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role"], ["workday", "organization_role"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_leave_status_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_leave_status_base.sql", "unique_id": "model.workday.stg_workday__worker_leave_status_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_leave_status_base"], "alias": "stg_workday__worker_leave_status_base", "checksum": {"name": "sha256", "checksum": "25de6c8505c09d17787931dd2ad7fb497ee4fcc6ad9c076417ac327d38b2cee5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.917234, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_leave_status', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_leave_status',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_leave_status"], ["workday", "worker_leave_status"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_leave_status_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_base.sql", "unique_id": "model.workday.stg_workday__job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_base"], "alias": "stg_workday__job_family_base", "checksum": {"name": "sha256", "checksum": "a6d51501e8a9f185408e2c8c963b04ed89e1f87260216f3e994f324119a0f804"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.921671, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family"], ["workday", "job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_profile_base"], "alias": "stg_workday__job_profile_base", "checksum": {"name": "sha256", "checksum": "ddeb40a89a0b03a8748dae6a224bade7705498441a9f295682bd24ef643fc563"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.92542, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_profile"], ["workday", "job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_base.sql", "unique_id": "model.workday.stg_workday__organization_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_base"], "alias": "stg_workday__organization_base", "checksum": {"name": "sha256", "checksum": "ee0cb72047f2c7760251317c86318a9f46c5a8be9113fcb7d81b269e1b4b4e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.929384, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization"], ["workday", "organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_worker_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_worker_base.sql", "unique_id": "model.workday.stg_workday__organization_role_worker_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_worker_base"], "alias": "stg_workday__organization_role_worker_base", "checksum": {"name": "sha256", "checksum": "74e858892ef8851aec9a06e4e05dbca91361b09939c257c69db38356d59acf05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.9332328, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role_worker', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role_worker',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role_worker"], ["workday", "organization_role_worker"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_base.sql", "unique_id": "model.workday.stg_workday__worker_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_base"], "alias": "stg_workday__worker_base", "checksum": {"name": "sha256", "checksum": "5f0f82a654f8f22d1e129cebdf87aa064125f5deeeca51c50d53f249dd0d96e1"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.936967, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_history"], ["workday", "worker_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__position_job_profile_base.sql", "unique_id": "model.workday.stg_workday__position_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__position_job_profile_base"], "alias": "stg_workday__position_job_profile_base", "checksum": {"name": "sha256", "checksum": "7a2843eac9ceff71866501a413274121b15a2e8d1337b83962e0045cb1b403c5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.9412138, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_job_profile"], ["workday", "position_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_base.sql", "unique_id": "model.workday.stg_workday__worker_position_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_base"], "alias": "stg_workday__worker_position_base", "checksum": {"name": "sha256", "checksum": "8a8431d94738ad8c342bba23f86ace1e658cf63ac9254481bf8463622129514e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.944712, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_history"], ["workday", "worker_position_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_name_base.sql", "original_file_path": "models/staging/base/stg_workday__person_name_base.sql", "unique_id": "model.workday.stg_workday__person_name_base", "fqn": ["workday", "staging", "base", "stg_workday__person_name_base"], "alias": "stg_workday__person_name_base", "checksum": {"name": "sha256", "checksum": "85c57cfa1fe54db08605b75e32060e1bd488a4f71eae27b2cb8a2805ac4ac655"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.948353, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_name', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_name',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_name"], ["workday", "person_name"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_name"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_name_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__military_service_base.sql", "original_file_path": "models/staging/base/stg_workday__military_service_base.sql", "unique_id": "model.workday.stg_workday__military_service_base", "fqn": ["workday", "staging", "base", "stg_workday__military_service_base"], "alias": "stg_workday__military_service_base", "checksum": {"name": "sha256", "checksum": "9478cb8eea5671a0261ed280e3723a9ad826ee22b77b9dfe709be5fc85fd295e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.952201, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='military_service', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='military_service',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "military_service"], ["workday", "military_service"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.military_service"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__military_service_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_base.sql", "unique_id": "model.workday.stg_workday__personal_information_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_base"], "alias": "stg_workday__personal_information_base", "checksum": {"name": "sha256", "checksum": "0767af75bcb79f32dd324d8bf4e57ffc0d0014bda0609b426df78cdc17566e96"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1710962552.9560099, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_history"], ["workday", "personal_information_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__monthly_summary": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__monthly_summary.sql", "original_file_path": "models/workday_history/workday__monthly_summary.sql", "unique_id": "model.workday.workday__monthly_summary", "fqn": ["workday", "workday_history", "workday__monthly_summary"], "alias": "workday__monthly_summary", "checksum": {"name": "sha256", "checksum": "cfd986219d6a4d49e3e503863be74fe3aa1a32b379f4b871b47e2677a3889f35"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a month, with aggregated metrics regarding employees for a customer.", "columns": {"metrics_month": {"name": "metrics_month", "description": "Month with aggregated metrics", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_employees": {"name": "new_employees", "description": "New employees added in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_employees": {"name": "churned_employees", "description": "Employees that churned in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_voluntary_employees": {"name": "churned_voluntary_employees", "description": "Employees that churned voluntarily in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_involuntary_employees": {"name": "churned_involuntary_employees", "description": "Employees that churned involuntarily in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_workers": {"name": "churned_workers", "description": "Workers that churned in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_employees": {"name": "active_employees", "description": "Employees considered active in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_male_employees": {"name": "active_male_employees", "description": "Employees with a known gender of male that were active in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_female_employees": {"name": "active_female_employees", "description": "Employees with a known gender of female that were active in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_workers": {"name": "active_workers", "description": "Workers considered active in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_known_gender_employees": {"name": "active_known_gender_employees", "description": "Employees with a known gender that were active in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_primary_compensation": {"name": "avg_employee_primary_compensation", "description": "Average primary compensation for employees in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_base_pay": {"name": "avg_employee_base_pay", "description": "Average base pay for employees in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_salary_and_allowances": {"name": "avg_employee_salary_and_allowances", "description": "Average salary and allowances for employees in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_days_as_employee": {"name": "avg_days_as_employee", "description": "Average number of days an employee has been employed in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_primary_compensation": {"name": "avg_worker_primary_compensation", "description": "Average primary compensation for workers in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_base_pay": {"name": "avg_worker_base_pay", "description": "Average base pay for workers in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_salary_and_allowances": {"name": "avg_worker_salary_and_allowances", "description": "Average salary and allowances for workers in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_days_as_worker": {"name": "avg_days_as_worker", "description": "Average number of days a worker has been employed in the specified month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1710962553.679717, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith row_month_partition as (\n\n select *, \n {{ dbt.date_trunc(\"month\", \"date_day\") }} as date_month,\n row_number() over (partition by employee_id, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from {{ ref('workday__employee_daily_history') }}\n order by employee_id, date_day\n),\n\nend_of_month_history as (\n \n select *,\n {{ dbt.current_timestamp() }} as current_date\n from row_month_partition\n where recent_dom_row = 1\n order by employee_id, date_day\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then {{ dbt.datediff(\"hire_date\", \"current_date\", \"day\") }}\n else {{ dbt.datediff(\"hire_date\", \"termination_date\", \"day\") }}\n end as days_as_worker,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select date_month,\n sum(case when date_month = {{ dbt.date_trunc(\"month\", \"effective_date\") }} then 1 else 0 end) as new_employees,\n sum(case when date_month = {{ dbt.date_trunc(\"month\", \"termination_date\") }} then 1 else 0 end) as churned_employees,\n sum(case when (date_month = {{ dbt.date_trunc(\"month\", \"termination_date\") }} and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = {{ dbt.date_trunc(\"month\", \"termination_date\") }} and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = {{ dbt.date_trunc(\"month\", \"wh_end_employment_date\") }} then 1 else 0 end) as churned_workers\n from months_employed\n group by 1\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where date_month >= {{ dbt.date_trunc(\"month\", \"effective_date\") }}\n and (date_month <= {{ dbt.date_trunc(\"month\", \"wph_end_employment_date\") }}\n or wph_end_employment_date is null)\n group by 1\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (date_month >= {{ dbt.date_trunc(\"month\", \"effective_date\") }}\n and date_month <= {{ dbt.date_trunc(\"month\", \"wh_end_employment_date\") }})\n or wh_end_employment_date is null\n group by 1\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n order by monthly_employee_metrics.date_month\n)\n\nselect *\nfrom monthly_summary\norder by metrics_month", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__monthly_summary.sql", "compiled": true, "compiled_code": "\n\nwith row_month_partition as (\n\n select *, \n date_trunc('month', date_day) as date_month,\n row_number() over (partition by employee_id, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n order by employee_id, date_day\n),\n\nend_of_month_history as (\n \n select *,\n now() as current_date\n from row_month_partition\n where recent_dom_row = 1\n order by employee_id, date_day\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select date_month,\n sum(case when date_month = date_trunc('month', effective_date) then 1 else 0 end) as new_employees,\n sum(case when date_month = date_trunc('month', termination_date) then 1 else 0 end) as churned_employees,\n sum(case when (date_month = date_trunc('month', termination_date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = date_trunc('month', termination_date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = date_trunc('month', wh_end_employment_date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where date_month >= date_trunc('month', effective_date)\n and (date_month <= date_trunc('month', wph_end_employment_date)\n or wph_end_employment_date is null)\n group by 1\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (date_month >= date_trunc('month', effective_date)\n and date_month <= date_trunc('month', wh_end_employment_date))\n or wh_end_employment_date is null\n group by 1\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n order by monthly_employee_metrics.date_month\n)\n\nselect *\nfrom monthly_summary\norder by metrics_month", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__employee_daily_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__employee_daily_history.sql", "original_file_path": "models/workday_history/workday__employee_daily_history.sql", "unique_id": "model.workday.workday__employee_daily_history", "fqn": ["workday", "workday_history", "workday__employee_daily_history"], "alias": "workday__employee_daily_history", "checksum": {"name": "sha256", "checksum": "354ef97598d96590ab9888a59dd841963055ada699bd2d4cbb16ed4dae795a87"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1710962553.007275, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\n{% if execute %}\n {% set date_query %}\n select \n {{ dbt.date_trunc('day', dbt.current_timestamp_backcompat()) }} as max_date\n {% endset %}\n\n {% set last_date = run_query(date_query).columns[0][0]|string %}\n\n {# If only compiling, creates range going back 1 year #}\n {% else %} \n {% set last_date = dbt.dateadd(\"year\", \"-1\", \"current_date\") %}\n{% endif %}\n\n\nwith spine as (\n {# Prioritizes variables over calculated dates #}\n {% set first_date = var('employee_history_start_date', '2020-01-01')|string %}\n {% set last_date = last_date|string %}\n\n {{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date = \"cast('\" ~ first_date[0:10] ~ \"'as date)\",\n end_date = \"cast('\" ~ last_date[0:10] ~ \"'as date)\"\n )\n }}\n),\n\nemployee_history as (\n\n select * \n from {{ ref('int_workday__employee_history') }}\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['spine.date_day','get_latest_daily_value.history_unique_key']) }} as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }})\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }})\n)\n\nselect * \nfrom daily_history", "language": "sql", "refs": [{"name": "int_workday__employee_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp", "macro.dbt.current_timestamp_backcompat", "macro.dbt.date_trunc", "macro.dbt.run_query"], "nodes": ["model.workday.int_workday__employee_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__employee_daily_history.sql", "compiled": true, "compiled_code": "\n\n\n \n\n \n\n \n \n\n\nwith spine as (\n \n \n \n\n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 1540\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2020-01-01'as date) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-03-20'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_position_enriched": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_position_enriched", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_position_enriched.sql", "original_file_path": "models/intermediate/int_workday__worker_position_enriched.sql", "unique_id": "model.workday.int_workday__worker_position_enriched", "fqn": ["workday", "intermediate", "int_workday__worker_position_enriched"], "alias": "int_workday__worker_position_enriched", "checksum": {"name": "sha256", "checksum": "9e5d044939b3db8a57afecd0f2855a6196226209311d0344a62ca14451d0e52b"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1710962553.025463, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_position_enriched\"", "raw_code": "with worker_position_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker_position') }}\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n {{ dbt_utils.generate_surrogate_key(['worker_position_data_enhanced.worker_id', \n 'position_id', 'position_start_date']) }} as employee_id,\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_position_enriched.sql", "compiled": true, "compiled_code": "with worker_position_data as (\n\n select \n *,\n now() as current_date\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n md5(cast(coalesce(cast(worker_position_data_enhanced.worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__personal_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__personal_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__personal_details.sql", "original_file_path": "models/intermediate/int_workday__personal_details.sql", "unique_id": "model.workday.int_workday__personal_details", "fqn": ["workday", "intermediate", "int_workday__personal_details"], "alias": "int_workday__personal_details", "checksum": {"name": "sha256", "checksum": "594516db9541d923dcc1958d6ed5747fb91aee48aaa01e0acf8fcbd2fb1a8950"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1710962553.0305989, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__personal_details\"", "raw_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from {{ ref('stg_workday__personal_information') }}\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from {{ ref('stg_workday__person_name') }}\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from {{ ref('stg_workday__person_contact_email_address') }}\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n {{ fivetran_utils.string_agg('distinct ethnicity_code', \"', '\" ) }} as ethnicity_codes\n from {{ ref('stg_workday__personal_information_ethnicity') }}\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from {{ ref('stg_workday__military_service') }}\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}, {"name": "stg_workday__person_name", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}, {"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.workday.stg_workday__personal_information", "model.workday.stg_workday__person_name", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__personal_information_ethnicity", "model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__personal_details.sql", "compiled": true, "compiled_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_details.sql", "original_file_path": "models/intermediate/int_workday__worker_details.sql", "unique_id": "model.workday.int_workday__worker_details", "fqn": ["workday", "intermediate", "int_workday__worker_details"], "alias": "int_workday__worker_details", "checksum": {"name": "sha256", "checksum": "6004df52c6e8acb2f9eb07f0e02e5fb9f694a9f8c3cb3d129916e686039ffd7a"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1710962553.0342138, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_details\"", "raw_code": "with worker_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker') }}\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then {{ dbt.datediff('hire_date', 'current_date', 'day') }}\n else {{ dbt.datediff('hire_date', 'termination_date', 'day') }}\n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_details.sql", "compiled": true, "compiled_code": "with worker_data as (\n\n select \n *,\n now() as current_date\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_employee_enhanced": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_employee_enhanced", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_employee_enhanced.sql", "original_file_path": "models/intermediate/int_workday__worker_employee_enhanced.sql", "unique_id": "model.workday.int_workday__worker_employee_enhanced", "fqn": ["workday", "intermediate", "int_workday__worker_employee_enhanced"], "alias": "int_workday__worker_employee_enhanced", "checksum": {"name": "sha256", "checksum": "b304988457480f06f3bbc052fb27d7d6af37592d243606c4acf783558786aa1d"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1710962553.037919, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_employee_enhanced\"", "raw_code": "with int_worker_base as (\n\n select * \n from {{ ref('int_workday__worker_details') }} \n),\n\nint_worker_personal_details as (\n\n select * \n from {{ ref('int_workday__personal_details') }} \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from {{ ref('int_workday__worker_position_enriched') }} \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "language": "sql", "refs": [{"name": "int_workday__worker_details", "package": null, "version": null}, {"name": "int_workday__personal_details", "package": null, "version": null}, {"name": "int_workday__worker_position_enriched", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.int_workday__worker_details", "model.workday.int_workday__personal_details", "model.workday.int_workday__worker_position_enriched"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_employee_enhanced.sql", "compiled": true, "compiled_code": "with int_worker_base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_details\" \n),\n\nint_worker_personal_details as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__personal_details\" \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_position_enriched\" \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__employee_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "resource_type": "model", "package_name": "workday", "path": "intermediate/workday_history/int_workday__employee_history.sql", "original_file_path": "models/intermediate/workday_history/int_workday__employee_history.sql", "unique_id": "model.workday.int_workday__employee_history", "fqn": ["workday", "intermediate", "workday_history", "int_workday__employee_history"], "alias": "int_workday__employee_history", "checksum": {"name": "sha256", "checksum": "4b95c64d82542cb4c22d6c5a4548bc2880acc7a7c7ec98689734a5d23089ac3f"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1710962553.0393322, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith worker_history as (\n\n select *\n from {{ ref('stg_workday__worker_history') }}\n),\n\nworker_position_history as (\n\n select *\n from {{ ref('stg_workday__worker_position_history') }}\n),\n\npersonal_information_history as (\n\n select *\n from {{ ref('stg_workday__personal_information_history') }}\n),\n\nworker_start_records as (\n\n select worker_id, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n _fivetran_start\n from personal_information_history\n order by worker_id, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead({{ dbt.dateadd('microsecond', -1, '_fivetran_start') }} ) over(partition by worker_id order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as {{ dbt.type_timestamp() }}),\n cast('9999-12-31 23:59:59.999000' as {{ dbt.type_timestamp() }})) as _fivetran_end\n from worker_history_end_values\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_history_scd as (\n\n select worker_history_scd.worker_id, \n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as wh_active,\n worker_position_history._fivetran_active as wph_active,\n personal_information_history._fivetran_active as pih_active,\n worker_history.end_employment_date as wh_end_employment_date,\n worker_position_history.end_employment_date as wph_end_employment_date,\n worker_history.pay_through_date as wh_pay_through_date,\n worker_position_history.pay_through_date as wph_pay_through_date,\n {{ dbt_utils.star(from=ref('stg_workday__worker_history'), except=[\"worker_id\", \"_fivetran_start\", \"_fivetran_end\", \"_fivetran_synced\", \"_fivetran_active\", \"_fivetran_date\", \"history_unique_key\", \"end_employment_date\", \"pay_through_date\"]) }},\n {{ dbt_utils.star(from=ref('stg_workday__worker_position_history'), except=[\"worker_id\", \"position_id\", \"_fivetran_start\", \"_fivetran_end\", \"_fivetran_synced\", \"_fivetran_active\", \"_fivetran_date\", \"history_unique_key\", \"end_employment_date\", \"pay_through_date\"])}},\n {{ dbt_utils.star(from=ref('stg_workday__personal_information_history'), except=[\"worker_id\", \"_fivetran_start\", \"_fivetran_end\", \"_fivetran_synced\", \"_fivetran_active\", \"_fivetran_date\", \"history_unique_key\"])}}\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_key as (\n\n select {{ dbt_utils.generate_surrogate_key(['worker_id','position_id','position_start_date']) }} as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select {{ dbt_utils.generate_surrogate_key(['employee_id', '_fivetran_date']) }} as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}, {"name": "stg_workday__worker_position_history", "package": null, "version": null}, {"name": "stg_workday__personal_information_history", "package": null, "version": null}, {"name": "stg_workday__worker_history", "package": null, "version": null}, {"name": "stg_workday__worker_position_history", "package": null, "version": null}, {"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.type_timestamp", "macro.dbt_utils.star", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history", "model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/intermediate/workday_history/int_workday__employee_history.sql", "compiled": true, "compiled_code": "\n\nwith worker_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\n),\n\nworker_position_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\n),\n\npersonal_information_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\n),\n\nworker_start_records as (\n\n select worker_id, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n _fivetran_start\n from personal_information_history\n order by worker_id, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_history_scd as (\n\n select worker_history_scd.worker_id, \n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as wh_active,\n worker_position_history._fivetran_active as wph_active,\n personal_information_history._fivetran_active as pih_active,\n worker_history.end_employment_date as wh_end_employment_date,\n worker_position_history.end_employment_date as wph_end_employment_date,\n worker_history.pay_through_date as wh_pay_through_date,\n worker_position_history.pay_through_date as wph_pay_through_date,\n \"termination_date\",\n \"academic_tenure_date\",\n \"active\",\n \"active_status_date\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_frequency\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_total_salary_and_allowances\",\n \"annual_summary_currency\",\n \"annual_summary_frequency\",\n \"annual_summary_primary_compensation_basis\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_total_salary_and_allowances\",\n \"benefits_service_date\",\n \"company_service_date\",\n \"compensation_effective_date\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"continuous_service_date\",\n \"contract_assignment_details\",\n \"contract_currency_code\",\n \"contract_end_date\",\n \"contract_frequency_name\",\n \"contract_pay_rate\",\n \"contract_vendor_name\",\n \"date_entered_workforce\",\n \"days_unemployed\",\n \"eligible_for_hire\",\n \"eligible_for_rehire_on_latest_termination\",\n \"employee_compensation_currency\",\n \"employee_compensation_frequency\",\n \"employee_compensation_primary_compensation_basis\",\n \"employee_compensation_total_base_pay\",\n \"employee_compensation_total_salary_and_allowances\",\n \"expected_date_of_return\",\n \"expected_retirement_date\",\n \"first_day_of_work\",\n \"has_international_assignment\",\n \"hire_date\",\n \"hire_reason\",\n \"hire_rescinded\",\n \"hourly_frequency_currency\",\n \"hourly_frequency_frequency\",\n \"hourly_frequency_primary_compensation_basis\",\n \"hourly_frequency_total_base_pay\",\n \"hourly_frequency_total_salary_and_allowances\",\n \"last_datefor_which_paid\",\n \"local_termination_reason\",\n \"months_continuous_prior_employment\",\n \"not_returning\",\n \"original_hire_date\",\n \"pay_group_frequency_currency\",\n \"pay_group_frequency_frequency\",\n \"pay_group_frequency_primary_compensation_basis\",\n \"pay_group_frequency_total_base_pay\",\n \"pay_group_frequency_total_salary_and_allowances\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"probation_end_date\",\n \"probation_start_date\",\n \"reason_reference_id\",\n \"regrettable_termination\",\n \"rehire\",\n \"resignation_date\",\n \"retired\",\n \"retirement_date\",\n \"retirement_eligibility_date\",\n \"return_unknown\",\n \"seniority_date\",\n \"severance_date\",\n \"terminated\",\n \"termination_involuntary\",\n \"termination_last_day_of_work\",\n \"time_off_service_date\",\n \"universal_id\",\n \"user_id\",\n \"vesting_date\",\n \"worker_code\",\n \"effective_date\",\n \"position_start_date\",\n \"position_end_date\",\n \"academic_pay_setup_data_annual_work_period_end_date\",\n \"academic_pay_setup_data_annual_work_period_start_date\",\n \"academic_pay_setup_data_annual_work_period_work_percent_of_year\",\n \"academic_pay_setup_data_disbursement_plan_period_end_date\",\n \"academic_pay_setup_data_disbursement_plan_period_start_date\",\n \"business_site_summary_display_language\",\n \"business_site_summary_local\",\n \"business_site_summary_location\",\n \"business_site_summary_location_type\",\n \"business_site_summary_name\",\n \"business_site_summary_scheduled_weekly_hours\",\n \"business_site_summary_time_profile\",\n \"business_title\",\n \"critical_job\",\n \"default_weekly_hours\",\n \"difficulty_to_fill\",\n \"employee_type\",\n \"exclude_from_head_count\",\n \"expected_assignment_end_date\",\n \"external_employee\",\n \"federal_withholding_fein\",\n \"frequency\",\n \"full_time_equivalent_percentage\",\n \"headcount_restriction_code\",\n \"host_country\",\n \"international_assignment_type\",\n \"is_primary_job\",\n \"job_exempt\",\n \"job_profile_id\",\n \"management_level_code\",\n \"paid_fte\",\n \"pay_group\",\n \"pay_rate\",\n \"pay_rate_type\",\n \"payroll_entity\",\n \"payroll_file_number\",\n \"regular_paid_equivalent_hours\",\n \"scheduled_weekly_hours\",\n \"specify_paid_fte\",\n \"specify_working_fte\",\n \"start_international_assignment_reason\",\n \"work_hours_profile\",\n \"work_shift\",\n \"work_shift_required\",\n \"work_space\",\n \"worker_hours_profile_classification\",\n \"working_fte\",\n \"working_time_frequency\",\n \"working_time_unit\",\n \"working_time_value\",\n \"type\",\n \"additional_nationality\",\n \"blood_type\",\n \"citizenship_status\",\n \"city_of_birth\",\n \"city_of_birth_code\",\n \"country_of_birth\",\n \"date_of_birth\",\n \"date_of_death\",\n \"gender\",\n \"hispanic_or_latino\",\n \"hukou_locality\",\n \"hukou_postal_code\",\n \"hukou_region\",\n \"hukou_subregion\",\n \"hukou_type\",\n \"last_medical_exam_date\",\n \"last_medical_exam_valid_to\",\n \"local_hukou\",\n \"marital_status\",\n \"marital_status_date\",\n \"medical_exam_notes\",\n \"native_region\",\n \"native_region_code\",\n \"personnel_file_agency\",\n \"political_affiliation\",\n \"primary_nationality\",\n \"region_of_birth\",\n \"region_of_birth_code\",\n \"religion\",\n \"social_benefit\",\n \"tobacco_use\",\n \"ll\"\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select md5(cast(coalesce(cast(employee_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_overview_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_overview_worker_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "fqn": ["workday", "not_null_workday__employee_overview_worker_id"], "alias": "not_null_workday__employee_overview_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.434137, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__employee_overview_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "position_id", "position_start_date"], "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date"], "alias": "dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d"}, "created_at": 1710962553.435377, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d\") }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_372af44607fdcb344648a06c7122b69d.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, position_id, position_start_date\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\n group by source_relation, worker_id, position_id, position_start_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__job_overview_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__job_overview_job_profile_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "fqn": ["workday", "not_null_workday__job_overview_job_profile_id"], "alias": "not_null_workday__job_overview_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.442121, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__job_overview_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656"}, "created_at": 1710962553.443169, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656\") }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.not_null_workday__position_overview_position_id.603beb3f22": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__position_overview_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__position_overview_position_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "fqn": ["workday", "not_null_workday__position_overview_position_id"], "alias": "not_null_workday__position_overview_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.445332, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__position_overview_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e"}, "created_at": 1710962553.44623, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e\") }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "fqn": ["workday", "not_null_workday__organization_overview_organization_id"], "alias": "not_null_workday__organization_overview_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.4484632, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_role_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "fqn": ["workday", "not_null_workday__organization_overview_organization_role_id"], "alias": "not_null_workday__organization_overview_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.449346, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1"}, "created_at": 1710962553.450399, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1\") }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "fqn": ["workday", "staging", "not_null_stg_workday__job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.553199, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1"}, "created_at": 1710962553.554257, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_family_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.556843, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.5577621, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id"], "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378"}, "created_at": 1710962553.558681, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.561009, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id"], "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd"}, "created_at": 1710962553.5619042, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_group_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.564183, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af"}, "created_at": 1710962553.565105, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_group_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4"}, "created_at": 1710962553.5660028, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_group_job_family_group_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_family_group_job_family_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.568307, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_group_job_family_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_group_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5"}, "created_at": 1710962553.5692039, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_group_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_id"], "alias": "not_null_stg_workday__organization_role_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.571489, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_role_id"], "alias": "not_null_stg_workday__organization_role_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.5723772, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id"], "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908"}, "created_at": 1710962553.573314, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_worker_code", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_worker_code", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_worker_code"], "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda"}, "created_at": 1710962553.575705, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_worker_code\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere organization_worker_code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_worker_code", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_id"], "alias": "not_null_stg_workday__organization_role_worker_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.5765939, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_role_id"], "alias": "not_null_stg_workday__organization_role_worker_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.5775402, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect role_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "role_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_worker_code", "organization_id", "role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id"], "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a"}, "created_at": 1710962553.5786629, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_job_family_id"], "alias": "not_null_stg_workday__organization_job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.581011, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_organization_id"], "alias": "not_null_stg_workday__organization_job_family_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.581934, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id"], "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456"}, "created_at": 1710962553.583022, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_organization_id"], "alias": "not_null_stg_workday__organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.585227, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id"], "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5"}, "created_at": 1710962553.5862951, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_organization_id"], "alias": "not_null_stg_workday__position_organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.588463, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_position_id"], "alias": "not_null_stg_workday__position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.589548, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id"], "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc"}, "created_at": 1710962553.590441, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "fqn": ["workday", "staging", "not_null_stg_workday__position_position_id"], "alias": "not_null_stg_workday__position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.592631, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32"}, "created_at": 1710962553.594026, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32\") }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_job_profile_id"], "alias": "not_null_stg_workday__position_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.59621, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_position_id"], "alias": "not_null_stg_workday__position_job_profile_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.5972888, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id"], "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62"}, "created_at": 1710962553.5983648, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "fqn": ["workday", "staging", "not_null_stg_workday__worker_worker_id"], "alias": "not_null_stg_workday__worker_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.6008372, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33"}, "created_at": 1710962553.601763, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_worker_id"], "alias": "not_null_stg_workday__personal_information_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.604195, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13"}, "created_at": 1710962553.605131, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_worker_id"], "alias": "not_null_stg_workday__person_name_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.60743, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_name_type", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_person_name_type", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_person_name_type.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_person_name_type"], "alias": "not_null_stg_workday__person_name_person_name_type", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.6085389, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_person_name_type.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect person_name_type\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\nwhere person_name_type is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_name_type", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_name_type"], "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type"], "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574"}, "created_at": 1710962553.6097338, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_worker_id"], "alias": "not_null_stg_workday__personal_information_ethnicity_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.612579, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ethnicity_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_ethnicity_id"], "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5"}, "created_at": 1710962553.613941, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ethnicity_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\nwhere ethnicity_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ethnicity_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "ethnicity_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id"], "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5"}, "created_at": 1710962553.614909, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__military_service_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__military_service_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "fqn": ["workday", "staging", "not_null_stg_workday__military_service_worker_id"], "alias": "not_null_stg_workday__military_service_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.617419, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__military_service_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9"}, "created_at": 1710962553.6183228, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9\") }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_contact_email_address_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id"], "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08"}, "created_at": 1710962553.62122, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect person_contact_email_address_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\nwhere person_contact_email_address_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_contact_email_address_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_contact_email_address_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_worker_id"], "alias": "not_null_stg_workday__person_contact_email_address_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.622188, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_contact_email_address_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_contact_email_address_id"], "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id"], "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb"}, "created_at": 1710962553.623159, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_position_id"], "alias": "not_null_stg_workday__worker_position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.6261609, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_worker_id"], "alias": "not_null_stg_workday__worker_position_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.627392, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7"}, "created_at": 1710962553.6285388, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "leave_request_event_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_leave_request_event_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_leave_request_event_id"], "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308"}, "created_at": 1710962553.631438, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect leave_request_event_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\nwhere leave_request_event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "leave_request_event_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_leave_status_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_worker_id"], "alias": "not_null_stg_workday__worker_leave_status_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.63237, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_leave_status_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "leave_request_event_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id"], "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f"}, "created_at": 1710962553.633309, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_position_id"], "alias": "not_null_stg_workday__worker_position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.635731, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_worker_id"], "alias": "not_null_stg_workday__worker_position_organization_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.6366851, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_organization_id"], "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23"}, "created_at": 1710962553.6379461, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "position_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id"], "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926"}, "created_at": 1710962553.639342, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_history_worker_id.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__personal_information_history_worker_id"], "alias": "not_null_stg_workday__personal_information_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.648404, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__personal_information_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "fqn": ["workday", "staging", "workday_history", "unique_stg_workday__personal_information_history_history_unique_key"], "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2"}, "created_at": 1710962553.649699, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__personal_information_history_history_unique_key"], "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3"}, "created_at": 1710962553.650728, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c", "fqn": ["workday", "staging", "workday_history", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523"}, "created_at": 1710962553.651783, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_worker_id.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_history_worker_id"], "alias": "not_null_stg_workday__worker_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.654798, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "fqn": ["workday", "staging", "workday_history", "unique_stg_workday__worker_history_history_unique_key"], "alias": "unique_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.655722, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/unique_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_history_history_unique_key"], "alias": "not_null_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.656624, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df", "fqn": ["workday", "staging", "workday_history", "dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135"}, "created_at": 1710962553.657723, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_worker_id.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_history_worker_id"], "alias": "not_null_stg_workday__worker_position_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.660512, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_position_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_position_id.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_history_position_id"], "alias": "not_null_stg_workday__worker_position_history_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.6615622, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_position_history_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_position_history_history_unique_key.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "fqn": ["workday", "staging", "workday_history", "unique_stg_workday__worker_position_history_history_unique_key"], "alias": "unique_stg_workday__worker_position_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.662915, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/unique_stg_workday__worker_position_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9"}, "created_at": 1710962553.6639528, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "position_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b", "fqn": ["workday", "staging", "workday_history", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412"}, "created_at": 1710962553.665008, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, position_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\n group by worker_id, position_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_organization_history_worker_id"], "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a"}, "created_at": 1710962553.668211, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_organization_history_position_id"], "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441"}, "created_at": 1710962553.669216, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_organization_history_organization_id"], "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0"}, "created_at": 1710962553.6702368, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "fqn": ["workday", "staging", "workday_history", "unique_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22"}, "created_at": 1710962553.6711738, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "fqn": ["workday", "staging", "workday_history", "not_null_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6"}, "created_at": 1710962553.672269, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "position_id", "organization_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71.sql", "original_file_path": "models/staging/workday_history/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888", "fqn": ["workday", "staging", "workday_history", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71"}, "created_at": 1710962553.673206, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/workday_history/stg_workday_history.yml/dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, position_id, organization_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\n group by worker_id, position_id, organization_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__monthly_summary_metrics_month", "resource_type": "test", "package_name": "workday", "path": "unique_workday__monthly_summary_metrics_month.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab", "fqn": ["workday", "workday_history", "unique_workday__monthly_summary_metrics_month"], "alias": "unique_workday__monthly_summary_metrics_month", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.680226, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__monthly_summary"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__monthly_summary_metrics_month.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n metrics_month as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is not null\ngroup by metrics_month\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metrics_month", "file_key_name": "models.workday__monthly_summary", "attached_node": "model.workday.workday__monthly_summary"}, "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__monthly_summary_metrics_month", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__monthly_summary_metrics_month.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "fqn": ["workday", "workday_history", "not_null_workday__monthly_summary_metrics_month"], "alias": "not_null_workday__monthly_summary_metrics_month", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1710962553.681261, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__monthly_summary"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__monthly_summary_metrics_month.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metrics_month\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metrics_month", "file_key_name": "models.workday__monthly_summary", "attached_node": "model.workday.workday__monthly_summary"}}, "sources": {"source.workday.workday.job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_profile", "fqn": ["workday", "staging", "workday", "job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"id": {"name": "id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_job_code_in_name": {"name": "include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "public_job": {"name": "public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "title": {"name": "title", "description": "Title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "created_at": 1710962553.683019}, "source.workday.workday.job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_profile", "fqn": ["workday", "staging", "workday", "job_family_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "created_at": 1710962553.683142}, "source.workday.workday.job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family", "fqn": ["workday", "staging", "workday", "job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "created_at": 1710962553.683228}, "source.workday.workday.job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_family_group", "fqn": ["workday", "staging", "workday", "job_family_job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "created_at": 1710962553.683307}, "source.workday.workday.job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_group", "fqn": ["workday", "staging", "workday", "job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"id": {"name": "id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "created_at": 1710962553.683393}, "source.workday.workday.organization_role": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role", "fqn": ["workday", "staging", "workday", "organization_role"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "created_at": 1710962553.683605}, "source.workday.workday.organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role_worker", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role_worker", "fqn": ["workday", "staging", "workday", "organization_role_worker"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_worker_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"associated_worker_id": {"name": "associated_worker_id", "description": "Identifier for the worker associated with the organization role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "created_at": 1710962553.683687}, "source.workday.workday.organization_job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_job_family", "fqn": ["workday", "staging", "workday", "organization_job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "created_at": 1710962553.6837661}, "source.workday.workday.organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization", "fqn": ["workday", "staging", "workday", "organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Identifier for the organization.", "columns": {"id": {"name": "id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_manager_in_name": {"name": "include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_organization_code_in_name": {"name": "include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location": {"name": "location", "description": "Location associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sub_type": {"name": "sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "created_at": 1710962553.683875}, "source.workday.workday.position_organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_organization", "fqn": ["workday", "staging", "workday", "position_organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "created_at": 1710962553.6839528}, "source.workday.workday.position": {"database": "postgres", "schema": "workday_integration_tests", "name": "position", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position", "fqn": ["workday", "staging", "workday", "position"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_eligible": {"name": "academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_overlap": {"name": "available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_recruiting": {"name": "available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "created_at": 1710962553.684064}, "source.workday.workday.position_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_job_profile", "fqn": ["workday", "staging", "workday", "position_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "created_at": 1710962553.684149}, "source.workday.workday.worker_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_history", "fqn": ["workday", "staging", "workday", "worker_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"id": {"name": "id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "has_international_assignment": {"name": "has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_rescinded": {"name": "hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "not_returning": {"name": "not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regrettable_termination": {"name": "regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rehire": {"name": "rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retired": {"name": "retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "return_unknown": {"name": "return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "terminated": {"name": "terminated", "description": "Flag indicating whether the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_involuntary": {"name": "termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "created_at": 1710962553.684651}, "source.workday.workday.personal_information_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_history", "fqn": ["workday", "staging", "workday", "personal_information_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The personal information associated with each worker.", "columns": {"id": {"name": "id", "description": "The identifier for each personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hispanic_or_latino": {"name": "hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_hukou": {"name": "local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tobacco_use": {"name": "tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "created_at": 1710962553.6847801}, "source.workday.workday.person_name": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_name", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_name", "fqn": ["workday", "staging", "workday", "person_name"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_name_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the name information for an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "created_at": 1710962553.684903}, "source.workday.workday.personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_ethnicity", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_ethnicity", "fqn": ["workday", "staging", "workday", "personal_information_ethnicity"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_ethnicity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "created_at": 1710962553.684992}, "source.workday.workday.military_service": {"database": "postgres", "schema": "workday_integration_tests", "name": "military_service", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.military_service", "fqn": ["workday", "staging", "workday", "military_service"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_military_service_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about an individual's military service in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "created_at": 1710962553.685081}, "source.workday.workday.person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_contact_email_address", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_contact_email_address", "fqn": ["workday", "staging", "workday", "person_contact_email_address"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_contact_email_address_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "created_at": 1710962553.685164}, "source.workday.workday.worker_position_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_history", "fqn": ["workday", "staging", "workday", "worker_position_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the positions held by workers in the Workday system", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location": {"name": "business_site_summary_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "exclude_from_head_count": {"name": "exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_exempt": {"name": "job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_paid_fte": {"name": "specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_working_fte": {"name": "specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "created_at": 1710962553.685312}, "source.workday.workday.worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_leave_status", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_leave_status", "fqn": ["workday", "staging", "workday", "worker_leave_status"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_leave_status_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the leave status of workers in the Workday system.", "columns": {"leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_effect": {"name": "benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caesarean_section_birth": {"name": "caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "multiple_child_indicator": {"name": "multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_leave": {"name": "on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_effect": {"name": "payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "single_parent_indicator": {"name": "single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stock_vesting_effect": {"name": "stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_related": {"name": "work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "created_at": 1710962553.685475}, "source.workday.workday.worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_organization_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_organization_history", "fqn": ["workday", "staging", "workday", "worker_position_organization_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_organization_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "created_at": 1710962553.685565}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.680555, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.680778, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.680887, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.680993, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.681098, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n when 'm' then 'MATERIALIZED VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.682552, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.6829739, "supported_languages": null}, "macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.683601, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.683729, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.691725, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.69221, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.692508, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.692797, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.6932359, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.69362, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.6937752, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.69408, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.694568, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.6955369, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.695746, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.696054, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.6963148, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.696714, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.696938, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.6975172, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.6977122, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.697825, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.6979961, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.6981351, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.698529, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.699219, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.699361, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.699646, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.699778, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.6999419, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.700764, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }};\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.701288, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.701619, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.701993, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.702129, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.70289, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.703063, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7031941, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7037172, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.703889, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.704094, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7046669, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.707663, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.70782, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.708299, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.708692, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.709728, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7099252, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.710061, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.710199, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.710336, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.710695, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.710985, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7113721, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.711786, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.712049, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.71529, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.715453, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.715661, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.716345, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7165031, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.716668, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.717987, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.719328, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7229419, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7232158, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.723379, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.723466, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.723605, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.723715, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.723907, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.724742, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.724921, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.725156, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.725562, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.731201, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.733739, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.734182, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.734475, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.734868, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7352278, "supported_languages": null}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7396128, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.739987, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.740227, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7414489, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.741674, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.742295, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.745207, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.747969, "supported_languages": ["sql"]}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.749512, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.750098, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7508469, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.751165, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7518342, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7573729, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.75895, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7592099, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.760159, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.760418, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7610471, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.761667, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.762496, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.762723, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.762901, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.763194, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7634618, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7637491, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.76393, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.764178, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7643552, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7644968, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7647638, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.769515, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.774179, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.775288, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.776366, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.777309, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.77762, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.777739, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.778048, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation }} clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.778187, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {% if target_relation and defer_relation and target_relation == defer_relation %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation) }}\n {% else %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endif %}\n\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.781951, "supported_languages": ["sql"]}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.785177, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.789563, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7904232, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.790647, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.79113, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7913442, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7914739, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.791612, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.791741, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.791897, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.79201, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7924669, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.79265, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.793874, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.794295, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.794653, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.795152, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.795447, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.795743, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.796146, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.7963939, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.79707, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.797428, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.797608, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.797803, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.798016, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.798814, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation_type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.800082, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.800461, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.800703, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8010051, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8012102, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.801862, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.802273, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.80247, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8027399, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.80307, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.80333, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.803769, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.804183, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.804492, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.804689, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{ return(adapter.dispatch('drop_materialized_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.804943, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.805042, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.805303, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.805446, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.805741, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.805963, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.806221, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.806358, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.806928, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.807128, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.80753, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.80772, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8080199, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8081641, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.80911, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.809221, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.809715, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8098712, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.809995, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.811244, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.811601, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.811937, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{ return(adapter.dispatch('drop_table', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8122041, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.812307, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8125749, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.812721, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8129869, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.813132, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8139598, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.814145, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.814551, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.815232, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.815901, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.816193, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.816418, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{ return(adapter.dispatch('drop_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.81671, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.816816, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.817826, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.817995, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.819206, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.819514, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.819732, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.820074, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.820247, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.820669, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8208342, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.821012, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.821418, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8217542, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8220391, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.822281, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.822846, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.824451, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.825504, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8263319, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.828344, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8296478, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.830382, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8306189, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8308558, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.830931, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.831625, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.832306, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.832555, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.832918, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.833438, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.833628, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.83389, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.834017, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.83489, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8353121, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.835501, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8359869, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.836239, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.836343, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.836653, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.836803, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.837016, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.837187, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.83743, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.837557, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.83792, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.838115, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.838897, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.839355, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.839756, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.839948, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.840252, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.840388, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.840631, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.840777, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.841009, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.841158, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.841384, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.841483, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8417559, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.841888, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8421178, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8423, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8431869, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.843338, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8434958, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.843641, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8437939, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8439412, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.844098, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.844267, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8444211, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.844568, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8447201, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8448582, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.845008, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.845147, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.845453, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.845582, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8458161, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.845918, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.846333, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.846587, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8467252, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.847202, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.847348, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.847553, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.847938, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.848087, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.848455, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.848702, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8489752, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.849105, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.849459, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.849631, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.84978, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.849947, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.850406, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.850548, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.85068, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8507788, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.851021, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8510962, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.85125, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.851406, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.852154, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8522859, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8524292, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.852798, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8529658, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.853086, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8532228, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8533351, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.855052, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.855202, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.855399, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.855662, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.85589, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.85619, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.856361, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.856582, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.856808, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8573198, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.857534, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.857673, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.858235, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.858656, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.858952, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8591712, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.860735, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8608482, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8610072, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.861116, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.86143, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8615959, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8616881, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.861887, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8620749, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.862282, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.862747, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.862966, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.863582, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.863756, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8639958, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.864214, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8652291, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header -%}\n {{ sql_header }}\n {%- endif -%}\n {%- if limit is not none -%}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n {%- else -%}\n {{ compiled_code }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.865699, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "{% macro get_limit_subquery_sql(sql, limit) %}\n {{ adapter.dispatch('get_limit_subquery_sql', 'dbt')(sql, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.865869, "supported_languages": null}, "macro.dbt.default__get_limit_subquery_sql": {"name": "default__get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_subquery_sql", "macro_sql": "{% macro default__get_limit_subquery_sql(sql, limit) %}\n select *\n from (\n {{ sql }}\n ) as model_limit_subq\n limit {{ limit }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.865988, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8666, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8667562, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.866945, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8670988, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.867348, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8678231, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.870314, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.870553, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.870739, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.871053, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.87124, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.871379, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8715441, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.871938, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.87216, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.872442, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8726149, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.872761, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.872907, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.873045, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.873235, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.873398, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.875375, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.875531, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.875833, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.87603, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8762188, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8763788, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n cast(null as {{ col['data_type'] }}) as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8775449, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.877883, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8780658, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.878417, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.878644, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8792179, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.879463, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.880168, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.88167, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.881809, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.882545, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.88291, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.88343, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8838751, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.883949, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8844218, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.884655, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.884932, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8851972, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8855438, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.885998, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.886446, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.887233, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.887576, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.887867, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8888152, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8897622, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.890549, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8915641, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.892183, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.892503, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.893213, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8940318, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.894488, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.894922, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.89552, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.895962, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.8964689, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.896827, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.897454, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n where {{ column_name }} is not null\n limit 1\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.898282, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.898865, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.899471, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.900008, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.90033, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.900712, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.901054, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.901663, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.90243, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.903264, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9041212, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.904822, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.905654, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.906128, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.906409, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.909566, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9111009, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.911434, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.911627, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9120698, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.912339, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.912527, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.91277, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.912936, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.913528, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9143229, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.914995, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9155781, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9158049, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9161549, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9165199, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.917043, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.917342, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9177222, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.918367, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.919266, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9200609, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.920469, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.920647, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9211462, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.921775, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9225721, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9229598, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.923231, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.924358, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9257548, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.927084, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.928525, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.928813, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.928944, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.931584, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.934669, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9349551, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.935183, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.935866, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.936063, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.936246, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.936503, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9367192, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.936887, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.93729, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.937532, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.937896, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.938459, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.938785, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9391181, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.940671, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.941024, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9418108, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9423091, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.943393, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9448562, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.945903, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9467142, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.94717, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9478679, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.948597, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.949037, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9492228, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.949594, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9501681, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.950667, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.951307, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.951818, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.951953, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.952096, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.952229, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9527092, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9535098, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9545221, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.954784, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.955325, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.956084, "supported_languages": null}, "macro.workday.get_person_contact_email_address_columns": {"name": "get_person_contact_email_address_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_contact_email_address_columns.sql", "original_file_path": "macros/get_person_contact_email_address_columns.sql", "unique_id": "macro.workday.get_person_contact_email_address_columns", "macro_sql": "{% macro get_person_contact_email_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_address\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_comment\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.95694, "supported_languages": null}, "macro.workday.get_military_service_columns": {"name": "get_military_service_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_military_service_columns.sql", "original_file_path": "macros/get_military_service_columns.sql", "unique_id": "macro.workday.get_military_service_columns", "macro_sql": "{% macro get_military_service_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"discharge_date\", \"datatype\": \"date\"},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"rank\", \"datatype\": dbt.type_string()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status_begin_date\", \"datatype\": \"date\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.958123, "supported_languages": null}, "macro.workday.get_position_job_profile_columns": {"name": "get_position_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_job_profile_columns.sql", "original_file_path": "macros/get_position_job_profile_columns.sql", "unique_id": "macro.workday.get_position_job_profile_columns", "macro_sql": "{% macro get_position_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9592419, "supported_languages": null}, "macro.workday.get_job_family_job_family_group_columns": {"name": "get_job_family_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_job_family_group_columns", "macro_sql": "{% macro get_job_family_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9598038, "supported_languages": null}, "macro.workday.get_worker_history_columns": {"name": "get_worker_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_history_columns.sql", "original_file_path": "macros/get_worker_history_columns.sql", "unique_id": "macro.workday.get_worker_history_columns", "macro_sql": "{% macro get_worker_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_date\", \"datatype\": \"date\"},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"active_status_date\", \"datatype\": \"date\"},\n {\"name\": \"annual_currency_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_service_date\", \"datatype\": \"date\"},\n {\"name\": \"company_service_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_effective_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"continuous_service_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_assignment_details\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_end_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_frequency_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_pay_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"contract_vendor_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_entered_workforce\", \"datatype\": \"date\"},\n {\"name\": \"days_unemployed\", \"datatype\": dbt.type_float()},\n {\"name\": \"eligible_for_hire\", \"datatype\": dbt.type_string()},\n {\"name\": \"eligible_for_rehire_on_latest_termination\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_date_of_return\", \"datatype\": \"date\"},\n {\"name\": \"expected_retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"has_international_assignment\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hire_date\", \"datatype\": \"date\"},\n {\"name\": \"hire_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"hire_rescinded\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_datefor_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"local_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"months_continuous_prior_employment\", \"datatype\": dbt.type_float()},\n {\"name\": \"not_returning\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"original_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"pay_group_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"primary_termination_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"probation_end_date\", \"datatype\": \"date\"},\n {\"name\": \"probation_start_date\", \"datatype\": \"date\"},\n {\"name\": \"reason_reference_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regrettable_termination\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"rehire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"resignation_date\", \"datatype\": \"date\"},\n {\"name\": \"retired\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"retirement_eligibility_date\", \"datatype\": \"date\"},\n {\"name\": \"return_unknown\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"seniority_date\", \"datatype\": \"date\"},\n {\"name\": \"severance_date\", \"datatype\": \"date\"},\n {\"name\": \"terminated\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_date\", \"datatype\": \"date\"},\n {\"name\": \"termination_involuntary\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"time_off_service_date\", \"datatype\": \"date\"},\n {\"name\": \"universal_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vesting_date\", \"datatype\": \"date\"},\n {\"name\": \"worker_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.972094, "supported_languages": null}, "macro.workday.get_job_family_group_columns": {"name": "get_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_group_columns", "macro_sql": "{% macro get_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_group_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.972975, "supported_languages": null}, "macro.workday.get_worker_leave_status_columns": {"name": "get_worker_leave_status_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_leave_status_columns.sql", "original_file_path": "macros/get_worker_leave_status_columns.sql", "unique_id": "macro.workday.get_worker_leave_status_columns", "macro_sql": "{% macro get_worker_leave_status_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"adoption_notification_date\", \"datatype\": \"date\"},\n {\"name\": \"adoption_placement_date\", \"datatype\": \"date\"},\n {\"name\": \"age_of_dependent\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"caesarean_section_birth\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"child_birth_date\", \"datatype\": \"date\"},\n {\"name\": \"child_sdate_of_death\", \"datatype\": \"date\"},\n {\"name\": \"continuous_service_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"date_baby_arrived_home_from_hospital\", \"datatype\": \"date\"},\n {\"name\": \"date_child_entered_country\", \"datatype\": \"date\"},\n {\"name\": \"date_of_recall\", \"datatype\": \"date\"},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimated_leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_due_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"last_date_for_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_entitlement_override\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"leave_of_absence_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_request_event_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_return_event\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_start_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_status_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_type_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_during_leave\", \"datatype\": dbt.type_string()},\n {\"name\": \"multiple_child_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"number_of_babies_adopted_children\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_child_dependents\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_births\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_maternity_leaves\", \"datatype\": dbt.type_float()},\n {\"name\": \"on_leave\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"paid_time_off_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"payroll_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"single_parent_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"social_security_disability_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"stock_vesting_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"stop_payment_date\", \"datatype\": \"date\"},\n {\"name\": \"week_of_confinement\", \"datatype\": \"date\"},\n {\"name\": \"work_related\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.97809, "supported_languages": null}, "macro.workday.get_organization_role_worker_columns": {"name": "get_organization_role_worker_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_worker_columns.sql", "original_file_path": "macros/get_organization_role_worker_columns.sql", "unique_id": "macro.workday.get_organization_role_worker_columns", "macro_sql": "{% macro get_organization_role_worker_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"associated_worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.978775, "supported_languages": null}, "macro.workday.get_job_profile_columns": {"name": "get_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_profile_columns.sql", "original_file_path": "macros/get_job_profile_columns.sql", "unique_id": "macro.workday.get_job_profile_columns", "macro_sql": "{% macro get_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_job_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"public_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"referral_payment_plan\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_membership_requirement\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_study_award_source_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_study_requirement_option_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.981473, "supported_languages": null}, "macro.workday.get_organization_role_columns": {"name": "get_organization_role_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_columns.sql", "original_file_path": "macros/get_organization_role_columns.sql", "unique_id": "macro.workday.get_organization_role_columns", "macro_sql": "{% macro get_organization_role_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_role_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.982125, "supported_languages": null}, "macro.workday.get_person_name_columns": {"name": "get_person_name_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_name_columns.sql", "original_file_path": "macros/get_person_name_columns.sql", "unique_id": "macro.workday.get_person_name_columns", "macro_sql": "{% macro get_person_name_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"additional_name_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name_singapore_malaysia\", \"datatype\": dbt.type_string()},\n {\"name\": \"hereditary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"honorary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_salutation\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"professional_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"religious_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"royal_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tertiary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.985804, "supported_languages": null}, "macro.workday.get_job_family_job_profile_columns": {"name": "get_job_family_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_profile_columns.sql", "original_file_path": "macros/get_job_family_job_profile_columns.sql", "unique_id": "macro.workday.get_job_family_job_profile_columns", "macro_sql": "{% macro get_job_family_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.986408, "supported_languages": null}, "macro.workday.get_worker_position_history_columns": {"name": "get_worker_position_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_history_columns.sql", "original_file_path": "macros/get_worker_position_history_columns.sql", "unique_id": "macro.workday.get_worker_position_history_columns", "macro_sql": "{% macro get_worker_position_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_pay_setup_data_annual_work_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_work_percent_of_year\", \"datatype\": dbt.type_float()},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"business_site_summary_display_language\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_local\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"business_site_summary_time_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"default_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"employee_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"exclude_from_head_count\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"expected_assignment_end_date\", \"datatype\": \"date\"},\n {\"name\": \"external_employee\", \"datatype\": dbt.type_string()},\n {\"name\": \"federal_withholding_fein\", \"datatype\": dbt.type_string()},\n {\"name\": \"frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_time_equivalent_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"headcount_restriction_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"host_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"international_assignment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_primary_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"paid_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"payroll_entity\", \"datatype\": dbt.type_string()},\n {\"name\": \"payroll_file_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regular_paid_equivalent_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"specify_paid_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"specify_working_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"start_international_assignment_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_hours_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_space\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_hours_profile_classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"working_time_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.993664, "supported_languages": null}, "macro.workday.get_personal_information_ethnicity_columns": {"name": "get_personal_information_ethnicity_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_ethnicity_columns.sql", "original_file_path": "macros/get_personal_information_ethnicity_columns.sql", "unique_id": "macro.workday.get_personal_information_ethnicity_columns", "macro_sql": "{% macro get_personal_information_ethnicity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ethnicity_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"ethnicity_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9945338, "supported_languages": null}, "macro.workday.get_personal_information_history_columns": {"name": "get_personal_information_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_history_columns.sql", "original_file_path": "macros/get_personal_information_history_columns.sql", "unique_id": "macro.workday.get_personal_information_history_columns", "macro_sql": "{% macro get_personal_information_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"blood_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"citizenship_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_birth\", \"datatype\": \"date\"},\n {\"name\": \"date_of_death\", \"datatype\": \"date\"},\n {\"name\": \"gender\", \"datatype\": dbt.type_string()},\n {\"name\": \"hispanic_or_latino\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hukou_locality\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_subregion\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_medical_exam_date\", \"datatype\": \"date\"},\n {\"name\": \"last_medical_exam_valid_to\", \"datatype\": \"date\"},\n {\"name\": \"local_hukou\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"marital_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"marital_status_date\", \"datatype\": \"date\"},\n {\"name\": \"medical_exam_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"personnel_file_agency\", \"datatype\": dbt.type_string()},\n {\"name\": \"political_affiliation\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"religion\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_benefit\", \"datatype\": dbt.type_string()},\n {\"name\": \"tobacco_use\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962551.9988961, "supported_languages": null}, "macro.workday.get_worker_position_organization_history_columns": {"name": "get_worker_position_organization_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_organization_history_columns.sql", "original_file_path": "macros/get_worker_position_organization_history_columns.sql", "unique_id": "macro.workday.get_worker_position_organization_history_columns", "macro_sql": "{% macro get_worker_position_organization_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_pay_group_assignment\", \"datatype\": \"date\"},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_business_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"used_in_change_organization_assignments\", \"datatype\": dbt.type_boolean()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0001469, "supported_languages": null}, "macro.workday.get_organization_job_family_columns": {"name": "get_organization_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_job_family_columns.sql", "original_file_path": "macros/get_organization_job_family_columns.sql", "unique_id": "macro.workday.get_organization_job_family_columns", "macro_sql": "{% macro get_organization_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.000811, "supported_languages": null}, "macro.workday.get_job_family_columns": {"name": "get_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_columns.sql", "original_file_path": "macros/get_job_family_columns.sql", "unique_id": "macro.workday.get_job_family_columns", "macro_sql": "{% macro get_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0017338, "supported_languages": null}, "macro.workday.get_organization_columns": {"name": "get_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_columns.sql", "original_file_path": "macros/get_organization_columns.sql", "unique_id": "macro.workday.get_organization_columns", "macro_sql": "{% macro get_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"availability_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"external_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"inactive_date\", \"datatype\": \"date\"},\n {\"name\": \"include_manager_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_organization_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"last_updated_date_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"location\", \"datatype\": dbt.type_string()},\n {\"name\": \"manager_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_owner_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"staffing_model\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"superior_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_availability_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_time_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_worker_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"top_level_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"visibility\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.004983, "supported_languages": null}, "macro.workday.get_position_organization_columns": {"name": "get_position_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_organization_columns.sql", "original_file_path": "macros/get_position_organization_columns.sql", "unique_id": "macro.workday.get_position_organization_columns", "macro_sql": "{% macro get_position_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.00576, "supported_languages": null}, "macro.workday.get_position_columns": {"name": "get_position_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_columns.sql", "original_file_path": "macros/get_position_columns.sql", "unique_id": "macro.workday.get_position_columns", "macro_sql": "{% macro get_position_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_eligible\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"availability_date\", \"datatype\": \"date\"},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_overlap\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_recruiting\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"closed\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"compensation_grade_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_package_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_step_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"earliest_overlap_date\", \"datatype\": \"date\"},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_posting_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_time_type_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_amount_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_percent_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"supervisory_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_for_filled_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_type_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.009496, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.009931, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.010828, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.010991, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0111518, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.011335, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.011481, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.011643, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0124202, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.01304, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0143192, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.01456, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.014796, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.015022, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.01525, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.015501, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.015746, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.016043, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0163531, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.016458, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.016578, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.016674, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0170612, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.017735, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.018743, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0193112, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.020053, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.02052, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.020648, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.020776, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0209, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0210292, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.023722, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.023882, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.024041, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0241961, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.025996, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.027013, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0271559, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0274181, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0276842, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.027807, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.027928, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0280461, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.028159, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.028615, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0291378, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0296042, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0297909, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.029989, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.03022, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.031266, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.034848, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.03521, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.035597, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0372028, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.037771, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.038337, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0384908, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.038645, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.03881, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.038953, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0391, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.039878, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.041128, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.041821, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0420601, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0422678, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.04243, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.042589, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0427651, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.043036, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.043145, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0432498, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.043874, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.045089, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.045263, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0460732, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.049419, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0548182, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.056464, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.05696, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.057129, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0573828, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0578198, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.057958, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.058073, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.058225, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.05848, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0587919, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0588999, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.059042, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.0594492, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1710962552.060246, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.workday._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_deleted", "block_contents": "Indicates if the record was soft-deleted by Fivetran."}, "doc.workday._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_synced", "block_contents": "Timestamp the record was synced by Fivetran."}, "doc.workday._fivetran_start": {"name": "_fivetran_start", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_start", "block_contents": "Timestamp when the record was first created or modified in the source."}, "doc.workday._fivetran_end": {"name": "_fivetran_end", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_end", "block_contents": "Timestamp marking the end of a record being active."}, "doc.workday._fivetran_date": {"name": "_fivetran_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_date", "block_contents": "Date when the record was first created or modified in the source."}, "doc.workday._fivetran_active": {"name": "_fivetran_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_active", "block_contents": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE."}, "doc.workday.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.source_relation", "block_contents": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "doc.workday.academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_end_date", "block_contents": "The end date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_start_date", "block_contents": "The start date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year", "block_contents": "The work percentage of the year in the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date", "block_contents": "The end date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date", "block_contents": "The start date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_suffix": {"name": "academic_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_suffix", "block_contents": "The academic suffix, if applicable (e.g., PhD, MD)."}, "doc.workday.academic_tenure_date": {"name": "academic_tenure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_date", "block_contents": "Date when academic tenure is achieved."}, "doc.workday.academic_tenure_eligible": {"name": "academic_tenure_eligible", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_eligible", "block_contents": "Flag indicating whether the position is eligible for academic tenure."}, "doc.workday.active": {"name": "active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active", "block_contents": "Flag indicating the current active status of the worker."}, "doc.workday.active_status_date": {"name": "active_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active_status_date", "block_contents": "Date when the active status was last updated."}, "doc.workday.additional_job_description": {"name": "additional_job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_job_description", "block_contents": "Additional details or information about the job."}, "doc.workday.additional_name_type": {"name": "additional_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_name_type", "block_contents": "Additional type or category for the person name."}, "doc.workday.additional_nationality": {"name": "additional_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_nationality", "block_contents": "Additional nationality associated with the individual."}, "doc.workday.adoption_notification_date": {"name": "adoption_notification_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_notification_date", "block_contents": "The date of adoption notification."}, "doc.workday.adoption_placement_date": {"name": "adoption_placement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_placement_date", "block_contents": "The date of adoption placement."}, "doc.workday.age_of_dependent": {"name": "age_of_dependent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.age_of_dependent", "block_contents": "The age of the dependent associated with the leave status."}, "doc.workday.annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_currency", "block_contents": "Currency used for annual compensation summaries."}, "doc.workday.annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_frequency", "block_contents": "Frequency of currency for annual compensation summaries."}, "doc.workday.annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual compensation summaries."}, "doc.workday.annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.annual_summary_currency": {"name": "annual_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_currency", "block_contents": "Currency used for annual summaries."}, "doc.workday.annual_summary_frequency": {"name": "annual_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_frequency", "block_contents": "Frequency of currency for annual summaries."}, "doc.workday.annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual summaries."}, "doc.workday.annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.associated_worker_id": {"name": "associated_worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.associated_worker_id", "block_contents": "Identifier for the worker associated with the organization role."}, "doc.workday.availability_date": {"name": "availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.availability_date", "block_contents": "Date when the organization becomes available."}, "doc.workday.available_for_hire": {"name": "available_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_hire", "block_contents": "Flag indicating whether the organization is available for hiring."}, "doc.workday.available_for_overlap": {"name": "available_for_overlap", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_overlap", "block_contents": "Flag indicating whether the position is available for overlap with other positions."}, "doc.workday.available_for_recruiting": {"name": "available_for_recruiting", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_recruiting", "block_contents": "Flag indicating whether the position is available for recruiting."}, "doc.workday.benefits_effect": {"name": "benefits_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_effect", "block_contents": "The effect of leave on benefits."}, "doc.workday.benefits_service_date": {"name": "benefits_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_service_date", "block_contents": "Date when the worker's benefits service starts."}, "doc.workday.blood_type": {"name": "blood_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.blood_type", "block_contents": "The blood type of the individual."}, "doc.workday.business_site_summary_display_language": {"name": "business_site_summary_display_language", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_display_language", "block_contents": "The display language of the business site summary."}, "doc.workday.business_site_summary_local": {"name": "business_site_summary_local", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_local", "block_contents": "Local information related to the business site summary."}, "doc.workday.business_site_summary_location": {"name": "business_site_summary_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location", "block_contents": "The location of the business site summary."}, "doc.workday.business_site_summary_location_type": {"name": "business_site_summary_location_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location_type", "block_contents": "The type of location for the business site summary."}, "doc.workday.business_site_summary_name": {"name": "business_site_summary_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_name", "block_contents": "The name associated with the business site summary."}, "doc.workday.business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the business site summary."}, "doc.workday.business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_time_profile", "block_contents": "The time profile associated with the business site summary."}, "doc.workday.business_title": {"name": "business_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_title", "block_contents": "The business title associated with the worker position."}, "doc.workday.caesarean_section_birth": {"name": "caesarean_section_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.caesarean_section_birth", "block_contents": "Indicator for Caesarean section birth."}, "doc.workday.child_birth_date": {"name": "child_birth_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_birth_date", "block_contents": "The date of child birth."}, "doc.workday.child_sdate_of_death": {"name": "child_sdate_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_sdate_of_death", "block_contents": "The start date of child death.>"}, "doc.workday.citizenship_status": {"name": "citizenship_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.citizenship_status", "block_contents": "The citizenship status of the individual."}, "doc.workday.city_of_birth": {"name": "city_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth", "block_contents": "The city of birth of the individual."}, "doc.workday.city_of_birth_code": {"name": "city_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth_code", "block_contents": "The city of birth code of the individual."}, "doc.workday.closed": {"name": "closed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.closed", "block_contents": "Flag indicating whether the position is closed."}, "doc.workday.code": {"name": "code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.code", "block_contents": "Code assigned to the organization for reference and categorization."}, "doc.workday.company_service_date": {"name": "company_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.company_service_date", "block_contents": "Date when the worker's service with the company started."}, "doc.workday.compensation_effective_date": {"name": "compensation_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_effective_date", "block_contents": "Effective date when changes to the worker's compensation take effect."}, "doc.workday.compensation_grade_code": {"name": "compensation_grade_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_code", "block_contents": "Code associated with the compensation grade of the position."}, "doc.workday.compensation_grade_id": {"name": "compensation_grade_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_id", "block_contents": "Identifier for the compensation grade."}, "doc.workday.compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_code", "block_contents": "Code associated with the compensation grade profile of the position."}, "doc.workday.compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_id", "block_contents": "Unique identifier for the compensation grade profile associated with the worker."}, "doc.workday.compensation_package_code": {"name": "compensation_package_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_package_code", "block_contents": "Code associated with the compensation package of the position."}, "doc.workday.compensation_step_code": {"name": "compensation_step_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_step_code", "block_contents": "Code associated with the compensation step of the position."}, "doc.workday.continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_accrual_effect", "block_contents": "The effect of leave on continuous service accrual."}, "doc.workday.continuous_service_date": {"name": "continuous_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_date", "block_contents": "Date when the worker's continuous service with the organization started."}, "doc.workday.contract_assignment_details": {"name": "contract_assignment_details", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_assignment_details", "block_contents": "Details of the worker's contract assignment."}, "doc.workday.contract_currency_code": {"name": "contract_currency_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_currency_code", "block_contents": "Currency code used for the worker's contract."}, "doc.workday.contract_end_date": {"name": "contract_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_end_date", "block_contents": "Date when the worker's contract is scheduled to end."}, "doc.workday.contract_frequency_name": {"name": "contract_frequency_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_frequency_name", "block_contents": "Frequency of payment for the worker's contract."}, "doc.workday.contract_pay_rate": {"name": "contract_pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_pay_rate", "block_contents": "Pay rate associated with the worker's contract."}, "doc.workday.contract_vendor_name": {"name": "contract_vendor_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_vendor_name", "block_contents": "Name of the vendor associated with the worker's contract."}, "doc.workday.country": {"name": "country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country", "block_contents": "The country associated with the person name."}, "doc.workday.country_of_birth": {"name": "country_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country_of_birth", "block_contents": "The country of birth of the individual."}, "doc.workday.critical_job": {"name": "critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.critical_job", "block_contents": "Flag indicating whether the job is critical."}, "doc.workday.date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_baby_arrived_home_from_hospital", "block_contents": "The date when the baby arrived home from the hospital."}, "doc.workday.date_child_entered_country": {"name": "date_child_entered_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_child_entered_country", "block_contents": "The date when the child entered the country."}, "doc.workday.date_entered_workforce": {"name": "date_entered_workforce", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_entered_workforce", "block_contents": "Date when the worker entered the workforce."}, "doc.workday.date_of_birth": {"name": "date_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_birth", "block_contents": "The date of birth of the individual."}, "doc.workday.date_of_death": {"name": "date_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_death", "block_contents": "The date of death of the individual."}, "doc.workday.date_of_recall": {"name": "date_of_recall", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_recall", "block_contents": "The date of recall."}, "doc.workday.days_at_position": {"name": "days_at_position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_at_position", "block_contents": "The number of days the worker has held their most recent position."}, "doc.workday.days_of_employment": {"name": "days_of_employment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_of_employment", "block_contents": "Number of days employed by the worker."}, "doc.workday.days_unemployed": {"name": "days_unemployed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_unemployed", "block_contents": "Number of days the worker has been unemployed."}, "doc.workday.default_weekly_hours": {"name": "default_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.default_weekly_hours", "block_contents": "The default weekly hours associated with the worker position."}, "doc.workday.departure_date": {"name": "departure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.departure_date", "block_contents": "The departure date for the employee."}, "doc.workday.difficulty_to_fill": {"name": "difficulty_to_fill", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill", "block_contents": "Indication of the difficulty level in filling the job."}, "doc.workday.difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill_code", "block_contents": "Code indicating the difficulty level in filling the position."}, "doc.workday.discharge_date": {"name": "discharge_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.discharge_date", "block_contents": "The date on which the individual was discharged from military service."}, "doc.workday.earliest_hire_date": {"name": "earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_hire_date", "block_contents": "Earliest date when the position can be filled."}, "doc.workday.earliest_overlap_date": {"name": "earliest_overlap_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_overlap_date", "block_contents": "Earliest date when the position can overlap with other positions."}, "doc.workday.effective_date": {"name": "effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.effective_date", "block_contents": "Date when the job profile becomes effective."}, "doc.workday.eligible_for_hire": {"name": "eligible_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_hire", "block_contents": "Flag indicating whether the worker is eligible for hire."}, "doc.workday.eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_rehire_on_latest_termination", "block_contents": "Flag indicating whether the worker is eligible for rehire based on the latest termination."}, "doc.workday.email_address": {"name": "email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_address", "block_contents": "The actual email address of the person."}, "doc.workday.email_code": {"name": "email_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_code", "block_contents": "A code or label associated with the type or purpose of the email address."}, "doc.workday.email_comment": {"name": "email_comment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_comment", "block_contents": "Any additional comments or notes related to the email address."}, "doc.workday.employed_five_years": {"name": "employed_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_five_years", "block_contents": "Tracks whether a worker was employed at least five years."}, "doc.workday.employed_one_year": {"name": "employed_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_one_year", "block_contents": "Tracks whether a worker was employed at least one year."}, "doc.workday.employed_ten_years": {"name": "employed_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_ten_years", "block_contents": "Tracks whether a worker was employed at least ten years."}, "doc.workday.employed_thirty_years": {"name": "employed_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_thirty_years", "block_contents": "Tracks whether a worker was employed at least thirty years."}, "doc.workday.employed_twenty_years": {"name": "employed_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_twenty_years", "block_contents": "Tracks whether a worker was employed at least twenty years."}, "doc.workday.employee_compensation_currency": {"name": "employee_compensation_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_currency", "block_contents": "Currency code used for the worker's employee compensation."}, "doc.workday.employee_compensation_frequency": {"name": "employee_compensation_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_frequency", "block_contents": "Frequency of payment for the worker's employee compensation."}, "doc.workday.employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's employee compensation."}, "doc.workday.employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_base_pay", "block_contents": "Total base pay for the worker's employee compensation."}, "doc.workday.employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's employee compensation."}, "doc.workday.employee_type": {"name": "employee_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_type", "block_contents": "The type of employee associated with the worker position."}, "doc.workday.end_date": {"name": "end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_date", "block_contents": "The end date of the worker position."}, "doc.workday.end_employment_date": {"name": "end_employment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_employment_date", "block_contents": "Date when the worker's employment is scheduled to end."}, "doc.workday.estimated_leave_end_date": {"name": "estimated_leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.estimated_leave_end_date", "block_contents": "The estimated end date of the leave."}, "doc.workday.ethnicity_code": {"name": "ethnicity_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_code", "block_contents": "The code representing the ethnicity of the individual."}, "doc.workday.ethnicity_codes": {"name": "ethnicity_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_codes", "block_contents": "String aggregation of all ethnicity codes associated with an individual."}, "doc.workday.ethnicity_id": {"name": "ethnicity_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_id", "block_contents": "The identifier associated with the ethnicity."}, "doc.workday.exclude_from_head_count": {"name": "exclude_from_head_count", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.exclude_from_head_count", "block_contents": "Flag indicating whether the position is excluded from headcount."}, "doc.workday.expected_assignment_end_date": {"name": "expected_assignment_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_assignment_end_date", "block_contents": "The expected end date of the assignment associated with the worker position."}, "doc.workday.expected_date_of_return": {"name": "expected_date_of_return", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_date_of_return", "block_contents": "Expected date of the worker's return."}, "doc.workday.expected_due_date": {"name": "expected_due_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_due_date", "block_contents": "The expected due date."}, "doc.workday.expected_retirement_date": {"name": "expected_retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_retirement_date", "block_contents": "Expected date of the worker's retirement."}, "doc.workday.external_employee": {"name": "external_employee", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_employee", "block_contents": "Flag indicating whether the worker is an external employee."}, "doc.workday.external_url": {"name": "external_url", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_url", "block_contents": "External URL associated with the organization."}, "doc.workday.federal_withholding_fein": {"name": "federal_withholding_fein", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.federal_withholding_fein", "block_contents": "The Federal Employer Identification Number (FEIN) for federal withholding."}, "doc.workday.first_day_of_work": {"name": "first_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_day_of_work", "block_contents": "The date when the worker started their first day of work."}, "doc.workday.first_name": {"name": "first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_name", "block_contents": "The first name of the individual."}, "doc.workday.frequency": {"name": "frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.frequency", "block_contents": "The frequency associated with the worker position."}, "doc.workday.fte_percent": {"name": "fte_percent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.fte_percent", "block_contents": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek"}, "doc.workday.full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_name_singapore_malaysia", "block_contents": "The full name as used in Singapore and Malaysia."}, "doc.workday.full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_time_equivalent_percentage", "block_contents": "The full-time equivalent (FTE) percentage associated with the worker position."}, "doc.workday.gender": {"name": "gender", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.gender", "block_contents": "The gender of the individual."}, "doc.workday.has_international_assignment": {"name": "has_international_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.has_international_assignment", "block_contents": "Flag indicating whether the worker has an international assignment."}, "doc.workday.headcount_restriction_code": {"name": "headcount_restriction_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.headcount_restriction_code", "block_contents": "The code associated with headcount restriction for the worker position."}, "doc.workday.hereditary_suffix": {"name": "hereditary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hereditary_suffix", "block_contents": "The hereditary suffix, if applicable (e.g., Jr, Sr)."}, "doc.workday.hire_date": {"name": "hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_date", "block_contents": "The date when the worker was hired."}, "doc.workday.hire_reason": {"name": "hire_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_reason", "block_contents": "The reason for hiring the worker."}, "doc.workday.hire_rescinded": {"name": "hire_rescinded", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_rescinded", "block_contents": "Flag indicating whether the worker's hire was rescinded."}, "doc.workday.hiring_freeze": {"name": "hiring_freeze", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hiring_freeze", "block_contents": "Flag indicating whether the organization is under a hiring freeze."}, "doc.workday.hispanic_or_latino": {"name": "hispanic_or_latino", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hispanic_or_latino", "block_contents": "lag indicating whether the individual is Hispanic or Latino."}, "doc.workday.home_country": {"name": "home_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.home_country", "block_contents": "The home country of the worker."}, "doc.workday.honorary_suffix": {"name": "honorary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.honorary_suffix", "block_contents": "The honorary suffix, if applicable."}, "doc.workday.host_country": {"name": "host_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.host_country", "block_contents": "The host country associated with the worker."}, "doc.workday.hourly_frequency_currency": {"name": "hourly_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_currency", "block_contents": "Currency code used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_frequency", "block_contents": "Frequency of payment for the worker's hourly compensation."}, "doc.workday.hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_base_pay", "block_contents": "Total base pay for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's hourly compensation."}, "doc.workday.hukou_locality": {"name": "hukou_locality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_locality", "block_contents": "The locality associated with the Hukou."}, "doc.workday.hukou_postal_code": {"name": "hukou_postal_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_postal_code", "block_contents": "The postal code associated with the Hukou."}, "doc.workday.hukou_region": {"name": "hukou_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_region", "block_contents": "The region associated with the Hukou."}, "doc.workday.hukou_subregion": {"name": "hukou_subregion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_subregion", "block_contents": "The subregion associated with the Hukou."}, "doc.workday.hukou_type": {"name": "hukou_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_type", "block_contents": "The type of Hukou."}, "doc.workday.id": {"name": "id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.id", "block_contents": "Unique identifier."}, "doc.workday.inactive": {"name": "inactive", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive", "block_contents": "Flag indicating whether this is inactive."}, "doc.workday.inactive_date": {"name": "inactive_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive_date", "block_contents": "Date when the organization becomes inactive"}, "doc.workday.include_job_code_in_name": {"name": "include_job_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_job_code_in_name", "block_contents": "Flag indicating whether to include the job code in the job profile name."}, "doc.workday.include_manager_in_name": {"name": "include_manager_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_manager_in_name", "block_contents": "Flag indicating whether to include the manager in the organization name."}, "doc.workday.include_organization_code_in_name": {"name": "include_organization_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_organization_code_in_name", "block_contents": "Flag indicating whether to include the organization code in the name."}, "doc.workday.index": {"name": "index", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.index", "block_contents": "An index for a particular identifier."}, "doc.workday.international_assignment_type": {"name": "international_assignment_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.international_assignment_type", "block_contents": "The type of international assignment associated with the worker position."}, "doc.workday.is_critical_job": {"name": "is_critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_critical_job", "block_contents": "Flag indicating whether the position is considered critical based on the job profile."}, "doc.workday.is_current_employee_five_years": {"name": "is_current_employee_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_five_years", "block_contents": "Tracks whether a worker is active for more than five years."}, "doc.workday.is_current_employee_one_year": {"name": "is_current_employee_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_one_year", "block_contents": "Tracks whether a worker is active for more than a year."}, "doc.workday.is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_ten_years", "block_contents": "Tracks whether a worker is active for more than ten years."}, "doc.workday.is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_thirty_years", "block_contents": "Tracks whether a worker is active for more than thirty years."}, "doc.workday.is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_twenty_years", "block_contents": "Tracks whether a worker is active for more than twenty years."}, "doc.workday.is_employed": {"name": "is_employed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_employed", "block_contents": "Is the worker currently employed?"}, "doc.workday.is_military_service": {"name": "is_military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_military_service", "block_contents": "Whether the employee served in the military."}, "doc.workday.is_primary_job": {"name": "is_primary_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_primary_job", "block_contents": "Flag indicating whether the job is the primary job for the worker."}, "doc.workday.is_regrettable_termination": {"name": "is_regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_regrettable_termination", "block_contents": "Has the worker been regrettably terminated?"}, "doc.workday.is_terminated": {"name": "is_terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_terminated", "block_contents": "Has the worker been terminated?"}, "doc.workday.is_user_active": {"name": "is_user_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_user_active", "block_contents": "Is the user currently active."}, "doc.workday.job_category_code": {"name": "job_category_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_code", "block_contents": "Code indicating the category of the job profile associated with the position."}, "doc.workday.job_category_id": {"name": "job_category_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_id", "block_contents": "Identifier for the job category."}, "doc.workday.job_description": {"name": "job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description", "block_contents": "Detailed description of the job associated with the position."}, "doc.workday.job_description_summary": {"name": "job_description_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description_summary", "block_contents": "Summary or overview of the job description for the position."}, "doc.workday.job_exempt": {"name": "job_exempt", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_exempt", "block_contents": "Indicates whether the job is exempt from certain regulations."}, "doc.workday.job_family": {"name": "job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family", "block_contents": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles."}, "doc.workday.job_family_code": {"name": "job_family_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_code", "block_contents": "Code assigned to the job family"}, "doc.workday.job_family_codes": {"name": "job_family_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_codes", "block_contents": "String array of all job family codes assigned to a job profile."}, "doc.workday.job_family_group": {"name": "job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group", "block_contents": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics."}, "doc.workday.job_family_group_code": {"name": "job_family_group_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_code", "block_contents": "Code assigned to the job family group for reference and categorization."}, "doc.workday.job_family_group_codes": {"name": "job_family_group_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_codes", "block_contents": "String array of all job family group codes assigned to a job profile."}, "doc.workday.job_family_group_id": {"name": "job_family_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_id", "block_contents": "Identifier for the job family group."}, "doc.workday.job_family_group_summary": {"name": "job_family_group_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summary", "block_contents": "The summary of the job family group."}, "doc.workday.job_family_group_summaries": {"name": "job_family_group_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summaries", "block_contents": "String array of all job family group summaries assigned to a job profile."}, "doc.workday.job_family_id": {"name": "job_family_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_id", "block_contents": "Identifier for the job family."}, "doc.workday.job_family_job_family_group": {"name": "job_family_job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_family_group", "block_contents": "Represents the relationship between job families and job family groups in the Workday dataset."}, "doc.workday.job_family_job_profile": {"name": "job_family_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_profile", "block_contents": "Represents the relationship between job families and job profiles in the Workday dataset."}, "doc.workday.job_family_summary": {"name": "job_family_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summary", "block_contents": "The summary of the job family."}, "doc.workday.job_family_summaries": {"name": "job_family_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summaries", "block_contents": "String array of all job family summaries assigned to a job profile."}, "doc.workday.job_group_id": {"name": "job_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_group_id", "block_contents": "The unique identifier for the job group."}, "doc.workday.job_posting_title": {"name": "job_posting_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_posting_title", "block_contents": "Title used for job postings associated with the position."}, "doc.workday.job_private_title": {"name": "job_private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_private_title", "block_contents": "The private title associated with the job."}, "doc.workday.job_profile": {"name": "job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile", "block_contents": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes."}, "doc.workday.job_profile_code": {"name": "job_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_code", "block_contents": "Code assigned to the job profile."}, "doc.workday.job_profile_description": {"name": "job_profile_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_description", "block_contents": "Brief description of the job profile."}, "doc.workday.job_profile_id": {"name": "job_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_id", "block_contents": "Identifier for the job profile."}, "doc.workday.job_summary": {"name": "job_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_summary", "block_contents": "The summary of the job."}, "doc.workday.job_title": {"name": "job_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_title", "block_contents": "The title of the job for the worker."}, "doc.workday.last_date_for_which_paid": {"name": "last_date_for_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_date_for_which_paid", "block_contents": "The last date being paid before leave."}, "doc.workday.last_datefor_which_paid": {"name": "last_datefor_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_datefor_which_paid", "block_contents": "Last date for which the worker was paid."}, "doc.workday.last_medical_exam_date": {"name": "last_medical_exam_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_date", "block_contents": "The date of the last medical exam."}, "doc.workday.last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_valid_to", "block_contents": "The validity date of the last medical exam."}, "doc.workday.last_name": {"name": "last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_name", "block_contents": "The last name or surname of the individual."}, "doc.workday.last_updated_date_time": {"name": "last_updated_date_time", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_updated_date_time", "block_contents": "Date and time when the organization record was last updated."}, "doc.workday.leave_description": {"name": "leave_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_description", "block_contents": "Description of the type of leave"}, "doc.workday.leave_end_date": {"name": "leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_end_date", "block_contents": "The end date of the leave."}, "doc.workday.leave_entitlement_override": {"name": "leave_entitlement_override", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_entitlement_override", "block_contents": "Override for leave entitlement."}, "doc.workday.leave_last_day_of_work": {"name": "leave_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_last_day_of_work", "block_contents": "The last day of work associated with the leave status."}, "doc.workday.leave_of_absence_type": {"name": "leave_of_absence_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_of_absence_type", "block_contents": "The type of leave of absence."}, "doc.workday.leave_percentage": {"name": "leave_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_percentage", "block_contents": "The percentage of leave."}, "doc.workday.leave_request_event_id": {"name": "leave_request_event_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_request_event_id", "block_contents": "The unique identifier for the leave request event."}, "doc.workday.leave_return_event": {"name": "leave_return_event", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_return_event", "block_contents": "The event associated with the return from leave."}, "doc.workday.leave_start_date": {"name": "leave_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_start_date", "block_contents": "The start date of the leave."}, "doc.workday.leave_status_code": {"name": "leave_status_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_status_code", "block_contents": "The code indicating the status of the leave."}, "doc.workday.leave_type_reason": {"name": "leave_type_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_type_reason", "block_contents": "The reason for the leave type."}, "doc.workday.level": {"name": "level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.level", "block_contents": "Level associated with the job profile."}, "doc.workday.local_first_name": {"name": "local_first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name", "block_contents": "The local or native first name of the individual."}, "doc.workday.local_first_name_2": {"name": "local_first_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name_2", "block_contents": "Additional local or native first name, if applicable."}, "doc.workday.local_hukou": {"name": "local_hukou", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_hukou", "block_contents": "Flag indicating whether the Hukou is local."}, "doc.workday.local_last_name": {"name": "local_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name", "block_contents": "The local or native last name of the individual."}, "doc.workday.local_last_name_2": {"name": "local_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name_2", "block_contents": "Additional local or native last name, if applicable."}, "doc.workday.local_middle_name": {"name": "local_middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name", "block_contents": "The local or native middle name of the individual."}, "doc.workday.local_middle_name_2": {"name": "local_middle_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name_2", "block_contents": "Additional local or native middle name, if applicable."}, "doc.workday.local_secondary_last_name": {"name": "local_secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name", "block_contents": "Secondary local or native last name or surname, if applicable."}, "doc.workday.local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name_2", "block_contents": "Additional secondary local or native last name, if applicable."}, "doc.workday.local_termination_reason": {"name": "local_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_termination_reason", "block_contents": "The reason for local termination of the worker."}, "doc.workday.location": {"name": "location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location", "block_contents": "Location associated with the organization."}, "doc.workday.location_during_leave": {"name": "location_during_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location_during_leave", "block_contents": "The location during the leave."}, "doc.workday.management_level": {"name": "management_level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level", "block_contents": "Management level associated with the job profile."}, "doc.workday.management_level_code": {"name": "management_level_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level_code", "block_contents": "Code indicating the management level associated with the job profile."}, "doc.workday.manager_id": {"name": "manager_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.manager_id", "block_contents": "Identifier for the manager associated with the organization."}, "doc.workday.marital_status": {"name": "marital_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status", "block_contents": "The marital status of the individual."}, "doc.workday.marital_status_date": {"name": "marital_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status_date", "block_contents": "The date of the marital status."}, "doc.workday.medical_exam_notes": {"name": "medical_exam_notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.medical_exam_notes", "block_contents": "Notes from the medical exam."}, "doc.workday.middle_name": {"name": "middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.middle_name", "block_contents": "The middle name of the individual."}, "doc.workday.military_service": {"name": "military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_service", "block_contents": "Represents information about an individual's military service in the Workday system."}, "doc.workday.military_status": {"name": "military_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_status", "block_contents": "The military status of the worker."}, "doc.workday.months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.months_continuous_prior_employment", "block_contents": "Number of months of continuous prior employment."}, "doc.workday.most_recent_level": {"name": "most_recent_level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_level", "block_contents": "The most recent level of the worker."}, "doc.workday.most_recent_location": {"name": "most_recent_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_location", "block_contents": "The most recent location of the worker."}, "doc.workday.most_recent_position_effective_date": {"name": "most_recent_position_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_position_effective_date", "block_contents": "The most recent position effective date for the employee."}, "doc.workday.most_recent_position_end_date": {"name": "most_recent_position_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_position_end_date", "block_contents": "The most recent position end date for the employee."}, "doc.workday.most_recent_position_start_date": {"name": "most_recent_position_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_position_start_date", "block_contents": "The most recent position start date for the employee."}, "doc.workday.most_recent_position_type": {"name": "most_recent_position_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.most_recent_position_type", "block_contents": "The most recent position type of the worker."}, "doc.workday.multiple_child_indicator": {"name": "multiple_child_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.multiple_child_indicator", "block_contents": "Indicator for multiple children."}, "doc.workday.native_region": {"name": "native_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region", "block_contents": "The native region of the individual."}, "doc.workday.native_region_code": {"name": "native_region_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region_code", "block_contents": "The code of the native region."}, "doc.workday.not_returning": {"name": "not_returning", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.not_returning", "block_contents": "Flag indicating whether the worker is not returning."}, "doc.workday.notes": {"name": "notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.notes", "block_contents": "Additional notes or comments related to the military service record."}, "doc.workday.number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_babies_adopted_children", "block_contents": "The number of babies adopted by the worker."}, "doc.workday.number_of_child_dependents": {"name": "number_of_child_dependents", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_child_dependents", "block_contents": "The number of child dependents."}, "doc.workday.number_of_previous_births": {"name": "number_of_previous_births", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_births", "block_contents": "The number of previous births."}, "doc.workday.number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_maternity_leaves", "block_contents": "The number of previous maternity leaves."}, "doc.workday.on_leave": {"name": "on_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.on_leave", "block_contents": "Indicator for whether the worker is on leave."}, "doc.workday.organization": {"name": "organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization", "block_contents": "Identifier for the organization."}, "doc.workday.organization_code": {"name": "organization_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_code", "block_contents": "Code associated with the organization."}, "doc.workday.organization_description": {"name": "organization_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_description", "block_contents": "The description of the organization."}, "doc.workday.organization_id": {"name": "organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_id", "block_contents": "Identifier for the organization."}, "doc.workday.organization_job_family": {"name": "organization_job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_job_family", "block_contents": "Captures the associations between different organizational entities and the job families they are linked to."}, "doc.workday.organization_location": {"name": "organization_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_location", "block_contents": "The location of the organization."}, "doc.workday.organization_name": {"name": "organization_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_name", "block_contents": "Name of the organization."}, "doc.workday.organization_owner_id": {"name": "organization_owner_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_owner_id", "block_contents": "Identifier for the owner of the organization."}, "doc.workday.organization_role": {"name": "organization_role", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role", "block_contents": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities."}, "doc.workday.organization_role_code": {"name": "organization_role_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_code", "block_contents": "Code assigned to the organization role for reference and categorization."}, "doc.workday.organization_role_id": {"name": "organization_role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_id", "block_contents": "The role id associated with the organization."}, "doc.workday.organization_role_worker": {"name": "organization_role_worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_worker", "block_contents": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill."}, "doc.workday.organization_sub_type": {"name": "organization_sub_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_sub_type", "block_contents": "Subtype or classification of the organization."}, "doc.workday.organization_type": {"name": "organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_type", "block_contents": "Type or category of the organization."}, "doc.workday.organization_worker_code": {"name": "organization_worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_worker_code", "block_contents": "The worker code associated with the organization."}, "doc.workday.original_hire_date": {"name": "original_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.original_hire_date", "block_contents": "The original date when the worker was hired."}, "doc.workday.paid_fte": {"name": "paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_fte", "block_contents": "The paid full-time equivalent (FTE) associated with the worker position."}, "doc.workday.paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_time_off_accrual_effect", "block_contents": "The effect of leave on paid time off accrual."}, "doc.workday.pay_group": {"name": "pay_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group", "block_contents": "The pay group associated with the worker position."}, "doc.workday.pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_currency", "block_contents": "Currency code used for the worker's pay group frequency."}, "doc.workday.pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_frequency", "block_contents": "Frequency of payment for the worker's pay group."}, "doc.workday.pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's pay group."}, "doc.workday.pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_base_pay", "block_contents": "Total base pay for the worker's pay group."}, "doc.workday.pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's pay group."}, "doc.workday.pay_rate": {"name": "pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate", "block_contents": "The pay rate associated with the worker position."}, "doc.workday.pay_rate_type": {"name": "pay_rate_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate_type", "block_contents": "The type of pay rate associated with the worker position."}, "doc.workday.pay_through_date": {"name": "pay_through_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_through_date", "block_contents": "The date through which the worker is paid."}, "doc.workday.payroll_effect": {"name": "payroll_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_effect", "block_contents": "The effect of leave on payroll."}, "doc.workday.payroll_entity": {"name": "payroll_entity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_entity", "block_contents": "The payroll entity associated with the worker position."}, "doc.workday.payroll_file_number": {"name": "payroll_file_number", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_file_number", "block_contents": "The file number associated with payroll for the worker position."}, "doc.workday.person_contact_email_address": {"name": "person_contact_email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address", "block_contents": "Represents the email addresses associated with a person in the Workday system."}, "doc.workday.person_contact_email_address_id": {"name": "person_contact_email_address_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address_id", "block_contents": "The identifier of the personal contact email address."}, "doc.workday.person_name": {"name": "person_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name", "block_contents": "Represents the name information for an individual in the Workday system."}, "doc.workday.person_name_type": {"name": "person_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name_type", "block_contents": "The type or category of the person name (e.g., legal name, preferred name)."}, "doc.workday.personal_info_system_id": {"name": "personal_info_system_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_info_system_id", "block_contents": "The system ID associated with the personal information of the individual."}, "doc.workday.personal_information": {"name": "personal_information", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information", "block_contents": "The personal information associated with each worker."}, "doc.workday.personal_information_ethnicity": {"name": "personal_information_ethnicity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_ethnicity", "block_contents": "Represents information about the ethnicity of an individual in the Workday system."}, "doc.workday.personal_information_id": {"name": "personal_information_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_id", "block_contents": "The identifier for each personal information record."}, "doc.workday.personal_information_type": {"name": "personal_information_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_type", "block_contents": "The type of personal information record."}, "doc.workday.personnel_file_agency": {"name": "personnel_file_agency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personnel_file_agency", "block_contents": "The agency associated with the personnel file."}, "doc.workday.political_affiliation": {"name": "political_affiliation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.political_affiliation", "block_contents": "The political affiliation of the individual."}, "doc.workday.position": {"name": "position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position", "block_contents": "Resource for understanding the details and attributes associated with each position."}, "doc.workday.position_code": {"name": "position_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_code", "block_contents": "Code associated with the position for reference and categorization."}, "doc.workday.position_days": {"name": "position_days", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_days", "block_contents": "The days the worker held positions at the company."}, "doc.workday.position_id": {"name": "position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_id", "block_contents": "Identifier for the specific position."}, "doc.workday.position_job_profile": {"name": "position_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile", "block_contents": "Captures the associations between specific positions and the job profiles they are linked to."}, "doc.workday.position_job_profile_name": {"name": "position_job_profile_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile_name", "block_contents": "Name associated with the job profile linked to the position."}, "doc.workday.position_organization": {"name": "position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization", "block_contents": "Captures the associations between specific positions and the organizations to which they belong."}, "doc.workday.position_organization_type": {"name": "position_organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization_type", "block_contents": "Type or category of the position within the organization."}, "doc.workday.position_time_type_code": {"name": "position_time_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_time_type_code", "block_contents": "Code indicating the time type associated with the position."}, "doc.workday.prefix_salutation": {"name": "prefix_salutation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_salutation", "block_contents": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.)."}, "doc.workday.prefix_title": {"name": "prefix_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title", "block_contents": "The prefix or title associated with the name (e.g., Professor)."}, "doc.workday.prefix_title_code": {"name": "prefix_title_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title_code", "block_contents": "The code associated with the prefix or title."}, "doc.workday.primary_compensation_basis": {"name": "primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis", "block_contents": "Primary basis of compensation for the position."}, "doc.workday.primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_amount_change", "block_contents": "Change in the amount of the primary compensation basis."}, "doc.workday.primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_percent_change", "block_contents": "Change in the percentage of the primary compensation basis."}, "doc.workday.primary_nationality": {"name": "primary_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_nationality", "block_contents": "The primary nationality of the individual."}, "doc.workday.primary_termination_category": {"name": "primary_termination_category", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_category", "block_contents": "The primary termination category for the worker."}, "doc.workday.primary_termination_reason": {"name": "primary_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_reason", "block_contents": "The primary termination reason for the worker."}, "doc.workday.private_title": {"name": "private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.private_title", "block_contents": "Private title associated with the job profile."}, "doc.workday.probation_end_date": {"name": "probation_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_end_date", "block_contents": "The date when the worker's probation ends."}, "doc.workday.probation_start_date": {"name": "probation_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_start_date", "block_contents": "The date when the worker's probation starts."}, "doc.workday.professional_suffix": {"name": "professional_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.professional_suffix", "block_contents": "The professional suffix, if applicable (e.g., Esq., CPA)."}, "doc.workday.public_job": {"name": "public_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.public_job", "block_contents": "Flag indicating whether the job is public."}, "doc.workday.rank": {"name": "rank", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rank", "block_contents": "The rank achieved by the individual during military service."}, "doc.workday.reason_reference_id": {"name": "reason_reference_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.reason_reference_id", "block_contents": "The reference ID for the termination reason."}, "doc.workday.referral_payment_plan": {"name": "referral_payment_plan", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.referral_payment_plan", "block_contents": "Referral payment plan associated with the job profile."}, "doc.workday.region_of_birth": {"name": "region_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth", "block_contents": "The region of birth of the individual."}, "doc.workday.region_of_birth_code": {"name": "region_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth_code", "block_contents": "The code of the region of birth."}, "doc.workday.regrettable_termination": {"name": "regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regrettable_termination", "block_contents": "Flag indicating whether the worker's termination is regrettable."}, "doc.workday.regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regular_paid_equivalent_hours", "block_contents": "The regular paid equivalent hours associated with the worker position."}, "doc.workday.rehire": {"name": "rehire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rehire", "block_contents": "Flag indicating whether the worker is eligible for rehire."}, "doc.workday.religion": {"name": "religion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religion", "block_contents": "The religion of the individual."}, "doc.workday.religious_suffix": {"name": "religious_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religious_suffix", "block_contents": "The religious suffix, if applicable."}, "doc.workday.resignation_date": {"name": "resignation_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.resignation_date", "block_contents": "The date when the worker resigned."}, "doc.workday.retired": {"name": "retired", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retired", "block_contents": "Flag indicating whether the worker is retired."}, "doc.workday.retirement_date": {"name": "retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_date", "block_contents": "The date when the worker retired."}, "doc.workday.retirement_eligibility_date": {"name": "retirement_eligibility_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_eligibility_date", "block_contents": "The date when the worker becomes eligible for retirement."}, "doc.workday.return_unknown": {"name": "return_unknown", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.return_unknown", "block_contents": "Flag indicating whether the worker's return status is unknown."}, "doc.workday.role_id": {"name": "role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.role_id", "block_contents": "Identifier for the specific role."}, "doc.workday.royal_suffix": {"name": "royal_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.royal_suffix", "block_contents": "The royal suffix, if applicable."}, "doc.workday.scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the worker position."}, "doc.workday.secondary_last_name": {"name": "secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.secondary_last_name", "block_contents": "Secondary last name or surname, if applicable."}, "doc.workday.seniority_date": {"name": "seniority_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.seniority_date", "block_contents": "The date when the worker's seniority is recorded."}, "doc.workday.service": {"name": "service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service", "block_contents": "The specific military service branch in which the individual served."}, "doc.workday.service_type": {"name": "service_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service_type", "block_contents": "The type or category of military service (e.g., active duty, reserve, etc.)."}, "doc.workday.severance_date": {"name": "severance_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.severance_date", "block_contents": "The date when the worker's severance is recorded."}, "doc.workday.single_parent_indicator": {"name": "single_parent_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.single_parent_indicator", "block_contents": "Indicator for a single parent."}, "doc.workday.social_benefit": {"name": "social_benefit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_benefit", "block_contents": "The social benefit associated with the individual."}, "doc.workday.social_security_disability_code": {"name": "social_security_disability_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_security_disability_code", "block_contents": "The code indicating social security disability."}, "doc.workday.social_suffix": {"name": "social_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix", "block_contents": "The social suffix, if applicable."}, "doc.workday.social_suffix_id": {"name": "social_suffix_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix_id", "block_contents": "The identifier for the social suffix."}, "doc.workday.specify_paid_fte": {"name": "specify_paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_paid_fte", "block_contents": "Flag indicating whether to specify paid FTE for the worker position."}, "doc.workday.specify_working_fte": {"name": "specify_working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_working_fte", "block_contents": "Flag indicating whether to specify working FTE for the worker position."}, "doc.workday.staffing_model": {"name": "staffing_model", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.staffing_model", "block_contents": "Staffing model associated with the organization"}, "doc.workday.start_date": {"name": "start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_date", "block_contents": "The start date of the worker position."}, "doc.workday.start_international_assignment_reason": {"name": "start_international_assignment_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_international_assignment_reason", "block_contents": "The reason for starting an international assignment associated with the worker position."}, "doc.workday.status": {"name": "status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status", "block_contents": "The status of the individual's military service (e.g., active, inactive, retired)."}, "doc.workday.status_begin_date": {"name": "status_begin_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status_begin_date", "block_contents": "The date on which the current military service status began."}, "doc.workday.stock_vesting_effect": {"name": "stock_vesting_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stock_vesting_effect", "block_contents": "The effect of leave on stock vesting."}, "doc.workday.stop_payment_date": {"name": "stop_payment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stop_payment_date", "block_contents": "The date when stop payment occurs."}, "doc.workday.summary": {"name": "summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.summary", "block_contents": "Summary or overview of the job profile."}, "doc.workday.superior_organization_id": {"name": "superior_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.superior_organization_id", "block_contents": "Identifier for the superior organization, if applicable."}, "doc.workday.supervisory_organization_id": {"name": "supervisory_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_organization_id", "block_contents": "Identifier for the supervisory organization associated with the position."}, "doc.workday.supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_availability_date", "block_contents": "Availability date for supervisory positions within the organization."}, "doc.workday.supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_earliest_hire_date", "block_contents": "Earliest hire date for supervisory positions within the organization."}, "doc.workday.supervisory_position_time_type": {"name": "supervisory_position_time_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_time_type", "block_contents": "Time type associated with supervisory positions."}, "doc.workday.supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_worker_type", "block_contents": "Worker type associated with supervisory positions."}, "doc.workday.terminated": {"name": "terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.terminated", "block_contents": "Flag indicating whether the worker is terminated."}, "doc.workday.termination_date": {"name": "termination_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_date", "block_contents": "The date when the worker is terminated."}, "doc.workday.termination_involuntary": {"name": "termination_involuntary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_involuntary", "block_contents": "Flag indicating whether the termination is involuntary."}, "doc.workday.termination_last_day_of_work": {"name": "termination_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_last_day_of_work", "block_contents": "The last day of work for the worker during termination."}, "doc.workday.tertiary_last_name": {"name": "tertiary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tertiary_last_name", "block_contents": "Tertiary last name or surname, if applicable."}, "doc.workday.time_off_service_date": {"name": "time_off_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.time_off_service_date", "block_contents": "The date when the worker's time-off service starts."}, "doc.workday.title": {"name": "title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.title", "block_contents": "Title associated with the job profile."}, "doc.workday.tobacco_use": {"name": "tobacco_use", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tobacco_use", "block_contents": "Flag indicating whether the individual uses tobacco."}, "doc.workday.top_level_organization_id": {"name": "top_level_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.top_level_organization_id", "block_contents": "Identifier for the top-level organization, if applicable."}, "doc.workday.union_code": {"name": "union_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_code", "block_contents": "Code associated with the union related to the job profile."}, "doc.workday.union_membership_requirement": {"name": "union_membership_requirement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_membership_requirement", "block_contents": "Flag indicating whether union membership is a requirement for the job profile."}, "doc.workday.universal_id": {"name": "universal_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.universal_id", "block_contents": "The universal ID associated with the worker."}, "doc.workday.user_id": {"name": "user_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.user_id", "block_contents": "The identifier for the user associated with the worker."}, "doc.workday.vesting_date": {"name": "vesting_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.vesting_date", "block_contents": "The date when the worker's vesting starts."}, "doc.workday.visibility": {"name": "visibility", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.visibility", "block_contents": "Visibility level of the organization."}, "doc.workday.week_of_confinement": {"name": "week_of_confinement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.week_of_confinement", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_hours_profile": {"name": "work_hours_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_hours_profile", "block_contents": "The work hours profile associated with the worker position."}, "doc.workday.work_related": {"name": "work_related", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_related", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_shift": {"name": "work_shift", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift", "block_contents": "The work shift associated with the worker position."}, "doc.workday.work_shift_required": {"name": "work_shift_required", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift_required", "block_contents": "Flag indicating whether a work shift is required."}, "doc.workday.work_space": {"name": "work_space", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_space", "block_contents": "The work space associated with the worker position."}, "doc.workday.work_study_award_source_code": {"name": "work_study_award_source_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_award_source_code", "block_contents": "Code associated with the source of work study awards."}, "doc.workday.work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_requirement_option_code", "block_contents": "Code associated with work study requirement options."}, "doc.workday.workday__employee_overview": {"name": "workday__employee_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__employee_overview", "block_contents": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees."}, "doc.workday.workday__job_overview": {"name": "workday__job_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__job_overview", "block_contents": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings."}, "doc.workday.workday__role_overview": {"name": "workday__role_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__role_overview", "block_contents": "Each record represents a role in an organization, enhanced with additional organizational details."}, "doc.workday.workday__organization_overview": {"name": "workday__organization_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__organization_overview", "block_contents": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures."}, "doc.workday.workday__position_overview": {"name": "workday__position_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__position_overview", "block_contents": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts."}, "doc.workday.worker": {"name": "worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker", "block_contents": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker."}, "doc.workday.worker_code": {"name": "worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_code", "block_contents": "The code associated with the worker."}, "doc.workday.worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_for_filled_position_id", "block_contents": "Identifier for the worker filling the position, if applicable."}, "doc.workday.worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_hours_profile_classification", "block_contents": "The classification of worker hours profile associated with the worker position."}, "doc.workday.worker_id": {"name": "worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_id", "block_contents": "Unique identifier for the worker."}, "doc.workday.worker_leave_status": {"name": "worker_leave_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_leave_status", "block_contents": "Represents the leave status of workers in the Workday system."}, "doc.workday.worker_levels": {"name": "worker_levels", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_levels", "block_contents": "The number of levels the worker has worked at."}, "doc.workday.worker_position": {"name": "worker_position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position", "block_contents": "Represents the positions held by workers in the Workday system"}, "doc.workday.worker_position_organization": {"name": "worker_position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_organization", "block_contents": "Ties together workers to the positions and organizations they hold in the Workday system."}, "doc.workday.worker_position_id": {"name": "worker_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_id", "block_contents": "Identifier for the worker associated with the position."}, "doc.workday.worker_positions": {"name": "worker_positions", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_positions", "block_contents": "The number of positions the worker has held"}, "doc.workday.worker_type_code": {"name": "worker_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_type_code", "block_contents": "Code indicating the type of worker associated with the position."}, "doc.workday.working_fte": {"name": "working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_fte", "block_contents": "The working full-time equivalent (FTE) associated with the worker position."}, "doc.workday.working_time_frequency": {"name": "working_time_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_frequency", "block_contents": "The frequency of working time associated with the worker position."}, "doc.workday.working_time_unit": {"name": "working_time_unit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_unit", "block_contents": "The unit of working time associated with the worker position."}, "doc.workday.working_time_value": {"name": "working_time_value", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_value", "block_contents": "The value of working time associated with the worker position."}, "doc.workday.date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_pay_group_assignment", "block_contents": "Date a group's pay is assigned to be processed."}, "doc.workday.primary_business_site": {"name": "primary_business_site", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_business_site", "block_contents": "Primary location a worker's business is situated."}, "doc.workday.used_in_change_organization_assignments": {"name": "used_in_change_organization_assignments", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.used_in_change_organization_assignments", "block_contents": "If a worker has opted to change these organization assignments."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {}, "parent_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.workday__job_overview": ["model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_group", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_profile"], "model.workday.workday__position_overview": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"], "model.workday.workday__organization_overview": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"], "model.workday.stg_workday__position": ["model.workday.stg_workday__position_base"], "model.workday.stg_workday__job_family_group": ["model.workday.stg_workday__job_family_group_base"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "model.workday.stg_workday__organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "model.workday.stg_workday__organization_role": ["model.workday.stg_workday__organization_role_base"], "model.workday.stg_workday__worker_position": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "model.workday.stg_workday__position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "model.workday.stg_workday__worker_position_organization": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.stg_workday__job_profile": ["model.workday.stg_workday__job_profile_base"], "model.workday.stg_workday__position_organization": ["model.workday.stg_workday__position_organization_base"], "model.workday.stg_workday__worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "model.workday.stg_workday__person_name": ["model.workday.stg_workday__person_name_base"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "model.workday.stg_workday__organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "model.workday.stg_workday__job_family": ["model.workday.stg_workday__job_family_base"], "model.workday.stg_workday__military_service": ["model.workday.stg_workday__military_service_base"], "model.workday.stg_workday__personal_information": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "model.workday.stg_workday__worker": ["model.workday.stg_workday__worker_base"], "model.workday.stg_workday__organization": ["model.workday.stg_workday__organization_base"], "model.workday.stg_workday__worker_position_history": ["source.workday.workday.worker_position_history"], "model.workday.stg_workday__worker_history": ["source.workday.workday.worker_history"], "model.workday.stg_workday__personal_information_history": ["source.workday.workday.personal_information_history"], "model.workday.stg_workday__worker_position_organization_history": ["source.workday.workday.worker_position_organization_history"], "model.workday.stg_workday__job_family_job_family_group_base": ["source.workday.workday.job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["source.workday.workday.personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["source.workday.workday.job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["source.workday.workday.worker_position_organization_history"], "model.workday.stg_workday__position_base": ["source.workday.workday.position"], "model.workday.stg_workday__person_contact_email_address_base": ["source.workday.workday.person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["source.workday.workday.organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["source.workday.workday.job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["source.workday.workday.position_organization"], "model.workday.stg_workday__organization_role_base": ["source.workday.workday.organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["source.workday.workday.worker_leave_status"], "model.workday.stg_workday__job_family_base": ["source.workday.workday.job_family"], "model.workday.stg_workday__job_profile_base": ["source.workday.workday.job_profile"], "model.workday.stg_workday__organization_base": ["source.workday.workday.organization"], "model.workday.stg_workday__organization_role_worker_base": ["source.workday.workday.organization_role_worker"], "model.workday.stg_workday__worker_base": ["source.workday.workday.worker_history"], "model.workday.stg_workday__position_job_profile_base": ["source.workday.workday.position_job_profile"], "model.workday.stg_workday__worker_position_base": ["source.workday.workday.worker_position_history"], "model.workday.stg_workday__person_name_base": ["source.workday.workday.person_name"], "model.workday.stg_workday__military_service_base": ["source.workday.workday.military_service"], "model.workday.stg_workday__personal_information_base": ["source.workday.workday.personal_information_history"], "model.workday.workday__monthly_summary": ["model.workday.workday__employee_daily_history"], "model.workday.workday__employee_daily_history": ["model.workday.int_workday__employee_history"], "model.workday.int_workday__worker_position_enriched": ["model.workday.stg_workday__worker_position"], "model.workday.int_workday__personal_details": ["model.workday.stg_workday__military_service", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__person_name", "model.workday.stg_workday__personal_information", "model.workday.stg_workday__personal_information_ethnicity"], "model.workday.int_workday__worker_details": ["model.workday.stg_workday__worker"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.int_workday__personal_details", "model.workday.int_workday__worker_details", "model.workday.int_workday__worker_position_enriched"], "model.workday.int_workday__employee_history": ["model.workday.stg_workday__personal_information_history", "model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history"], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": ["model.workday.workday__employee_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": ["model.workday.workday__job_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": ["model.workday.workday__job_overview"], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": ["model.workday.workday__position_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": ["model.workday.workday__position_overview"], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": ["model.workday.workday__organization_overview"], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": ["model.workday.workday__organization_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": ["model.workday.workday__organization_overview"], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": ["model.workday.stg_workday__job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": ["model.workday.stg_workday__job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": ["model.workday.stg_workday__job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": ["model.workday.stg_workday__job_family"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": ["model.workday.stg_workday__job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": ["model.workday.stg_workday__job_family_group"], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": ["model.workday.stg_workday__organization_role"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": ["model.workday.stg_workday__organization_role_worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": ["model.workday.stg_workday__organization_job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": ["model.workday.stg_workday__organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": ["model.workday.stg_workday__organization"], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": ["model.workday.stg_workday__position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": ["model.workday.stg_workday__position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": ["model.workday.stg_workday__position"], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": ["model.workday.stg_workday__position_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": ["model.workday.stg_workday__worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": ["model.workday.stg_workday__worker"], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": ["model.workday.stg_workday__personal_information"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": ["model.workday.stg_workday__personal_information"], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": ["model.workday.stg_workday__person_name"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": ["model.workday.stg_workday__military_service"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": ["model.workday.stg_workday__military_service"], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": ["model.workday.stg_workday__worker_position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": ["model.workday.stg_workday__worker_leave_status"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": ["model.workday.stg_workday__worker_position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": ["model.workday.stg_workday__personal_information_history"], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": ["model.workday.stg_workday__personal_information_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": ["model.workday.stg_workday__worker_history"], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": ["model.workday.stg_workday__worker_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": ["model.workday.stg_workday__worker_position_history"], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": ["model.workday.stg_workday__worker_position_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": ["model.workday.workday__monthly_summary"], "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": ["model.workday.workday__monthly_summary"], "source.workday.workday.job_profile": [], "source.workday.workday.job_family_job_profile": [], "source.workday.workday.job_family": [], "source.workday.workday.job_family_job_family_group": [], "source.workday.workday.job_family_group": [], "source.workday.workday.organization_role": [], "source.workday.workday.organization_role_worker": [], "source.workday.workday.organization_job_family": [], "source.workday.workday.organization": [], "source.workday.workday.position_organization": [], "source.workday.workday.position": [], "source.workday.workday.position_job_profile": [], "source.workday.workday.worker_history": [], "source.workday.workday.personal_information_history": [], "source.workday.workday.person_name": [], "source.workday.workday.personal_information_ethnicity": [], "source.workday.workday.military_service": [], "source.workday.workday.person_contact_email_address": [], "source.workday.workday.worker_position_history": [], "source.workday.workday.worker_leave_status": [], "source.workday.workday.worker_position_organization_history": []}, "child_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d", "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97"], "model.workday.workday__job_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857"], "model.workday.workday__position_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "test.workday.not_null_workday__position_overview_position_id.603beb3f22"], "model.workday.workday__organization_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412"], "model.workday.stg_workday__position": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e"], "model.workday.stg_workday__job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c"], "model.workday.stg_workday__organization_role_worker": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72"], "model.workday.stg_workday__organization_role": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f"], "model.workday.stg_workday__worker_position": ["model.workday.int_workday__worker_position_enriched", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755"], "model.workday.stg_workday__position_job_profile": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7"], "model.workday.stg_workday__worker_position_organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b"], "model.workday.stg_workday__job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa"], "model.workday.stg_workday__position_organization": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7"], "model.workday.stg_workday__worker_leave_status": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61"], "model.workday.stg_workday__person_name": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd"], "model.workday.stg_workday__organization_job_family": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e"], "model.workday.stg_workday__job_family": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f"], "model.workday.stg_workday__military_service": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38"], "model.workday.stg_workday__personal_information": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b"], "model.workday.stg_workday__worker": ["model.workday.int_workday__worker_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "test.workday.not_null_stg_workday__worker_worker_id.8dae310560"], "model.workday.stg_workday__organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7"], "model.workday.stg_workday__worker_position_history": ["model.workday.int_workday__employee_history", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b", "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879"], "model.workday.stg_workday__worker_history": ["model.workday.int_workday__employee_history", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df", "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72"], "model.workday.stg_workday__personal_information_history": ["model.workday.int_workday__employee_history", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c", "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc"], "model.workday.stg_workday__worker_position_organization_history": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888", "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398"], "model.workday.stg_workday__job_family_job_family_group_base": ["model.workday.stg_workday__job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["model.workday.stg_workday__personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["model.workday.stg_workday__job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["model.workday.stg_workday__worker_position_organization"], "model.workday.stg_workday__position_base": ["model.workday.stg_workday__position"], "model.workday.stg_workday__person_contact_email_address_base": ["model.workday.stg_workday__person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["model.workday.stg_workday__organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["model.workday.stg_workday__job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["model.workday.stg_workday__position_organization"], "model.workday.stg_workday__organization_role_base": ["model.workday.stg_workday__organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["model.workday.stg_workday__worker_leave_status"], "model.workday.stg_workday__job_family_base": ["model.workday.stg_workday__job_family"], "model.workday.stg_workday__job_profile_base": ["model.workday.stg_workday__job_profile"], "model.workday.stg_workday__organization_base": ["model.workday.stg_workday__organization"], "model.workday.stg_workday__organization_role_worker_base": ["model.workday.stg_workday__organization_role_worker"], "model.workday.stg_workday__worker_base": ["model.workday.stg_workday__worker"], "model.workday.stg_workday__position_job_profile_base": ["model.workday.stg_workday__position_job_profile"], "model.workday.stg_workday__worker_position_base": ["model.workday.stg_workday__worker_position"], "model.workday.stg_workday__person_name_base": ["model.workday.stg_workday__person_name"], "model.workday.stg_workday__military_service_base": ["model.workday.stg_workday__military_service"], "model.workday.stg_workday__personal_information_base": ["model.workday.stg_workday__personal_information"], "model.workday.workday__monthly_summary": ["test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab"], "model.workday.workday__employee_daily_history": ["model.workday.workday__monthly_summary"], "model.workday.int_workday__worker_position_enriched": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__personal_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.workday__employee_overview"], "model.workday.int_workday__employee_history": ["model.workday.workday__employee_daily_history"], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d": [], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": [], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": [], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": [], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": [], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": [], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": [], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": [], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": [], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": [], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": [], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": [], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": [], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": [], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": [], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": [], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": [], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": [], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": [], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": [], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": [], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": [], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": [], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": [], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": [], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": [], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": [], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": [], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": [], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": [], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": [], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": [], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": [], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": [], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": [], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c": [], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": [], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": [], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df": [], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": [], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": [], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": [], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b": [], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": [], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": [], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": [], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": [], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888": [], "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": [], "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": [], "source.workday.workday.job_profile": ["model.workday.stg_workday__job_profile_base"], "source.workday.workday.job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "source.workday.workday.job_family": ["model.workday.stg_workday__job_family_base"], "source.workday.workday.job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "source.workday.workday.job_family_group": ["model.workday.stg_workday__job_family_group_base"], "source.workday.workday.organization_role": ["model.workday.stg_workday__organization_role_base"], "source.workday.workday.organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "source.workday.workday.organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "source.workday.workday.organization": ["model.workday.stg_workday__organization_base"], "source.workday.workday.position_organization": ["model.workday.stg_workday__position_organization_base"], "source.workday.workday.position": ["model.workday.stg_workday__position_base"], "source.workday.workday.position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "source.workday.workday.worker_history": ["model.workday.stg_workday__worker_base", "model.workday.stg_workday__worker_history"], "source.workday.workday.personal_information_history": ["model.workday.stg_workday__personal_information_base", "model.workday.stg_workday__personal_information_history"], "source.workday.workday.person_name": ["model.workday.stg_workday__person_name_base"], "source.workday.workday.personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "source.workday.workday.military_service": ["model.workday.stg_workday__military_service_base"], "source.workday.workday.person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "source.workday.workday.worker_position_history": ["model.workday.stg_workday__worker_position_base", "model.workday.stg_workday__worker_position_history"], "source.workday.workday.worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "source.workday.workday.worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base", "model.workday.stg_workday__worker_position_organization_history"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v11.json", "dbt_version": "1.7.8", "generated_at": "2024-04-01T22:52:07.969130Z", "invocation_id": "8e65a20c-cb81-4843-9da9-8c7f4213e39a", "env": {}, "project_name": "workday_integration_tests", "project_id": "457920b1e5594993369a050db836d437", "user_id": "81581f81-d5af-4143-8fbf-c2f0001e4f56", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_job_family_group_data"], "alias": "workday_job_family_job_family_group_data", "checksum": {"name": "sha256", "checksum": "a4c9b0101811381ac698bec0ba8dd2474fa563f2d2dc6bdf1e072bd3f890313f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.0188851, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_history_data.csv", "original_file_path": "seeds/workday_personal_information_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "fqn": ["workday_integration_tests", "workday_personal_information_history_data"], "alias": "workday_personal_information_history_data", "checksum": {"name": "sha256", "checksum": "2810574ec93fc886e6f1faa097951c8d7c96336fbd1a03b75a22b5a7bb85d13a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.047761, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_ethnicity_data.csv", "original_file_path": "seeds/workday_personal_information_ethnicity_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "fqn": ["workday_integration_tests", "workday_personal_information_ethnicity_data"], "alias": "workday_personal_information_ethnicity_data", "checksum": {"name": "sha256", "checksum": "986222e9224bcca39693358ca9829277b4f6a2c56111ba9aa2db56734d128e9a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.050587, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_group_data"], "alias": "workday_job_family_group_data", "checksum": {"name": "sha256", "checksum": "394c43d528af65ce740ba8ebd24d6d14e6ea99f5d57abcdd2690070f408378f9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.052413, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_history_data.csv", "original_file_path": "seeds/workday_worker_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "fqn": ["workday_integration_tests", "workday_worker_history_data"], "alias": "workday_worker_history_data", "checksum": {"name": "sha256", "checksum": "b3b80c42d748789791fca4630504aafa22afd1dca315e0d63bc0f9f9fe33a68d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "annual_currency_summary_primary_compensation_basis": "float", "annual_currency_summary_total_base_pay": "float", "annual_currency_summary_total_salary_and_allowances": "float", "annual_summary_primary_compensation_basis": "float", "annual_summary_total_base_pay": "float", "annual_summary_total_salary_and_allowances": "float", "contract_pay_rate": "float", "days_unemployed": "float", "employee_compensation_primary_compensation_basis": "float", "employee_compensation_total_base_pay": "float", "employee_compensation_total_salary_and_allowances": "float", "hourly_frequency_primary_compensation_basis": "float", "hourly_frequency_total_base_pay": "float", "hourly_frequency_total_salary_and_allowances": "float", "months_continuous_prior_employment": "float", "pay_group_frequency_primary_compensation_basis": "float", "pay_group_frequency_total_base_pay": "float", "pay_group_frequency_total_salary_and_allowances": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "annual_currency_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "contract_pay_rate": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "days_unemployed": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "months_continuous_prior_employment": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712011819.0542521, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_leave_status_data.csv", "original_file_path": "seeds/workday_worker_leave_status_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "fqn": ["workday_integration_tests", "workday_worker_leave_status_data"], "alias": "workday_worker_leave_status_data", "checksum": {"name": "sha256", "checksum": "bec6fe9af70bc7bebcfebbd12d41d1674fa78fc88497783bf7be995f1290b901"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "age_of_dependent": "float", "leave_entitlement_override": "float", "leave_percentage": "float", "number_of_babies_adopted_children": "float", "number_of_child_dependents": "float", "number_of_previous_births": "float", "number_of_previous_maternity_leaves": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "age_of_dependent": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_entitlement_override": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_percentage": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_babies_adopted_children": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_child_dependents": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_births": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_maternity_leaves": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712011819.055881, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_organization_history_data.csv", "original_file_path": "seeds/workday_worker_position_organization_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_organization_history_data"], "alias": "workday_worker_position_organization_history_data", "checksum": {"name": "sha256", "checksum": "79d43cf1c2b3425d03d23b014705613022d55eb282108d972cbeb58bf55ed0d3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.057309, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_data.csv", "original_file_path": "seeds/workday_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_data", "fqn": ["workday_integration_tests", "workday_job_family_data"], "alias": "workday_job_family_data", "checksum": {"name": "sha256", "checksum": "727b3c01934259786bd85a1bed73ac70611363839a611bdea640bf9bd95cba2d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.059445, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_history_data.csv", "original_file_path": "seeds/workday_worker_position_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_history_data"], "alias": "workday_worker_position_history_data", "checksum": {"name": "sha256", "checksum": "434f6ed5606c6606bbbf41d1427584a275a825ae285f88c1b12d2c3d7da3c07d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "float", "business_site_summary_scheduled_weekly_hours": "float", "default_weekly_hours": "float", "start_date": "timestamp", "end_date": "timestamp"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "business_site_summary_scheduled_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "default_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "start_date": "timestamp", "end_date": "timestamp"}, "created_at": 1712011819.0620859, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_name_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_name_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_name_data.csv", "original_file_path": "seeds/workday_person_name_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_name_data", "fqn": ["workday_integration_tests", "workday_person_name_data"], "alias": "workday_person_name_data", "checksum": {"name": "sha256", "checksum": "104b5d938091b1587548c91aa46a0e5b38ebccec81cbc569993b8a971b116881"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.06398, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_data.csv", "original_file_path": "seeds/workday_organization_role_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "fqn": ["workday_integration_tests", "workday_organization_role_data"], "alias": "workday_organization_role_data", "checksum": {"name": "sha256", "checksum": "b3e1187179e8afc95fbf180efac810d5a8f4f57e118393c60fca2c2c7f09e024"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.065428, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_military_service_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_military_service_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_military_service_data.csv", "original_file_path": "seeds/workday_military_service_data.csv", "unique_id": "seed.workday_integration_tests.workday_military_service_data", "fqn": ["workday_integration_tests", "workday_military_service_data"], "alias": "workday_military_service_data", "checksum": {"name": "sha256", "checksum": "f3d25deafee7b4188b4bdfe815b40397bdd80cd135db866b9ddf2b3a0b346b07"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.067296, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_data.csv", "original_file_path": "seeds/workday_position_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_data", "fqn": ["workday_integration_tests", "workday_position_data"], "alias": "workday_position_data", "checksum": {"name": "sha256", "checksum": "f31ec8364b56eb931ab406b25be5cfc0301bba65908bc448aeb170ed79805894"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "primary_compensation_basis": "float", "primary_compensation_basis_amount_change": "float", "primary_compensation_basis_percent_change": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_amount_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_percent_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712011819.0687418, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_data.csv", "original_file_path": "seeds/workday_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_data", "fqn": ["workday_integration_tests", "workday_organization_data"], "alias": "workday_organization_data", "checksum": {"name": "sha256", "checksum": "e0ece91ba5a270a01be9bbe91ea46b49c9e5c3c56e7234b5a597c9d81f63b4cc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.071757, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_organization_data.csv", "original_file_path": "seeds/workday_position_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "fqn": ["workday_integration_tests", "workday_position_organization_data"], "alias": "workday_position_organization_data", "checksum": {"name": "sha256", "checksum": "c0cd526bcf4b91f1842484875ce4fe803d510862d4d4ddba72c6d1724c8e9ea8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.073389, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_profile_data.csv", "original_file_path": "seeds/workday_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_profile_data"], "alias": "workday_job_profile_data", "checksum": {"name": "sha256", "checksum": "677a184272cdd2e0d746d5616d33ad4ce394c74e759f73bf0e51f8dda5cc96e4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.07478, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_contact_email_address_data.csv", "original_file_path": "seeds/workday_person_contact_email_address_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "fqn": ["workday_integration_tests", "workday_person_contact_email_address_data"], "alias": "workday_person_contact_email_address_data", "checksum": {"name": "sha256", "checksum": "4641c91d789ed134081a55cf0aaafc5a61a7ea075904691a353389552038dbe9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.076436, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_job_family_data.csv", "original_file_path": "seeds/workday_organization_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "fqn": ["workday_integration_tests", "workday_organization_job_family_data"], "alias": "workday_organization_job_family_data", "checksum": {"name": "sha256", "checksum": "2db2016b7eea202409836faff94ba2f168ce13dfd9e00ee1d1591eb85315cd47"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.077794, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_profile_data.csv", "original_file_path": "seeds/workday_job_family_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_family_job_profile_data"], "alias": "workday_job_family_job_profile_data", "checksum": {"name": "sha256", "checksum": "bc99975db9382af8f66fd46976db4cca2a987b1e9de24d17ceeb1ebf6e5ecb68"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.080071, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_job_profile_data.csv", "original_file_path": "seeds/workday_position_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "fqn": ["workday_integration_tests", "workday_position_job_profile_data"], "alias": "workday_position_job_profile_data", "checksum": {"name": "sha256", "checksum": "e5d675b82b521d6856d8f516209642745a595a31d88d147f6561bcbc970433b3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.0826461, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_worker_data.csv", "original_file_path": "seeds/workday_organization_role_worker_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "fqn": ["workday_integration_tests", "workday_organization_role_worker_data"], "alias": "workday_organization_role_worker_data", "checksum": {"name": "sha256", "checksum": "e24079f7ed64c407174d546132b71c69a9b1eaa9951b5a91772a3da7b3ff95f8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.0841558, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "model.workday.workday__employee_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "resource_type": "model", "package_name": "workday", "path": "workday__employee_overview.sql", "original_file_path": "models/workday__employee_overview.sql", "unique_id": "model.workday.workday__employee_overview", "fqn": ["workday", "workday__employee_overview"], "alias": "workday__employee_overview", "checksum": {"name": "sha256", "checksum": "b6fe9afa14aa393b3c40d1a669d182f20e556adacaa1ec46b05ad800bd4141a7"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees.", "columns": {"employee_id": {"name": "employee_id", "description": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_user_active": {"name": "is_user_active", "description": "Is the user currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed": {"name": "is_employed", "description": "Is the worker currently employed?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "departure_date": {"name": "departure_date", "description": "The departure date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_of_employment": {"name": "days_of_employment", "description": "Number of days employed by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Has the worker been regrettably terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_codes": {"name": "ethnicity_codes", "description": "String aggregation of all ethnicity codes associated with an individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The military status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_employed": {"name": "days_employed", "description": "The number of days the employee held their position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_one_year": {"name": "is_employed_one_year", "description": "Tracks whether a worker was employed at least one year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_five_years": {"name": "is_employed_five_years", "description": "Tracks whether a worker was employed at least five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_ten_years": {"name": "is_employed_ten_years", "description": "Tracks whether a worker was employed at least ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_twenty_years": {"name": "is_employed_twenty_years", "description": "Tracks whether a worker was employed at least twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_thirty_years": {"name": "is_employed_thirty_years", "description": "Tracks whether a worker was employed at least thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_one_year": {"name": "is_current_employee_one_year", "description": "Tracks whether a worker is active for more than a year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_five_years": {"name": "is_current_employee_five_years", "description": "Tracks whether a worker is active for more than five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "description": "Tracks whether a worker is active for more than ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "description": "Tracks whether a worker is active for more than twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "description": "Tracks whether a worker is active for more than thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712011820.088439, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"", "raw_code": "with employee_surrogate_key as (\n \n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'source_relation', 'position_id', 'position_start_date']) }} as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from {{ ref('int_workday__worker_employee_enhanced') }} \n)\n\nselect * \nfrom employee_surrogate_key", "language": "sql", "refs": [{"name": "int_workday__worker_employee_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.int_workday__worker_employee_enhanced"]}, "compiled_path": "target/compiled/workday/models/workday__employee_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n), employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from __dbt__cte__int_workday__worker_employee_enhanced \n)\n\nselect * \nfrom employee_surrogate_key", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_details", "sql": " __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n)"}, {"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__personal_details", "sql": " __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n)"}, {"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_position_enriched", "sql": " __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n)"}, {"id": "model.workday.int_workday__worker_employee_enhanced", "sql": " __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__job_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "resource_type": "model", "package_name": "workday", "path": "workday__job_overview.sql", "original_file_path": "models/workday__job_overview.sql", "unique_id": "model.workday.workday__job_overview", "fqn": ["workday", "workday__job_overview"], "alias": "workday__job_overview", "checksum": {"name": "sha256", "checksum": "b50072f5be5632d10a64a1e777aa62ae6f2283f22244bd033fea5fc20ce66165"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "The private title associated with the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "The summary of the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_codes": {"name": "job_family_codes", "description": "String array of all job family codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summaries": {"name": "job_family_summaries", "description": "String array of all job family summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_codes": {"name": "job_family_group_codes", "description": "String array of all job family group codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summaries": {"name": "job_family_group_summaries", "description": "String array of all job family group summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712011820.090158, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"", "raw_code": "with job_profile_data as (\n\n select * \n from {{ ref('stg_workday__job_profile') }}\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_profile') }}\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from {{ ref('stg_workday__job_family') }}\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_family_group') }}\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from {{ ref('stg_workday__job_family_group') }}\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_code', \"', '\" ) }} as job_family_codes,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_summary', \"', '\" ) }} as job_family_summaries, \n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_code', \"', '\" ) }} as job_family_group_codes,\n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_summary', \"', '\" ) }} as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom job_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}, {"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg", "macro.dbt_utils.group_by"], "nodes": ["model.workday.stg_workday__job_profile", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/workday__job_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), job_profile_data as (\n\n select * \n from __dbt__cte__stg_workday__job_profile\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_profile\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from __dbt__cte__stg_workday__job_family\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_family_group\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from __dbt__cte__stg_workday__job_family_group\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__position_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "resource_type": "model", "package_name": "workday", "path": "workday__position_overview.sql", "original_file_path": "models/workday__position_overview.sql", "unique_id": "model.workday.workday__position_overview", "fqn": ["workday", "workday__position_overview"], "alias": "workday__position_overview", "checksum": {"name": "sha256", "checksum": "567db8a61cd72c8faec1aac1963cbf05b776d0fe170a7f8c0ae8ea3d076464d3"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts.", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712011820.092854, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"", "raw_code": "with position_data as (\n\n select *\n from {{ ref('stg_workday__position') }}\n),\n\nposition_job_profile_data as (\n\n select *\n from {{ ref('stg_workday__position_job_profile') }}\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}, {"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/workday__position_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), position_data as (\n\n select *\n from __dbt__cte__stg_workday__position\n),\n\nposition_job_profile_data as (\n\n select *\n from __dbt__cte__stg_workday__position_job_profile\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__organization_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "resource_type": "model", "package_name": "workday", "path": "workday__organization_overview.sql", "original_file_path": "models/workday__organization_overview.sql", "unique_id": "model.workday.workday__organization_overview", "fqn": ["workday", "workday__organization_overview"], "alias": "workday__organization_overview", "checksum": {"name": "sha256", "checksum": "0df19685be8a2ffee5d5e16069cbc9771cc639372004929a73f500f9d7c59798"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712011820.095381, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"", "raw_code": "with organization_data as (\n\n select * \n from {{ ref('stg_workday__organization') }}\n),\n\norganization_role_data as (\n\n select * \n from {{ ref('stg_workday__organization_role') }}\n),\n\nworker_position_organization as (\n\n select *\n from {{ ref('stg_workday__worker_position_organization') }}\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}, {"name": "stg_workday__organization_role", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/workday__organization_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), organization_data as (\n\n select * \n from __dbt__cte__stg_workday__organization\n),\n\norganization_role_data as (\n\n select * \n from __dbt__cte__stg_workday__organization_role\n),\n\nworker_position_organization as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_organization\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position.sql", "original_file_path": "models/staging/stg_workday__position.sql", "unique_id": "model.workday.stg_workday__position", "fqn": ["workday", "staging", "stg_workday__position"], "alias": "stg_workday__position", "checksum": {"name": "sha256", "checksum": "a8eea235110df116f941d206b25f965ace56ec776662153af05d70a2bdf1cd4b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_academic_tenure_eligible": {"name": "is_academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.2733161, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_base')),\n staging_columns=get_position_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_base", "package": null, "version": null}, {"name": "stg_workday__position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_group"], "alias": "stg_workday__job_family_group", "checksum": {"name": "sha256", "checksum": "91495541dd20c1e46fd9fc7074605bd8d766196513173eb2e6d6d2abd779474a"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summary": {"name": "job_family_group_summary", "description": "The summary of the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.2688158, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_group_base')),\n staging_columns=get_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_profile.sql", "original_file_path": "models/staging/stg_workday__job_family_job_profile.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile", "fqn": ["workday", "staging", "stg_workday__job_family_job_profile"], "alias": "stg_workday__job_family_job_profile", "checksum": {"name": "sha256", "checksum": "22f926dc89704581204ef1db5906e7fc184c404d53dc5141b47056de357d6066"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.267395, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_profile_base')),\n staging_columns=get_job_family_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role_worker.sql", "original_file_path": "models/staging/stg_workday__organization_role_worker.sql", "unique_id": "model.workday.stg_workday__organization_role_worker", "fqn": ["workday", "staging", "stg_workday__organization_role_worker"], "alias": "stg_workday__organization_role_worker", "checksum": {"name": "sha256", "checksum": "6cbf3f20ac378d061a6c9034bd75c08e7cf7079ac12c8b167c31e6e1c0e54fa6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_worker_code": {"name": "organization_worker_code", "description": "The worker code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.26965, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_worker_base')),\n staging_columns=get_organization_role_worker_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_worker_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role_worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role.sql", "original_file_path": "models/staging/stg_workday__organization_role.sql", "unique_id": "model.workday.stg_workday__organization_role", "fqn": ["workday", "staging", "stg_workday__organization_role"], "alias": "stg_workday__organization_role", "checksum": {"name": "sha256", "checksum": "d20118b8c8234cda8e96b2df978fdce2aa46bbdb356ebac5b29680663d105e05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.269161, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_base')),\n staging_columns=get_organization_role_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position.sql", "original_file_path": "models/staging/stg_workday__worker_position.sql", "unique_id": "model.workday.stg_workday__worker_position", "fqn": ["workday", "staging", "stg_workday__worker_position"], "alias": "stg_workday__worker_position", "checksum": {"name": "sha256", "checksum": "f812d4b0a33146284f402362816bc05ca7a5e85fa228207ea0df356396906025"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the positions held by workers in the Workday system", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.3256562, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_base')),\n staging_columns=get_worker_position_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_contact_email_address.sql", "original_file_path": "models/staging/stg_workday__person_contact_email_address.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address", "fqn": ["workday", "staging", "stg_workday__person_contact_email_address"], "alias": "stg_workday__person_contact_email_address", "checksum": {"name": "sha256", "checksum": "fc93cd7747b3087ad994ab34f0feec9a8293e02f719a8ddb64bf652d786f50e5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_contact_email_address_id": {"name": "person_contact_email_address_id", "description": "The identifier of the personal contact email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.280951, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_contact_email_address_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_contact_email_address_base')),\n staging_columns=get_person_contact_email_address_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_contact_email_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_contact_email_address_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_contact_email_address.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_job_profile.sql", "original_file_path": "models/staging/stg_workday__position_job_profile.sql", "unique_id": "model.workday.stg_workday__position_job_profile", "fqn": ["workday", "staging", "stg_workday__position_job_profile"], "alias": "stg_workday__position_job_profile", "checksum": {"name": "sha256", "checksum": "1bd56f05d8c66dff4d5741a2ca3963cd4859341229686f1e9155289aa86ca3f3"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_job_profile_name": {"name": "position_job_profile_name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.2738612, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_job_profile_base')),\n staging_columns=get_position_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__position_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position_organization.sql", "original_file_path": "models/staging/stg_workday__worker_position_organization.sql", "unique_id": "model.workday.stg_workday__worker_position_organization", "fqn": ["workday", "staging", "stg_workday__worker_position_organization"], "alias": "stg_workday__worker_position_organization", "checksum": {"name": "sha256", "checksum": "c06c632d0c5bc211074ad78e1d36ea19e68ad03423068316bd207e3978472684"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.329005, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_organization_base')),\n staging_columns=get_worker_position_organization_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_profile.sql", "original_file_path": "models/staging/stg_workday__job_profile.sql", "unique_id": "model.workday.stg_workday__job_profile", "fqn": ["workday", "staging", "stg_workday__job_profile"], "alias": "stg_workday__job_profile", "checksum": {"name": "sha256", "checksum": "c58fefde4e2bab4dfcc7d23f270ba41e4b3a785de9c0f221854b44ce088753d6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_job_code_in_name": {"name": "is_include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_public_job": {"name": "is_public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.267055, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_profile_base')),\n staging_columns=get_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_organization.sql", "original_file_path": "models/staging/stg_workday__position_organization.sql", "unique_id": "model.workday.stg_workday__position_organization", "fqn": ["workday", "staging", "stg_workday__position_organization"], "alias": "stg_workday__position_organization", "checksum": {"name": "sha256", "checksum": "3e066e026cb6c5a57a3780d60185e331275a40666ec842bd51a9f5214c8106f0"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.272376, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_organization_base')),\n staging_columns=get_position_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_organization_base", "package": null, "version": null}, {"name": "stg_workday__position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_leave_status.sql", "original_file_path": "models/staging/stg_workday__worker_leave_status.sql", "unique_id": "model.workday.stg_workday__worker_leave_status", "fqn": ["workday", "staging", "stg_workday__worker_leave_status"], "alias": "stg_workday__worker_leave_status", "checksum": {"name": "sha256", "checksum": "7a780769764a426e346115891309d38326b383297d43976f5b368feefe555e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the leave status of workers in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_benefits_effect": {"name": "is_benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_caesarean_section_birth": {"name": "is_caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_continuous_service_accrual_effect": {"name": "is_continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_multiple_child_indicator": {"name": "is_multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_on_leave": {"name": "is_on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_paid_time_off_accrual_effect": {"name": "is_paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_payroll_effect": {"name": "is_payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_single_parent_indicator": {"name": "is_single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_stock_vesting_effect": {"name": "is_stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_related": {"name": "is_work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.3285, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_leave_status_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_leave_status_base')),\n staging_columns=get_worker_leave_status_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}, {"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_leave_status_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__worker_leave_status_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_leave_status.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_name.sql", "original_file_path": "models/staging/stg_workday__person_name.sql", "unique_id": "model.workday.stg_workday__person_name", "fqn": ["workday", "staging", "stg_workday__person_name"], "alias": "stg_workday__person_name", "checksum": {"name": "sha256", "checksum": "da74b8517c3659e32fa4600075b2c78fd9edf3b9d67b062a39aceeb7007a8106"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the name information for an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_name_type": {"name": "person_name_type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.279109, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_name_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_name_base')),\n staging_columns=get_person_name_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_name_base", "package": null, "version": null}, {"name": "stg_workday__person_name_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_name_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_name_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_name.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information_ethnicity.sql", "original_file_path": "models/staging/stg_workday__personal_information_ethnicity.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity", "fqn": ["workday", "staging", "stg_workday__personal_information_ethnicity"], "alias": "stg_workday__personal_information_ethnicity", "checksum": {"name": "sha256", "checksum": "1cddb347cc063152fdf7519ab20008979c18819cf57eda40f40b5c0ae4df795c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.2796319, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_ethnicity_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_ethnicity_base')),\n staging_columns=get_personal_information_ethnicity_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_ethnicity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information_ethnicity.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_job_family.sql", "original_file_path": "models/staging/stg_workday__organization_job_family.sql", "unique_id": "model.workday.stg_workday__organization_job_family", "fqn": ["workday", "staging", "stg_workday__organization_job_family"], "alias": "stg_workday__organization_job_family", "checksum": {"name": "sha256", "checksum": "25a30264c730bb3d4ed427d08d7262415aa13c72bda44f292aef305dabadb4dc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.270178, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_job_family_base')),\n staging_columns=get_organization_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family_base", "package": null, "version": null}, {"name": "stg_workday__organization_job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family.sql", "original_file_path": "models/staging/stg_workday__job_family.sql", "unique_id": "model.workday.stg_workday__job_family", "fqn": ["workday", "staging", "stg_workday__job_family"], "alias": "stg_workday__job_family", "checksum": {"name": "sha256", "checksum": "2b55aade2b7c5f3aaa66b8689637aecadf3960de67f0df66ecd9d511ec3f4a2c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summary": {"name": "job_family_summary", "description": "The summary of the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.2679622, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_base')),\n staging_columns=get_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_base", "package": null, "version": null}, {"name": "stg_workday__job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__military_service.sql", "original_file_path": "models/staging/stg_workday__military_service.sql", "unique_id": "model.workday.stg_workday__military_service", "fqn": ["workday", "staging", "stg_workday__military_service"], "alias": "stg_workday__military_service", "checksum": {"name": "sha256", "checksum": "2723e93ad3a6b887aa7d9b8c5d97bee2714a4b0d8ff0c80decb8be429e77b709"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about an individual's military service in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.2802198, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__military_service_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__military_service_base')),\n staging_columns=get_military_service_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__military_service_base", "package": null, "version": null}, {"name": "stg_workday__military_service_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_military_service_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__military_service_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__military_service.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information.sql", "original_file_path": "models/staging/stg_workday__personal_information.sql", "unique_id": "model.workday.stg_workday__personal_information", "fqn": ["workday", "staging", "stg_workday__personal_information"], "alias": "stg_workday__personal_information", "checksum": {"name": "sha256", "checksum": "99c2547b9cba3b9798c54da22173f0f4e2d0db3f9623673fc37f0c6f081646bd"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "The personal information associated with each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.277739, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_base')),\n staging_columns=get_personal_information_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__personal_information_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_job_family_group"], "alias": "stg_workday__job_family_job_family_group", "checksum": {"name": "sha256", "checksum": "6fd4740d69f85753d0bf54a02768c8d9b8887e6e58481511bb3067f6dbe9b7eb"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.268299, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_family_group_base')),\n staging_columns=get_job_family_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker.sql", "original_file_path": "models/staging/stg_workday__worker.sql", "unique_id": "model.workday.stg_workday__worker", "fqn": ["workday", "staging", "stg_workday__worker"], "alias": "stg_workday__worker", "checksum": {"name": "sha256", "checksum": "eabb44e7218212b2cfa0ed153715acd2cd920d91f48a20884f237d3307a8d88d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.276544, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_base')),\n staging_columns=get_worker_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization.sql", "original_file_path": "models/staging/stg_workday__organization.sql", "unique_id": "model.workday.stg_workday__organization", "fqn": ["workday", "staging", "stg_workday__organization"], "alias": "stg_workday__organization", "checksum": {"name": "sha256", "checksum": "ddc0897b633fd79f01412ef8b78788ca8168409bbdd6a076e7ae77eae46e5b4c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Identifier for the organization.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_description": {"name": "organization_description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_manager_in_name": {"name": "is_include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_organization_code_in_name": {"name": "is_include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_location": {"name": "organization_location", "description": "The location of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.272023, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_base')),\n staging_columns=get_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_base", "package": null, "version": null}, {"name": "stg_workday__organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_family_group_base"], "alias": "stg_workday__job_family_job_family_group_base", "checksum": {"name": "sha256", "checksum": "e2032528b0352adb9b447a62934a158666a681a00bfd8821c454342850710217"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.460848, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_family_group"], ["workday", "job_family_job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_ethnicity_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_ethnicity_base"], "alias": "stg_workday__personal_information_ethnicity_base", "checksum": {"name": "sha256", "checksum": "83d4f52d542558f35ac9c4bca924abf5d50bd6d060b57de257d9b3a8011375bc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.4774249, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_ethnicity', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_ethnicity',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_ethnicity"], ["workday", "personal_information_ethnicity"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_group_base"], "alias": "stg_workday__job_family_group_base", "checksum": {"name": "sha256", "checksum": "bea26ff96c14d3e08fd64f97fbc8fbefc3cc6cc6726f7eb27132f966e3ace85d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.481528, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_group"], ["workday", "job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_organization_base.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_organization_base"], "alias": "stg_workday__worker_position_organization_base", "checksum": {"name": "sha256", "checksum": "42729b33f262620d892e95707fef1e711b95c66a4df3fb612d1eb73d024a7e38"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.485429, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_organization_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_organization_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_organization_history"], ["workday", "worker_position_organization_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_base.sql", "original_file_path": "models/staging/base/stg_workday__position_base.sql", "unique_id": "model.workday.stg_workday__position_base", "fqn": ["workday", "staging", "base", "stg_workday__position_base"], "alias": "stg_workday__position_base", "checksum": {"name": "sha256", "checksum": "4ccfff02ed1a6e0e94868985aa08ad5eaac5c78e608ae24eb36ebeb3da3b1443"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.489259, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position"], ["workday", "position"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_contact_email_address_base.sql", "original_file_path": "models/staging/base/stg_workday__person_contact_email_address_base.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "fqn": ["workday", "staging", "base", "stg_workday__person_contact_email_address_base"], "alias": "stg_workday__person_contact_email_address_base", "checksum": {"name": "sha256", "checksum": "2bfb4c913c999795db2691f4b3bc115fbae9bbad6e4eb59ad305bc057e7e0e5b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.49381, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_contact_email_address', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_contact_email_address',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_contact_email_address"], ["workday", "person_contact_email_address"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_contact_email_address_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_job_family_base.sql", "unique_id": "model.workday.stg_workday__organization_job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_job_family_base"], "alias": "stg_workday__organization_job_family_base", "checksum": {"name": "sha256", "checksum": "8a999ebe4367e8c4e6994124834c09f9d1eeb411d6e00353c9995bc0900ee1ea"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.49744, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_job_family"], ["workday", "organization_job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_profile_base"], "alias": "stg_workday__job_family_job_profile_base", "checksum": {"name": "sha256", "checksum": "61149fbd447008acfc11c0cce919a3dcdfc878b1e43f1a904bed99cd0e12e934"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.500743, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_profile"], ["workday", "job_family_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__position_organization_base.sql", "unique_id": "model.workday.stg_workday__position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__position_organization_base"], "alias": "stg_workday__position_organization_base", "checksum": {"name": "sha256", "checksum": "e9e1144f5ba976bda0612b7899e5c418c8f2880a69bb98c7bd61826b438cf705"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.5047061, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_organization"], ["workday", "position_organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_base.sql", "unique_id": "model.workday.stg_workday__organization_role_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_base"], "alias": "stg_workday__organization_role_base", "checksum": {"name": "sha256", "checksum": "7da1ae4c5e420c6a429f6082802496377da44449aefb62728c64e31c64923832"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.5089831, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role"], ["workday", "organization_role"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_leave_status_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_leave_status_base.sql", "unique_id": "model.workday.stg_workday__worker_leave_status_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_leave_status_base"], "alias": "stg_workday__worker_leave_status_base", "checksum": {"name": "sha256", "checksum": "25de6c8505c09d17787931dd2ad7fb497ee4fcc6ad9c076417ac327d38b2cee5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.514085, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_leave_status', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_leave_status',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_leave_status"], ["workday", "worker_leave_status"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_leave_status_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_base.sql", "unique_id": "model.workday.stg_workday__job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_base"], "alias": "stg_workday__job_family_base", "checksum": {"name": "sha256", "checksum": "a6d51501e8a9f185408e2c8c963b04ed89e1f87260216f3e994f324119a0f804"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.5177112, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family"], ["workday", "job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_profile_base"], "alias": "stg_workday__job_profile_base", "checksum": {"name": "sha256", "checksum": "ddeb40a89a0b03a8748dae6a224bade7705498441a9f295682bd24ef643fc563"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.521646, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_profile"], ["workday", "job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_base.sql", "unique_id": "model.workday.stg_workday__organization_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_base"], "alias": "stg_workday__organization_base", "checksum": {"name": "sha256", "checksum": "ee0cb72047f2c7760251317c86318a9f46c5a8be9113fcb7d81b269e1b4b4e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.525996, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization"], ["workday", "organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_worker_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_worker_base.sql", "unique_id": "model.workday.stg_workday__organization_role_worker_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_worker_base"], "alias": "stg_workday__organization_role_worker_base", "checksum": {"name": "sha256", "checksum": "74e858892ef8851aec9a06e4e05dbca91361b09939c257c69db38356d59acf05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.5300171, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role_worker', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role_worker',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role_worker"], ["workday", "organization_role_worker"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_base.sql", "unique_id": "model.workday.stg_workday__worker_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_base"], "alias": "stg_workday__worker_base", "checksum": {"name": "sha256", "checksum": "5f0f82a654f8f22d1e129cebdf87aa064125f5deeeca51c50d53f249dd0d96e1"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.535232, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_history"], ["workday", "worker_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__position_job_profile_base.sql", "unique_id": "model.workday.stg_workday__position_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__position_job_profile_base"], "alias": "stg_workday__position_job_profile_base", "checksum": {"name": "sha256", "checksum": "7a2843eac9ceff71866501a413274121b15a2e8d1337b83962e0045cb1b403c5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.5393379, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_job_profile"], ["workday", "position_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_base.sql", "unique_id": "model.workday.stg_workday__worker_position_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_base"], "alias": "stg_workday__worker_position_base", "checksum": {"name": "sha256", "checksum": "8a8431d94738ad8c342bba23f86ace1e658cf63ac9254481bf8463622129514e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.5437062, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_history"], ["workday", "worker_position_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_name_base.sql", "original_file_path": "models/staging/base/stg_workday__person_name_base.sql", "unique_id": "model.workday.stg_workday__person_name_base", "fqn": ["workday", "staging", "base", "stg_workday__person_name_base"], "alias": "stg_workday__person_name_base", "checksum": {"name": "sha256", "checksum": "85c57cfa1fe54db08605b75e32060e1bd488a4f71eae27b2cb8a2805ac4ac655"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.54806, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_name', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_name',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_name"], ["workday", "person_name"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_name"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_name_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__military_service_base.sql", "original_file_path": "models/staging/base/stg_workday__military_service_base.sql", "unique_id": "model.workday.stg_workday__military_service_base", "fqn": ["workday", "staging", "base", "stg_workday__military_service_base"], "alias": "stg_workday__military_service_base", "checksum": {"name": "sha256", "checksum": "9478cb8eea5671a0261ed280e3723a9ad826ee22b77b9dfe709be5fc85fd295e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.552546, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='military_service', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='military_service',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "military_service"], ["workday", "military_service"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.military_service"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__military_service_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_base.sql", "unique_id": "model.workday.stg_workday__personal_information_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_base"], "alias": "stg_workday__personal_information_base", "checksum": {"name": "sha256", "checksum": "0767af75bcb79f32dd324d8bf4e57ffc0d0014bda0609b426df78cdc17566e96"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.557956, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_history"], ["workday", "personal_information_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__monthly_summary": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__monthly_summary.sql", "original_file_path": "models/workday_history/workday__monthly_summary.sql", "unique_id": "model.workday.workday__monthly_summary", "fqn": ["workday", "workday_history", "workday__monthly_summary"], "alias": "workday__monthly_summary", "checksum": {"name": "sha256", "checksum": "10a75175687b647eb539d873e0fae6f27ed89c819915cf14296b7cb1c0e37ae5"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a month, aggregated from the last day of each month of the employee daily history. This captures monthly metrics of workers, such as average salary, churned and retained employees, etc.", "columns": {"metrics_month": {"name": "metrics_month", "description": "Month in which metrics are being aggregated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_employees": {"name": "new_employees", "description": "New employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_employees": {"name": "churned_employees", "description": "Churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_voluntary_employees": {"name": "churned_voluntary_employees", "description": "Voluntary churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_involuntary_employees": {"name": "churned_involuntary_employees", "description": "Involuntary churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_workers": {"name": "churned_workers", "description": "Churned workers that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_employees": {"name": "active_employees", "description": "Employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_male_employees": {"name": "active_male_employees", "description": "Male employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_female_employees": {"name": "active_female_employees", "description": "Female employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_workers": {"name": "active_workers", "description": "Workers considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_known_gender_employees": {"name": "active_known_gender_employees", "description": "Known gender employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_primary_compensation": {"name": "avg_employee_primary_compensation", "description": "Average primary compensation salary of employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_base_pay": {"name": "avg_employee_base_pay", "description": "Average base pay of the employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_salary_and_allowances": {"name": "avg_employee_salary_and_allowances", "description": "Average salary and allowances of the employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_days_as_employee": {"name": "avg_days_as_employee", "description": "Average days employee has been active month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_primary_compensation": {"name": "avg_worker_primary_compensation", "description": "Average primary compensation for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_base_pay": {"name": "avg_worker_base_pay", "description": "Average base pay for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_salary_and_allowances": {"name": "avg_worker_salary_and_allowances", "description": "Average salary plus allowances for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_days_as_worker": {"name": "avg_days_as_worker", "description": "Average days as a worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712011820.435772, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }} \n\nwith row_month_partition as (\n\n select *, \n cast({{ dbt.date_trunc(\"month\", \"date_day\") }} as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from {{ ref('workday__employee_daily_history') }}\n),\n\nend_of_month_history as (\n \n select *,\n {{ dbt.current_timestamp() }} as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then {{ dbt.datediff(\"hire_date\", \"current_date\", \"day\") }}\n else {{ dbt.datediff(\"hire_date\", \"termination_date\", \"day\") }}\n end as days_as_worker,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when cast(date_month as date) = cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date) then 1 else 0 end) as new_employees,\n sum(case when cast(date_month as date) = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) then 1 else 0 end) as churned_employees,\n sum(case when (cast(date_month as date) = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (cast(date_month as date) = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when cast(date_month as date) = cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date)\n and (cast(date_month as date) <= cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date)\n and cast(date_month as date) <= cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__monthly_summary.sql", "compiled": true, "compiled_code": " \n\nwith row_month_partition as (\n\n select *, \n cast(date_trunc('month', date_day) as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n),\n\nend_of_month_history as (\n \n select *,\n now() as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when cast(date_month as date) = cast(date_trunc('month', position_effective_date) as date) then 1 else 0 end) as new_employees,\n sum(case when cast(date_month as date) = cast(date_trunc('month', termination_date) as date) then 1 else 0 end) as churned_employees,\n sum(case when (cast(date_month as date) = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (cast(date_month as date) = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when cast(date_month as date) = cast(date_trunc('month', end_employment_date) as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and (cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__employee_daily_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__employee_daily_history.sql", "original_file_path": "models/workday_history/workday__employee_daily_history.sql", "unique_id": "model.workday.workday__employee_daily_history", "fqn": ["workday", "workday_history", "workday__employee_daily_history"], "alias": "workday__employee_daily_history", "checksum": {"name": "sha256", "checksum": "4c14b35e16add086112f1162036ec382847846ca5f62b7ba617c1b812b7978dd"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a daily record in an employee, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to track the daily history of their employees from when they started.", "columns": {"employee_day_id": {"name": "employee_day_id", "description": "Surrogate key hashed on `date_day` and `employee_id`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date on which the account had these field values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on 'employee_id' and '_fivetran_date'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_id": {"name": "employee_id", "description": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_wh_fivetran_active": {"name": "is_wh_fivetran_active", "description": "Is the worker history record the most recent fivetran active record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_wph_fivetran_active": {"name": "is_wph_fivetran_active", "description": "Is the worker position history record the most recent fivetranactive record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_pih_fivetran_active": {"name": "is_pih_fivetran_active", "description": "Is the personal information history record the most recent fivetran active record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wh_end_employment_date": {"name": "wh_end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wph_end_employment_date": {"name": "wph_end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wh_pay_through_date": {"name": "wh_pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wph_pay_through_date": {"name": "wph_pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712011820.4324229, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"", "raw_code": "-- depends_on: {{ ref('int_workday__employee_history') }}\n{{ config(enabled=var('employee_history_enabled', False)) }}\n\n{% if execute %} \n {% set first_last_date_query %}\n with min_max_values as (\n\n select \n min(_fivetran_start) as min_start,\n max(_fivetran_start) as max_start \n from {{ ref('int_workday__employee_history') }}\n )\n\n select \n min_start,\n case when max_start >= {{ dbt.current_timestamp() }}\n then max_start\n else {{ dbt.date_trunc('day', dbt.current_timestamp()) }} \n end as max_start\n from min_max_values\n \n {% endset %}\n\n {% set start_date = run_query(first_last_date_query).columns[0][0]|string %}\n {% set last_date = run_query(first_last_date_query).columns[1][0]|string %}\n\n{# If only compiling, creates range going back 1 year #}\n{% else %} \n {% set start_date = dbt.dateadd(\"year\", \"-2\", \"current_date\") %} -- Arbitrarily picked. Choose a more appropriate default if necessary.\n {% set last_date = dbt.dateadd(\"year\", \"-1\", \"current_date\") %}\n{% endif %}\n\n\nwith spine as (\n {# Prioritizes variables over calculated dates #}\n {# Arbitrarily picked employee_history_start_date variable value. Choose a more appropriate default if necessary. #}\n {{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date = \"greatest(cast('\" ~ start_date[0:10] ~ \"' as date), cast('\" ~ var('employee_history_start_date','2000-12-31') ~ \"' as date))\", \n end_date = \"cast('\" ~ last_date[0:10] ~ \"'as date)\"\n )\n }}\n),\n\nemployee_history as (\n\n select * \n from {{ ref('int_workday__employee_history') }}\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['spine.date_day','get_latest_daily_value.history_unique_key']) }} as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }})\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }})\n)\n\nselect * \nfrom daily_history", "language": "sql", "refs": [{"name": "int_workday__employee_history", "package": null, "version": null}, {"name": "int_workday__employee_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp", "macro.dbt.current_timestamp", "macro.dbt.date_trunc", "macro.dbt.run_query"], "nodes": ["model.workday.int_workday__employee_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__employee_daily_history.sql", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n\n\n \n \n\n \n \n\n\n\n\n\nwith spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n + \n \n p13.generated_number * power(2, 13)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n cross join \n \n p as p13\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 8492\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2000-12-31' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-01'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__worker_position_org_daily_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__worker_position_org_daily_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__worker_position_org_daily_history.sql", "original_file_path": "models/workday_history/workday__worker_position_org_daily_history.sql", "unique_id": "model.workday.workday__worker_position_org_daily_history", "fqn": ["workday", "workday_history", "workday__worker_position_org_daily_history"], "alias": "workday__worker_position_org_daily_history", "checksum": {"name": "sha256", "checksum": "4f92714b6d8488cdb6ef2aadf6b5ff59f2ac55ab3a66eb296ef69e978f4eff30"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a daily record for a worker/position/organization combination, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to tie in organizations to employees via other organization models (such as `workday__organization_overview`) more easily in their warehouses.", "columns": {"wpo_day_id": {"name": "wpo_day_id", "description": "Surrogate key hashed on `date_day` and `history_unique_key`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date on which the account had these field values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, `source_relation`, and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712011820.4365718, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"", "raw_code": "-- depends_on: {{ ref('stg_workday__worker_position_organization_base') }}\n{{ config(enabled=var('employee_history_enabled', False)) }}\n\n{% if execute %} \n {% set first_last_date_query %}\n with min_max_values as (\n select \n min(_fivetran_start) as min_start,\n max(_fivetran_start) as max_start \n from {{ ref('stg_workday__worker_position_organization_base') }}\n )\n\n select \n min_start,\n case when max_start >= {{ dbt.current_timestamp() }}\n then max_start\n else {{ dbt.date_trunc('day', dbt.current_timestamp()) }} \n end as max_date\n from min_max_values\n\n {% endset %}\n\n {% set start_date = run_query(first_last_date_query).columns[0][0]|string %}\n {% set last_date = run_query(first_last_date_query).columns[1][0]|string %}\n\n{# If only compiling, creates range going back 1 year #}\n{% else %} \n {% set start_date = dbt.dateadd(\"year\", \"-2\", \"current_date\") %} -- Arbitrarily picked. Choose a more appropriate default if necessary.\n {% set last_date = dbt.dateadd(\"year\", \"-1\", \"current_date\") %}\n{% endif %}\n\nwith spine as (\n {# Prioritizes variables over calculated dates #}\n {# Arbitrarily picked employee_history_start_date variable value. Choose a more appropriate default if necessary. #}\n {{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date = \"greatest(cast('\" ~ start_date[0:10] ~ \"' as date), cast('\" ~ var('employee_history_start_date','2000-12-31') ~ \"' as date))\",\n end_date = \"cast('\" ~ last_date[0:10] ~ \"'as date)\"\n )\n }}\n),\n\nworker_position_org_history as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_history') }}\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['spine.date_day',\n 'get_latest_daily_value.history_unique_key']) }} \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }})\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }})\n)\n\nselect * \nfrom daily_history", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp", "macro.dbt.current_timestamp", "macro.dbt.date_trunc", "macro.dbt.run_query"], "nodes": ["model.workday.stg_workday__worker_position_organization_base", "model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__worker_position_org_daily_history.sql", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n\n\n \n \n\n \n \n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n), spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n + \n \n p13.generated_number * power(2, 13)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n cross join \n \n p as p13\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 8492\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2000-12-31' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-01'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nworker_position_org_history as (\n\n select * \n from __dbt__cte__stg_workday__worker_position_organization_history\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_position_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_position_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_position_history.sql", "unique_id": "model.workday.stg_workday__worker_position_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_position_history"], "alias": "stg_workday__worker_position_history", "checksum": {"name": "sha256", "checksum": "4b069cd710a40dce5b38c3760c73eaf5e215020a92036a30ce06271aa39450a7"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id` and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712011820.450326, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_position_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %}\n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_base')),\n staging_columns=get_worker_position_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', '_fivetran_start']) }} as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as {{ dbt.type_timestamp() }}) as position_effective_date,\n employee_type,\n cast(end_date as {{ dbt.type_timestamp() }}) as position_end_date,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as {{ dbt.type_timestamp() }}) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_position_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_position_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_history.sql", "unique_id": "model.workday.stg_workday__worker_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_history"], "alias": "stg_workday__worker_history", "checksum": {"name": "sha256", "checksum": "182531312b167651cffb742d7e954b4d1e60af695dcd4761e95b548bc1d020ff"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712011820.448791, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_base')),\n staging_columns=get_worker_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as {{ dbt.type_timestamp() }}) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__personal_information_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__personal_information_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__personal_information_history.sql", "unique_id": "model.workday.stg_workday__personal_information_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__personal_information_history"], "alias": "stg_workday__personal_information_history", "checksum": {"name": "sha256", "checksum": "9ac063e4c8dc8a37a24239a9aba7cccd0f3dd74943b147a3d501ece935785670"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712011820.446804, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__personal_information_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_base')),\n staging_columns=get_personal_information_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__personal_information_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__personal_information_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_position_organization_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_position_organization_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_position_organization_history.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_position_organization_history"], "alias": "stg_workday__worker_position_organization_history", "checksum": {"name": "sha256", "checksum": "63667ebc0f312b52e03c78332d5b58a5492fb902b40805cb1a327dc99c8d8fa2"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712011820.4511008, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_organization_base')),\n staging_columns=get_worker_position_organization_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'organization_id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_position_organization_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_position_organization_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__employee_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/intermediate/int_workday__employee_history.sql", "original_file_path": "models/workday_history/intermediate/int_workday__employee_history.sql", "unique_id": "model.workday.int_workday__employee_history", "fqn": ["workday", "workday_history", "intermediate", "int_workday__employee_history"], "alias": "int_workday__employee_history", "checksum": {"name": "sha256", "checksum": "5c18f885ead273db1df9a2203e804797db6e3cfcb3f0e3554b6f6309ef440998"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "view", "enabled": true}, "created_at": 1712011819.711157, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith worker_history as (\n\n select *\n from {{ ref('stg_workday__worker_history') }}\n),\n\nworker_position_history as (\n\n select *\n from {{ ref('stg_workday__worker_position_history') }}\n),\n\npersonal_information_history as (\n\n select *\n from {{ ref('stg_workday__personal_information_history') }}\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead({{ dbt.dateadd('microsecond', -1, '_fivetran_start') }} ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as {{ dbt.type_timestamp() }}),\n cast('9999-12-31 23:59:59.999000' as {{ dbt.type_timestamp() }})) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select {{ dbt_utils.generate_surrogate_key(['worker_id', 'source_relation', 'position_id', 'position_start_date']) }} as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select {{ dbt_utils.generate_surrogate_key(['employee_id', '_fivetran_date']) }} as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}, {"name": "stg_workday__worker_position_history", "package": null, "version": null}, {"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history", "model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/intermediate/int_workday__employee_history.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n), worker_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_history\n),\n\nworker_position_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_history\n),\n\npersonal_information_history as (\n\n select *\n from __dbt__cte__stg_workday__personal_information_history\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select md5(cast(coalesce(cast(employee_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_position_enriched": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_position_enriched", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_position_enriched.sql", "original_file_path": "models/intermediate/int_workday__worker_position_enriched.sql", "unique_id": "model.workday.int_workday__worker_position_enriched", "fqn": ["workday", "intermediate", "int_workday__worker_position_enriched"], "alias": "int_workday__worker_position_enriched", "checksum": {"name": "sha256", "checksum": "0bcb8eaaab77feebef76105a810b2f955a424dab91401003170763a691f1bc6d"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712011819.7187269, "relation_name": null, "raw_code": "with worker_position_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker_position') }}\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_position_enriched.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__personal_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__personal_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__personal_details.sql", "original_file_path": "models/intermediate/int_workday__personal_details.sql", "unique_id": "model.workday.int_workday__personal_details", "fqn": ["workday", "intermediate", "int_workday__personal_details"], "alias": "int_workday__personal_details", "checksum": {"name": "sha256", "checksum": "594516db9541d923dcc1958d6ed5747fb91aee48aaa01e0acf8fcbd2fb1a8950"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712011819.723296, "relation_name": null, "raw_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from {{ ref('stg_workday__personal_information') }}\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from {{ ref('stg_workday__person_name') }}\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from {{ ref('stg_workday__person_contact_email_address') }}\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n {{ fivetran_utils.string_agg('distinct ethnicity_code', \"', '\" ) }} as ethnicity_codes\n from {{ ref('stg_workday__personal_information_ethnicity') }}\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from {{ ref('stg_workday__military_service') }}\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}, {"name": "stg_workday__person_name", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}, {"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.workday.stg_workday__personal_information", "model.workday.stg_workday__person_name", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__personal_information_ethnicity", "model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__personal_details.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_details.sql", "original_file_path": "models/intermediate/int_workday__worker_details.sql", "unique_id": "model.workday.int_workday__worker_details", "fqn": ["workday", "intermediate", "int_workday__worker_details"], "alias": "int_workday__worker_details", "checksum": {"name": "sha256", "checksum": "6004df52c6e8acb2f9eb07f0e02e5fb9f694a9f8c3cb3d129916e686039ffd7a"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712011819.727519, "relation_name": null, "raw_code": "with worker_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker') }}\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then {{ dbt.datediff('hire_date', 'current_date', 'day') }}\n else {{ dbt.datediff('hire_date', 'termination_date', 'day') }}\n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_details.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_employee_enhanced": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_employee_enhanced", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_employee_enhanced.sql", "original_file_path": "models/intermediate/int_workday__worker_employee_enhanced.sql", "unique_id": "model.workday.int_workday__worker_employee_enhanced", "fqn": ["workday", "intermediate", "int_workday__worker_employee_enhanced"], "alias": "int_workday__worker_employee_enhanced", "checksum": {"name": "sha256", "checksum": "b304988457480f06f3bbc052fb27d7d6af37592d243606c4acf783558786aa1d"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712011819.7325702, "relation_name": null, "raw_code": "with int_worker_base as (\n\n select * \n from {{ ref('int_workday__worker_details') }} \n),\n\nint_worker_personal_details as (\n\n select * \n from {{ ref('int_workday__personal_details') }} \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from {{ ref('int_workday__worker_position_enriched') }} \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "language": "sql", "refs": [{"name": "int_workday__worker_details", "package": null, "version": null}, {"name": "int_workday__personal_details", "package": null, "version": null}, {"name": "int_workday__worker_position_enriched", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.int_workday__worker_details", "model.workday.int_workday__personal_details", "model.workday.int_workday__worker_position_enriched"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_employee_enhanced.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_details", "sql": " __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n)"}, {"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__personal_details", "sql": " __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n)"}, {"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_position_enriched", "sql": " __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "employee_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__employee_overview_employee_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__employee_overview_employee_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.unique_workday__employee_overview_employee_id.b01e19996c", "fqn": ["workday", "unique_workday__employee_overview_employee_id"], "alias": "unique_workday__employee_overview_employee_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.14127, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/unique_workday__employee_overview_employee_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is not null\ngroup by employee_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "employee_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_overview_employee_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_overview_employee_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "fqn": ["workday", "not_null_workday__employee_overview_employee_id"], "alias": "not_null_workday__employee_overview_employee_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.142616, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__employee_overview_employee_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_overview_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_overview_worker_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "fqn": ["workday", "not_null_workday__employee_overview_worker_id"], "alias": "not_null_workday__employee_overview_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.145118, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__employee_overview_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__job_overview_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__job_overview_job_profile_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "fqn": ["workday", "not_null_workday__job_overview_job_profile_id"], "alias": "not_null_workday__job_overview_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.14639, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__job_overview_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656"}, "created_at": 1712011820.1476648, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656\") }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.not_null_workday__position_overview_position_id.603beb3f22": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__position_overview_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__position_overview_position_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "fqn": ["workday", "not_null_workday__position_overview_position_id"], "alias": "not_null_workday__position_overview_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.1562948, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__position_overview_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e"}, "created_at": 1712011820.15733, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e\") }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "fqn": ["workday", "not_null_workday__organization_overview_organization_id"], "alias": "not_null_workday__organization_overview_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.1625931, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_role_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "fqn": ["workday", "not_null_workday__organization_overview_organization_role_id"], "alias": "not_null_workday__organization_overview_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.163746, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1"}, "created_at": 1712011820.164769, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1\") }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "fqn": ["workday", "staging", "not_null_stg_workday__job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.329555, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1"}, "created_at": 1712011820.3310301, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id\n from __dbt__cte__stg_workday__job_profile\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_family_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.3341691, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.335328, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id"], "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378"}, "created_at": 1712011820.336363, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from __dbt__cte__stg_workday__job_family_job_profile\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.339861, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id"], "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd"}, "created_at": 1712011820.340933, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id\n from __dbt__cte__stg_workday__job_family\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_group_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.344411, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af"}, "created_at": 1712011820.345435, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4"}, "created_at": 1712011820.346426, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from __dbt__cte__stg_workday__job_family_job_family_group\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_group_job_family_group_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_family_group_job_family_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.349248, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_group_job_family_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_group\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5"}, "created_at": 1712011820.350156, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_group_id\n from __dbt__cte__stg_workday__job_family_group\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_id"], "alias": "not_null_stg_workday__organization_role_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.35292, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_role_id"], "alias": "not_null_stg_workday__organization_role_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.354249, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_role_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id"], "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908"}, "created_at": 1712011820.355499, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from __dbt__cte__stg_workday__organization_role\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_worker_code", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_worker_code", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_worker_code"], "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda"}, "created_at": 1712011820.358607, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_worker_code\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_worker_code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_worker_code", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_id"], "alias": "not_null_stg_workday__organization_role_worker_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.359832, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_role_id"], "alias": "not_null_stg_workday__organization_role_worker_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.360815, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select role_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "role_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_worker_code", "organization_id", "role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id"], "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a"}, "created_at": 1712011820.362038, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from __dbt__cte__stg_workday__organization_role_worker\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_job_family_id"], "alias": "not_null_stg_workday__organization_job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.364911, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_organization_id"], "alias": "not_null_stg_workday__organization_job_family_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.366071, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id"], "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456"}, "created_at": 1712011820.367129, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from __dbt__cte__stg_workday__organization_job_family\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_organization_id"], "alias": "not_null_stg_workday__organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.37051, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id"], "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5"}, "created_at": 1712011820.371545, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id\n from __dbt__cte__stg_workday__organization\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_organization_id"], "alias": "not_null_stg_workday__position_organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.3743758, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_position_id"], "alias": "not_null_stg_workday__position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.375675, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id"], "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc"}, "created_at": 1712011820.376676, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from __dbt__cte__stg_workday__position_organization\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "fqn": ["workday", "staging", "not_null_stg_workday__position_position_id"], "alias": "not_null_stg_workday__position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.3793821, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32"}, "created_at": 1712011820.3803039, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32\") }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id\n from __dbt__cte__stg_workday__position\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_job_profile_id"], "alias": "not_null_stg_workday__position_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.382797, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_position_id"], "alias": "not_null_stg_workday__position_job_profile_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.384213, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id"], "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62"}, "created_at": 1712011820.385611, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from __dbt__cte__stg_workday__position_job_profile\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "fqn": ["workday", "staging", "not_null_stg_workday__worker_worker_id"], "alias": "not_null_stg_workday__worker_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.38877, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33"}, "created_at": 1712011820.389811, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__worker\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_worker_id"], "alias": "not_null_stg_workday__personal_information_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.392703, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13"}, "created_at": 1712011820.393779, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__personal_information\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_worker_id"], "alias": "not_null_stg_workday__person_name_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.396341, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_name\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_name_type", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_person_name_type", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_person_name_type.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_person_name_type"], "alias": "not_null_stg_workday__person_name_person_name_type", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.397245, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_person_name_type.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_name_type\nfrom __dbt__cte__stg_workday__person_name\nwhere person_name_type is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_name_type", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_name_type"], "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type"], "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574"}, "created_at": 1712011820.398219, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from __dbt__cte__stg_workday__person_name\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_worker_id"], "alias": "not_null_stg_workday__personal_information_ethnicity_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.400885, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ethnicity_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_ethnicity_id"], "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5"}, "created_at": 1712011820.401851, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select ethnicity_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere ethnicity_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ethnicity_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "ethnicity_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id"], "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5"}, "created_at": 1712011820.4027572, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__military_service_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__military_service_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "fqn": ["workday", "staging", "not_null_stg_workday__military_service_worker_id"], "alias": "not_null_stg_workday__military_service_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.40527, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__military_service_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__military_service\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9"}, "created_at": 1712011820.4061708, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9\") }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__military_service\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_contact_email_address_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id"], "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08"}, "created_at": 1712011820.4085271, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_contact_email_address_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere person_contact_email_address_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_contact_email_address_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_contact_email_address_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_worker_id"], "alias": "not_null_stg_workday__person_contact_email_address_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.409438, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_contact_email_address_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_contact_email_address_id"], "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id"], "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb"}, "created_at": 1712011820.4107258, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from __dbt__cte__stg_workday__person_contact_email_address\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_position_id"], "alias": "not_null_stg_workday__worker_position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.413582, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_worker_id"], "alias": "not_null_stg_workday__worker_position_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.414517, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7"}, "created_at": 1712011820.4155169, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from __dbt__cte__stg_workday__worker_position\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "leave_request_event_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_leave_request_event_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_leave_request_event_id"], "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308"}, "created_at": 1712011820.418242, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select leave_request_event_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere leave_request_event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "leave_request_event_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_leave_status_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_worker_id"], "alias": "not_null_stg_workday__worker_leave_status_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.4192379, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_leave_status_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "leave_request_event_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id"], "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f"}, "created_at": 1712011820.420177, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from __dbt__cte__stg_workday__worker_leave_status\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_position_id"], "alias": "not_null_stg_workday__worker_position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.423208, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_worker_id"], "alias": "not_null_stg_workday__worker_position_organization_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.424148, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_organization_id"], "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23"}, "created_at": 1712011820.425449, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "position_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id"], "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926"}, "created_at": 1712011820.426563, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from __dbt__cte__stg_workday__worker_position_organization\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "employee_day_id", "model": "{{ get_where_subquery(ref('workday__employee_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__employee_daily_history_employee_day_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__employee_daily_history_employee_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269", "fqn": ["workday", "workday_history", "unique_workday__employee_daily_history_employee_day_id"], "alias": "unique_workday__employee_daily_history_employee_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.43706, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__employee_daily_history_employee_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is not null\ngroup by employee_day_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_day_id", "file_key_name": "models.workday__employee_daily_history", "attached_node": "model.workday.workday__employee_daily_history"}, "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "employee_day_id", "model": "{{ get_where_subquery(ref('workday__employee_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_daily_history_employee_day_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_daily_history_employee_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "fqn": ["workday", "workday_history", "not_null_workday__employee_daily_history_employee_day_id"], "alias": "not_null_workday__employee_daily_history_employee_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.43807, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__employee_daily_history_employee_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_day_id", "file_key_name": "models.workday__employee_daily_history", "attached_node": "model.workday.workday__employee_daily_history"}, "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__monthly_summary_metrics_month", "resource_type": "test", "package_name": "workday", "path": "unique_workday__monthly_summary_metrics_month.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab", "fqn": ["workday", "workday_history", "unique_workday__monthly_summary_metrics_month"], "alias": "unique_workday__monthly_summary_metrics_month", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.438997, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__monthly_summary"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__monthly_summary_metrics_month.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n metrics_month as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is not null\ngroup by metrics_month\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metrics_month", "file_key_name": "models.workday__monthly_summary", "attached_node": "model.workday.workday__monthly_summary"}, "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__monthly_summary_metrics_month", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__monthly_summary_metrics_month.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "fqn": ["workday", "workday_history", "not_null_workday__monthly_summary_metrics_month"], "alias": "not_null_workday__monthly_summary_metrics_month", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.439967, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__monthly_summary"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__monthly_summary_metrics_month.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metrics_month\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metrics_month", "file_key_name": "models.workday__monthly_summary", "attached_node": "model.workday.workday__monthly_summary"}, "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "wpo_day_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__worker_position_org_daily_history_wpo_day_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__worker_position_org_daily_history_wpo_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21", "fqn": ["workday", "workday_history", "unique_workday__worker_position_org_daily_history_wpo_day_id"], "alias": "unique_workday__worker_position_org_daily_history_wpo_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.44121, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__worker_position_org_daily_history_wpo_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n wpo_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is not null\ngroup by wpo_day_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "wpo_day_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "wpo_day_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_wpo_day_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_wpo_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_wpo_day_id"], "alias": "not_null_workday__worker_position_org_daily_history_wpo_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.442166, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_wpo_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect wpo_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "wpo_day_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_worker_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_worker_id"], "alias": "not_null_workday__worker_position_org_daily_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.443039, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_position_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_position_id"], "alias": "not_null_workday__worker_position_org_daily_history_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.4439209, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_organization_id"], "alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632"}, "created_at": 1712011820.444983, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632\") }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__personal_information_history_worker_id"], "alias": "not_null_stg_workday__personal_information_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.4516811, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__personal_information_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__personal_information_history_history_unique_key"], "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2"}, "created_at": 1712011820.4529002, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__personal_information_history_history_unique_key"], "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3"}, "created_at": 1712011820.453942, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c", "fqn": ["workday", "workday_history", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523"}, "created_at": 1712011820.45505, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n worker_id, _fivetran_start\n from __dbt__cte__stg_workday__personal_information_history\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_history_worker_id"], "alias": "not_null_stg_workday__worker_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.458369, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_history_history_unique_key"], "alias": "unique_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.459278, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_history_history_unique_key"], "alias": "not_null_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.460163, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df", "fqn": ["workday", "workday_history", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135"}, "created_at": 1712011820.461484, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n worker_id, _fivetran_start\n from __dbt__cte__stg_workday__worker_history\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_worker_id"], "alias": "not_null_stg_workday__worker_position_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.464323, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_position_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_position_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_position_id"], "alias": "not_null_stg_workday__worker_position_history_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.465608, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_position_history_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_position_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_position_history_history_unique_key"], "alias": "unique_stg_workday__worker_position_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.4666, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_position_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9"}, "created_at": 1712011820.467515, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "position_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b", "fqn": ["workday", "workday_history", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412"}, "created_at": 1712011820.468498, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n worker_id, position_id, _fivetran_start\n from __dbt__cte__stg_workday__worker_position_history\n group by worker_id, position_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_worker_id"], "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a"}, "created_at": 1712011820.471627, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_position_id"], "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441"}, "created_at": 1712011820.472917, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_organization_id"], "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0"}, "created_at": 1712011820.4741209, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22"}, "created_at": 1712011820.475466, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6"}, "created_at": 1712011820.476466, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "position_id", "organization_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888", "fqn": ["workday", "workday_history", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71"}, "created_at": 1712011820.477411, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n worker_id, position_id, organization_id, _fivetran_start\n from __dbt__cte__stg_workday__worker_position_organization_history\n group by worker_id, position_id, organization_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}}, "sources": {"source.workday.workday.job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_profile", "fqn": ["workday", "staging", "workday", "job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"id": {"name": "id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_job_code_in_name": {"name": "include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "public_job": {"name": "public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "title": {"name": "title", "description": "Title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "created_at": 1712011820.4814}, "source.workday.workday.job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_profile", "fqn": ["workday", "staging", "workday", "job_family_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "created_at": 1712011820.481527}, "source.workday.workday.job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family", "fqn": ["workday", "staging", "workday", "job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "created_at": 1712011820.481617}, "source.workday.workday.job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_family_group", "fqn": ["workday", "staging", "workday", "job_family_job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "created_at": 1712011820.481698}, "source.workday.workday.job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_group", "fqn": ["workday", "staging", "workday", "job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"id": {"name": "id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "created_at": 1712011820.481781}, "source.workday.workday.organization_role": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role", "fqn": ["workday", "staging", "workday", "organization_role"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "created_at": 1712011820.4818618}, "source.workday.workday.organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role_worker", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role_worker", "fqn": ["workday", "staging", "workday", "organization_role_worker"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_worker_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"associated_worker_id": {"name": "associated_worker_id", "description": "Identifier for the worker associated with the organization role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "created_at": 1712011820.481944}, "source.workday.workday.organization_job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_job_family", "fqn": ["workday", "staging", "workday", "organization_job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "created_at": 1712011820.482021}, "source.workday.workday.organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization", "fqn": ["workday", "staging", "workday", "organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Identifier for the organization.", "columns": {"id": {"name": "id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_manager_in_name": {"name": "include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_organization_code_in_name": {"name": "include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location": {"name": "location", "description": "Location associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sub_type": {"name": "sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "created_at": 1712011820.482136}, "source.workday.workday.position_organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_organization", "fqn": ["workday", "staging", "workday", "position_organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "created_at": 1712011820.482214}, "source.workday.workday.position": {"database": "postgres", "schema": "workday_integration_tests", "name": "position", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position", "fqn": ["workday", "staging", "workday", "position"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_eligible": {"name": "academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_overlap": {"name": "available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_recruiting": {"name": "available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "created_at": 1712011820.4823282}, "source.workday.workday.position_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_job_profile", "fqn": ["workday", "staging", "workday", "position_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "created_at": 1712011820.482523}, "source.workday.workday.worker_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_history", "fqn": ["workday", "staging", "workday", "worker_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"id": {"name": "id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "has_international_assignment": {"name": "has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_rescinded": {"name": "hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "not_returning": {"name": "not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regrettable_termination": {"name": "regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rehire": {"name": "rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retired": {"name": "retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "return_unknown": {"name": "return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "terminated": {"name": "terminated", "description": "Flag indicating whether the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_involuntary": {"name": "termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "created_at": 1712011820.482701}, "source.workday.workday.personal_information_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_history", "fqn": ["workday", "staging", "workday", "personal_information_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The personal information associated with each worker.", "columns": {"id": {"name": "id", "description": "The identifier for each personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hispanic_or_latino": {"name": "hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_hukou": {"name": "local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tobacco_use": {"name": "tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "created_at": 1712011820.482817}, "source.workday.workday.person_name": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_name", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_name", "fqn": ["workday", "staging", "workday", "person_name"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_name_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the name information for an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "created_at": 1712011820.4829261}, "source.workday.workday.personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_ethnicity", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_ethnicity", "fqn": ["workday", "staging", "workday", "personal_information_ethnicity"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_ethnicity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "created_at": 1712011820.4830039}, "source.workday.workday.military_service": {"database": "postgres", "schema": "workday_integration_tests", "name": "military_service", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.military_service", "fqn": ["workday", "staging", "workday", "military_service"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_military_service_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about an individual's military service in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "created_at": 1712011820.483114}, "source.workday.workday.person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_contact_email_address", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_contact_email_address", "fqn": ["workday", "staging", "workday", "person_contact_email_address"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_contact_email_address_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "created_at": 1712011820.483191}, "source.workday.workday.worker_position_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_history", "fqn": ["workday", "staging", "workday", "worker_position_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the positions held by workers in the Workday system", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location": {"name": "business_site_summary_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "exclude_from_head_count": {"name": "exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_exempt": {"name": "job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_paid_fte": {"name": "specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_working_fte": {"name": "specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "created_at": 1712011820.483333}, "source.workday.workday.worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_leave_status", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_leave_status", "fqn": ["workday", "staging", "workday", "worker_leave_status"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_leave_status_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the leave status of workers in the Workday system.", "columns": {"leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_effect": {"name": "benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caesarean_section_birth": {"name": "caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "multiple_child_indicator": {"name": "multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_leave": {"name": "on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_effect": {"name": "payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "single_parent_indicator": {"name": "single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stock_vesting_effect": {"name": "stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_related": {"name": "work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "created_at": 1712011820.4834518}, "source.workday.workday.worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_organization_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_organization_history", "fqn": ["workday", "staging", "workday", "worker_position_organization_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_organization_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "created_at": 1712011820.483537}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.2879, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.28813, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.288238, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.288341, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.2884412, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n when 'm' then 'MATERIALIZED VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.289902, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.290323, "supported_languages": null}, "macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.290963, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.291094, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.299317, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.299799, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.300104, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.300395, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.300842, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.301259, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.301425, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.30175, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.302109, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3029602, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.303144, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3034399, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3037262, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.304118, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.304327, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.304875, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.305063, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3051672, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.305335, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3054678, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.30584, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3065019, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.306632, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.306911, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3070452, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.307212, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.307988, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }};\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.308438, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.308714, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.309054, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.309185, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.309937, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.310225, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3103878, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.310957, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.311143, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3113542, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.311916, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.314882, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3150349, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.315508, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.315882, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.316868, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3170528, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3171892, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.317323, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.317458, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.317811, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.318093, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3184562, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3188522, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3191, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.322269, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.322431, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.322633, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.323304, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.323471, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.323638, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.324914, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3261912, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3297532, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3300118, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.330164, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.330244, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.330374, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3304791, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.33066, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.331441, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.331608, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3318279, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3322089, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3378701, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.34047, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.340925, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.341218, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.341563, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3419242, "supported_languages": null}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.346208, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3467572, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.347052, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3483279, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3485692, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.34918, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.352164, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.354997, "supported_languages": ["sql"]}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.356653, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.357198, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.357826, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.358041, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.358688, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.364197, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.36565, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.36589, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.366965, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.367303, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.367947, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.368586, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.369457, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.369698, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.369983, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.370401, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.370734, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.371032, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3712199, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.371476, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.371659, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.371804, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.372158, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.377503, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.382494, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3836749, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.384817, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.385634, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.385895, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.386008, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.386299, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation }} clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.386432, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {% if target_relation and defer_relation and target_relation == defer_relation %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation) }}\n {% else %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endif %}\n\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3902452, "supported_languages": ["sql"]}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.393427, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.397992, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3989089, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.399182, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.399673, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.39987, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.399998, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4001348, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.400306, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.400494, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4006112, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.401072, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.401262, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4026518, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.40312, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.403471, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.404124, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.404404, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.404684, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4050891, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.405327, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.405992, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4063518, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4065301, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4067168, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.406909, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4076538, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation_type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.40894, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.409336, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.409584, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.409902, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.410105, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.410829, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.411256, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.411454, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.411731, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.412062, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.412304, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.412735, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.413145, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4134452, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.413644, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{ return(adapter.dispatch('drop_materialized_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.413901, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.414, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.414256, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.414389, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4146712, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.414871, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4151208, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.415254, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.41581, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.415979, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.416251, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.416385, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4166322, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.416767, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.417779, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.417898, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.418405, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.418568, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.418698, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.419978, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.420332, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.420657, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{ return(adapter.dispatch('drop_table', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.420921, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4210181, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.421264, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.421404, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.421654, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.421791, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.422564, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.422737, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.42313, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.423761, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4241831, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.424362, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.424522, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{ return(adapter.dispatch('drop_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.424768, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.424864, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.425646, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.425787, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4269729, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.42719, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.427393, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.427671, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4278002, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.428162, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.428305, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.428472, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.428849, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.429158, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.429418, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.429644, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.430153, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.43149, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.432019, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.432322, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.434038, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.435349, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.436165, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4363909, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.436618, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.436689, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.437346, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.43788, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.438087, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.438415, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.438713, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.43886, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4390779, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.439187, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4399319, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4403148, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.44049, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.44095, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.441185, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.441282, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4415889, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.44174, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.441979, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.442146, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.442421, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4425652, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4428558, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.442996, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.443813, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4442508, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.444611, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.44477, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.445075, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.445214, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4454558, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.445604, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.445834, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.446008, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.446242, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.446338, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4466, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4467258, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4469602, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.447146, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.448002, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.448143, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.448298, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.448436, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4485838, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.448722, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4488692, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4490392, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4491892, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.449336, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.449486, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4496179, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.449763, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.449895, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.450176, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4503691, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.450634, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.450753, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.451175, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.451445, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4515882, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.45208, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.452242, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.45245, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.452707, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4528298, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.453174, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4534059, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.453672, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4537978, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.454144, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.454318, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4544692, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.454635, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.455076, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4552221, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4553568, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4554582, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.455692, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.455764, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.455918, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.456075, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4568162, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.456942, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.457085, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4574668, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.457641, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.457769, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4579148, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.458038, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.45996, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.460128, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.46033, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.460596, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4608178, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.461109, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4612741, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4616718, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.461897, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.462389, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.462593, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.462719, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.463098, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4634602, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.463711, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.463914, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.465394, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.465497, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4656482, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.465749, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.466049, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.466219, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.466308, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.466509, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.466688, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.466888, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.467116, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.467329, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.46795, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.468218, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4685838, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4688692, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.470022, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header -%}\n {{ sql_header }}\n {%- endif -%}\n {%- if limit is not none -%}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n {%- else -%}\n {{ compiled_code }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4705842, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "{% macro get_limit_subquery_sql(sql, limit) %}\n {{ adapter.dispatch('get_limit_subquery_sql', 'dbt')(sql, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.470792, "supported_languages": null}, "macro.dbt.default__get_limit_subquery_sql": {"name": "default__get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_subquery_sql", "macro_sql": "{% macro default__get_limit_subquery_sql(sql, limit) %}\n select *\n from (\n {{ sql }}\n ) as model_limit_subq\n limit {{ limit }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4709241, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4715679, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.47174, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4719381, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.472102, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.47236, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.472833, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.47557, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.475827, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.476028, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4764018, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.476584, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4767401, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.476913, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.477144, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4773371, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.477616, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4777842, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4779341, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.478113, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.478355, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.478621, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4788322, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4810061, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.481167, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.481465, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.481664, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.481854, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.482021, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n cast(null as {{ col['data_type'] }}) as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.483262, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4836202, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.483804, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4841769, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4844642, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.485173, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.485446, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.486166, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4876502, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.487794, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.488618, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.489022, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.489556, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.489991, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.49006, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.490541, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.490759, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.491029, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.491284, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.491605, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.492065, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.49263, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.493563, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4939399, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.494265, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.495313, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.496342, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.497215, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.498347, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.499049, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4993799, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.500087, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.501069, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5016372, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.502103, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.502819, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5032902, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.503804, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.504147, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.504748, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n where {{ column_name }} is not null\n limit 1\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.50569, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.506482, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.507123, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.507659, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.50797, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.508336, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.508655, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5092502, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.510004, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.510902, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.51175, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.512438, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.513226, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.513668, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.513931, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.516887, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.518332, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.518589, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.518739, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5191739, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.519422, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5196018, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5198321, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.519994, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5205572, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.521596, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5223339, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.522933, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5231528, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.523499, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.523874, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5243871, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.524677, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.524992, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.525602, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5264919, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.527275, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.527655, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5278258, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5282829, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.528859, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5296268, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.529999, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.53026, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5314271, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5327559, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.533951, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.535458, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.535746, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.535869, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.538615, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5419369, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.542279, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.542516, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.543235, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.543437, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5436249, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.543803, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.543953, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.544111, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5444689, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.544697, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.545042, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.545542, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.545871, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5462, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5477178, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.548068, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.548821, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5493052, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.550404, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.551883, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5529091, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.553709, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.554196, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.554889, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.555735, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.556247, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.556436, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.556823, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5573661, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.557784, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.558372, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5588422, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.558969, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.55909, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.55921, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.55965, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.560419, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.561392, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5616379, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.56214, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.562861, "supported_languages": null}, "macro.workday.get_person_contact_email_address_columns": {"name": "get_person_contact_email_address_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_contact_email_address_columns.sql", "original_file_path": "macros/get_person_contact_email_address_columns.sql", "unique_id": "macro.workday.get_person_contact_email_address_columns", "macro_sql": "{% macro get_person_contact_email_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_address\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_comment\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.563689, "supported_languages": null}, "macro.workday.get_military_service_columns": {"name": "get_military_service_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_military_service_columns.sql", "original_file_path": "macros/get_military_service_columns.sql", "unique_id": "macro.workday.get_military_service_columns", "macro_sql": "{% macro get_military_service_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"discharge_date\", \"datatype\": \"date\"},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"rank\", \"datatype\": dbt.type_string()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status_begin_date\", \"datatype\": \"date\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.564863, "supported_languages": null}, "macro.workday.get_position_job_profile_columns": {"name": "get_position_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_job_profile_columns.sql", "original_file_path": "macros/get_position_job_profile_columns.sql", "unique_id": "macro.workday.get_position_job_profile_columns", "macro_sql": "{% macro get_position_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.566087, "supported_languages": null}, "macro.workday.get_job_family_job_family_group_columns": {"name": "get_job_family_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_job_family_group_columns", "macro_sql": "{% macro get_job_family_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.566713, "supported_languages": null}, "macro.workday.get_worker_history_columns": {"name": "get_worker_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_history_columns.sql", "original_file_path": "macros/get_worker_history_columns.sql", "unique_id": "macro.workday.get_worker_history_columns", "macro_sql": "{% macro get_worker_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_date\", \"datatype\": \"date\"},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"active_status_date\", \"datatype\": \"date\"},\n {\"name\": \"annual_currency_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_service_date\", \"datatype\": \"date\"},\n {\"name\": \"company_service_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_effective_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"continuous_service_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_assignment_details\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_end_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_frequency_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_pay_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"contract_vendor_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_entered_workforce\", \"datatype\": \"date\"},\n {\"name\": \"days_unemployed\", \"datatype\": dbt.type_float()},\n {\"name\": \"eligible_for_hire\", \"datatype\": dbt.type_string()},\n {\"name\": \"eligible_for_rehire_on_latest_termination\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_date_of_return\", \"datatype\": \"date\"},\n {\"name\": \"expected_retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"has_international_assignment\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hire_date\", \"datatype\": \"date\"},\n {\"name\": \"hire_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"hire_rescinded\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_datefor_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"local_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"months_continuous_prior_employment\", \"datatype\": dbt.type_float()},\n {\"name\": \"not_returning\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"original_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"pay_group_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"primary_termination_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"probation_end_date\", \"datatype\": \"date\"},\n {\"name\": \"probation_start_date\", \"datatype\": \"date\"},\n {\"name\": \"reason_reference_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regrettable_termination\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"rehire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"resignation_date\", \"datatype\": \"date\"},\n {\"name\": \"retired\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"retirement_eligibility_date\", \"datatype\": \"date\"},\n {\"name\": \"return_unknown\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"seniority_date\", \"datatype\": \"date\"},\n {\"name\": \"severance_date\", \"datatype\": \"date\"},\n {\"name\": \"terminated\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_date\", \"datatype\": \"date\"},\n {\"name\": \"termination_involuntary\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"time_off_service_date\", \"datatype\": \"date\"},\n {\"name\": \"universal_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vesting_date\", \"datatype\": \"date\"},\n {\"name\": \"worker_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.579527, "supported_languages": null}, "macro.workday.get_job_family_group_columns": {"name": "get_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_group_columns", "macro_sql": "{% macro get_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_group_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.580469, "supported_languages": null}, "macro.workday.get_worker_leave_status_columns": {"name": "get_worker_leave_status_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_leave_status_columns.sql", "original_file_path": "macros/get_worker_leave_status_columns.sql", "unique_id": "macro.workday.get_worker_leave_status_columns", "macro_sql": "{% macro get_worker_leave_status_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"adoption_notification_date\", \"datatype\": \"date\"},\n {\"name\": \"adoption_placement_date\", \"datatype\": \"date\"},\n {\"name\": \"age_of_dependent\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"caesarean_section_birth\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"child_birth_date\", \"datatype\": \"date\"},\n {\"name\": \"child_sdate_of_death\", \"datatype\": \"date\"},\n {\"name\": \"continuous_service_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"date_baby_arrived_home_from_hospital\", \"datatype\": \"date\"},\n {\"name\": \"date_child_entered_country\", \"datatype\": \"date\"},\n {\"name\": \"date_of_recall\", \"datatype\": \"date\"},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimated_leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_due_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"last_date_for_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_entitlement_override\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"leave_of_absence_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_request_event_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_return_event\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_start_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_status_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_type_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_during_leave\", \"datatype\": dbt.type_string()},\n {\"name\": \"multiple_child_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"number_of_babies_adopted_children\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_child_dependents\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_births\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_maternity_leaves\", \"datatype\": dbt.type_float()},\n {\"name\": \"on_leave\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"paid_time_off_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"payroll_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"single_parent_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"social_security_disability_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"stock_vesting_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"stop_payment_date\", \"datatype\": \"date\"},\n {\"name\": \"week_of_confinement\", \"datatype\": \"date\"},\n {\"name\": \"work_related\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.585435, "supported_languages": null}, "macro.workday.get_organization_role_worker_columns": {"name": "get_organization_role_worker_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_worker_columns.sql", "original_file_path": "macros/get_organization_role_worker_columns.sql", "unique_id": "macro.workday.get_organization_role_worker_columns", "macro_sql": "{% macro get_organization_role_worker_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"associated_worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.586114, "supported_languages": null}, "macro.workday.get_job_profile_columns": {"name": "get_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_profile_columns.sql", "original_file_path": "macros/get_job_profile_columns.sql", "unique_id": "macro.workday.get_job_profile_columns", "macro_sql": "{% macro get_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_job_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"public_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"referral_payment_plan\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_membership_requirement\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_study_award_source_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_study_requirement_option_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.588945, "supported_languages": null}, "macro.workday.get_organization_role_columns": {"name": "get_organization_role_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_columns.sql", "original_file_path": "macros/get_organization_role_columns.sql", "unique_id": "macro.workday.get_organization_role_columns", "macro_sql": "{% macro get_organization_role_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_role_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.589736, "supported_languages": null}, "macro.workday.get_person_name_columns": {"name": "get_person_name_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_name_columns.sql", "original_file_path": "macros/get_person_name_columns.sql", "unique_id": "macro.workday.get_person_name_columns", "macro_sql": "{% macro get_person_name_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"additional_name_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name_singapore_malaysia\", \"datatype\": dbt.type_string()},\n {\"name\": \"hereditary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"honorary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_salutation\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"professional_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"religious_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"royal_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tertiary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.593187, "supported_languages": null}, "macro.workday.get_job_family_job_profile_columns": {"name": "get_job_family_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_profile_columns.sql", "original_file_path": "macros/get_job_family_job_profile_columns.sql", "unique_id": "macro.workday.get_job_family_job_profile_columns", "macro_sql": "{% macro get_job_family_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5937579, "supported_languages": null}, "macro.workday.get_worker_position_history_columns": {"name": "get_worker_position_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_history_columns.sql", "original_file_path": "macros/get_worker_position_history_columns.sql", "unique_id": "macro.workday.get_worker_position_history_columns", "macro_sql": "{% macro get_worker_position_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_pay_setup_data_annual_work_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_work_percent_of_year\", \"datatype\": dbt.type_float()},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"business_site_summary_display_language\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_local\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"business_site_summary_time_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"default_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"employee_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"exclude_from_head_count\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"expected_assignment_end_date\", \"datatype\": \"date\"},\n {\"name\": \"external_employee\", \"datatype\": dbt.type_string()},\n {\"name\": \"federal_withholding_fein\", \"datatype\": dbt.type_string()},\n {\"name\": \"frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_time_equivalent_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"headcount_restriction_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"host_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"international_assignment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_primary_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"paid_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"payroll_entity\", \"datatype\": dbt.type_string()},\n {\"name\": \"payroll_file_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regular_paid_equivalent_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"specify_paid_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"specify_working_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"start_international_assignment_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_hours_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_space\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_hours_profile_classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"working_time_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.601677, "supported_languages": null}, "macro.workday.get_personal_information_ethnicity_columns": {"name": "get_personal_information_ethnicity_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_ethnicity_columns.sql", "original_file_path": "macros/get_personal_information_ethnicity_columns.sql", "unique_id": "macro.workday.get_personal_information_ethnicity_columns", "macro_sql": "{% macro get_personal_information_ethnicity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ethnicity_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"ethnicity_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.602475, "supported_languages": null}, "macro.workday.get_personal_information_history_columns": {"name": "get_personal_information_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_history_columns.sql", "original_file_path": "macros/get_personal_information_history_columns.sql", "unique_id": "macro.workday.get_personal_information_history_columns", "macro_sql": "{% macro get_personal_information_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"blood_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"citizenship_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_birth\", \"datatype\": \"date\"},\n {\"name\": \"date_of_death\", \"datatype\": \"date\"},\n {\"name\": \"gender\", \"datatype\": dbt.type_string()},\n {\"name\": \"hispanic_or_latino\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hukou_locality\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_subregion\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_medical_exam_date\", \"datatype\": \"date\"},\n {\"name\": \"last_medical_exam_valid_to\", \"datatype\": \"date\"},\n {\"name\": \"local_hukou\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"marital_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"marital_status_date\", \"datatype\": \"date\"},\n {\"name\": \"medical_exam_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"personnel_file_agency\", \"datatype\": dbt.type_string()},\n {\"name\": \"political_affiliation\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"religion\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_benefit\", \"datatype\": dbt.type_string()},\n {\"name\": \"tobacco_use\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.606645, "supported_languages": null}, "macro.workday.get_worker_position_organization_history_columns": {"name": "get_worker_position_organization_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_organization_history_columns.sql", "original_file_path": "macros/get_worker_position_organization_history_columns.sql", "unique_id": "macro.workday.get_worker_position_organization_history_columns", "macro_sql": "{% macro get_worker_position_organization_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_pay_group_assignment\", \"datatype\": \"date\"},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_business_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"used_in_change_organization_assignments\", \"datatype\": dbt.type_boolean()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.607841, "supported_languages": null}, "macro.workday.get_organization_job_family_columns": {"name": "get_organization_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_job_family_columns.sql", "original_file_path": "macros/get_organization_job_family_columns.sql", "unique_id": "macro.workday.get_organization_job_family_columns", "macro_sql": "{% macro get_organization_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6084712, "supported_languages": null}, "macro.workday.get_job_family_columns": {"name": "get_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_columns.sql", "original_file_path": "macros/get_job_family_columns.sql", "unique_id": "macro.workday.get_job_family_columns", "macro_sql": "{% macro get_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6092522, "supported_languages": null}, "macro.workday.get_organization_columns": {"name": "get_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_columns.sql", "original_file_path": "macros/get_organization_columns.sql", "unique_id": "macro.workday.get_organization_columns", "macro_sql": "{% macro get_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"availability_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"external_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"inactive_date\", \"datatype\": \"date\"},\n {\"name\": \"include_manager_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_organization_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"last_updated_date_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"location\", \"datatype\": dbt.type_string()},\n {\"name\": \"manager_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_owner_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"staffing_model\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"superior_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_availability_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_time_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_worker_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"top_level_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"visibility\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.61225, "supported_languages": null}, "macro.workday.get_position_organization_columns": {"name": "get_position_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_organization_columns.sql", "original_file_path": "macros/get_position_organization_columns.sql", "unique_id": "macro.workday.get_position_organization_columns", "macro_sql": "{% macro get_position_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.612872, "supported_languages": null}, "macro.workday.get_position_columns": {"name": "get_position_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_columns.sql", "original_file_path": "macros/get_position_columns.sql", "unique_id": "macro.workday.get_position_columns", "macro_sql": "{% macro get_position_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_eligible\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"availability_date\", \"datatype\": \"date\"},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_overlap\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_recruiting\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"closed\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"compensation_grade_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_package_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_step_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"earliest_overlap_date\", \"datatype\": \"date\"},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_posting_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_time_type_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_amount_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_percent_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"supervisory_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_for_filled_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_type_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.616328, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.616707, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.617586, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6177568, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.617911, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6180558, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.618186, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.618336, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6191008, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.61977, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.621134, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6214132, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.621669, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.621946, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6222029, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6224692, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.622733, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.623075, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6234229, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.62353, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.623626, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.623724, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6240819, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.624733, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.62575, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.626518, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.627255, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6278741, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6280131, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.628144, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6282802, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.628405, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.631148, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.631308, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.631468, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6316118, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6334112, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.634366, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6345139, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.634781, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.635062, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.635202, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.63532, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.635436, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6355531, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6360471, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.636608, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.637098, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6372962, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6374998, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.637755, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6389818, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.642755, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.643158, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.643541, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.64504, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.645638, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6462789, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.646454, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6466298, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.646805, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.646955, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.647101, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6479418, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6494038, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.650248, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.650453, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.650607, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.650764, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.650913, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6510851, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.651362, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6514628, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.651558, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.652213, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.653428, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.653604, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.65439, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6576252, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.662526, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.663894, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.664215, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.664356, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.664535, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6648462, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.664948, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.665049, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.66514, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.665231, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6654878, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.665581, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.66567, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6660311, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.666389, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.workday._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_deleted", "block_contents": "Indicates if the record was soft-deleted by Fivetran."}, "doc.workday._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_synced", "block_contents": "Timestamp the record was synced by Fivetran."}, "doc.workday._fivetran_start": {"name": "_fivetran_start", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_start", "block_contents": "Timestamp when the record was first created or modified in the source."}, "doc.workday._fivetran_end": {"name": "_fivetran_end", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_end", "block_contents": "Timestamp marking the end of a record being active."}, "doc.workday._fivetran_date": {"name": "_fivetran_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_date", "block_contents": "Date when the record was first created or modified in the source."}, "doc.workday._fivetran_active": {"name": "_fivetran_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_active", "block_contents": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE."}, "doc.workday.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.source_relation", "block_contents": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "doc.workday.academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_end_date", "block_contents": "The end date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_start_date", "block_contents": "The start date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year", "block_contents": "The work percentage of the year in the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date", "block_contents": "The end date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date", "block_contents": "The start date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_suffix": {"name": "academic_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_suffix", "block_contents": "The academic suffix, if applicable (e.g., PhD, MD)."}, "doc.workday.academic_tenure_date": {"name": "academic_tenure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_date", "block_contents": "Date when academic tenure is achieved."}, "doc.workday.academic_tenure_eligible": {"name": "academic_tenure_eligible", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_eligible", "block_contents": "Flag indicating whether the position is eligible for academic tenure."}, "doc.workday.active": {"name": "active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active", "block_contents": "Flag indicating the current active status of the worker."}, "doc.workday.active_status_date": {"name": "active_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active_status_date", "block_contents": "Date when the active status was last updated."}, "doc.workday.additional_job_description": {"name": "additional_job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_job_description", "block_contents": "Additional details or information about the job."}, "doc.workday.additional_name_type": {"name": "additional_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_name_type", "block_contents": "Additional type or category for the person name."}, "doc.workday.additional_nationality": {"name": "additional_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_nationality", "block_contents": "Additional nationality associated with the individual."}, "doc.workday.adoption_notification_date": {"name": "adoption_notification_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_notification_date", "block_contents": "The date of adoption notification."}, "doc.workday.adoption_placement_date": {"name": "adoption_placement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_placement_date", "block_contents": "The date of adoption placement."}, "doc.workday.age_of_dependent": {"name": "age_of_dependent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.age_of_dependent", "block_contents": "The age of the dependent associated with the leave status."}, "doc.workday.annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_currency", "block_contents": "Currency used for annual compensation summaries."}, "doc.workday.annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_frequency", "block_contents": "Frequency of currency for annual compensation summaries."}, "doc.workday.annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual compensation summaries."}, "doc.workday.annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.annual_summary_currency": {"name": "annual_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_currency", "block_contents": "Currency used for annual summaries."}, "doc.workday.annual_summary_frequency": {"name": "annual_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_frequency", "block_contents": "Frequency of currency for annual summaries."}, "doc.workday.annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual summaries."}, "doc.workday.annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.associated_worker_id": {"name": "associated_worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.associated_worker_id", "block_contents": "Identifier for the worker associated with the organization role."}, "doc.workday.availability_date": {"name": "availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.availability_date", "block_contents": "Date when the organization becomes available."}, "doc.workday.available_for_hire": {"name": "available_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_hire", "block_contents": "Flag indicating whether the organization is available for hiring."}, "doc.workday.available_for_overlap": {"name": "available_for_overlap", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_overlap", "block_contents": "Flag indicating whether the position is available for overlap with other positions."}, "doc.workday.available_for_recruiting": {"name": "available_for_recruiting", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_recruiting", "block_contents": "Flag indicating whether the position is available for recruiting."}, "doc.workday.benefits_effect": {"name": "benefits_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_effect", "block_contents": "The effect of leave on benefits."}, "doc.workday.benefits_service_date": {"name": "benefits_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_service_date", "block_contents": "Date when the worker's benefits service starts."}, "doc.workday.blood_type": {"name": "blood_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.blood_type", "block_contents": "The blood type of the individual."}, "doc.workday.business_site_summary_display_language": {"name": "business_site_summary_display_language", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_display_language", "block_contents": "The display language of the business site summary."}, "doc.workday.business_site_summary_local": {"name": "business_site_summary_local", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_local", "block_contents": "Local information related to the business site summary."}, "doc.workday.business_site_summary_location": {"name": "business_site_summary_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location", "block_contents": "The location of the business site summary."}, "doc.workday.business_site_summary_location_type": {"name": "business_site_summary_location_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location_type", "block_contents": "The type of location for the business site summary."}, "doc.workday.business_site_summary_name": {"name": "business_site_summary_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_name", "block_contents": "The name associated with the business site summary."}, "doc.workday.business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the business site summary."}, "doc.workday.business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_time_profile", "block_contents": "The time profile associated with the business site summary."}, "doc.workday.business_title": {"name": "business_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_title", "block_contents": "The business title associated with the worker position."}, "doc.workday.caesarean_section_birth": {"name": "caesarean_section_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.caesarean_section_birth", "block_contents": "Indicator for Caesarean section birth."}, "doc.workday.child_birth_date": {"name": "child_birth_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_birth_date", "block_contents": "The date of child birth."}, "doc.workday.child_sdate_of_death": {"name": "child_sdate_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_sdate_of_death", "block_contents": "The start date of child death.>"}, "doc.workday.citizenship_status": {"name": "citizenship_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.citizenship_status", "block_contents": "The citizenship status of the individual."}, "doc.workday.city_of_birth": {"name": "city_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth", "block_contents": "The city of birth of the individual."}, "doc.workday.city_of_birth_code": {"name": "city_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth_code", "block_contents": "The city of birth code of the individual."}, "doc.workday.closed": {"name": "closed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.closed", "block_contents": "Flag indicating whether the position is closed."}, "doc.workday.code": {"name": "code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.code", "block_contents": "Code assigned to the organization for reference and categorization."}, "doc.workday.company_service_date": {"name": "company_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.company_service_date", "block_contents": "Date when the worker's service with the company started."}, "doc.workday.compensation_effective_date": {"name": "compensation_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_effective_date", "block_contents": "Effective date when changes to the worker's compensation take effect."}, "doc.workday.compensation_grade_code": {"name": "compensation_grade_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_code", "block_contents": "Code associated with the compensation grade of the position."}, "doc.workday.compensation_grade_id": {"name": "compensation_grade_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_id", "block_contents": "Identifier for the compensation grade."}, "doc.workday.compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_code", "block_contents": "Code associated with the compensation grade profile of the position."}, "doc.workday.compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_id", "block_contents": "Unique identifier for the compensation grade profile associated with the worker."}, "doc.workday.compensation_package_code": {"name": "compensation_package_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_package_code", "block_contents": "Code associated with the compensation package of the position."}, "doc.workday.compensation_step_code": {"name": "compensation_step_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_step_code", "block_contents": "Code associated with the compensation step of the position."}, "doc.workday.continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_accrual_effect", "block_contents": "The effect of leave on continuous service accrual."}, "doc.workday.continuous_service_date": {"name": "continuous_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_date", "block_contents": "Date when the worker's continuous service with the organization started."}, "doc.workday.contract_assignment_details": {"name": "contract_assignment_details", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_assignment_details", "block_contents": "Details of the worker's contract assignment."}, "doc.workday.contract_currency_code": {"name": "contract_currency_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_currency_code", "block_contents": "Currency code used for the worker's contract."}, "doc.workday.contract_end_date": {"name": "contract_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_end_date", "block_contents": "Date when the worker's contract is scheduled to end."}, "doc.workday.contract_frequency_name": {"name": "contract_frequency_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_frequency_name", "block_contents": "Frequency of payment for the worker's contract."}, "doc.workday.contract_pay_rate": {"name": "contract_pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_pay_rate", "block_contents": "Pay rate associated with the worker's contract."}, "doc.workday.contract_vendor_name": {"name": "contract_vendor_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_vendor_name", "block_contents": "Name of the vendor associated with the worker's contract."}, "doc.workday.country": {"name": "country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country", "block_contents": "The country associated with the person name."}, "doc.workday.country_of_birth": {"name": "country_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country_of_birth", "block_contents": "The country of birth of the individual."}, "doc.workday.critical_job": {"name": "critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.critical_job", "block_contents": "Flag indicating whether the job is critical."}, "doc.workday.date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_baby_arrived_home_from_hospital", "block_contents": "The date when the baby arrived home from the hospital."}, "doc.workday.date_child_entered_country": {"name": "date_child_entered_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_child_entered_country", "block_contents": "The date when the child entered the country."}, "doc.workday.date_entered_workforce": {"name": "date_entered_workforce", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_entered_workforce", "block_contents": "Date when the worker entered the workforce."}, "doc.workday.date_of_birth": {"name": "date_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_birth", "block_contents": "The date of birth of the individual."}, "doc.workday.date_of_death": {"name": "date_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_death", "block_contents": "The date of death of the individual."}, "doc.workday.date_of_recall": {"name": "date_of_recall", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_recall", "block_contents": "The date of recall."}, "doc.workday.days_employed": {"name": "days_employed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_employed", "block_contents": "The number of days the employee held their position."}, "doc.workday.days_of_employment": {"name": "days_of_employment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_of_employment", "block_contents": "Number of days employed by the worker."}, "doc.workday.days_unemployed": {"name": "days_unemployed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_unemployed", "block_contents": "Number of days the worker has been unemployed."}, "doc.workday.default_weekly_hours": {"name": "default_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.default_weekly_hours", "block_contents": "The default weekly hours associated with the worker position."}, "doc.workday.departure_date": {"name": "departure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.departure_date", "block_contents": "The departure date for the employee."}, "doc.workday.difficulty_to_fill": {"name": "difficulty_to_fill", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill", "block_contents": "Indication of the difficulty level in filling the job."}, "doc.workday.difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill_code", "block_contents": "Code indicating the difficulty level in filling the position."}, "doc.workday.discharge_date": {"name": "discharge_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.discharge_date", "block_contents": "The date on which the individual was discharged from military service."}, "doc.workday.earliest_hire_date": {"name": "earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_hire_date", "block_contents": "Earliest date when the position can be filled."}, "doc.workday.earliest_overlap_date": {"name": "earliest_overlap_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_overlap_date", "block_contents": "Earliest date when the position can overlap with other positions."}, "doc.workday.effective_date": {"name": "effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.effective_date", "block_contents": "Date when the job profile becomes effective."}, "doc.workday.eligible_for_hire": {"name": "eligible_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_hire", "block_contents": "Flag indicating whether the worker is eligible for hire."}, "doc.workday.eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_rehire_on_latest_termination", "block_contents": "Flag indicating whether the worker is eligible for rehire based on the latest termination."}, "doc.workday.email_address": {"name": "email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_address", "block_contents": "The actual email address of the person."}, "doc.workday.email_code": {"name": "email_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_code", "block_contents": "A code or label associated with the type or purpose of the email address."}, "doc.workday.email_comment": {"name": "email_comment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_comment", "block_contents": "Any additional comments or notes related to the email address."}, "doc.workday.employee_id": {"name": "employee_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_id", "block_contents": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee."}, "doc.workday.employed_five_years": {"name": "employed_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_five_years", "block_contents": "Tracks whether a worker was employed at least five years."}, "doc.workday.employed_one_year": {"name": "employed_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_one_year", "block_contents": "Tracks whether a worker was employed at least one year."}, "doc.workday.employed_ten_years": {"name": "employed_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_ten_years", "block_contents": "Tracks whether a worker was employed at least ten years."}, "doc.workday.employed_thirty_years": {"name": "employed_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_thirty_years", "block_contents": "Tracks whether a worker was employed at least thirty years."}, "doc.workday.employed_twenty_years": {"name": "employed_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_twenty_years", "block_contents": "Tracks whether a worker was employed at least twenty years."}, "doc.workday.employee_compensation_currency": {"name": "employee_compensation_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_currency", "block_contents": "Currency code used for the worker's employee compensation."}, "doc.workday.employee_compensation_frequency": {"name": "employee_compensation_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_frequency", "block_contents": "Frequency of payment for the worker's employee compensation."}, "doc.workday.employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's employee compensation."}, "doc.workday.employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_base_pay", "block_contents": "Total base pay for the worker's employee compensation."}, "doc.workday.employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's employee compensation."}, "doc.workday.employee_type": {"name": "employee_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_type", "block_contents": "The type of employee associated with the worker position."}, "doc.workday.end_date": {"name": "end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_date", "block_contents": "The end date of the worker position."}, "doc.workday.end_employment_date": {"name": "end_employment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_employment_date", "block_contents": "Date when the worker's employment is scheduled to end."}, "doc.workday.estimated_leave_end_date": {"name": "estimated_leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.estimated_leave_end_date", "block_contents": "The estimated end date of the leave."}, "doc.workday.ethnicity_code": {"name": "ethnicity_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_code", "block_contents": "The code representing the ethnicity of the individual."}, "doc.workday.ethnicity_codes": {"name": "ethnicity_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_codes", "block_contents": "String aggregation of all ethnicity codes associated with an individual."}, "doc.workday.ethnicity_id": {"name": "ethnicity_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_id", "block_contents": "The identifier associated with the ethnicity."}, "doc.workday.exclude_from_head_count": {"name": "exclude_from_head_count", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.exclude_from_head_count", "block_contents": "Flag indicating whether the position is excluded from headcount."}, "doc.workday.expected_assignment_end_date": {"name": "expected_assignment_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_assignment_end_date", "block_contents": "The expected end date of the assignment associated with the worker position."}, "doc.workday.expected_date_of_return": {"name": "expected_date_of_return", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_date_of_return", "block_contents": "Expected date of the worker's return."}, "doc.workday.expected_due_date": {"name": "expected_due_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_due_date", "block_contents": "The expected due date."}, "doc.workday.expected_retirement_date": {"name": "expected_retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_retirement_date", "block_contents": "Expected date of the worker's retirement."}, "doc.workday.external_employee": {"name": "external_employee", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_employee", "block_contents": "Flag indicating whether the worker is an external employee."}, "doc.workday.external_url": {"name": "external_url", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_url", "block_contents": "External URL associated with the organization."}, "doc.workday.federal_withholding_fein": {"name": "federal_withholding_fein", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.federal_withholding_fein", "block_contents": "The Federal Employer Identification Number (FEIN) for federal withholding."}, "doc.workday.first_day_of_work": {"name": "first_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_day_of_work", "block_contents": "The date when the worker started their first day of work."}, "doc.workday.first_name": {"name": "first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_name", "block_contents": "The first name of the individual."}, "doc.workday.frequency": {"name": "frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.frequency", "block_contents": "The frequency associated with the worker position."}, "doc.workday.fte_percent": {"name": "fte_percent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.fte_percent", "block_contents": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek"}, "doc.workday.full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_name_singapore_malaysia", "block_contents": "The full name as used in Singapore and Malaysia."}, "doc.workday.full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_time_equivalent_percentage", "block_contents": "The full-time equivalent (FTE) percentage associated with the worker position."}, "doc.workday.gender": {"name": "gender", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.gender", "block_contents": "The gender of the individual."}, "doc.workday.has_international_assignment": {"name": "has_international_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.has_international_assignment", "block_contents": "Flag indicating whether the worker has an international assignment."}, "doc.workday.headcount_restriction_code": {"name": "headcount_restriction_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.headcount_restriction_code", "block_contents": "The code associated with headcount restriction for the worker position."}, "doc.workday.hereditary_suffix": {"name": "hereditary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hereditary_suffix", "block_contents": "The hereditary suffix, if applicable (e.g., Jr, Sr)."}, "doc.workday.hire_date": {"name": "hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_date", "block_contents": "The date when the worker was hired."}, "doc.workday.hire_reason": {"name": "hire_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_reason", "block_contents": "The reason for hiring the worker."}, "doc.workday.hire_rescinded": {"name": "hire_rescinded", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_rescinded", "block_contents": "Flag indicating whether the worker's hire was rescinded."}, "doc.workday.hiring_freeze": {"name": "hiring_freeze", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hiring_freeze", "block_contents": "Flag indicating whether the organization is under a hiring freeze."}, "doc.workday.hispanic_or_latino": {"name": "hispanic_or_latino", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hispanic_or_latino", "block_contents": "lag indicating whether the individual is Hispanic or Latino."}, "doc.workday.home_country": {"name": "home_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.home_country", "block_contents": "The home country of the worker."}, "doc.workday.honorary_suffix": {"name": "honorary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.honorary_suffix", "block_contents": "The honorary suffix, if applicable."}, "doc.workday.host_country": {"name": "host_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.host_country", "block_contents": "The host country associated with the worker."}, "doc.workday.hourly_frequency_currency": {"name": "hourly_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_currency", "block_contents": "Currency code used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_frequency", "block_contents": "Frequency of payment for the worker's hourly compensation."}, "doc.workday.hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_base_pay", "block_contents": "Total base pay for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's hourly compensation."}, "doc.workday.hukou_locality": {"name": "hukou_locality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_locality", "block_contents": "The locality associated with the Hukou."}, "doc.workday.hukou_postal_code": {"name": "hukou_postal_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_postal_code", "block_contents": "The postal code associated with the Hukou."}, "doc.workday.hukou_region": {"name": "hukou_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_region", "block_contents": "The region associated with the Hukou."}, "doc.workday.hukou_subregion": {"name": "hukou_subregion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_subregion", "block_contents": "The subregion associated with the Hukou."}, "doc.workday.hukou_type": {"name": "hukou_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_type", "block_contents": "The type of Hukou."}, "doc.workday.id": {"name": "id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.id", "block_contents": "Unique identifier."}, "doc.workday.inactive": {"name": "inactive", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive", "block_contents": "Flag indicating whether this is inactive."}, "doc.workday.inactive_date": {"name": "inactive_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive_date", "block_contents": "Date when the organization becomes inactive"}, "doc.workday.include_job_code_in_name": {"name": "include_job_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_job_code_in_name", "block_contents": "Flag indicating whether to include the job code in the job profile name."}, "doc.workday.include_manager_in_name": {"name": "include_manager_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_manager_in_name", "block_contents": "Flag indicating whether to include the manager in the organization name."}, "doc.workday.include_organization_code_in_name": {"name": "include_organization_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_organization_code_in_name", "block_contents": "Flag indicating whether to include the organization code in the name."}, "doc.workday.index": {"name": "index", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.index", "block_contents": "An index for a particular identifier."}, "doc.workday.international_assignment_type": {"name": "international_assignment_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.international_assignment_type", "block_contents": "The type of international assignment associated with the worker position."}, "doc.workday.is_critical_job": {"name": "is_critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_critical_job", "block_contents": "Flag indicating whether the position is considered critical based on the job profile."}, "doc.workday.is_current_employee_five_years": {"name": "is_current_employee_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_five_years", "block_contents": "Tracks whether a worker is active for more than five years."}, "doc.workday.is_current_employee_one_year": {"name": "is_current_employee_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_one_year", "block_contents": "Tracks whether a worker is active for more than a year."}, "doc.workday.is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_ten_years", "block_contents": "Tracks whether a worker is active for more than ten years."}, "doc.workday.is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_thirty_years", "block_contents": "Tracks whether a worker is active for more than thirty years."}, "doc.workday.is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_twenty_years", "block_contents": "Tracks whether a worker is active for more than twenty years."}, "doc.workday.is_employed": {"name": "is_employed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_employed", "block_contents": "Is the worker currently employed?"}, "doc.workday.is_military_service": {"name": "is_military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_military_service", "block_contents": "Whether the employee served in the military."}, "doc.workday.is_primary_job": {"name": "is_primary_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_primary_job", "block_contents": "Flag indicating whether the job is the primary job for the worker."}, "doc.workday.is_regrettable_termination": {"name": "is_regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_regrettable_termination", "block_contents": "Has the worker been regrettably terminated?"}, "doc.workday.is_terminated": {"name": "is_terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_terminated", "block_contents": "Has the worker been terminated?"}, "doc.workday.is_user_active": {"name": "is_user_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_user_active", "block_contents": "Is the user currently active."}, "doc.workday.job_category_code": {"name": "job_category_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_code", "block_contents": "Code indicating the category of the job profile associated with the position."}, "doc.workday.job_category_id": {"name": "job_category_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_id", "block_contents": "Identifier for the job category."}, "doc.workday.job_description": {"name": "job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description", "block_contents": "Detailed description of the job associated with the position."}, "doc.workday.job_description_summary": {"name": "job_description_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description_summary", "block_contents": "Summary or overview of the job description for the position."}, "doc.workday.job_exempt": {"name": "job_exempt", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_exempt", "block_contents": "Indicates whether the job is exempt from certain regulations."}, "doc.workday.job_family": {"name": "job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family", "block_contents": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles."}, "doc.workday.job_family_code": {"name": "job_family_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_code", "block_contents": "Code assigned to the job family"}, "doc.workday.job_family_codes": {"name": "job_family_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_codes", "block_contents": "String array of all job family codes assigned to a job profile."}, "doc.workday.job_family_group": {"name": "job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group", "block_contents": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics."}, "doc.workday.job_family_group_code": {"name": "job_family_group_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_code", "block_contents": "Code assigned to the job family group for reference and categorization."}, "doc.workday.job_family_group_codes": {"name": "job_family_group_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_codes", "block_contents": "String array of all job family group codes assigned to a job profile."}, "doc.workday.job_family_group_id": {"name": "job_family_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_id", "block_contents": "Identifier for the job family group."}, "doc.workday.job_family_group_summary": {"name": "job_family_group_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summary", "block_contents": "The summary of the job family group."}, "doc.workday.job_family_group_summaries": {"name": "job_family_group_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summaries", "block_contents": "String array of all job family group summaries assigned to a job profile."}, "doc.workday.job_family_id": {"name": "job_family_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_id", "block_contents": "Identifier for the job family."}, "doc.workday.job_family_job_family_group": {"name": "job_family_job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_family_group", "block_contents": "Represents the relationship between job families and job family groups in the Workday dataset."}, "doc.workday.job_family_job_profile": {"name": "job_family_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_profile", "block_contents": "Represents the relationship between job families and job profiles in the Workday dataset."}, "doc.workday.job_family_summary": {"name": "job_family_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summary", "block_contents": "The summary of the job family."}, "doc.workday.job_family_summaries": {"name": "job_family_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summaries", "block_contents": "String array of all job family summaries assigned to a job profile."}, "doc.workday.job_group_id": {"name": "job_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_group_id", "block_contents": "The unique identifier for the job group."}, "doc.workday.job_posting_title": {"name": "job_posting_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_posting_title", "block_contents": "Title used for job postings associated with the position."}, "doc.workday.job_private_title": {"name": "job_private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_private_title", "block_contents": "The private title associated with the job."}, "doc.workday.job_profile": {"name": "job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile", "block_contents": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes."}, "doc.workday.job_profile_code": {"name": "job_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_code", "block_contents": "Code assigned to the job profile."}, "doc.workday.job_profile_description": {"name": "job_profile_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_description", "block_contents": "Brief description of the job profile."}, "doc.workday.job_profile_id": {"name": "job_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_id", "block_contents": "Identifier for the job profile."}, "doc.workday.job_summary": {"name": "job_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_summary", "block_contents": "The summary of the job."}, "doc.workday.job_title": {"name": "job_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_title", "block_contents": "The title of the job for the worker."}, "doc.workday.last_date_for_which_paid": {"name": "last_date_for_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_date_for_which_paid", "block_contents": "The last date being paid before leave."}, "doc.workday.last_datefor_which_paid": {"name": "last_datefor_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_datefor_which_paid", "block_contents": "Last date for which the worker was paid."}, "doc.workday.last_medical_exam_date": {"name": "last_medical_exam_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_date", "block_contents": "The date of the last medical exam."}, "doc.workday.last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_valid_to", "block_contents": "The validity date of the last medical exam."}, "doc.workday.last_name": {"name": "last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_name", "block_contents": "The last name or surname of the individual."}, "doc.workday.last_updated_date_time": {"name": "last_updated_date_time", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_updated_date_time", "block_contents": "Date and time when the organization record was last updated."}, "doc.workday.leave_description": {"name": "leave_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_description", "block_contents": "Description of the type of leave"}, "doc.workday.leave_end_date": {"name": "leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_end_date", "block_contents": "The end date of the leave."}, "doc.workday.leave_entitlement_override": {"name": "leave_entitlement_override", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_entitlement_override", "block_contents": "Override for leave entitlement."}, "doc.workday.leave_last_day_of_work": {"name": "leave_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_last_day_of_work", "block_contents": "The last day of work associated with the leave status."}, "doc.workday.leave_of_absence_type": {"name": "leave_of_absence_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_of_absence_type", "block_contents": "The type of leave of absence."}, "doc.workday.leave_percentage": {"name": "leave_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_percentage", "block_contents": "The percentage of leave."}, "doc.workday.leave_request_event_id": {"name": "leave_request_event_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_request_event_id", "block_contents": "The unique identifier for the leave request event."}, "doc.workday.leave_return_event": {"name": "leave_return_event", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_return_event", "block_contents": "The event associated with the return from leave."}, "doc.workday.leave_start_date": {"name": "leave_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_start_date", "block_contents": "The start date of the leave."}, "doc.workday.leave_status_code": {"name": "leave_status_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_status_code", "block_contents": "The code indicating the status of the leave."}, "doc.workday.leave_type_reason": {"name": "leave_type_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_type_reason", "block_contents": "The reason for the leave type."}, "doc.workday.level": {"name": "level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.level", "block_contents": "Level associated with the job profile."}, "doc.workday.local_first_name": {"name": "local_first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name", "block_contents": "The local or native first name of the individual."}, "doc.workday.local_first_name_2": {"name": "local_first_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name_2", "block_contents": "Additional local or native first name, if applicable."}, "doc.workday.local_hukou": {"name": "local_hukou", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_hukou", "block_contents": "Flag indicating whether the Hukou is local."}, "doc.workday.local_last_name": {"name": "local_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name", "block_contents": "The local or native last name of the individual."}, "doc.workday.local_last_name_2": {"name": "local_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name_2", "block_contents": "Additional local or native last name, if applicable."}, "doc.workday.local_middle_name": {"name": "local_middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name", "block_contents": "The local or native middle name of the individual."}, "doc.workday.local_middle_name_2": {"name": "local_middle_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name_2", "block_contents": "Additional local or native middle name, if applicable."}, "doc.workday.local_secondary_last_name": {"name": "local_secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name", "block_contents": "Secondary local or native last name or surname, if applicable."}, "doc.workday.local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name_2", "block_contents": "Additional secondary local or native last name, if applicable."}, "doc.workday.local_termination_reason": {"name": "local_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_termination_reason", "block_contents": "The reason for local termination of the worker."}, "doc.workday.location": {"name": "location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location", "block_contents": "Location associated with the organization."}, "doc.workday.location_during_leave": {"name": "location_during_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location_during_leave", "block_contents": "The location during the leave."}, "doc.workday.management_level": {"name": "management_level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level", "block_contents": "Management level associated with the job profile."}, "doc.workday.management_level_code": {"name": "management_level_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level_code", "block_contents": "Code indicating the management level associated with the job profile."}, "doc.workday.manager_id": {"name": "manager_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.manager_id", "block_contents": "Identifier for the manager associated with the organization."}, "doc.workday.marital_status": {"name": "marital_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status", "block_contents": "The marital status of the individual."}, "doc.workday.marital_status_date": {"name": "marital_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status_date", "block_contents": "The date of the marital status."}, "doc.workday.medical_exam_notes": {"name": "medical_exam_notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.medical_exam_notes", "block_contents": "Notes from the medical exam."}, "doc.workday.middle_name": {"name": "middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.middle_name", "block_contents": "The middle name of the individual."}, "doc.workday.military_service": {"name": "military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_service", "block_contents": "Represents information about an individual's military service in the Workday system."}, "doc.workday.military_status": {"name": "military_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_status", "block_contents": "The military status of the worker."}, "doc.workday.months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.months_continuous_prior_employment", "block_contents": "Number of months of continuous prior employment."}, "doc.workday.position_location": {"name": "position_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_location", "block_contents": "The position location of the employee."}, "doc.workday.position_effective_date": {"name": "position_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_effective_date", "block_contents": "The position effective date for the employee."}, "doc.workday.position_end_date": {"name": "position_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_end_date", "block_contents": "The position end date for this employee."}, "doc.workday.position_start_date": {"name": "position_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_start_date", "block_contents": "The position start date for this employee."}, "doc.workday.multiple_child_indicator": {"name": "multiple_child_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.multiple_child_indicator", "block_contents": "Indicator for multiple children."}, "doc.workday.native_region": {"name": "native_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region", "block_contents": "The native region of the individual."}, "doc.workday.native_region_code": {"name": "native_region_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region_code", "block_contents": "The code of the native region."}, "doc.workday.not_returning": {"name": "not_returning", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.not_returning", "block_contents": "Flag indicating whether the worker is not returning."}, "doc.workday.notes": {"name": "notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.notes", "block_contents": "Additional notes or comments related to the military service record."}, "doc.workday.number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_babies_adopted_children", "block_contents": "The number of babies adopted by the worker."}, "doc.workday.number_of_child_dependents": {"name": "number_of_child_dependents", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_child_dependents", "block_contents": "The number of child dependents."}, "doc.workday.number_of_previous_births": {"name": "number_of_previous_births", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_births", "block_contents": "The number of previous births."}, "doc.workday.number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_maternity_leaves", "block_contents": "The number of previous maternity leaves."}, "doc.workday.on_leave": {"name": "on_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.on_leave", "block_contents": "Indicator for whether the worker is on leave."}, "doc.workday.organization": {"name": "organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization", "block_contents": "Identifier for the organization."}, "doc.workday.organization_code": {"name": "organization_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_code", "block_contents": "Code associated with the organization."}, "doc.workday.organization_description": {"name": "organization_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_description", "block_contents": "The description of the organization."}, "doc.workday.organization_id": {"name": "organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_id", "block_contents": "Identifier for the organization."}, "doc.workday.organization_job_family": {"name": "organization_job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_job_family", "block_contents": "Captures the associations between different organizational entities and the job families they are linked to."}, "doc.workday.organization_location": {"name": "organization_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_location", "block_contents": "The location of the organization."}, "doc.workday.organization_name": {"name": "organization_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_name", "block_contents": "Name of the organization."}, "doc.workday.organization_owner_id": {"name": "organization_owner_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_owner_id", "block_contents": "Identifier for the owner of the organization."}, "doc.workday.organization_role": {"name": "organization_role", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role", "block_contents": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities."}, "doc.workday.organization_role_code": {"name": "organization_role_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_code", "block_contents": "Code assigned to the organization role for reference and categorization."}, "doc.workday.organization_role_id": {"name": "organization_role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_id", "block_contents": "The role id associated with the organization."}, "doc.workday.organization_role_worker": {"name": "organization_role_worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_worker", "block_contents": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill."}, "doc.workday.organization_sub_type": {"name": "organization_sub_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_sub_type", "block_contents": "Subtype or classification of the organization."}, "doc.workday.organization_type": {"name": "organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_type", "block_contents": "Type or category of the organization."}, "doc.workday.organization_worker_code": {"name": "organization_worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_worker_code", "block_contents": "The worker code associated with the organization."}, "doc.workday.original_hire_date": {"name": "original_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.original_hire_date", "block_contents": "The original date when the worker was hired."}, "doc.workday.paid_fte": {"name": "paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_fte", "block_contents": "The paid full-time equivalent (FTE) associated with the worker position."}, "doc.workday.paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_time_off_accrual_effect", "block_contents": "The effect of leave on paid time off accrual."}, "doc.workday.pay_group": {"name": "pay_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group", "block_contents": "The pay group associated with the worker position."}, "doc.workday.pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_currency", "block_contents": "Currency code used for the worker's pay group frequency."}, "doc.workday.pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_frequency", "block_contents": "Frequency of payment for the worker's pay group."}, "doc.workday.pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's pay group."}, "doc.workday.pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_base_pay", "block_contents": "Total base pay for the worker's pay group."}, "doc.workday.pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's pay group."}, "doc.workday.pay_rate": {"name": "pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate", "block_contents": "The pay rate associated with the worker position."}, "doc.workday.pay_rate_type": {"name": "pay_rate_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate_type", "block_contents": "The type of pay rate associated with the worker position."}, "doc.workday.pay_through_date": {"name": "pay_through_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_through_date", "block_contents": "The date through which the worker is paid."}, "doc.workday.payroll_effect": {"name": "payroll_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_effect", "block_contents": "The effect of leave on payroll."}, "doc.workday.payroll_entity": {"name": "payroll_entity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_entity", "block_contents": "The payroll entity associated with the worker position."}, "doc.workday.payroll_file_number": {"name": "payroll_file_number", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_file_number", "block_contents": "The file number associated with payroll for the worker position."}, "doc.workday.person_contact_email_address": {"name": "person_contact_email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address", "block_contents": "Represents the email addresses associated with a person in the Workday system."}, "doc.workday.person_contact_email_address_id": {"name": "person_contact_email_address_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address_id", "block_contents": "The identifier of the personal contact email address."}, "doc.workday.person_name": {"name": "person_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name", "block_contents": "Represents the name information for an individual in the Workday system."}, "doc.workday.person_name_type": {"name": "person_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name_type", "block_contents": "The type or category of the person name (e.g., legal name, preferred name)."}, "doc.workday.personal_info_system_id": {"name": "personal_info_system_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_info_system_id", "block_contents": "The system ID associated with the personal information of the individual."}, "doc.workday.personal_information": {"name": "personal_information", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information", "block_contents": "The personal information associated with each worker."}, "doc.workday.personal_information_ethnicity": {"name": "personal_information_ethnicity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_ethnicity", "block_contents": "Represents information about the ethnicity of an individual in the Workday system."}, "doc.workday.personal_information_id": {"name": "personal_information_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_id", "block_contents": "The identifier for each personal information record."}, "doc.workday.personal_information_type": {"name": "personal_information_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_type", "block_contents": "The type of personal information record."}, "doc.workday.personnel_file_agency": {"name": "personnel_file_agency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personnel_file_agency", "block_contents": "The agency associated with the personnel file."}, "doc.workday.political_affiliation": {"name": "political_affiliation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.political_affiliation", "block_contents": "The political affiliation of the individual."}, "doc.workday.position": {"name": "position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position", "block_contents": "Resource for understanding the details and attributes associated with each position."}, "doc.workday.position_code": {"name": "position_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_code", "block_contents": "Code associated with the position for reference and categorization."}, "doc.workday.position_days": {"name": "position_days", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_days", "block_contents": "The days the worker held positions at the company."}, "doc.workday.position_id": {"name": "position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_id", "block_contents": "Identifier for the specific position."}, "doc.workday.position_job_profile": {"name": "position_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile", "block_contents": "Captures the associations between specific positions and the job profiles they are linked to."}, "doc.workday.position_job_profile_name": {"name": "position_job_profile_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile_name", "block_contents": "Name associated with the job profile linked to the position."}, "doc.workday.position_organization": {"name": "position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization", "block_contents": "Captures the associations between specific positions and the organizations to which they belong."}, "doc.workday.position_organization_type": {"name": "position_organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization_type", "block_contents": "Type or category of the position within the organization."}, "doc.workday.position_time_type_code": {"name": "position_time_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_time_type_code", "block_contents": "Code indicating the time type associated with the position."}, "doc.workday.prefix_salutation": {"name": "prefix_salutation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_salutation", "block_contents": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.)."}, "doc.workday.prefix_title": {"name": "prefix_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title", "block_contents": "The prefix or title associated with the name (e.g., Professor)."}, "doc.workday.prefix_title_code": {"name": "prefix_title_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title_code", "block_contents": "The code associated with the prefix or title."}, "doc.workday.primary_compensation_basis": {"name": "primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis", "block_contents": "Primary basis of compensation for the position."}, "doc.workday.primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_amount_change", "block_contents": "Change in the amount of the primary compensation basis."}, "doc.workday.primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_percent_change", "block_contents": "Change in the percentage of the primary compensation basis."}, "doc.workday.primary_nationality": {"name": "primary_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_nationality", "block_contents": "The primary nationality of the individual."}, "doc.workday.primary_termination_category": {"name": "primary_termination_category", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_category", "block_contents": "The primary termination category for the worker."}, "doc.workday.primary_termination_reason": {"name": "primary_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_reason", "block_contents": "The primary termination reason for the worker."}, "doc.workday.private_title": {"name": "private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.private_title", "block_contents": "Private title associated with the job profile."}, "doc.workday.probation_end_date": {"name": "probation_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_end_date", "block_contents": "The date when the worker's probation ends."}, "doc.workday.probation_start_date": {"name": "probation_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_start_date", "block_contents": "The date when the worker's probation starts."}, "doc.workday.professional_suffix": {"name": "professional_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.professional_suffix", "block_contents": "The professional suffix, if applicable (e.g., Esq., CPA)."}, "doc.workday.public_job": {"name": "public_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.public_job", "block_contents": "Flag indicating whether the job is public."}, "doc.workday.rank": {"name": "rank", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rank", "block_contents": "The rank achieved by the individual during military service."}, "doc.workday.reason_reference_id": {"name": "reason_reference_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.reason_reference_id", "block_contents": "The reference ID for the termination reason."}, "doc.workday.referral_payment_plan": {"name": "referral_payment_plan", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.referral_payment_plan", "block_contents": "Referral payment plan associated with the job profile."}, "doc.workday.region_of_birth": {"name": "region_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth", "block_contents": "The region of birth of the individual."}, "doc.workday.region_of_birth_code": {"name": "region_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth_code", "block_contents": "The code of the region of birth."}, "doc.workday.regrettable_termination": {"name": "regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regrettable_termination", "block_contents": "Flag indicating whether the worker's termination is regrettable."}, "doc.workday.regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regular_paid_equivalent_hours", "block_contents": "The regular paid equivalent hours associated with the worker position."}, "doc.workday.rehire": {"name": "rehire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rehire", "block_contents": "Flag indicating whether the worker is eligible for rehire."}, "doc.workday.religion": {"name": "religion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religion", "block_contents": "The religion of the individual."}, "doc.workday.religious_suffix": {"name": "religious_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religious_suffix", "block_contents": "The religious suffix, if applicable."}, "doc.workday.resignation_date": {"name": "resignation_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.resignation_date", "block_contents": "The date when the worker resigned."}, "doc.workday.retired": {"name": "retired", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retired", "block_contents": "Flag indicating whether the worker is retired."}, "doc.workday.retirement_date": {"name": "retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_date", "block_contents": "The date when the worker retired."}, "doc.workday.retirement_eligibility_date": {"name": "retirement_eligibility_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_eligibility_date", "block_contents": "The date when the worker becomes eligible for retirement."}, "doc.workday.return_unknown": {"name": "return_unknown", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.return_unknown", "block_contents": "Flag indicating whether the worker's return status is unknown."}, "doc.workday.role_id": {"name": "role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.role_id", "block_contents": "Identifier for the specific role."}, "doc.workday.royal_suffix": {"name": "royal_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.royal_suffix", "block_contents": "The royal suffix, if applicable."}, "doc.workday.scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the worker position."}, "doc.workday.secondary_last_name": {"name": "secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.secondary_last_name", "block_contents": "Secondary last name or surname, if applicable."}, "doc.workday.seniority_date": {"name": "seniority_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.seniority_date", "block_contents": "The date when the worker's seniority is recorded."}, "doc.workday.service": {"name": "service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service", "block_contents": "The specific military service branch in which the individual served."}, "doc.workday.service_type": {"name": "service_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service_type", "block_contents": "The type or category of military service (e.g., active duty, reserve, etc.)."}, "doc.workday.severance_date": {"name": "severance_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.severance_date", "block_contents": "The date when the worker's severance is recorded."}, "doc.workday.single_parent_indicator": {"name": "single_parent_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.single_parent_indicator", "block_contents": "Indicator for a single parent."}, "doc.workday.social_benefit": {"name": "social_benefit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_benefit", "block_contents": "The social benefit associated with the individual."}, "doc.workday.social_security_disability_code": {"name": "social_security_disability_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_security_disability_code", "block_contents": "The code indicating social security disability."}, "doc.workday.social_suffix": {"name": "social_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix", "block_contents": "The social suffix, if applicable."}, "doc.workday.social_suffix_id": {"name": "social_suffix_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix_id", "block_contents": "The identifier for the social suffix."}, "doc.workday.specify_paid_fte": {"name": "specify_paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_paid_fte", "block_contents": "Flag indicating whether to specify paid FTE for the worker position."}, "doc.workday.specify_working_fte": {"name": "specify_working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_working_fte", "block_contents": "Flag indicating whether to specify working FTE for the worker position."}, "doc.workday.staffing_model": {"name": "staffing_model", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.staffing_model", "block_contents": "Staffing model associated with the organization"}, "doc.workday.start_date": {"name": "start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_date", "block_contents": "The start date of the worker position."}, "doc.workday.start_international_assignment_reason": {"name": "start_international_assignment_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_international_assignment_reason", "block_contents": "The reason for starting an international assignment associated with the worker position."}, "doc.workday.status": {"name": "status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status", "block_contents": "The status of the individual's military service (e.g., active, inactive, retired)."}, "doc.workday.status_begin_date": {"name": "status_begin_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status_begin_date", "block_contents": "The date on which the current military service status began."}, "doc.workday.stock_vesting_effect": {"name": "stock_vesting_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stock_vesting_effect", "block_contents": "The effect of leave on stock vesting."}, "doc.workday.stop_payment_date": {"name": "stop_payment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stop_payment_date", "block_contents": "The date when stop payment occurs."}, "doc.workday.summary": {"name": "summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.summary", "block_contents": "Summary or overview of the job profile."}, "doc.workday.superior_organization_id": {"name": "superior_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.superior_organization_id", "block_contents": "Identifier for the superior organization, if applicable."}, "doc.workday.supervisory_organization_id": {"name": "supervisory_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_organization_id", "block_contents": "Identifier for the supervisory organization associated with the position."}, "doc.workday.supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_availability_date", "block_contents": "Availability date for supervisory positions within the organization."}, "doc.workday.supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_earliest_hire_date", "block_contents": "Earliest hire date for supervisory positions within the organization."}, "doc.workday.supervisory_position_time_type": {"name": "supervisory_position_time_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_time_type", "block_contents": "Time type associated with supervisory positions."}, "doc.workday.supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_worker_type", "block_contents": "Worker type associated with supervisory positions."}, "doc.workday.terminated": {"name": "terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.terminated", "block_contents": "Flag indicating whether the worker is terminated."}, "doc.workday.termination_date": {"name": "termination_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_date", "block_contents": "The date when the worker is terminated."}, "doc.workday.termination_involuntary": {"name": "termination_involuntary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_involuntary", "block_contents": "Flag indicating whether the termination is involuntary."}, "doc.workday.termination_last_day_of_work": {"name": "termination_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_last_day_of_work", "block_contents": "The last day of work for the worker during termination."}, "doc.workday.tertiary_last_name": {"name": "tertiary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tertiary_last_name", "block_contents": "Tertiary last name or surname, if applicable."}, "doc.workday.time_off_service_date": {"name": "time_off_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.time_off_service_date", "block_contents": "The date when the worker's time-off service starts."}, "doc.workday.title": {"name": "title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.title", "block_contents": "Title associated with the job profile."}, "doc.workday.tobacco_use": {"name": "tobacco_use", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tobacco_use", "block_contents": "Flag indicating whether the individual uses tobacco."}, "doc.workday.top_level_organization_id": {"name": "top_level_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.top_level_organization_id", "block_contents": "Identifier for the top-level organization, if applicable."}, "doc.workday.union_code": {"name": "union_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_code", "block_contents": "Code associated with the union related to the job profile."}, "doc.workday.union_membership_requirement": {"name": "union_membership_requirement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_membership_requirement", "block_contents": "Flag indicating whether union membership is a requirement for the job profile."}, "doc.workday.universal_id": {"name": "universal_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.universal_id", "block_contents": "The universal ID associated with the worker."}, "doc.workday.user_id": {"name": "user_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.user_id", "block_contents": "The identifier for the user associated with the worker."}, "doc.workday.vesting_date": {"name": "vesting_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.vesting_date", "block_contents": "The date when the worker's vesting starts."}, "doc.workday.visibility": {"name": "visibility", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.visibility", "block_contents": "Visibility level of the organization."}, "doc.workday.week_of_confinement": {"name": "week_of_confinement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.week_of_confinement", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_hours_profile": {"name": "work_hours_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_hours_profile", "block_contents": "The work hours profile associated with the worker position."}, "doc.workday.work_related": {"name": "work_related", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_related", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_shift": {"name": "work_shift", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift", "block_contents": "The work shift associated with the worker position."}, "doc.workday.work_shift_required": {"name": "work_shift_required", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift_required", "block_contents": "Flag indicating whether a work shift is required."}, "doc.workday.work_space": {"name": "work_space", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_space", "block_contents": "The work space associated with the worker position."}, "doc.workday.work_study_award_source_code": {"name": "work_study_award_source_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_award_source_code", "block_contents": "Code associated with the source of work study awards."}, "doc.workday.work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_requirement_option_code", "block_contents": "Code associated with work study requirement options."}, "doc.workday.workday__employee_overview": {"name": "workday__employee_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__employee_overview", "block_contents": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees."}, "doc.workday.workday__job_overview": {"name": "workday__job_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__job_overview", "block_contents": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings."}, "doc.workday.workday__role_overview": {"name": "workday__role_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__role_overview", "block_contents": "Each record represents a role in an organization, enhanced with additional organizational details."}, "doc.workday.workday__organization_overview": {"name": "workday__organization_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__organization_overview", "block_contents": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures."}, "doc.workday.workday__position_overview": {"name": "workday__position_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__position_overview", "block_contents": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts."}, "doc.workday.worker": {"name": "worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker", "block_contents": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker."}, "doc.workday.worker_code": {"name": "worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_code", "block_contents": "The code associated with the worker."}, "doc.workday.worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_for_filled_position_id", "block_contents": "Identifier for the worker filling the position, if applicable."}, "doc.workday.worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_hours_profile_classification", "block_contents": "The classification of worker hours profile associated with the worker position."}, "doc.workday.worker_id": {"name": "worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_id", "block_contents": "Unique identifier for the worker."}, "doc.workday.worker_leave_status": {"name": "worker_leave_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_leave_status", "block_contents": "Represents the leave status of workers in the Workday system."}, "doc.workday.worker_levels": {"name": "worker_levels", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_levels", "block_contents": "The number of levels the worker has worked at."}, "doc.workday.worker_position": {"name": "worker_position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position", "block_contents": "Represents the positions held by workers in the Workday system"}, "doc.workday.worker_position_organization": {"name": "worker_position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_organization", "block_contents": "Ties together workers to the positions and organizations they hold in the Workday system."}, "doc.workday.worker_position_id": {"name": "worker_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_id", "block_contents": "Identifier for the worker associated with the position."}, "doc.workday.worker_positions": {"name": "worker_positions", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_positions", "block_contents": "The number of positions the worker has held"}, "doc.workday.worker_type_code": {"name": "worker_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_type_code", "block_contents": "Code indicating the type of worker associated with the position."}, "doc.workday.working_fte": {"name": "working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_fte", "block_contents": "The working full-time equivalent (FTE) associated with the worker position."}, "doc.workday.working_time_frequency": {"name": "working_time_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_frequency", "block_contents": "The frequency of working time associated with the worker position."}, "doc.workday.working_time_unit": {"name": "working_time_unit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_unit", "block_contents": "The unit of working time associated with the worker position."}, "doc.workday.working_time_value": {"name": "working_time_value", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_value", "block_contents": "The value of working time associated with the worker position."}, "doc.workday.date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_pay_group_assignment", "block_contents": "Date a group's pay is assigned to be processed."}, "doc.workday.primary_business_site": {"name": "primary_business_site", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_business_site", "block_contents": "Primary location a worker's business is situated."}, "doc.workday.used_in_change_organization_assignments": {"name": "used_in_change_organization_assignments", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.used_in_change_organization_assignments", "block_contents": "If a worker has opted to change these organization assignments."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {}, "parent_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.workday__job_overview": ["model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_group", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_profile"], "model.workday.workday__position_overview": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"], "model.workday.workday__organization_overview": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"], "model.workday.stg_workday__position": ["model.workday.stg_workday__position_base"], "model.workday.stg_workday__job_family_group": ["model.workday.stg_workday__job_family_group_base"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "model.workday.stg_workday__organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "model.workday.stg_workday__organization_role": ["model.workday.stg_workday__organization_role_base"], "model.workday.stg_workday__worker_position": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "model.workday.stg_workday__position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "model.workday.stg_workday__worker_position_organization": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.stg_workday__job_profile": ["model.workday.stg_workday__job_profile_base"], "model.workday.stg_workday__position_organization": ["model.workday.stg_workday__position_organization_base"], "model.workday.stg_workday__worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "model.workday.stg_workday__person_name": ["model.workday.stg_workday__person_name_base"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "model.workday.stg_workday__organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "model.workday.stg_workday__job_family": ["model.workday.stg_workday__job_family_base"], "model.workday.stg_workday__military_service": ["model.workday.stg_workday__military_service_base"], "model.workday.stg_workday__personal_information": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "model.workday.stg_workday__worker": ["model.workday.stg_workday__worker_base"], "model.workday.stg_workday__organization": ["model.workday.stg_workday__organization_base"], "model.workday.stg_workday__job_family_job_family_group_base": ["source.workday.workday.job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["source.workday.workday.personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["source.workday.workday.job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["source.workday.workday.worker_position_organization_history"], "model.workday.stg_workday__position_base": ["source.workday.workday.position"], "model.workday.stg_workday__person_contact_email_address_base": ["source.workday.workday.person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["source.workday.workday.organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["source.workday.workday.job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["source.workday.workday.position_organization"], "model.workday.stg_workday__organization_role_base": ["source.workday.workday.organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["source.workday.workday.worker_leave_status"], "model.workday.stg_workday__job_family_base": ["source.workday.workday.job_family"], "model.workday.stg_workday__job_profile_base": ["source.workday.workday.job_profile"], "model.workday.stg_workday__organization_base": ["source.workday.workday.organization"], "model.workday.stg_workday__organization_role_worker_base": ["source.workday.workday.organization_role_worker"], "model.workday.stg_workday__worker_base": ["source.workday.workday.worker_history"], "model.workday.stg_workday__position_job_profile_base": ["source.workday.workday.position_job_profile"], "model.workday.stg_workday__worker_position_base": ["source.workday.workday.worker_position_history"], "model.workday.stg_workday__person_name_base": ["source.workday.workday.person_name"], "model.workday.stg_workday__military_service_base": ["source.workday.workday.military_service"], "model.workday.stg_workday__personal_information_base": ["source.workday.workday.personal_information_history"], "model.workday.workday__monthly_summary": ["model.workday.workday__employee_daily_history"], "model.workday.workday__employee_daily_history": ["model.workday.int_workday__employee_history"], "model.workday.workday__worker_position_org_daily_history": ["model.workday.stg_workday__worker_position_organization_base", "model.workday.stg_workday__worker_position_organization_history"], "model.workday.stg_workday__worker_position_history": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__worker_history": ["model.workday.stg_workday__worker_base"], "model.workday.stg_workday__personal_information_history": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.int_workday__employee_history": ["model.workday.stg_workday__personal_information_history", "model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history"], "model.workday.int_workday__worker_position_enriched": ["model.workday.stg_workday__worker_position"], "model.workday.int_workday__personal_details": ["model.workday.stg_workday__military_service", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__person_name", "model.workday.stg_workday__personal_information", "model.workday.stg_workday__personal_information_ethnicity"], "model.workday.int_workday__worker_details": ["model.workday.stg_workday__worker"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.int_workday__personal_details", "model.workday.int_workday__worker_details", "model.workday.int_workday__worker_position_enriched"], "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": ["model.workday.workday__job_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": ["model.workday.workday__job_overview"], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": ["model.workday.workday__position_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": ["model.workday.workday__position_overview"], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": ["model.workday.workday__organization_overview"], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": ["model.workday.workday__organization_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": ["model.workday.workday__organization_overview"], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": ["model.workday.stg_workday__job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": ["model.workday.stg_workday__job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": ["model.workday.stg_workday__job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": ["model.workday.stg_workday__job_family"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": ["model.workday.stg_workday__job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": ["model.workday.stg_workday__job_family_group"], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": ["model.workday.stg_workday__organization_role"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": ["model.workday.stg_workday__organization_role_worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": ["model.workday.stg_workday__organization_job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": ["model.workday.stg_workday__organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": ["model.workday.stg_workday__organization"], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": ["model.workday.stg_workday__position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": ["model.workday.stg_workday__position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": ["model.workday.stg_workday__position"], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": ["model.workday.stg_workday__position_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": ["model.workday.stg_workday__worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": ["model.workday.stg_workday__worker"], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": ["model.workday.stg_workday__personal_information"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": ["model.workday.stg_workday__personal_information"], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": ["model.workday.stg_workday__person_name"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": ["model.workday.stg_workday__military_service"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": ["model.workday.stg_workday__military_service"], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": ["model.workday.stg_workday__worker_position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": ["model.workday.stg_workday__worker_leave_status"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": ["model.workday.stg_workday__worker_position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": ["model.workday.stg_workday__worker_position_organization"], "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": ["model.workday.workday__employee_daily_history"], "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": ["model.workday.workday__employee_daily_history"], "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": ["model.workday.workday__monthly_summary"], "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": ["model.workday.workday__monthly_summary"], "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": ["model.workday.stg_workday__personal_information_history"], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": ["model.workday.stg_workday__personal_information_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": ["model.workday.stg_workday__worker_history"], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": ["model.workday.stg_workday__worker_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": ["model.workday.stg_workday__worker_position_history"], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": ["model.workday.stg_workday__worker_position_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888": ["model.workday.stg_workday__worker_position_organization_history"], "source.workday.workday.job_profile": [], "source.workday.workday.job_family_job_profile": [], "source.workday.workday.job_family": [], "source.workday.workday.job_family_job_family_group": [], "source.workday.workday.job_family_group": [], "source.workday.workday.organization_role": [], "source.workday.workday.organization_role_worker": [], "source.workday.workday.organization_job_family": [], "source.workday.workday.organization": [], "source.workday.workday.position_organization": [], "source.workday.workday.position": [], "source.workday.workday.position_job_profile": [], "source.workday.workday.worker_history": [], "source.workday.workday.personal_information_history": [], "source.workday.workday.person_name": [], "source.workday.workday.personal_information_ethnicity": [], "source.workday.workday.military_service": [], "source.workday.workday.person_contact_email_address": [], "source.workday.workday.worker_position_history": [], "source.workday.workday.worker_leave_status": [], "source.workday.workday.worker_position_organization_history": []}, "child_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "test.workday.unique_workday__employee_overview_employee_id.b01e19996c"], "model.workday.workday__job_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857"], "model.workday.workday__position_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "test.workday.not_null_workday__position_overview_position_id.603beb3f22"], "model.workday.workday__organization_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412"], "model.workday.stg_workday__position": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e"], "model.workday.stg_workday__job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c"], "model.workday.stg_workday__organization_role_worker": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72"], "model.workday.stg_workday__organization_role": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f"], "model.workday.stg_workday__worker_position": ["model.workday.int_workday__worker_position_enriched", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755"], "model.workday.stg_workday__position_job_profile": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7"], "model.workday.stg_workday__worker_position_organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b"], "model.workday.stg_workday__job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa"], "model.workday.stg_workday__position_organization": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7"], "model.workday.stg_workday__worker_leave_status": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61"], "model.workday.stg_workday__person_name": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd"], "model.workday.stg_workday__organization_job_family": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e"], "model.workday.stg_workday__job_family": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f"], "model.workday.stg_workday__military_service": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38"], "model.workday.stg_workday__personal_information": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b"], "model.workday.stg_workday__worker": ["model.workday.int_workday__worker_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "test.workday.not_null_stg_workday__worker_worker_id.8dae310560"], "model.workday.stg_workday__organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7"], "model.workday.stg_workday__job_family_job_family_group_base": ["model.workday.stg_workday__job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["model.workday.stg_workday__personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["model.workday.stg_workday__job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["model.workday.stg_workday__worker_position_organization", "model.workday.stg_workday__worker_position_organization_history", "model.workday.workday__worker_position_org_daily_history"], "model.workday.stg_workday__position_base": ["model.workday.stg_workday__position"], "model.workday.stg_workday__person_contact_email_address_base": ["model.workday.stg_workday__person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["model.workday.stg_workday__organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["model.workday.stg_workday__job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["model.workday.stg_workday__position_organization"], "model.workday.stg_workday__organization_role_base": ["model.workday.stg_workday__organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["model.workday.stg_workday__worker_leave_status"], "model.workday.stg_workday__job_family_base": ["model.workday.stg_workday__job_family"], "model.workday.stg_workday__job_profile_base": ["model.workday.stg_workday__job_profile"], "model.workday.stg_workday__organization_base": ["model.workday.stg_workday__organization"], "model.workday.stg_workday__organization_role_worker_base": ["model.workday.stg_workday__organization_role_worker"], "model.workday.stg_workday__worker_base": ["model.workday.stg_workday__worker", "model.workday.stg_workday__worker_history"], "model.workday.stg_workday__position_job_profile_base": ["model.workday.stg_workday__position_job_profile"], "model.workday.stg_workday__worker_position_base": ["model.workday.stg_workday__worker_position", "model.workday.stg_workday__worker_position_history"], "model.workday.stg_workday__person_name_base": ["model.workday.stg_workday__person_name"], "model.workday.stg_workday__military_service_base": ["model.workday.stg_workday__military_service"], "model.workday.stg_workday__personal_information_base": ["model.workday.stg_workday__personal_information", "model.workday.stg_workday__personal_information_history"], "model.workday.workday__monthly_summary": ["test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab"], "model.workday.workday__employee_daily_history": ["model.workday.workday__monthly_summary", "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269"], "model.workday.workday__worker_position_org_daily_history": ["test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21"], "model.workday.stg_workday__worker_position_history": ["model.workday.int_workday__employee_history", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b", "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879"], "model.workday.stg_workday__worker_history": ["model.workday.int_workday__employee_history", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df", "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72"], "model.workday.stg_workday__personal_information_history": ["model.workday.int_workday__employee_history", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c", "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc"], "model.workday.stg_workday__worker_position_organization_history": ["model.workday.workday__worker_position_org_daily_history", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888", "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398"], "model.workday.int_workday__employee_history": ["model.workday.workday__employee_daily_history"], "model.workday.int_workday__worker_position_enriched": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__personal_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.workday__employee_overview"], "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": [], "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": [], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": [], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": [], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": [], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": [], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": [], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": [], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": [], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": [], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": [], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": [], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": [], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": [], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": [], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": [], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": [], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": [], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": [], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": [], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": [], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": [], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": [], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": [], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": [], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": [], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": [], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": [], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": [], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": [], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": [], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": [], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": [], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": [], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": [], "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": [], "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": [], "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": [], "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": [], "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": [], "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": [], "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": [], "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": [], "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": [], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": [], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": [], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c": [], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": [], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": [], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df": [], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": [], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": [], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": [], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b": [], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": [], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": [], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": [], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": [], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888": [], "source.workday.workday.job_profile": ["model.workday.stg_workday__job_profile_base"], "source.workday.workday.job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "source.workday.workday.job_family": ["model.workday.stg_workday__job_family_base"], "source.workday.workday.job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "source.workday.workday.job_family_group": ["model.workday.stg_workday__job_family_group_base"], "source.workday.workday.organization_role": ["model.workday.stg_workday__organization_role_base"], "source.workday.workday.organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "source.workday.workday.organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "source.workday.workday.organization": ["model.workday.stg_workday__organization_base"], "source.workday.workday.position_organization": ["model.workday.stg_workday__position_organization_base"], "source.workday.workday.position": ["model.workday.stg_workday__position_base"], "source.workday.workday.position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "source.workday.workday.worker_history": ["model.workday.stg_workday__worker_base"], "source.workday.workday.personal_information_history": ["model.workday.stg_workday__personal_information_base"], "source.workday.workday.person_name": ["model.workday.stg_workday__person_name_base"], "source.workday.workday.personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "source.workday.workday.military_service": ["model.workday.stg_workday__military_service_base"], "source.workday.workday.person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "source.workday.workday.worker_position_history": ["model.workday.stg_workday__worker_position_base"], "source.workday.workday.worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "source.workday.workday.worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json index 0f3c05a..d6d3fcf 100644 --- a/docs/run_results.json +++ b/docs/run_results.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v5.json", "dbt_version": "1.7.8", "generated_at": "2024-03-20T19:22:57.337850Z", "invocation_id": "0a684f85-6d1d-433c-bf8d-1857c8ad075a", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.853421Z", "completed_at": "2024-03-20T19:22:53.858690Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.860561Z", "completed_at": "2024-03-20T19:22:53.860574Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.039659738540649414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.850208Z", "completed_at": "2024-03-20T19:22:53.858983Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.860874Z", "completed_at": "2024-03-20T19:22:53.860878Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.04099917411804199, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.825138Z", "completed_at": "2024-03-20T19:22:53.859230Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.861123Z", "completed_at": "2024-03-20T19:22:53.861126Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.042452096939086914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.855917Z", "completed_at": "2024-03-20T19:22:53.859482Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.861367Z", "completed_at": "2024-03-20T19:22:53.861370Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.04064631462097168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.872817Z", "completed_at": "2024-03-20T19:22:53.877570Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.878042Z", "completed_at": "2024-03-20T19:22:53.878047Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012719154357910156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.867164Z", "completed_at": "2024-03-20T19:22:53.879013Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.881052Z", "completed_at": "2024-03-20T19:22:53.881057Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.019382953643798828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.869760Z", "completed_at": "2024-03-20T19:22:53.879610Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.883736Z", "completed_at": "2024-03-20T19:22:53.883739Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01950693130493164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__military_service_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.875072Z", "completed_at": "2024-03-20T19:22:53.879827Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.883993Z", "completed_at": "2024-03-20T19:22:53.883997Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.019271135330200195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.881302Z", "completed_at": "2024-03-20T19:22:53.885931Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.888117Z", "completed_at": "2024-03-20T19:22:53.888121Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012238264083862305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.888807Z", "completed_at": "2024-03-20T19:22:53.898106Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.902208Z", "completed_at": "2024-03-20T19:22:53.902212Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01660919189453125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.894737Z", "completed_at": "2024-03-20T19:22:53.900834Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.902447Z", "completed_at": "2024-03-20T19:22:53.902450Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01624608039855957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_name_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.891772Z", "completed_at": "2024-03-20T19:22:53.901068Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.902692Z", "completed_at": "2024-03-20T19:22:53.902696Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.016979217529296875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.898429Z", "completed_at": "2024-03-20T19:22:53.901981Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.904498Z", "completed_at": "2024-03-20T19:22:53.904502Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.008352041244506836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.908279Z", "completed_at": "2024-03-20T19:22:53.941296Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.942647Z", "completed_at": "2024-03-20T19:22:53.942654Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.03750491142272949, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.934944Z", "completed_at": "2024-03-20T19:22:53.941679Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.942924Z", "completed_at": "2024-03-20T19:22:53.942928Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.03739595413208008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.938334Z", "completed_at": "2024-03-20T19:22:53.942404Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.944502Z", "completed_at": "2024-03-20T19:22:53.944509Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.03753089904785156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.950225Z", "completed_at": "2024-03-20T19:22:53.961350Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.961878Z", "completed_at": "2024-03-20T19:22:53.961885Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01639699935913086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.947757Z", "completed_at": "2024-03-20T19:22:53.962100Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.963540Z", "completed_at": "2024-03-20T19:22:53.963545Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.018558979034423828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.965242Z", "completed_at": "2024-03-20T19:22:53.972402Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.972934Z", "completed_at": "2024-03-20T19:22:53.972940Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.009508848190307617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_leave_status_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.969548Z", "completed_at": "2024-03-20T19:22:53.974419Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.983997Z", "completed_at": "2024-03-20T19:22:53.984007Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016412973403930664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.987196Z", "completed_at": "2024-03-20T19:22:53.990205Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:53.990820Z", "completed_at": "2024-03-20T19:22:53.990826Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00480198860168457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.910740Z", "completed_at": "2024-03-20T19:22:54.220268Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.222588Z", "completed_at": "2024-03-20T19:22:54.222603Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.341001033782959, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"\n \n),\n\nfinal as (\n\n select \n id as worker_id,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"type\",\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"additional_nationality\",\n \"blood_type\",\n \"citizenship_status\",\n \"city_of_birth\",\n \"city_of_birth_code\",\n \"country_of_birth\",\n \"date_of_birth\",\n \"date_of_death\",\n \"gender\",\n \"hispanic_or_latino\",\n \"hukou_locality\",\n \"hukou_postal_code\",\n \"hukou_region\",\n \"hukou_subregion\",\n \"hukou_type\",\n \"last_medical_exam_date\",\n \"last_medical_exam_valid_to\",\n \"local_hukou\",\n \"marital_status\",\n \"marital_status_date\",\n \"medical_exam_notes\",\n \"native_region\",\n \"native_region_code\",\n \"personnel_file_agency\",\n \"political_affiliation\",\n \"primary_nationality\",\n \"region_of_birth\",\n \"region_of_birth_code\",\n \"religion\",\n \"social_benefit\",\n \"tobacco_use\",\n \"ll\"\n from base\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.952892Z", "completed_at": "2024-03-20T19:22:54.220981Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.223155Z", "completed_at": "2024-03-20T19:22:54.223161Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.3022439479827881, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\" \n \n),\n\nfinal as (\n\n select \n id as worker_id, \n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n cast(termination_date as timestamp) as termination_date,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"academic_tenure_date\",\n \"active\",\n \"active_status_date\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_frequency\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_total_salary_and_allowances\",\n \"annual_summary_currency\",\n \"annual_summary_frequency\",\n \"annual_summary_primary_compensation_basis\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_total_salary_and_allowances\",\n \"benefits_service_date\",\n \"company_service_date\",\n \"compensation_effective_date\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"continuous_service_date\",\n \"contract_assignment_details\",\n \"contract_currency_code\",\n \"contract_end_date\",\n \"contract_frequency_name\",\n \"contract_pay_rate\",\n \"contract_vendor_name\",\n \"date_entered_workforce\",\n \"days_unemployed\",\n \"eligible_for_hire\",\n \"eligible_for_rehire_on_latest_termination\",\n \"employee_compensation_currency\",\n \"employee_compensation_frequency\",\n \"employee_compensation_primary_compensation_basis\",\n \"employee_compensation_total_base_pay\",\n \"employee_compensation_total_salary_and_allowances\",\n \"expected_date_of_return\",\n \"expected_retirement_date\",\n \"first_day_of_work\",\n \"has_international_assignment\",\n \"hire_date\",\n \"hire_reason\",\n \"hire_rescinded\",\n \"hourly_frequency_currency\",\n \"hourly_frequency_frequency\",\n \"hourly_frequency_primary_compensation_basis\",\n \"hourly_frequency_total_base_pay\",\n \"hourly_frequency_total_salary_and_allowances\",\n \"last_datefor_which_paid\",\n \"local_termination_reason\",\n \"months_continuous_prior_employment\",\n \"not_returning\",\n \"original_hire_date\",\n \"pay_group_frequency_currency\",\n \"pay_group_frequency_frequency\",\n \"pay_group_frequency_primary_compensation_basis\",\n \"pay_group_frequency_total_base_pay\",\n \"pay_group_frequency_total_salary_and_allowances\",\n \"pay_through_date\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"probation_end_date\",\n \"probation_start_date\",\n \"reason_reference_id\",\n \"regrettable_termination\",\n \"rehire\",\n \"resignation_date\",\n \"retired\",\n \"retirement_date\",\n \"retirement_eligibility_date\",\n \"return_unknown\",\n \"seniority_date\",\n \"severance_date\",\n \"terminated\",\n \"termination_involuntary\",\n \"termination_last_day_of_work\",\n \"time_off_service_date\",\n \"universal_id\",\n \"user_id\",\n \"vesting_date\",\n \"worker_code\"\n from base\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.258375Z", "completed_at": "2024-03-20T19:22:54.262577Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.267183Z", "completed_at": "2024-03-20T19:22:54.267185Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.013428926467895508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.263363Z", "completed_at": "2024-03-20T19:22:54.265198Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.267416Z", "completed_at": "2024-03-20T19:22:54.267418Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012661933898925781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.271959Z", "completed_at": "2024-03-20T19:22:54.273717Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.276816Z", "completed_at": "2024-03-20T19:22:54.276823Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00778508186340332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.274169Z", "completed_at": "2024-03-20T19:22:54.275712Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.277176Z", "completed_at": "2024-03-20T19:22:54.277180Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.007893085479736328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.281425Z", "completed_at": "2024-03-20T19:22:54.282912Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.285499Z", "completed_at": "2024-03-20T19:22:54.285504Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0065152645111083984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.283285Z", "completed_at": "2024-03-20T19:22:54.284612Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.285808Z", "completed_at": "2024-03-20T19:22:54.285811Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006572723388671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_military_service_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.992486Z", "completed_at": "2024-03-20T19:22:54.257731Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.266922Z", "completed_at": "2024-03-20T19:22:54.266942Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.3338618278503418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"\n \n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id, \n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"index\",\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"date_of_pay_group_assignment\",\n \"primary_business_site\",\n \"used_in_change_organization_assignments\"\n from base\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.289399Z", "completed_at": "2024-03-20T19:22:54.323072Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.325303Z", "completed_at": "2024-03-20T19:22:54.325309Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.03838396072387695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.323653Z", "completed_at": "2024-03-20T19:22:54.324535Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.326007Z", "completed_at": "2024-03-20T19:22:54.326010Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.03857994079589844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.329187Z", "completed_at": "2024-03-20T19:22:54.330179Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.333114Z", "completed_at": "2024-03-20T19:22:54.333118Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0063860416412353516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.330637Z", "completed_at": "2024-03-20T19:22:54.331467Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.333577Z", "completed_at": "2024-03-20T19:22:54.333580Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.006680727005004883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.331887Z", "completed_at": "2024-03-20T19:22:54.332701Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.334361Z", "completed_at": "2024-03-20T19:22:54.334365Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006838083267211914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.337603Z", "completed_at": "2024-03-20T19:22:54.338569Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.342282Z", "completed_at": "2024-03-20T19:22:54.342287Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007045269012451172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_name_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.338998Z", "completed_at": "2024-03-20T19:22:54.340557Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.342692Z", "completed_at": "2024-03-20T19:22:54.342695Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.007110118865966797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.340975Z", "completed_at": "2024-03-20T19:22:54.341803Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.343342Z", "completed_at": "2024-03-20T19:22:54.343345Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.007217884063720703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.346321Z", "completed_at": "2024-03-20T19:22:54.347260Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.350116Z", "completed_at": "2024-03-20T19:22:54.350119Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00613093376159668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.347672Z", "completed_at": "2024-03-20T19:22:54.348485Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.350522Z", "completed_at": "2024-03-20T19:22:54.350525Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.006268978118896484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.348890Z", "completed_at": "2024-03-20T19:22:54.349707Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.351227Z", "completed_at": "2024-03-20T19:22:54.351230Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006395101547241211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.354221Z", "completed_at": "2024-03-20T19:22:54.355160Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.359303Z", "completed_at": "2024-03-20T19:22:54.359309Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00747227668762207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.355593Z", "completed_at": "2024-03-20T19:22:54.357394Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.359770Z", "completed_at": "2024-03-20T19:22:54.359773Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0075931549072265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.357921Z", "completed_at": "2024-03-20T19:22:54.358791Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.360459Z", "completed_at": "2024-03-20T19:22:54.360462Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.007729768753051758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.363535Z", "completed_at": "2024-03-20T19:22:54.364562Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.373640Z", "completed_at": "2024-03-20T19:22:54.373645Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.012626171112060547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:53.975207Z", "completed_at": "2024-03-20T19:22:54.406566Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.407064Z", "completed_at": "2024-03-20T19:22:54.407071Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.4517478942871094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_history", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"\n \n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n cast(effective_date as timestamp) as effective_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n cast(start_date as timestamp) as position_start_date,\n cast(end_date as timestamp) as position_end_date,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n \"_fivetran_active\",\n \"_fivetran_synced\",\n \"academic_pay_setup_data_annual_work_period_end_date\",\n \"academic_pay_setup_data_annual_work_period_start_date\",\n \"academic_pay_setup_data_annual_work_period_work_percent_of_year\",\n \"academic_pay_setup_data_disbursement_plan_period_end_date\",\n \"academic_pay_setup_data_disbursement_plan_period_start_date\",\n \"business_site_summary_display_language\",\n \"business_site_summary_local\",\n \"business_site_summary_location\",\n \"business_site_summary_location_type\",\n \"business_site_summary_name\",\n \"business_site_summary_scheduled_weekly_hours\",\n \"business_site_summary_time_profile\",\n \"business_title\",\n \"critical_job\",\n \"default_weekly_hours\",\n \"difficulty_to_fill\",\n \"employee_type\",\n \"exclude_from_head_count\",\n \"expected_assignment_end_date\",\n \"external_employee\",\n \"federal_withholding_fein\",\n \"frequency\",\n \"full_time_equivalent_percentage\",\n \"headcount_restriction_code\",\n \"host_country\",\n \"international_assignment_type\",\n \"is_primary_job\",\n \"job_exempt\",\n \"job_profile_id\",\n \"management_level_code\",\n \"paid_fte\",\n \"pay_group\",\n \"pay_rate\",\n \"pay_rate_type\",\n \"pay_through_date\",\n \"payroll_entity\",\n \"payroll_file_number\",\n \"regular_paid_equivalent_hours\",\n \"scheduled_weekly_hours\",\n \"specify_paid_fte\",\n \"specify_working_fte\",\n \"start_international_assignment_reason\",\n \"work_hours_profile\",\n \"work_shift\",\n \"work_shift_required\",\n \"work_space\",\n \"worker_hours_profile_classification\",\n \"working_fte\",\n \"working_time_frequency\",\n \"working_time_unit\",\n \"working_time_value\"\n from base\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.365044Z", "completed_at": "2024-03-20T19:22:54.670418Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.671628Z", "completed_at": "2024-03-20T19:22:54.671638Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.3360600471496582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_family_group", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.376414Z", "completed_at": "2024-03-20T19:22:54.671177Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.672674Z", "completed_at": "2024-03-20T19:22:54.672679Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.3236069679260254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.427344Z", "completed_at": "2024-03-20T19:22:54.723156Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.724405Z", "completed_at": "2024-03-20T19:22:54.724413Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.3279109001159668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_profile", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.369036Z", "completed_at": "2024-03-20T19:22:54.767245Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:54.768078Z", "completed_at": "2024-03-20T19:22:54.768086Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.43586111068725586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_group", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.703618Z", "completed_at": "2024-03-20T19:22:55.006111Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.006960Z", "completed_at": "2024-03-20T19:22:55.006968Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.32674193382263184, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.762336Z", "completed_at": "2024-03-20T19:22:55.057034Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.058199Z", "completed_at": "2024-03-20T19:22:55.058203Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.3261561393737793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__military_service", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.800322Z", "completed_at": "2024-03-20T19:22:55.056661Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.057893Z", "completed_at": "2024-03-20T19:22:55.057900Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.28280210494995117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_job_family", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:54.710293Z", "completed_at": "2024-03-20T19:22:55.129952Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.130515Z", "completed_at": "2024-03-20T19:22:55.130521Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.4560582637786865, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_profile", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.030663Z", "completed_at": "2024-03-20T19:22:55.302882Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.304090Z", "completed_at": "2024-03-20T19:22:55.304108Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.29746294021606445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.085442Z", "completed_at": "2024-03-20T19:22:55.367333Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.374170Z", "completed_at": "2024-03-20T19:22:55.374181Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.3119988441467285, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_worker", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.091120Z", "completed_at": "2024-03-20T19:22:55.373574Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.375236Z", "completed_at": "2024-03-20T19:22:55.375240Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.3200991153717041, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_name", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.159484Z", "completed_at": "2024-03-20T19:22:55.547232Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.548296Z", "completed_at": "2024-03-20T19:22:55.548305Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.423598051071167, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_contact_email_address", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.367731Z", "completed_at": "2024-03-20T19:22:55.630530Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.631022Z", "completed_at": "2024-03-20T19:22:55.631027Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.2849609851837158, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.398063Z", "completed_at": "2024-03-20T19:22:55.649471Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.649989Z", "completed_at": "2024-03-20T19:22:55.649996Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.3051462173461914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_ethnicity", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.584534Z", "completed_at": "2024-03-20T19:22:55.832045Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.833460Z", "completed_at": "2024-03-20T19:22:55.833464Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.2690160274505615, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_job_profile", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.406039Z", "completed_at": "2024-03-20T19:22:55.831721Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.833157Z", "completed_at": "2024-03-20T19:22:55.833165Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.45456981658935547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.703658Z", "completed_at": "2024-03-20T19:22:55.954388Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.954865Z", "completed_at": "2024-03-20T19:22:55.954871Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.27274489402770996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_organization", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.652628Z", "completed_at": "2024-03-20T19:22:55.955302Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.955744Z", "completed_at": "2024-03-20T19:22:55.955748Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.3304009437561035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.983609Z", "completed_at": "2024-03-20T19:22:55.991876Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:55.992391Z", "completed_at": "2024-03-20T19:22:55.992397Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00984501838684082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.996291Z", "completed_at": "2024-03-20T19:22:56.003762Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.004290Z", "completed_at": "2024-03-20T19:22:56.004295Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.008965015411376953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.005814Z", "completed_at": "2024-03-20T19:22:56.008755Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.009274Z", "completed_at": "2024-03-20T19:22:56.009279Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0044400691986083984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.010915Z", "completed_at": "2024-03-20T19:22:56.014919Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.015387Z", "completed_at": "2024-03-20T19:22:56.015391Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.005471944808959961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.016874Z", "completed_at": "2024-03-20T19:22:56.020385Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.020836Z", "completed_at": "2024-03-20T19:22:56.020841Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00490117073059082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.023339Z", "completed_at": "2024-03-20T19:22:56.026077Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.026521Z", "completed_at": "2024-03-20T19:22:56.026525Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.005155086517333984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.027905Z", "completed_at": "2024-03-20T19:22:56.030469Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.030884Z", "completed_at": "2024-03-20T19:22:56.030888Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0038378238677978516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.032232Z", "completed_at": "2024-03-20T19:22:56.034972Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.035443Z", "completed_at": "2024-03-20T19:22:56.035448Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004103899002075195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.036868Z", "completed_at": "2024-03-20T19:22:56.040421Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.040935Z", "completed_at": "2024-03-20T19:22:56.040939Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0049970149993896484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, position_id, organization_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\n group by worker_id, position_id, organization_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.042529Z", "completed_at": "2024-03-20T19:22:56.046055Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.046532Z", "completed_at": "2024-03-20T19:22:56.046538Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004970073699951172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.048169Z", "completed_at": "2024-03-20T19:22:56.052301Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.052764Z", "completed_at": "2024-03-20T19:22:56.052769Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.005892753601074219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.055039Z", "completed_at": "2024-03-20T19:22:56.058329Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.058776Z", "completed_at": "2024-03-20T19:22:56.058780Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004701137542724609, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.060145Z", "completed_at": "2024-03-20T19:22:56.063026Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.063478Z", "completed_at": "2024-03-20T19:22:56.063482Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004221916198730469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.064887Z", "completed_at": "2024-03-20T19:22:56.067606Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.068104Z", "completed_at": "2024-03-20T19:22:56.068108Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.004121065139770508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.861121Z", "completed_at": "2024-03-20T19:22:56.115320Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.115802Z", "completed_at": "2024-03-20T19:22:56.115808Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.2756631374359131, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.137701Z", "completed_at": "2024-03-20T19:22:56.141145Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.141639Z", "completed_at": "2024-03-20T19:22:56.141644Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005063056945800781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n worker_id, position_id, _fivetran_start\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\n group by worker_id, position_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.143219Z", "completed_at": "2024-03-20T19:22:56.146620Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.147070Z", "completed_at": "2024-03-20T19:22:56.147075Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004786252975463867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect history_unique_key\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.148516Z", "completed_at": "2024-03-20T19:22:56.151614Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.152179Z", "completed_at": "2024-03-20T19:22:56.152184Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004590034484863281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.153939Z", "completed_at": "2024-03-20T19:22:56.157217Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.157705Z", "completed_at": "2024-03-20T19:22:56.157710Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004952192306518555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.159265Z", "completed_at": "2024-03-20T19:22:56.162208Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.162821Z", "completed_at": "2024-03-20T19:22:56.162826Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004584074020385742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "compiled": true, "compiled_code": "\n \n \n\nselect\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.164441Z", "completed_at": "2024-03-20T19:22:56.168796Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.169405Z", "completed_at": "2024-03-20T19:22:56.169411Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005961179733276367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.171029Z", "completed_at": "2024-03-20T19:22:56.174952Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.175420Z", "completed_at": "2024-03-20T19:22:56.175424Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0054149627685546875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_group_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.176925Z", "completed_at": "2024-03-20T19:22:56.179543Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.179985Z", "completed_at": "2024-03-20T19:22:56.179989Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.003998994827270508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.181405Z", "completed_at": "2024-03-20T19:22:56.184126Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.184617Z", "completed_at": "2024-03-20T19:22:56.184622Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004127025604248047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.186089Z", "completed_at": "2024-03-20T19:22:56.188760Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.189193Z", "completed_at": "2024-03-20T19:22:56.189197Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.003970146179199219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.190573Z", "completed_at": "2024-03-20T19:22:56.193654Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.194095Z", "completed_at": "2024-03-20T19:22:56.194098Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004400014877319336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.195496Z", "completed_at": "2024-03-20T19:22:56.198839Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.199269Z", "completed_at": "2024-03-20T19:22:56.199272Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004672050476074219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.200668Z", "completed_at": "2024-03-20T19:22:56.203406Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.203848Z", "completed_at": "2024-03-20T19:22:56.203852Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004105091094970703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.205234Z", "completed_at": "2024-03-20T19:22:56.207858Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.208288Z", "completed_at": "2024-03-20T19:22:56.208291Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0039141178131103516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_group_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.209653Z", "completed_at": "2024-03-20T19:22:56.213275Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.213785Z", "completed_at": "2024-03-20T19:22:56.213791Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005074977874755859, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_group_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.215397Z", "completed_at": "2024-03-20T19:22:56.219113Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.219863Z", "completed_at": "2024-03-20T19:22:56.219871Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005532979965209961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.221695Z", "completed_at": "2024-03-20T19:22:56.224616Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.225056Z", "completed_at": "2024-03-20T19:22:56.225060Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004439115524291992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.226568Z", "completed_at": "2024-03-20T19:22:56.230533Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.231011Z", "completed_at": "2024-03-20T19:22:56.231016Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005384922027587891, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.232421Z", "completed_at": "2024-03-20T19:22:56.235241Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.235683Z", "completed_at": "2024-03-20T19:22:56.235688Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004168033599853516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.237116Z", "completed_at": "2024-03-20T19:22:56.239957Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.240469Z", "completed_at": "2024-03-20T19:22:56.240473Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004266023635864258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.241953Z", "completed_at": "2024-03-20T19:22:56.244718Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.245158Z", "completed_at": "2024-03-20T19:22:56.245163Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0041120052337646484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_family_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.246582Z", "completed_at": "2024-03-20T19:22:56.249089Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.265871Z", "completed_at": "2024-03-20T19:22:56.265878Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.02035689353942871, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.267591Z", "completed_at": "2024-03-20T19:22:56.274934Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.275383Z", "completed_at": "2024-03-20T19:22:56.275387Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.008794307708740234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__job_overview", "compiled": true, "compiled_code": "with job_profile_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile\"\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family\"\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group\"\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group\"\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.276883Z", "completed_at": "2024-03-20T19:22:56.279650Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.280090Z", "completed_at": "2024-03-20T19:22:56.280093Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004181861877441406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.282190Z", "completed_at": "2024-03-20T19:22:56.284963Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.285403Z", "completed_at": "2024-03-20T19:22:56.285408Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004405975341796875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.286797Z", "completed_at": "2024-03-20T19:22:56.290425Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.290873Z", "completed_at": "2024-03-20T19:22:56.290877Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005030155181884766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.292377Z", "completed_at": "2024-03-20T19:22:56.294970Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.295403Z", "completed_at": "2024-03-20T19:22:56.295407Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.003947019577026367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.296783Z", "completed_at": "2024-03-20T19:22:56.299388Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.299826Z", "completed_at": "2024-03-20T19:22:56.299830Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00394129753112793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.301301Z", "completed_at": "2024-03-20T19:22:56.304832Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.305319Z", "completed_at": "2024-03-20T19:22:56.305324Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.004971981048583984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.854193Z", "completed_at": "2024-03-20T19:22:56.273965Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.274447Z", "completed_at": "2024-03-20T19:22:56.274452Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.4576129913330078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_leave_status", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.306790Z", "completed_at": "2024-03-20T19:22:56.310125Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.310778Z", "completed_at": "2024-03-20T19:22:56.310782Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005326986312866211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.313502Z", "completed_at": "2024-03-20T19:22:56.319686Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.320559Z", "completed_at": "2024-03-20T19:22:56.320566Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00877690315246582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_worker_code\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere organization_worker_code is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.316986Z", "completed_at": "2024-03-20T19:22:56.319921Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.320790Z", "completed_at": "2024-03-20T19:22:56.320793Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.009083986282348633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect role_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker\"\nwhere role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.330851Z", "completed_at": "2024-03-20T19:22:56.333516Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.334380Z", "completed_at": "2024-03-20T19:22:56.334385Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0076520442962646484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect person_name_type\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\nwhere person_name_type is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.328098Z", "completed_at": "2024-03-20T19:22:56.333735Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.334613Z", "completed_at": "2024-03-20T19:22:56.334617Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008652925491333008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.340583Z", "completed_at": "2024-03-20T19:22:56.349541Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.350020Z", "completed_at": "2024-03-20T19:22:56.350026Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.014188051223754883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.337284Z", "completed_at": "2024-03-20T19:22:56.351279Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.357253Z", "completed_at": "2024-03-20T19:22:56.357257Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.021886825561523438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.358412Z", "completed_at": "2024-03-20T19:22:56.364607Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.365089Z", "completed_at": "2024-03-20T19:22:56.365094Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009048223495483398, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect person_contact_email_address_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\nwhere person_contact_email_address_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.362087Z", "completed_at": "2024-03-20T19:22:56.365296Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.366453Z", "completed_at": "2024-03-20T19:22:56.366456Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0056421756744384766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.367966Z", "completed_at": "2024-03-20T19:22:56.374602Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.375535Z", "completed_at": "2024-03-20T19:22:56.375540Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009533882141113281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.372058Z", "completed_at": "2024-03-20T19:22:56.374836Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.375783Z", "completed_at": "2024-03-20T19:22:56.375787Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005182981491088867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:55.977131Z", "completed_at": "2024-03-20T19:22:56.350278Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.356394Z", "completed_at": "2024-03-20T19:22:56.356399Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.4085690975189209, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.378499Z", "completed_at": "2024-03-20T19:22:56.384357Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.389234Z", "completed_at": "2024-03-20T19:22:56.389239Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.012815237045288086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__personal_details", "compiled": true, "compiled_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information\"\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name\"\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address\"\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service\"\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__personal_details\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.381291Z", "completed_at": "2024-03-20T19:22:56.384620Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.389476Z", "completed_at": "2024-03-20T19:22:56.389480Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012935161590576172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.391947Z", "completed_at": "2024-03-20T19:22:56.396662Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.403852Z", "completed_at": "2024-03-20T19:22:56.403858Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.014946699142456055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect ethnicity_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\nwhere ethnicity_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.396926Z", "completed_at": "2024-03-20T19:22:56.404119Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.405695Z", "completed_at": "2024-03-20T19:22:56.405699Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.011803865432739258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.400556Z", "completed_at": "2024-03-20T19:22:56.405167Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.406905Z", "completed_at": "2024-03-20T19:22:56.406909Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012347936630249023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.408014Z", "completed_at": "2024-03-20T19:22:56.414445Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.417302Z", "completed_at": "2024-03-20T19:22:56.417311Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.011888980865478516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.411958Z", "completed_at": "2024-03-20T19:22:56.417027Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.418332Z", "completed_at": "2024-03-20T19:22:56.418335Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008518218994140625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.415160Z", "completed_at": "2024-03-20T19:22:56.418552Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.420311Z", "completed_at": "2024-03-20T19:22:56.420314Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00958108901977539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__position_overview", "compiled": true, "compiled_code": "with position_data as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\n),\n\nposition_job_profile_data as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile\"\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.069565Z", "completed_at": "2024-03-20T19:22:56.391454Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.396097Z", "completed_at": "2024-03-20T19:22:56.396105Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.35953378677368164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__employee_history", "compiled": true, "compiled_code": "\n\nwith worker_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_history\"\n),\n\nworker_position_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_history\"\n),\n\npersonal_information_history as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_history\"\n),\n\nworker_start_records as (\n\n select worker_id, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n _fivetran_start\n from personal_information_history\n order by worker_id, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_history_scd as (\n\n select worker_history_scd.worker_id, \n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as wh_active,\n worker_position_history._fivetran_active as wph_active,\n personal_information_history._fivetran_active as pih_active,\n worker_history.end_employment_date as wh_end_employment_date,\n worker_position_history.end_employment_date as wph_end_employment_date,\n worker_history.pay_through_date as wh_pay_through_date,\n worker_position_history.pay_through_date as wph_pay_through_date,\n \"termination_date\",\n \"academic_tenure_date\",\n \"active\",\n \"active_status_date\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_frequency\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_total_salary_and_allowances\",\n \"annual_summary_currency\",\n \"annual_summary_frequency\",\n \"annual_summary_primary_compensation_basis\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_total_salary_and_allowances\",\n \"benefits_service_date\",\n \"company_service_date\",\n \"compensation_effective_date\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"continuous_service_date\",\n \"contract_assignment_details\",\n \"contract_currency_code\",\n \"contract_end_date\",\n \"contract_frequency_name\",\n \"contract_pay_rate\",\n \"contract_vendor_name\",\n \"date_entered_workforce\",\n \"days_unemployed\",\n \"eligible_for_hire\",\n \"eligible_for_rehire_on_latest_termination\",\n \"employee_compensation_currency\",\n \"employee_compensation_frequency\",\n \"employee_compensation_primary_compensation_basis\",\n \"employee_compensation_total_base_pay\",\n \"employee_compensation_total_salary_and_allowances\",\n \"expected_date_of_return\",\n \"expected_retirement_date\",\n \"first_day_of_work\",\n \"has_international_assignment\",\n \"hire_date\",\n \"hire_reason\",\n \"hire_rescinded\",\n \"hourly_frequency_currency\",\n \"hourly_frequency_frequency\",\n \"hourly_frequency_primary_compensation_basis\",\n \"hourly_frequency_total_base_pay\",\n \"hourly_frequency_total_salary_and_allowances\",\n \"last_datefor_which_paid\",\n \"local_termination_reason\",\n \"months_continuous_prior_employment\",\n \"not_returning\",\n \"original_hire_date\",\n \"pay_group_frequency_currency\",\n \"pay_group_frequency_frequency\",\n \"pay_group_frequency_primary_compensation_basis\",\n \"pay_group_frequency_total_base_pay\",\n \"pay_group_frequency_total_salary_and_allowances\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"probation_end_date\",\n \"probation_start_date\",\n \"reason_reference_id\",\n \"regrettable_termination\",\n \"rehire\",\n \"resignation_date\",\n \"retired\",\n \"retirement_date\",\n \"retirement_eligibility_date\",\n \"return_unknown\",\n \"seniority_date\",\n \"severance_date\",\n \"terminated\",\n \"termination_involuntary\",\n \"termination_last_day_of_work\",\n \"time_off_service_date\",\n \"universal_id\",\n \"user_id\",\n \"vesting_date\",\n \"worker_code\",\n \"effective_date\",\n \"position_start_date\",\n \"position_end_date\",\n \"academic_pay_setup_data_annual_work_period_end_date\",\n \"academic_pay_setup_data_annual_work_period_start_date\",\n \"academic_pay_setup_data_annual_work_period_work_percent_of_year\",\n \"academic_pay_setup_data_disbursement_plan_period_end_date\",\n \"academic_pay_setup_data_disbursement_plan_period_start_date\",\n \"business_site_summary_display_language\",\n \"business_site_summary_local\",\n \"business_site_summary_location\",\n \"business_site_summary_location_type\",\n \"business_site_summary_name\",\n \"business_site_summary_scheduled_weekly_hours\",\n \"business_site_summary_time_profile\",\n \"business_title\",\n \"critical_job\",\n \"default_weekly_hours\",\n \"difficulty_to_fill\",\n \"employee_type\",\n \"exclude_from_head_count\",\n \"expected_assignment_end_date\",\n \"external_employee\",\n \"federal_withholding_fein\",\n \"frequency\",\n \"full_time_equivalent_percentage\",\n \"headcount_restriction_code\",\n \"host_country\",\n \"international_assignment_type\",\n \"is_primary_job\",\n \"job_exempt\",\n \"job_profile_id\",\n \"management_level_code\",\n \"paid_fte\",\n \"pay_group\",\n \"pay_rate\",\n \"pay_rate_type\",\n \"payroll_entity\",\n \"payroll_file_number\",\n \"regular_paid_equivalent_hours\",\n \"scheduled_weekly_hours\",\n \"specify_paid_fte\",\n \"specify_working_fte\",\n \"start_international_assignment_reason\",\n \"work_hours_profile\",\n \"work_shift\",\n \"work_shift_required\",\n \"work_space\",\n \"worker_hours_profile_classification\",\n \"working_fte\",\n \"working_time_frequency\",\n \"working_time_unit\",\n \"working_time_value\",\n \"type\",\n \"additional_nationality\",\n \"blood_type\",\n \"citizenship_status\",\n \"city_of_birth\",\n \"city_of_birth_code\",\n \"country_of_birth\",\n \"date_of_birth\",\n \"date_of_death\",\n \"gender\",\n \"hispanic_or_latino\",\n \"hukou_locality\",\n \"hukou_postal_code\",\n \"hukou_region\",\n \"hukou_subregion\",\n \"hukou_type\",\n \"last_medical_exam_date\",\n \"last_medical_exam_valid_to\",\n \"local_hukou\",\n \"marital_status\",\n \"marital_status_date\",\n \"medical_exam_notes\",\n \"native_region\",\n \"native_region_code\",\n \"personnel_file_agency\",\n \"political_affiliation\",\n \"primary_nationality\",\n \"region_of_birth\",\n \"region_of_birth_code\",\n \"religion\",\n \"social_benefit\",\n \"tobacco_use\",\n \"ll\"\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n order by worker_id, _fivetran_start, _fivetran_end\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select md5(cast(coalesce(cast(employee_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.421639Z", "completed_at": "2024-03-20T19:22:56.429271Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.433569Z", "completed_at": "2024-03-20T19:22:56.433575Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.014799118041992188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.425927Z", "completed_at": "2024-03-20T19:22:56.430057Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.434067Z", "completed_at": "2024-03-20T19:22:56.434071Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016888856887817383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.430821Z", "completed_at": "2024-03-20T19:22:56.438126Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.440087Z", "completed_at": "2024-03-20T19:22:56.440091Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.014565229415893555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.434849Z", "completed_at": "2024-03-20T19:22:56.439285Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.443806Z", "completed_at": "2024-03-20T19:22:56.443809Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.02226400375366211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.440744Z", "completed_at": "2024-03-20T19:22:56.453127Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.455183Z", "completed_at": "2024-03-20T19:22:56.455187Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.05900287628173828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.444049Z", "completed_at": "2024-03-20T19:22:56.454001Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.497293Z", "completed_at": "2024-03-20T19:22:56.497299Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.06145596504211426, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__worker_details", "compiled": true, "compiled_code": "with worker_data as (\n\n select \n *,\n now() as current_date\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_details\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.455424Z", "completed_at": "2024-03-20T19:22:56.501294Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.503345Z", "completed_at": "2024-03-20T19:22:56.503349Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.05093717575073242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.498100Z", "completed_at": "2024-03-20T19:22:56.503112Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.511342Z", "completed_at": "2024-03-20T19:22:56.511347Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.05753898620605469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.504766Z", "completed_at": "2024-03-20T19:22:56.513131Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.517625Z", "completed_at": "2024-03-20T19:22:56.517630Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0193021297454834, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__worker_position_enriched", "compiled": true, "compiled_code": "with worker_position_data as (\n\n select \n *,\n now() as current_date\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n md5(cast(coalesce(cast(worker_position_data_enhanced.worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_position_enriched\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.508517Z", "completed_at": "2024-03-20T19:22:56.513470Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.517889Z", "completed_at": "2024-03-20T19:22:56.517893Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.019405126571655273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.514729Z", "completed_at": "2024-03-20T19:22:56.522455Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.524578Z", "completed_at": "2024-03-20T19:22:56.524582Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013069868087768555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.518198Z", "completed_at": "2024-03-20T19:22:56.523312Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.525181Z", "completed_at": "2024-03-20T19:22:56.525185Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01700878143310547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.528521Z", "completed_at": "2024-03-20T19:22:56.532867Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.539683Z", "completed_at": "2024-03-20T19:22:56.539689Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0165860652923584, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.525865Z", "completed_at": "2024-03-20T19:22:56.533101Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.539956Z", "completed_at": "2024-03-20T19:22:56.539960Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01735401153564453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.533538Z", "completed_at": "2024-03-20T19:22:56.540189Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.542371Z", "completed_at": "2024-03-20T19:22:56.542376Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.011712074279785156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.537109Z", "completed_at": "2024-03-20T19:22:56.541600Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.543933Z", "completed_at": "2024-03-20T19:22:56.543937Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.012629032135009766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect leave_request_event_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\nwhere leave_request_event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.548648Z", "completed_at": "2024-03-20T19:22:56.552065Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.558256Z", "completed_at": "2024-03-20T19:22:56.558262Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01580190658569336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__organization_overview", "compiled": true, "compiled_code": "with organization_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization\"\n),\n\norganization_role_data as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role\"\n),\n\nworker_position_organization as (\n\n select *\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.545193Z", "completed_at": "2024-03-20T19:22:56.552278Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.558502Z", "completed_at": "2024-03-20T19:22:56.558505Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016873836517333984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.552520Z", "completed_at": "2024-03-20T19:22:56.559301Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.561512Z", "completed_at": "2024-03-20T19:22:56.561516Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.011976003646850586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.555785Z", "completed_at": "2024-03-20T19:22:56.560274Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.562266Z", "completed_at": "2024-03-20T19:22:56.562269Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014113187789916992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.563143Z", "completed_at": "2024-03-20T19:22:56.570460Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.574485Z", "completed_at": "2024-03-20T19:22:56.574489Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.016679048538208008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.566399Z", "completed_at": "2024-03-20T19:22:56.571506Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.577976Z", "completed_at": "2024-03-20T19:22:56.577980Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017210006713867188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.571936Z", "completed_at": "2024-03-20T19:22:56.578557Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.580457Z", "completed_at": "2024-03-20T19:22:56.580461Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.018957138061523438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.574932Z", "completed_at": "2024-03-20T19:22:56.579795Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.589302Z", "completed_at": "2024-03-20T19:22:56.589306Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.019706249237060547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.590711Z", "completed_at": "2024-03-20T19:22:56.594571Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.601225Z", "completed_at": "2024-03-20T19:22:56.601232Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.021100997924804688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__worker_employee_enhanced", "compiled": true, "compiled_code": "with int_worker_base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_details\" \n),\n\nint_worker_personal_details as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__personal_details\" \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_position_enriched\" \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_employee_enhanced\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.594802Z", "completed_at": "2024-03-20T19:22:56.601473Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.603071Z", "completed_at": "2024-03-20T19:22:56.603074Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.010800838470458984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.598768Z", "completed_at": "2024-03-20T19:22:56.602790Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.604500Z", "completed_at": "2024-03-20T19:22:56.604503Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.013361930847167969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.604971Z", "completed_at": "2024-03-20T19:22:56.613624Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.614384Z", "completed_at": "2024-03-20T19:22:56.614390Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.011507034301757812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.581230Z", "completed_at": "2024-03-20T19:22:56.855047Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.855569Z", "completed_at": "2024-03-20T19:22:56.855576Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.2964460849761963, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_daily_history", "compiled": true, "compiled_code": "\n\n\n \n\n \n\n \n \n\n\nwith spine as (\n \n \n \n\n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 1540\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n cast('2020-01-01'as date) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-03-20'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.876938Z", "completed_at": "2024-03-20T19:22:56.884787Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.885256Z", "completed_at": "2024-03-20T19:22:56.885262Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00927591323852539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__monthly_summary", "compiled": true, "compiled_code": "\n\nwith row_month_partition as (\n\n select *, \n date_trunc('month', date_day) as date_month,\n row_number() over (partition by employee_id, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n order by employee_id, date_day\n),\n\nend_of_month_history as (\n \n select *,\n now() as current_date\n from row_month_partition\n where recent_dom_row = 1\n order by employee_id, date_day\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select date_month,\n sum(case when date_month = date_trunc('month', effective_date) then 1 else 0 end) as new_employees,\n sum(case when date_month = date_trunc('month', termination_date) then 1 else 0 end) as churned_employees,\n sum(case when (date_month = date_trunc('month', termination_date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = date_trunc('month', termination_date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = date_trunc('month', wh_end_employment_date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where date_month >= date_trunc('month', effective_date)\n and (date_month <= date_trunc('month', wph_end_employment_date)\n or wph_end_employment_date is null)\n group by 1\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (date_month >= date_trunc('month', effective_date)\n and date_month <= date_trunc('month', wh_end_employment_date))\n or wh_end_employment_date is null\n group by 1\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n order by monthly_employee_metrics.date_month\n)\n\nselect *\nfrom monthly_summary\norder by metrics_month", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.886786Z", "completed_at": "2024-03-20T19:22:56.894061Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.894995Z", "completed_at": "2024-03-20T19:22:56.895003Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.00988626480102539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metrics_month\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.890288Z", "completed_at": "2024-03-20T19:22:56.895426Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:56.897130Z", "completed_at": "2024-03-20T19:22:56.897136Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008086919784545898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab", "compiled": true, "compiled_code": "\n \n \n\nselect\n metrics_month as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is not null\ngroup by metrics_month\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:56.608608Z", "completed_at": "2024-03-20T19:22:57.279218Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:57.280874Z", "completed_at": "2024-03-20T19:22:57.280893Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.6991431713104248, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_overview", "compiled": true, "compiled_code": "with employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n position_id,\n position_start_date,\n \"source_relation\",\n \"worker_code\",\n \"user_id\",\n \"universal_id\",\n \"is_user_active\",\n \"is_employed\",\n \"hire_date\",\n \"departure_date\",\n \"days_as_worker\",\n \"is_terminated\",\n \"primary_termination_category\",\n \"primary_termination_reason\",\n \"is_regrettable_termination\",\n \"compensation_effective_date\",\n \"employee_compensation_frequency\",\n \"annual_currency_summary_currency\",\n \"annual_currency_summary_total_base_pay\",\n \"annual_currency_summary_primary_compensation_basis\",\n \"annual_summary_currency\",\n \"annual_summary_total_base_pay\",\n \"annual_summary_primary_compensation_basis\",\n \"compensation_grade_id\",\n \"compensation_grade_profile_id\",\n \"first_name\",\n \"last_name\",\n \"date_of_birth\",\n \"gender\",\n \"is_hispanic_or_latino\",\n \"email_address\",\n \"ethnicity_codes\",\n \"military_status\",\n \"business_title\",\n \"job_profile_id\",\n \"employee_type\",\n \"position_location\",\n \"management_level_code\",\n \"fte_percent\",\n \"position_end_date\",\n \"position_effective_date\",\n \"days_employed\",\n \"is_employed_one_year\",\n \"is_employed_five_years\",\n \"is_employed_ten_years\",\n \"is_employed_twenty_years\",\n \"is_employed_thirty_years\",\n \"is_current_employee_one_year\",\n \"is_current_employee_five_years\",\n \"is_current_employee_ten_years\",\n \"is_current_employee_twenty_years\",\n \"is_current_employee_thirty_years\"\n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__worker_employee_enhanced\" \n)\n\nselect * \nfrom employee_surrogate_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:57.313947Z", "completed_at": "2024-03-20T19:22:57.330021Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:57.332078Z", "completed_at": "2024-03-20T19:22:57.332092Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.021736860275268555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__employee_overview_source_relation__worker_id__position_id__position_start_date.0ce0e2b37d", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, worker_id, position_id, position_start_date\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\n group by source_relation, worker_id, position_id, position_start_date\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-03-20T19:22:57.323815Z", "completed_at": "2024-03-20T19:22:57.330732Z"}, {"name": "execute", "started_at": "2024-03-20T19:22:57.332584Z", "completed_at": "2024-03-20T19:22:57.332592Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.012320995330810547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "relation_name": null}], "elapsed_time": 4.7460479736328125, "args": {"log_level": "info", "partial_parse": true, "select": [], "target": "postgres", "quiet": false, "warn_error_options": {"include": [], "exclude": []}, "exclude": [], "log_format": "default", "version_check": true, "vars": {}, "cache_selected_only": false, "printer_width": 80, "write_json": true, "profiles_dir": "/Users/avinash.kunnath/.dbt", "enable_legacy_logger": false, "indirect_selection": "eager", "introspect": true, "project_dir": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "send_anonymous_usage_stats": true, "partial_parse_file_diff": true, "print": true, "favor_state": false, "log_level_file": "debug", "which": "generate", "invocation_command": "dbt docs generate -t postgres", "use_colors": true, "log_format_file": "debug", "use_colors_file": true, "static": false, "defer": false, "empty_catalog": false, "log_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests/logs", "populate_cache": true, "static_parser": true, "show_resource_report": false, "macro_debugging": false, "compile": true, "log_file_max_bytes": 10485760, "strict_mode": false}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v5.json", "dbt_version": "1.7.8", "generated_at": "2024-04-01T22:52:24.269450Z", "invocation_id": "8e65a20c-cb81-4843-9da9-8c7f4213e39a", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.216236Z", "completed_at": "2024-04-01T22:52:12.331630Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.333722Z", "completed_at": "2024-04-01T22:52:12.333771Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.13081598281860352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.234106Z", "completed_at": "2024-04-01T22:52:12.332023Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.334022Z", "completed_at": "2024-04-01T22:52:12.334025Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.12884879112243652, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.283034Z", "completed_at": "2024-04-01T22:52:12.332382Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.334495Z", "completed_at": "2024-04-01T22:52:12.334498Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.12891077995300293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.327584Z", "completed_at": "2024-04-01T22:52:12.333183Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.336012Z", "completed_at": "2024-04-01T22:52:12.336020Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.12781310081481934, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.345137Z", "completed_at": "2024-04-01T22:52:12.354061Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.356920Z", "completed_at": "2024-04-01T22:52:12.356927Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.018774986267089844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__military_service_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.342251Z", "completed_at": "2024-04-01T22:52:12.354498Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.357225Z", "completed_at": "2024-04-01T22:52:12.357231Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.019749164581298828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.348361Z", "completed_at": "2024-04-01T22:52:12.355350Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.357780Z", "completed_at": "2024-04-01T22:52:12.357785Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.019112825393676758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.351628Z", "completed_at": "2024-04-01T22:52:12.356366Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.359188Z", "completed_at": "2024-04-01T22:52:12.359193Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0195310115814209, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.368066Z", "completed_at": "2024-04-01T22:52:12.378050Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.380426Z", "completed_at": "2024-04-01T22:52:12.380438Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.019721031188964844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.365119Z", "completed_at": "2024-04-01T22:52:12.378322Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.381119Z", "completed_at": "2024-04-01T22:52:12.381123Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.021065950393676758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.371259Z", "completed_at": "2024-04-01T22:52:12.379069Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.382440Z", "completed_at": "2024-04-01T22:52:12.382445Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.02106499671936035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.374649Z", "completed_at": "2024-04-01T22:52:12.379988Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.383428Z", "completed_at": "2024-04-01T22:52:12.383434Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.020886898040771484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_name_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.388416Z", "completed_at": "2024-04-01T22:52:12.399848Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.403885Z", "completed_at": "2024-04-01T22:52:12.403893Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.019798994064331055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.392625Z", "completed_at": "2024-04-01T22:52:12.403485Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.406187Z", "completed_at": "2024-04-01T22:52:12.406193Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.02152705192565918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.395773Z", "completed_at": "2024-04-01T22:52:12.404143Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.407182Z", "completed_at": "2024-04-01T22:52:12.407186Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.021695852279663086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.400293Z", "completed_at": "2024-04-01T22:52:12.405580Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.408396Z", "completed_at": "2024-04-01T22:52:12.408399Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.022176027297973633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.410996Z", "completed_at": "2024-04-01T22:52:12.419738Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.426514Z", "completed_at": "2024-04-01T22:52:12.426525Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.019732952117919922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.416158Z", "completed_at": "2024-04-01T22:52:12.426256Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.428655Z", "completed_at": "2024-04-01T22:52:12.428662Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.019649028778076172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.420438Z", "completed_at": "2024-04-01T22:52:12.426959Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.429347Z", "completed_at": "2024-04-01T22:52:12.429351Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016704082489013672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_leave_status_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.423741Z", "completed_at": "2024-04-01T22:52:12.428369Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.431780Z", "completed_at": "2024-04-01T22:52:12.431786Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.018108129501342773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.440204Z", "completed_at": "2024-04-01T22:52:12.441440Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.507559Z", "completed_at": "2024-04-01T22:52:12.507576Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.07504892349243164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.434638Z", "completed_at": "2024-04-01T22:52:12.441754Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.508017Z", "completed_at": "2024-04-01T22:52:12.508024Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.07927989959716797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.442137Z", "completed_at": "2024-04-01T22:52:12.443077Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.508420Z", "completed_at": "2024-04-01T22:52:12.508426Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.07282567024230957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.444542Z", "completed_at": "2024-04-01T22:52:12.506953Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.511154Z", "completed_at": "2024-04-01T22:52:12.511164Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.07402586936950684, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.517623Z", "completed_at": "2024-04-01T22:52:12.518865Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.524796Z", "completed_at": "2024-04-01T22:52:12.524806Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01205897331237793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.519252Z", "completed_at": "2024-04-01T22:52:12.520295Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.525155Z", "completed_at": "2024-04-01T22:52:12.525160Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.012091875076293945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.520612Z", "completed_at": "2024-04-01T22:52:12.521592Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.525471Z", "completed_at": "2024-04-01T22:52:12.525476Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.012099027633666992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_military_service_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.523255Z", "completed_at": "2024-04-01T22:52:12.524438Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.527852Z", "completed_at": "2024-04-01T22:52:12.527859Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01248931884765625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.533358Z", "completed_at": "2024-04-01T22:52:12.534499Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.542098Z", "completed_at": "2024-04-01T22:52:12.542107Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013848066329956055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.534957Z", "completed_at": "2024-04-01T22:52:12.536729Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.542597Z", "completed_at": "2024-04-01T22:52:12.542604Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013975858688354492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.537158Z", "completed_at": "2024-04-01T22:52:12.538748Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.542898Z", "completed_at": "2024-04-01T22:52:12.542901Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.013909101486206055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.540333Z", "completed_at": "2024-04-01T22:52:12.541634Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.545413Z", "completed_at": "2024-04-01T22:52:12.545418Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.015161991119384766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.551433Z", "completed_at": "2024-04-01T22:52:12.553546Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.560821Z", "completed_at": "2024-04-01T22:52:12.560827Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0136871337890625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_name_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.554091Z", "completed_at": "2024-04-01T22:52:12.555395Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.561146Z", "completed_at": "2024-04-01T22:52:12.561149Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013862133026123047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.555881Z", "completed_at": "2024-04-01T22:52:12.556955Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.561447Z", "completed_at": "2024-04-01T22:52:12.561450Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.014091014862060547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.558365Z", "completed_at": "2024-04-01T22:52:12.560479Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.563897Z", "completed_at": "2024-04-01T22:52:12.563902Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01464700698852539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.569604Z", "completed_at": "2024-04-01T22:52:12.570831Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.576932Z", "completed_at": "2024-04-01T22:52:12.576940Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012605905532836914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.571229Z", "completed_at": "2024-04-01T22:52:12.572336Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.577339Z", "completed_at": "2024-04-01T22:52:12.577350Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.012531757354736328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.572809Z", "completed_at": "2024-04-01T22:52:12.573899Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.577760Z", "completed_at": "2024-04-01T22:52:12.577764Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.012366056442260742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.575554Z", "completed_at": "2024-04-01T22:52:12.576552Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.580205Z", "completed_at": "2024-04-01T22:52:12.580209Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.012942075729370117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.584883Z", "completed_at": "2024-04-01T22:52:12.586021Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.600461Z", "completed_at": "2024-04-01T22:52:12.600467Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0194089412689209, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.586306Z", "completed_at": "2024-04-01T22:52:12.588888Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.600723Z", "completed_at": "2024-04-01T22:52:12.600725Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0195770263671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.386883Z", "completed_at": "2024-04-01T22:52:21.414838Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.416518Z", "completed_at": "2024-04-01T22:52:21.416526Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.03340435028076172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id\n from __dbt__cte__stg_workday__job_family\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.400392Z", "completed_at": "2024-04-01T22:52:21.415280Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.417077Z", "completed_at": "2024-04-01T22:52:21.417080Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.03377485275268555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.408439Z", "completed_at": "2024-04-01T22:52:21.415904Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.417981Z", "completed_at": "2024-04-01T22:52:21.417985Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.03428816795349121, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from __dbt__cte__stg_workday__job_family_job_profile\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.422272Z", "completed_at": "2024-04-01T22:52:21.434892Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.435467Z", "completed_at": "2024-04-01T22:52:21.435481Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.015895843505859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.425958Z", "completed_at": "2024-04-01T22:52:21.436290Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.438063Z", "completed_at": "2024-04-01T22:52:21.438067Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01836395263671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.429861Z", "completed_at": "2024-04-01T22:52:21.436528Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.438345Z", "completed_at": "2024-04-01T22:52:21.438353Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.018107891082763672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from __dbt__cte__stg_workday__job_family_job_family_group\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.440050Z", "completed_at": "2024-04-01T22:52:21.445726Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.454483Z", "completed_at": "2024-04-01T22:52:21.454490Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01760411262512207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.446341Z", "completed_at": "2024-04-01T22:52:21.455496Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.457475Z", "completed_at": "2024-04-01T22:52:21.457480Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.013790130615234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.450134Z", "completed_at": "2024-04-01T22:52:21.456247Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.458030Z", "completed_at": "2024-04-01T22:52:21.458033Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.018204927444458008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_group_id\n from __dbt__cte__stg_workday__job_family_group\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.458799Z", "completed_at": "2024-04-01T22:52:21.465274Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.485072Z", "completed_at": "2024-04-01T22:52:21.485078Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.029066085815429688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_group\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.466252Z", "completed_at": "2024-04-01T22:52:21.490472Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.491507Z", "completed_at": "2024-04-01T22:52:21.491513Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.027987957000732422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__job_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), job_profile_data as (\n\n select * \n from __dbt__cte__stg_workday__job_profile\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_profile\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from __dbt__cte__stg_workday__job_family\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_family_group\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from __dbt__cte__stg_workday__job_family_group\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.481410Z", "completed_at": "2024-04-01T22:52:21.491228Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.492996Z", "completed_at": "2024-04-01T22:52:21.493000Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.029147863388061523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id\n from __dbt__cte__stg_workday__job_profile\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.487103Z", "completed_at": "2024-04-01T22:52:21.491735Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.493643Z", "completed_at": "2024-04-01T22:52:21.493646Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.008301019668579102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.496409Z", "completed_at": "2024-04-01T22:52:21.510034Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.510989Z", "completed_at": "2024-04-01T22:52:21.510997Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01762676239013672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__military_service\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.502760Z", "completed_at": "2024-04-01T22:52:21.511239Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.513232Z", "completed_at": "2024-04-01T22:52:21.513237Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.018660783767700195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__military_service\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.506146Z", "completed_at": "2024-04-01T22:52:21.511496Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.513533Z", "completed_at": "2024-04-01T22:52:21.513536Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013845682144165039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from __dbt__cte__stg_workday__organization_job_family\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.516600Z", "completed_at": "2024-04-01T22:52:21.525356Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.531594Z", "completed_at": "2024-04-01T22:52:21.531622Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.018663883209228516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.521710Z", "completed_at": "2024-04-01T22:52:21.531914Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.533968Z", "completed_at": "2024-04-01T22:52:21.533973Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.014868974685668945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.525768Z", "completed_at": "2024-04-01T22:52:21.532861Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.534641Z", "completed_at": "2024-04-01T22:52:21.534645Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.015246152877807617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id\n from __dbt__cte__stg_workday__organization\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.536464Z", "completed_at": "2024-04-01T22:52:21.541975Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.550732Z", "completed_at": "2024-04-01T22:52:21.550740Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01703786849975586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.546942Z", "completed_at": "2024-04-01T22:52:21.551888Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.553523Z", "completed_at": "2024-04-01T22:52:21.553527Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016686201095581055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.542240Z", "completed_at": "2024-04-01T22:52:21.552112Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.553786Z", "completed_at": "2024-04-01T22:52:21.553789Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017845869064331055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from __dbt__cte__stg_workday__organization_role_worker\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.554039Z", "completed_at": "2024-04-01T22:52:21.559979Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.565915Z", "completed_at": "2024-04-01T22:52:21.565922Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01884174346923828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_worker_code\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_worker_code is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.561344Z", "completed_at": "2024-04-01T22:52:21.572171Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.573777Z", "completed_at": "2024-04-01T22:52:21.573781Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01867532730102539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select role_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.566242Z", "completed_at": "2024-04-01T22:52:21.572879Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.577709Z", "completed_at": "2024-04-01T22:52:21.577716Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01852893829345703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from __dbt__cte__stg_workday__person_contact_email_address\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.574006Z", "completed_at": "2024-04-01T22:52:21.579740Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.581786Z", "completed_at": "2024-04-01T22:52:21.581796Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01800680160522461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_contact_email_address_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere person_contact_email_address_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.585777Z", "completed_at": "2024-04-01T22:52:21.596489Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.597740Z", "completed_at": "2024-04-01T22:52:21.597748Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.018254756927490234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from __dbt__cte__stg_workday__person_name\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.582112Z", "completed_at": "2024-04-01T22:52:21.596797Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.598053Z", "completed_at": "2024-04-01T22:52:21.598057Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.019248008728027344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.592014Z", "completed_at": "2024-04-01T22:52:21.598324Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.600765Z", "completed_at": "2024-04-01T22:52:21.600770Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.010567903518676758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_name_type\nfrom __dbt__cte__stg_workday__person_name\nwhere person_name_type is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.606736Z", "completed_at": "2024-04-01T22:52:21.616454Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.617806Z", "completed_at": "2024-04-01T22:52:21.617815Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.017277002334594727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from __dbt__cte__stg_workday__organization_role\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.603000Z", "completed_at": "2024-04-01T22:52:21.616810Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.618196Z", "completed_at": "2024-04-01T22:52:21.618203Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.018245220184326172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_name\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.612447Z", "completed_at": "2024-04-01T22:52:21.620126Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.623799Z", "completed_at": "2024-04-01T22:52:21.623808Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0177457332611084, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.625007Z", "completed_at": "2024-04-01T22:52:21.636159Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.685842Z", "completed_at": "2024-04-01T22:52:21.685849Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.06613993644714355, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_role_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.629666Z", "completed_at": "2024-04-01T22:52:21.636725Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.686260Z", "completed_at": "2024-04-01T22:52:21.686271Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0648336410522461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__personal_information\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.637215Z", "completed_at": "2024-04-01T22:52:21.687979Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.690485Z", "completed_at": "2024-04-01T22:52:21.690491Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0559239387512207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.691982Z", "completed_at": "2024-04-01T22:52:21.702274Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.722026Z", "completed_at": "2024-04-01T22:52:21.722039Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.03386497497558594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id\n from __dbt__cte__stg_workday__position\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.697359Z", "completed_at": "2024-04-01T22:52:21.702680Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.722729Z", "completed_at": "2024-04-01T22:52:21.722735Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0359499454498291, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.734061Z", "completed_at": "2024-04-01T22:52:21.755278Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.756065Z", "completed_at": "2024-04-01T22:52:21.756073Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0287320613861084, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.742824Z", "completed_at": "2024-04-01T22:52:21.756385Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.759545Z", "completed_at": "2024-04-01T22:52:21.759551Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.02984905242919922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n worker_id, _fivetran_start\n from __dbt__cte__stg_workday__personal_information_history\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.748611Z", "completed_at": "2024-04-01T22:52:21.756727Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.759874Z", "completed_at": "2024-04-01T22:52:21.759878Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.029052734375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select ethnicity_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere ethnicity_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.763467Z", "completed_at": "2024-04-01T22:52:21.773360Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.778928Z", "completed_at": "2024-04-01T22:52:21.778935Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.019628047943115234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.769370Z", "completed_at": "2024-04-01T22:52:21.779226Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.781555Z", "completed_at": "2024-04-01T22:52:21.781561Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.015173912048339844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.773838Z", "completed_at": "2024-04-01T22:52:21.780284Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.782423Z", "completed_at": "2024-04-01T22:52:21.782428Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.015497922897338867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.784231Z", "completed_at": "2024-04-01T22:52:21.791344Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.803330Z", "completed_at": "2024-04-01T22:52:21.803342Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.02210211753845215, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.791928Z", "completed_at": "2024-04-01T22:52:21.804451Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.806235Z", "completed_at": "2024-04-01T22:52:21.806242Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017253875732421875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__position_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), position_data as (\n\n select *\n from __dbt__cte__stg_workday__position\n),\n\nposition_job_profile_data as (\n\n select *\n from __dbt__cte__stg_workday__position_job_profile\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.798886Z", "completed_at": "2024-04-01T22:52:21.805457Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.807646Z", "completed_at": "2024-04-01T22:52:21.807649Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.021514892578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from __dbt__cte__stg_workday__position_job_profile\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.807940Z", "completed_at": "2024-04-01T22:52:21.813372Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.819725Z", "completed_at": "2024-04-01T22:52:21.819732Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.018564701080322266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.814671Z", "completed_at": "2024-04-01T22:52:21.824739Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.826314Z", "completed_at": "2024-04-01T22:52:21.826319Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.014655113220214844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.820074Z", "completed_at": "2024-04-01T22:52:21.826045Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.831041Z", "completed_at": "2024-04-01T22:52:21.831054Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.018551111221313477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from __dbt__cte__stg_workday__position_organization\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.827519Z", "completed_at": "2024-04-01T22:52:21.833355Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.838414Z", "completed_at": "2024-04-01T22:52:21.838421Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013761043548583984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.834947Z", "completed_at": "2024-04-01T22:52:21.851911Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.859959Z", "completed_at": "2024-04-01T22:52:21.859967Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.027821063995361328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.861328Z", "completed_at": "2024-04-01T22:52:21.867872Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.873382Z", "completed_at": "2024-04-01T22:52:21.873389Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.018733978271484375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__worker\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.869005Z", "completed_at": "2024-04-01T22:52:21.878534Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.880429Z", "completed_at": "2024-04-01T22:52:21.880435Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.014460086822509766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.873834Z", "completed_at": "2024-04-01T22:52:21.879549Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.881897Z", "completed_at": "2024-04-01T22:52:21.881901Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.018034934997558594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n worker_id, _fivetran_start\n from __dbt__cte__stg_workday__worker_history\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.882176Z", "completed_at": "2024-04-01T22:52:21.887513Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.894308Z", "completed_at": "2024-04-01T22:52:21.894316Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.019279956817626953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.889256Z", "completed_at": "2024-04-01T22:52:21.900147Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.901878Z", "completed_at": "2024-04-01T22:52:21.901884Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.020772218704223633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.894659Z", "completed_at": "2024-04-01T22:52:21.901323Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.908078Z", "completed_at": "2024-04-01T22:52:21.908083Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.020632266998291016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.902529Z", "completed_at": "2024-04-01T22:52:21.909935Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.914934Z", "completed_at": "2024-04-01T22:52:21.914949Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.015423297882080078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from __dbt__cte__stg_workday__worker_leave_status\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.911420Z", "completed_at": "2024-04-01T22:52:21.919946Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.921668Z", "completed_at": "2024-04-01T22:52:21.921674Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.013443708419799805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select leave_request_event_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere leave_request_event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.916439Z", "completed_at": "2024-04-01T22:52:21.921383Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.931846Z", "completed_at": "2024-04-01T22:52:21.931853Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.021828889846801758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.923302Z", "completed_at": "2024-04-01T22:52:21.933685Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.939978Z", "completed_at": "2024-04-01T22:52:21.939992Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.020087003707885742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__organization_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), organization_data as (\n\n select * \n from __dbt__cte__stg_workday__organization\n),\n\norganization_role_data as (\n\n select * \n from __dbt__cte__stg_workday__organization_role\n),\n\nworker_position_organization as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_organization\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.935212Z", "completed_at": "2024-04-01T22:52:21.944517Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.946337Z", "completed_at": "2024-04-01T22:52:21.946349Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.014250040054321289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from __dbt__cte__stg_workday__worker_position_organization\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.941401Z", "completed_at": "2024-04-01T22:52:21.946686Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.951908Z", "completed_at": "2024-04-01T22:52:21.951915Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.018082141876220703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.948095Z", "completed_at": "2024-04-01T22:52:21.953223Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.958231Z", "completed_at": "2024-04-01T22:52:21.958237Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013158798217773438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.954121Z", "completed_at": "2024-04-01T22:52:21.970308Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.972817Z", "completed_at": "2024-04-01T22:52:21.972824Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.021552085876464844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.974580Z", "completed_at": "2024-04-01T22:52:21.981028Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.989312Z", "completed_at": "2024-04-01T22:52:21.989328Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.017867088317871094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from __dbt__cte__stg_workday__worker_position\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.982315Z", "completed_at": "2024-04-01T22:52:21.991571Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.050581Z", "completed_at": "2024-04-01T22:52:22.050587Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0713491439819336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.986057Z", "completed_at": "2024-04-01T22:52:21.991845Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.050939Z", "completed_at": "2024-04-01T22:52:22.050944Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.07151985168457031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.992185Z", "completed_at": "2024-04-01T22:52:22.052594Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.054857Z", "completed_at": "2024-04-01T22:52:22.054862Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.06492733955383301, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__employee_history", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n), worker_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_history\n),\n\nworker_position_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_history\n),\n\npersonal_information_history as (\n\n select *\n from __dbt__cte__stg_workday__personal_information_history\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select md5(cast(coalesce(cast(employee_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.056275Z", "completed_at": "2024-04-01T22:52:22.067834Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.075590Z", "completed_at": "2024-04-01T22:52:22.075599Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.02270221710205078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n worker_id, position_id, _fivetran_start\n from __dbt__cte__stg_workday__worker_position_history\n group by worker_id, position_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.061360Z", "completed_at": "2024-04-01T22:52:22.068563Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.075996Z", "completed_at": "2024-04-01T22:52:22.076002Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.022766828536987305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.069208Z", "completed_at": "2024-04-01T22:52:22.077516Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.079533Z", "completed_at": "2024-04-01T22:52:22.079538Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013241052627563477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.080993Z", "completed_at": "2024-04-01T22:52:22.093357Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.094888Z", "completed_at": "2024-04-01T22:52:22.094894Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017184019088745117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.084770Z", "completed_at": "2024-04-01T22:52:22.093706Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.095131Z", "completed_at": "2024-04-01T22:52:22.095135Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.017494916915893555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.089914Z", "completed_at": "2024-04-01T22:52:22.094642Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.096950Z", "completed_at": "2024-04-01T22:52:22.096955Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.009577035903930664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.104574Z", "completed_at": "2024-04-01T22:52:22.112828Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.114750Z", "completed_at": "2024-04-01T22:52:22.114761Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01683807373046875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.101308Z", "completed_at": "2024-04-01T22:52:22.113289Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.115339Z", "completed_at": "2024-04-01T22:52:22.115365Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01788806915283203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.108801Z", "completed_at": "2024-04-01T22:52:22.114389Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.117130Z", "completed_at": "2024-04-01T22:52:22.117134Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.017326831817626953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.120368Z", "completed_at": "2024-04-01T22:52:22.130307Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.131660Z", "completed_at": "2024-04-01T22:52:22.131666Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014331817626953125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.127032Z", "completed_at": "2024-04-01T22:52:22.131152Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.133315Z", "completed_at": "2024-04-01T22:52:22.133319Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.015076875686645508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.123703Z", "completed_at": "2024-04-01T22:52:22.131431Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.133588Z", "completed_at": "2024-04-01T22:52:22.133590Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016781091690063477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.167402Z", "completed_at": "2024-04-01T22:52:22.181975Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.182502Z", "completed_at": "2024-04-01T22:52:22.182509Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01619887351989746, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n), employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from __dbt__cte__int_workday__worker_employee_enhanced \n)\n\nselect * \nfrom employee_surrogate_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.188931Z", "completed_at": "2024-04-01T22:52:22.193441Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.194652Z", "completed_at": "2024-04-01T22:52:22.194658Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.010887861251831055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.185439Z", "completed_at": "2024-04-01T22:52:22.193794Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.194976Z", "completed_at": "2024-04-01T22:52:22.194980Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011782169342041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.197362Z", "completed_at": "2024-04-01T22:52:22.200522Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.200993Z", "completed_at": "2024-04-01T22:52:22.200999Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.004685163497924805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__employee_overview_employee_id.b01e19996c", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is not null\ngroup by employee_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.577581Z", "completed_at": "2024-04-01T22:52:22.586249Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.587496Z", "completed_at": "2024-04-01T22:52:22.587503Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.038244009017944336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n worker_id, position_id, organization_id, _fivetran_start\n from __dbt__cte__stg_workday__worker_position_organization_history\n group by worker_id, position_id, organization_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.581784Z", "completed_at": "2024-04-01T22:52:22.586662Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.587818Z", "completed_at": "2024-04-01T22:52:22.587824Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.03736114501953125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.594969Z", "completed_at": "2024-04-01T22:52:22.598327Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.598931Z", "completed_at": "2024-04-01T22:52:22.598937Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.008926868438720703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.591379Z", "completed_at": "2024-04-01T22:52:22.603591Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.604410Z", "completed_at": "2024-04-01T22:52:22.604428Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.015017986297607422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.600554Z", "completed_at": "2024-04-01T22:52:22.605299Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.606715Z", "completed_at": "2024-04-01T22:52:22.606721Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.007369041442871094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.607721Z", "completed_at": "2024-04-01T22:52:22.612876Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.613526Z", "completed_at": "2024-04-01T22:52:22.613531Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007750749588012695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.155707Z", "completed_at": "2024-04-01T22:52:23.646430Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:23.647497Z", "completed_at": "2024-04-01T22:52:23.647505Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.6328730583190918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_daily_history", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n\n\n \n \n\n \n \n\n\n\n\n\nwith spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n + \n \n p13.generated_number * power(2, 13)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n cross join \n \n p as p13\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 8492\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2000-12-31' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-01'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:23.791953Z", "completed_at": "2024-04-01T22:52:23.806243Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:23.809027Z", "completed_at": "2024-04-01T22:52:23.809037Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.03551816940307617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:23.779406Z", "completed_at": "2024-04-01T22:52:23.806641Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:23.809519Z", "completed_at": "2024-04-01T22:52:23.809527Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.037644147872924805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__monthly_summary", "compiled": true, "compiled_code": " \n\nwith row_month_partition as (\n\n select *, \n cast(date_trunc('month', date_day) as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n),\n\nend_of_month_history as (\n \n select *,\n now() as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when cast(date_month as date) = cast(date_trunc('month', position_effective_date) as date) then 1 else 0 end) as new_employees,\n sum(case when cast(date_month as date) = cast(date_trunc('month', termination_date) as date) then 1 else 0 end) as churned_employees,\n sum(case when (cast(date_month as date) = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (cast(date_month as date) = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when cast(date_month as date) = cast(date_trunc('month', end_employment_date) as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and (cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:23.801949Z", "completed_at": "2024-04-01T22:52:23.806993Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:23.809984Z", "completed_at": "2024-04-01T22:52:23.809989Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.036161184310913086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is not null\ngroup by employee_day_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:23.816326Z", "completed_at": "2024-04-01T22:52:23.825264Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:23.826694Z", "completed_at": "2024-04-01T22:52:23.826702Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013287067413330078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metrics_month\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:23.820565Z", "completed_at": "2024-04-01T22:52:23.825687Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:23.827067Z", "completed_at": "2024-04-01T22:52:23.827072Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.013338088989257812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab", "compiled": true, "compiled_code": "\n \n \n\nselect\n metrics_month as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is not null\ngroup by metrics_month\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.552687Z", "completed_at": "2024-04-01T22:52:24.090418Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:24.091104Z", "completed_at": "2024-04-01T22:52:24.091112Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.6708669662475586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__worker_position_org_daily_history", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n\n\n \n \n\n \n \n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n), spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n + \n \n p13.generated_number * power(2, 13)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n cross join \n \n p as p13\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 8492\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2000-12-31' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-01'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nworker_position_org_history as (\n\n select * \n from __dbt__cte__stg_workday__worker_position_organization_history\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:24.234209Z", "completed_at": "2024-04-01T22:52:24.252414Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:24.253613Z", "completed_at": "2024-04-01T22:52:24.253620Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.030524015426635742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:24.239815Z", "completed_at": "2024-04-01T22:52:24.253138Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:24.256747Z", "completed_at": "2024-04-01T22:52:24.256753Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.031891822814941406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:24.247265Z", "completed_at": "2024-04-01T22:52:24.253993Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:24.257511Z", "completed_at": "2024-04-01T22:52:24.257516Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.030001163482666016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect wpo_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:24.243297Z", "completed_at": "2024-04-01T22:52:24.254311Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:24.257854Z", "completed_at": "2024-04-01T22:52:24.257858Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.032279014587402344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:24.261150Z", "completed_at": "2024-04-01T22:52:24.265569Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:24.266158Z", "completed_at": "2024-04-01T22:52:24.266165Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.007866859436035156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21", "compiled": true, "compiled_code": "\n \n \n\nselect\n wpo_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is not null\ngroup by wpo_day_id\nhaving count(*) > 1\n\n\n", "relation_name": null}], "elapsed_time": 16.182841777801514, "args": {"profiles_dir": "/Users/avinash.kunnath/.dbt", "send_anonymous_usage_stats": true, "target": "postgres", "empty_catalog": false, "populate_cache": true, "static_parser": true, "warn_error_options": {"include": [], "exclude": []}, "use_colors": true, "log_level": "info", "exclude": [], "introspect": true, "indirect_selection": "eager", "log_file_max_bytes": 10485760, "write_json": true, "partial_parse_file_diff": true, "log_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests/logs", "partial_parse": true, "log_format": "default", "vars": {}, "static": false, "invocation_command": "dbt docs generate -t postgres", "strict_mode": false, "enable_legacy_logger": false, "version_check": true, "macro_debugging": false, "favor_state": false, "quiet": false, "log_format_file": "debug", "defer": false, "use_colors_file": true, "print": true, "show_resource_report": false, "printer_width": 80, "compile": true, "select": [], "cache_selected_only": false, "log_level_file": "debug", "which": "generate", "project_dir": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests"}} \ No newline at end of file From bb54ce68e018466a5b9875181faf023bc1754304 Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Tue, 2 Apr 2024 03:20:33 -0700 Subject: [PATCH 17/20] PR review fixes, yml documentation --- docs/catalog.json | 2 +- docs/manifest.json | 2 +- docs/run_results.json | 2 +- integration_tests/dbt_project.yml | 2 - models/docs.md | 2 +- models/workday.yml | 25 ++- ..._workday__personal_information_history.sql | 4 +- .../staging/stg_workday__worker_history.sql | 2 +- .../stg_workday__worker_position_history.sql | 2 +- ...__worker_position_organization_history.sql | 3 +- .../staging/stg_workday_history.yml | 75 +++---- .../workday__monthly_summary.sql | 10 +- ...day__worker_position_org_daily_history.sql | 14 +- models/workday_history/workday_history.yml | 204 +++++++++++++++++- 14 files changed, 278 insertions(+), 71 deletions(-) diff --git a/docs/catalog.json b/docs/catalog.json index 47bb642..34da240 100644 --- a/docs/catalog.json +++ b/docs/catalog.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.7.8", "generated_at": "2024-04-01T22:52:26.288504Z", "invocation_id": "8e65a20c-cb81-4843-9da9-8c7f4213e39a", "env": {}}, "nodes": {"seed.workday_integration_tests.workday_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_data"}, "seed.workday_integration_tests.workday_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data"}, "seed.workday_integration_tests.workday_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_profile_data"}, "seed.workday_integration_tests.workday_military_service_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_military_service_data"}, "seed.workday_integration_tests.workday_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_data"}, "seed.workday_integration_tests.workday_organization_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data"}, "seed.workday_integration_tests.workday_organization_role_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_data"}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data"}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data"}, "seed.workday_integration_tests.workday_person_name_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_name_data"}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data"}, "seed.workday_integration_tests.workday_personal_information_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data"}, "seed.workday_integration_tests.workday_position_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_data"}, "seed.workday_integration_tests.workday_position_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data"}, "seed.workday_integration_tests.workday_position_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_organization_data"}, "seed.workday_integration_tests.workday_worker_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_history_data"}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data"}, "seed.workday_integration_tests.workday_worker_position_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data"}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data"}, "model.workday.stg_workday__job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_base"}, "model.workday.stg_workday__job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_group_base"}, "model.workday.stg_workday__job_family_job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base"}, "model.workday.stg_workday__job_family_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_profile_base"}, "model.workday.stg_workday__job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_profile_base"}, "model.workday.stg_workday__military_service_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__military_service_base"}, "model.workday.stg_workday__organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_base"}, "model.workday.stg_workday__organization_job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_job_family_base"}, "model.workday.stg_workday__organization_role_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_base"}, "model.workday.stg_workday__organization_role_worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_worker_base"}, "model.workday.stg_workday__person_contact_email_address_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_contact_email_address_base"}, "model.workday.stg_workday__person_name_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_name_base"}, "model.workday.stg_workday__personal_information_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_base"}, "model.workday.stg_workday__personal_information_ethnicity_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base"}, "model.workday.stg_workday__position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_base"}, "model.workday.stg_workday__position_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_job_profile_base"}, "model.workday.stg_workday__position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_organization_base"}, "model.workday.stg_workday__worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_base"}, "model.workday.stg_workday__worker_leave_status_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_leave_status_base"}, "model.workday.stg_workday__worker_position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_base"}, "model.workday.stg_workday__worker_position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_organization_base"}, "model.workday.int_workday__employee_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"history_unique_key": {"type": "text", "index": 1, "name": "history_unique_key", "comment": null}, "employee_id": {"type": "text", "index": 2, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 3, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 6, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_end", "comment": null}, "is_wh_fivetran_active": {"type": "boolean", "index": 9, "name": "is_wh_fivetran_active", "comment": null}, "is_wph_fivetran_active": {"type": "boolean", "index": 10, "name": "is_wph_fivetran_active", "comment": null}, "is_pih_fivetran_active": {"type": "boolean", "index": 11, "name": "is_pih_fivetran_active", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 12, "name": "academic_tenure_date", "comment": null}, "is_active": {"type": "boolean", "index": 13, "name": "is_active", "comment": null}, "active_status_date": {"type": "date", "index": 14, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 15, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 16, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 17, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 19, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 20, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 21, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 23, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 24, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 25, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 26, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 27, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 28, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 29, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 30, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 31, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 32, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 33, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 34, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 35, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 36, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 37, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 38, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 39, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 40, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 41, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 42, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 43, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 44, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 45, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 46, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 47, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 48, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 49, "name": "first_day_of_work", "comment": null}, "is_has_international_assignment": {"type": "boolean", "index": 50, "name": "is_has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 51, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 52, "name": "hire_reason", "comment": null}, "is_hire_rescinded": {"type": "boolean", "index": 53, "name": "is_hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 54, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 55, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 56, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 57, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 58, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 59, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 60, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 61, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 62, "name": "months_continuous_prior_employment", "comment": null}, "is_not_returning": {"type": "boolean", "index": 63, "name": "is_not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 64, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 65, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 66, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 67, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 68, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 69, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 70, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 71, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 72, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 73, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 74, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 75, "name": "reason_reference_id", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 76, "name": "is_regrettable_termination", "comment": null}, "is_rehire": {"type": "boolean", "index": 77, "name": "is_rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 78, "name": "resignation_date", "comment": null}, "is_retired": {"type": "boolean", "index": 79, "name": "is_retired", "comment": null}, "retirement_date": {"type": "integer", "index": 80, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 81, "name": "retirement_eligibility_date", "comment": null}, "is_return_unknown": {"type": "boolean", "index": 82, "name": "is_return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 83, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 84, "name": "severance_date", "comment": null}, "is_terminated": {"type": "boolean", "index": 85, "name": "is_terminated", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 86, "name": "termination_date", "comment": null}, "is_termination_involuntary": {"type": "boolean", "index": 87, "name": "is_termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 88, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 89, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 90, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 91, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 92, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 93, "name": "worker_code", "comment": null}, "position_location": {"type": "text", "index": 94, "name": "position_location", "comment": null}, "is_exclude_from_head_count": {"type": "boolean", "index": 95, "name": "is_exclude_from_head_count", "comment": null}, "fte_percent": {"type": "integer", "index": 96, "name": "fte_percent", "comment": null}, "is_job_exempt": {"type": "boolean", "index": 97, "name": "is_job_exempt", "comment": null}, "is_specify_paid_fte": {"type": "boolean", "index": 98, "name": "is_specify_paid_fte", "comment": null}, "is_specify_working_fte": {"type": "boolean", "index": 99, "name": "is_specify_working_fte", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 100, "name": "is_work_shift_required", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 101, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 102, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 103, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 104, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 105, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 106, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 107, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 108, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 109, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 110, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 111, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 112, "name": "business_title", "comment": null}, "is_critical_job": {"type": "boolean", "index": 113, "name": "is_critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 114, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 115, "name": "difficulty_to_fill", "comment": null}, "position_effective_date": {"type": "timestamp without time zone", "index": 116, "name": "position_effective_date", "comment": null}, "employee_type": {"type": "text", "index": 117, "name": "employee_type", "comment": null}, "position_end_date": {"type": "timestamp without time zone", "index": 118, "name": "position_end_date", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 119, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 120, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 121, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 122, "name": "frequency", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 123, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 124, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 125, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 126, "name": "is_primary_job", "comment": null}, "job_profile_id": {"type": "text", "index": 127, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 128, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 129, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 130, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 131, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 132, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 133, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 134, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 135, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 136, "name": "scheduled_weekly_hours", "comment": null}, "position_start_date": {"type": "timestamp without time zone", "index": 137, "name": "position_start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 138, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 139, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 140, "name": "work_shift", "comment": null}, "work_space": {"type": "integer", "index": 141, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 142, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 143, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 144, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 145, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 146, "name": "working_time_value", "comment": null}, "additional_nationality": {"type": "integer", "index": 147, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 148, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 149, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 150, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 151, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 152, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 153, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 154, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 155, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 156, "name": "is_hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 157, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 158, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 159, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 160, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 161, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 162, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 163, "name": "last_medical_exam_valid_to", "comment": null}, "is_local_hukou": {"type": "integer", "index": 164, "name": "is_local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 165, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 166, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 167, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 168, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 169, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 170, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 171, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 172, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 173, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 174, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 175, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 176, "name": "social_benefit", "comment": null}, "is_tobacco_use": {"type": "boolean", "index": 177, "name": "is_tobacco_use", "comment": null}, "type": {"type": "text", "index": 178, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__employee_history"}, "model.workday.workday__employee_daily_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_day_id": {"type": "text", "index": 1, "name": "employee_day_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "history_unique_key": {"type": "text", "index": 3, "name": "history_unique_key", "comment": null}, "employee_id": {"type": "text", "index": 4, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 5, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 6, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 8, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_end", "comment": null}, "is_wh_fivetran_active": {"type": "boolean", "index": 11, "name": "is_wh_fivetran_active", "comment": null}, "is_wph_fivetran_active": {"type": "boolean", "index": 12, "name": "is_wph_fivetran_active", "comment": null}, "is_pih_fivetran_active": {"type": "boolean", "index": 13, "name": "is_pih_fivetran_active", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 14, "name": "academic_tenure_date", "comment": null}, "is_active": {"type": "boolean", "index": 15, "name": "is_active", "comment": null}, "active_status_date": {"type": "date", "index": 16, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 17, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 18, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 19, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 20, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 22, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 23, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 24, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 25, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 26, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 27, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 28, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 29, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 30, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 31, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 32, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 33, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 34, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 35, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 36, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 37, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 38, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 39, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 40, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 41, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 42, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 43, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 44, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 45, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 46, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 47, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 48, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 49, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 50, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 51, "name": "first_day_of_work", "comment": null}, "is_has_international_assignment": {"type": "boolean", "index": 52, "name": "is_has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 53, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 54, "name": "hire_reason", "comment": null}, "is_hire_rescinded": {"type": "boolean", "index": 55, "name": "is_hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 56, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 57, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 58, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 59, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 60, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 61, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 62, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 63, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 64, "name": "months_continuous_prior_employment", "comment": null}, "is_not_returning": {"type": "boolean", "index": 65, "name": "is_not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 66, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 67, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 68, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 69, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 70, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 71, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 72, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 73, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 74, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 75, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 76, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 77, "name": "reason_reference_id", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 78, "name": "is_regrettable_termination", "comment": null}, "is_rehire": {"type": "boolean", "index": 79, "name": "is_rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 80, "name": "resignation_date", "comment": null}, "is_retired": {"type": "boolean", "index": 81, "name": "is_retired", "comment": null}, "retirement_date": {"type": "integer", "index": 82, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 83, "name": "retirement_eligibility_date", "comment": null}, "is_return_unknown": {"type": "boolean", "index": 84, "name": "is_return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 85, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 86, "name": "severance_date", "comment": null}, "is_terminated": {"type": "boolean", "index": 87, "name": "is_terminated", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 88, "name": "termination_date", "comment": null}, "is_termination_involuntary": {"type": "boolean", "index": 89, "name": "is_termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 90, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 91, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 92, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 93, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 94, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 95, "name": "worker_code", "comment": null}, "position_location": {"type": "text", "index": 96, "name": "position_location", "comment": null}, "is_exclude_from_head_count": {"type": "boolean", "index": 97, "name": "is_exclude_from_head_count", "comment": null}, "fte_percent": {"type": "integer", "index": 98, "name": "fte_percent", "comment": null}, "is_job_exempt": {"type": "boolean", "index": 99, "name": "is_job_exempt", "comment": null}, "is_specify_paid_fte": {"type": "boolean", "index": 100, "name": "is_specify_paid_fte", "comment": null}, "is_specify_working_fte": {"type": "boolean", "index": 101, "name": "is_specify_working_fte", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 102, "name": "is_work_shift_required", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 103, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 104, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 105, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 106, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 107, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 108, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 109, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 110, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 111, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 112, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 113, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 114, "name": "business_title", "comment": null}, "is_critical_job": {"type": "boolean", "index": 115, "name": "is_critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 116, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 117, "name": "difficulty_to_fill", "comment": null}, "position_effective_date": {"type": "timestamp without time zone", "index": 118, "name": "position_effective_date", "comment": null}, "employee_type": {"type": "text", "index": 119, "name": "employee_type", "comment": null}, "position_end_date": {"type": "timestamp without time zone", "index": 120, "name": "position_end_date", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 121, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 122, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 123, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 124, "name": "frequency", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 125, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 126, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 127, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 128, "name": "is_primary_job", "comment": null}, "job_profile_id": {"type": "text", "index": 129, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 130, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 131, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 132, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 133, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 134, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 135, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 136, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 137, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 138, "name": "scheduled_weekly_hours", "comment": null}, "position_start_date": {"type": "timestamp without time zone", "index": 139, "name": "position_start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 140, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 141, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 142, "name": "work_shift", "comment": null}, "work_space": {"type": "integer", "index": 143, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 144, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 145, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 146, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 147, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 148, "name": "working_time_value", "comment": null}, "additional_nationality": {"type": "integer", "index": 149, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 150, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 151, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 152, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 153, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 154, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 155, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 156, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 157, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 158, "name": "is_hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 159, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 160, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 161, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 162, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 163, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 164, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 165, "name": "last_medical_exam_valid_to", "comment": null}, "is_local_hukou": {"type": "integer", "index": 166, "name": "is_local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 167, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 168, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 169, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 170, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 171, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 172, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 173, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 174, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 175, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 176, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 177, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 178, "name": "social_benefit", "comment": null}, "is_tobacco_use": {"type": "boolean", "index": 179, "name": "is_tobacco_use", "comment": null}, "type": {"type": "text", "index": 180, "name": "type", "comment": null}, "row_num": {"type": "bigint", "index": 181, "name": "row_num", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_daily_history"}, "model.workday.workday__employee_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_id": {"type": "text", "index": 1, "name": "employee_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "position_start_date": {"type": "date", "index": 5, "name": "position_start_date", "comment": null}, "worker_code": {"type": "integer", "index": 6, "name": "worker_code", "comment": null}, "user_id": {"type": "text", "index": 7, "name": "user_id", "comment": null}, "universal_id": {"type": "integer", "index": 8, "name": "universal_id", "comment": null}, "is_user_active": {"type": "boolean", "index": 9, "name": "is_user_active", "comment": null}, "is_employed": {"type": "boolean", "index": 10, "name": "is_employed", "comment": null}, "hire_date": {"type": "date", "index": 11, "name": "hire_date", "comment": null}, "departure_date": {"type": "date", "index": 12, "name": "departure_date", "comment": null}, "days_as_worker": {"type": "integer", "index": 13, "name": "days_as_worker", "comment": null}, "is_terminated": {"type": "boolean", "index": 14, "name": "is_terminated", "comment": null}, "primary_termination_category": {"type": "text", "index": 15, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 16, "name": "primary_termination_reason", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 17, "name": "is_regrettable_termination", "comment": null}, "compensation_effective_date": {"type": "date", "index": 18, "name": "compensation_effective_date", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 19, "name": "employee_compensation_frequency", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 20, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_summary_currency": {"type": "text", "index": 23, "name": "annual_summary_currency", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 24, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 25, "name": "annual_summary_primary_compensation_basis", "comment": null}, "compensation_grade_id": {"type": "text", "index": 26, "name": "compensation_grade_id", "comment": null}, "first_name": {"type": "text", "index": 27, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 28, "name": "last_name", "comment": null}, "date_of_birth": {"type": "date", "index": 29, "name": "date_of_birth", "comment": null}, "gender": {"type": "text", "index": 30, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 31, "name": "is_hispanic_or_latino", "comment": null}, "email_address": {"type": "text", "index": 32, "name": "email_address", "comment": null}, "ethnicity_codes": {"type": "text", "index": 33, "name": "ethnicity_codes", "comment": null}, "military_status": {"type": "text", "index": 34, "name": "military_status", "comment": null}, "business_title": {"type": "text", "index": 35, "name": "business_title", "comment": null}, "job_profile_id": {"type": "text", "index": 36, "name": "job_profile_id", "comment": null}, "employee_type": {"type": "text", "index": 37, "name": "employee_type", "comment": null}, "position_location": {"type": "text", "index": 38, "name": "position_location", "comment": null}, "management_level_code": {"type": "text", "index": 39, "name": "management_level_code", "comment": null}, "fte_percent": {"type": "integer", "index": 40, "name": "fte_percent", "comment": null}, "position_end_date": {"type": "date", "index": 41, "name": "position_end_date", "comment": null}, "position_effective_date": {"type": "date", "index": 42, "name": "position_effective_date", "comment": null}, "days_employed": {"type": "integer", "index": 43, "name": "days_employed", "comment": null}, "is_employed_one_year": {"type": "boolean", "index": 44, "name": "is_employed_one_year", "comment": null}, "is_employed_five_years": {"type": "boolean", "index": 45, "name": "is_employed_five_years", "comment": null}, "is_employed_ten_years": {"type": "boolean", "index": 46, "name": "is_employed_ten_years", "comment": null}, "is_employed_twenty_years": {"type": "boolean", "index": 47, "name": "is_employed_twenty_years", "comment": null}, "is_employed_thirty_years": {"type": "boolean", "index": 48, "name": "is_employed_thirty_years", "comment": null}, "is_current_employee_one_year": {"type": "boolean", "index": 49, "name": "is_current_employee_one_year", "comment": null}, "is_current_employee_five_years": {"type": "boolean", "index": 50, "name": "is_current_employee_five_years", "comment": null}, "is_current_employee_ten_years": {"type": "boolean", "index": 51, "name": "is_current_employee_ten_years", "comment": null}, "is_current_employee_twenty_years": {"type": "boolean", "index": 52, "name": "is_current_employee_twenty_years", "comment": null}, "is_current_employee_thirty_years": {"type": "boolean", "index": 53, "name": "is_current_employee_thirty_years", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_overview"}, "model.workday.workday__job_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "job_profile_code": {"type": "text", "index": 3, "name": "job_profile_code", "comment": null}, "job_title": {"type": "text", "index": 4, "name": "job_title", "comment": null}, "private_title": {"type": "integer", "index": 5, "name": "private_title", "comment": null}, "job_summary": {"type": "text", "index": 6, "name": "job_summary", "comment": null}, "job_description": {"type": "text", "index": 7, "name": "job_description", "comment": null}, "job_family_codes": {"type": "text", "index": 8, "name": "job_family_codes", "comment": null}, "job_family_summaries": {"type": "text", "index": 9, "name": "job_family_summaries", "comment": null}, "job_family_group_codes": {"type": "text", "index": 10, "name": "job_family_group_codes", "comment": null}, "job_family_group_summaries": {"type": "text", "index": 11, "name": "job_family_group_summaries", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__job_overview"}, "model.workday.workday__monthly_summary": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"metrics_month": {"type": "date", "index": 1, "name": "metrics_month", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "new_employees": {"type": "bigint", "index": 3, "name": "new_employees", "comment": null}, "churned_employees": {"type": "bigint", "index": 4, "name": "churned_employees", "comment": null}, "churned_voluntary_employees": {"type": "bigint", "index": 5, "name": "churned_voluntary_employees", "comment": null}, "churned_involuntary_employees": {"type": "bigint", "index": 6, "name": "churned_involuntary_employees", "comment": null}, "churned_workers": {"type": "bigint", "index": 7, "name": "churned_workers", "comment": null}, "active_employees": {"type": "bigint", "index": 8, "name": "active_employees", "comment": null}, "active_male_employees": {"type": "bigint", "index": 9, "name": "active_male_employees", "comment": null}, "active_female_employees": {"type": "bigint", "index": 10, "name": "active_female_employees", "comment": null}, "active_workers": {"type": "bigint", "index": 11, "name": "active_workers", "comment": null}, "active_known_gender_employees": {"type": "bigint", "index": 12, "name": "active_known_gender_employees", "comment": null}, "avg_employee_primary_compensation": {"type": "double precision", "index": 13, "name": "avg_employee_primary_compensation", "comment": null}, "avg_employee_base_pay": {"type": "double precision", "index": 14, "name": "avg_employee_base_pay", "comment": null}, "avg_employee_salary_and_allowances": {"type": "double precision", "index": 15, "name": "avg_employee_salary_and_allowances", "comment": null}, "avg_days_as_employee": {"type": "numeric", "index": 16, "name": "avg_days_as_employee", "comment": null}, "avg_worker_primary_compensation": {"type": "double precision", "index": 17, "name": "avg_worker_primary_compensation", "comment": null}, "avg_worker_base_pay": {"type": "double precision", "index": 18, "name": "avg_worker_base_pay", "comment": null}, "avg_worker_salary_and_allowances": {"type": "double precision", "index": 19, "name": "avg_worker_salary_and_allowances", "comment": null}, "avg_days_as_worker": {"type": "numeric", "index": 20, "name": "avg_days_as_worker", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__monthly_summary"}, "model.workday.workday__organization_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "organization_role_id": {"type": "text", "index": 2, "name": "organization_role_id", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "organization_code": {"type": "text", "index": 6, "name": "organization_code", "comment": null}, "organization_name": {"type": "text", "index": 7, "name": "organization_name", "comment": null}, "organization_type": {"type": "text", "index": 8, "name": "organization_type", "comment": null}, "organization_sub_type": {"type": "text", "index": 9, "name": "organization_sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 10, "name": "superior_organization_id", "comment": null}, "top_level_organization_id": {"type": "text", "index": 11, "name": "top_level_organization_id", "comment": null}, "manager_id": {"type": "text", "index": 12, "name": "manager_id", "comment": null}, "organization_role_code": {"type": "text", "index": 13, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__organization_overview"}, "model.workday.workday__position_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "position_code": {"type": "text", "index": 3, "name": "position_code", "comment": null}, "job_posting_title": {"type": "text", "index": 4, "name": "job_posting_title", "comment": null}, "effective_date": {"type": "date", "index": 5, "name": "effective_date", "comment": null}, "is_closed": {"type": "boolean", "index": 6, "name": "is_closed", "comment": null}, "is_hiring_freeze": {"type": "boolean", "index": 7, "name": "is_hiring_freeze", "comment": null}, "is_available_for_hire": {"type": "boolean", "index": 8, "name": "is_available_for_hire", "comment": null}, "availability_date": {"type": "date", "index": 9, "name": "availability_date", "comment": null}, "is_available_for_recruiting": {"type": "boolean", "index": 10, "name": "is_available_for_recruiting", "comment": null}, "earliest_hire_date": {"type": "date", "index": 11, "name": "earliest_hire_date", "comment": null}, "is_available_for_overlap": {"type": "boolean", "index": 12, "name": "is_available_for_overlap", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 13, "name": "earliest_overlap_date", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 14, "name": "worker_for_filled_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 15, "name": "worker_type_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 16, "name": "position_time_type_code", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 17, "name": "supervisory_organization_id", "comment": null}, "job_profile_id": {"type": "text", "index": 18, "name": "job_profile_id", "comment": null}, "compensation_package_code": {"type": "integer", "index": 19, "name": "compensation_package_code", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 20, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 21, "name": "compensation_grade_profile_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__position_overview"}, "model.workday.workday__worker_position_org_daily_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__worker_position_org_daily_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"wpo_day_id": {"type": "text", "index": 1, "name": "wpo_day_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "organization_id": {"type": "text", "index": 5, "name": "organization_id", "comment": null}, "source_relation": {"type": "text", "index": 6, "name": "source_relation", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_end", "comment": null}, "_fivetran_date": {"type": "date", "index": 9, "name": "_fivetran_date", "comment": null}, "history_unique_key": {"type": "text", "index": 10, "name": "history_unique_key", "comment": null}, "index": {"type": "integer", "index": 11, "name": "index", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 12, "name": "date_of_pay_group_assignment", "comment": null}, "primary_business_site": {"type": "integer", "index": 13, "name": "primary_business_site", "comment": null}, "is_used_in_change_organization_assignments": {"type": "boolean", "index": 14, "name": "is_used_in_change_organization_assignments", "comment": null}, "row_num": {"type": "bigint", "index": 15, "name": "row_num", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__worker_position_org_daily_history"}}, "sources": {"source.workday.workday.job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family"}, "source.workday.workday.job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_group"}, "source.workday.workday.job_family_job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_family_group"}, "source.workday.workday.job_family_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_profile"}, "source.workday.workday.job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_profile"}, "source.workday.workday.military_service": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.military_service"}, "source.workday.workday.organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization"}, "source.workday.workday.organization_job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_job_family"}, "source.workday.workday.organization_role": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role"}, "source.workday.workday.organization_role_worker": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role_worker"}, "source.workday.workday.person_contact_email_address": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_contact_email_address"}, "source.workday.workday.person_name": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_name"}, "source.workday.workday.personal_information_ethnicity": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_ethnicity"}, "source.workday.workday.personal_information_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_history"}, "source.workday.workday.position": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position"}, "source.workday.workday.position_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_job_profile"}, "source.workday.workday.position_organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_organization"}, "source.workday.workday.worker_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_history"}, "source.workday.workday.worker_leave_status": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_leave_status"}, "source.workday.workday.worker_position_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_history"}, "source.workday.workday.worker_position_organization_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_organization_history"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.7.8", "generated_at": "2024-04-02T10:16:02.867368Z", "invocation_id": "2c956fce-7a6c-4f51-b5a5-d975f2021c95", "env": {}}, "nodes": {"seed.workday_integration_tests.workday_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_data"}, "seed.workday_integration_tests.workday_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data"}, "seed.workday_integration_tests.workday_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_profile_data"}, "seed.workday_integration_tests.workday_military_service_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_military_service_data"}, "seed.workday_integration_tests.workday_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_data"}, "seed.workday_integration_tests.workday_organization_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data"}, "seed.workday_integration_tests.workday_organization_role_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_data"}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data"}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data"}, "seed.workday_integration_tests.workday_person_name_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_name_data"}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data"}, "seed.workday_integration_tests.workday_personal_information_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data"}, "seed.workday_integration_tests.workday_position_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_data"}, "seed.workday_integration_tests.workday_position_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data"}, "seed.workday_integration_tests.workday_position_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_organization_data"}, "seed.workday_integration_tests.workday_worker_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_history_data"}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data"}, "seed.workday_integration_tests.workday_worker_position_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data"}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data"}, "model.workday.stg_workday__job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_base"}, "model.workday.stg_workday__job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_group_base"}, "model.workday.stg_workday__job_family_job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base"}, "model.workday.stg_workday__job_family_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_profile_base"}, "model.workday.stg_workday__job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_profile_base"}, "model.workday.stg_workday__military_service_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__military_service_base"}, "model.workday.stg_workday__organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_base"}, "model.workday.stg_workday__organization_job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_job_family_base"}, "model.workday.stg_workday__organization_role_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_base"}, "model.workday.stg_workday__organization_role_worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_worker_base"}, "model.workday.stg_workday__person_contact_email_address_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_contact_email_address_base"}, "model.workday.stg_workday__person_name_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_name_base"}, "model.workday.stg_workday__personal_information_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_base"}, "model.workday.stg_workday__personal_information_ethnicity_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base"}, "model.workday.stg_workday__position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_base"}, "model.workday.stg_workday__position_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_job_profile_base"}, "model.workday.stg_workday__position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_organization_base"}, "model.workday.stg_workday__worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_base"}, "model.workday.stg_workday__worker_leave_status_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_leave_status_base"}, "model.workday.stg_workday__worker_position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_base"}, "model.workday.stg_workday__worker_position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_organization_base"}, "model.workday.int_workday__employee_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"history_unique_key": {"type": "text", "index": 1, "name": "history_unique_key", "comment": null}, "employee_id": {"type": "text", "index": 2, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 3, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 6, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_end", "comment": null}, "is_wh_fivetran_active": {"type": "boolean", "index": 9, "name": "is_wh_fivetran_active", "comment": null}, "is_wph_fivetran_active": {"type": "boolean", "index": 10, "name": "is_wph_fivetran_active", "comment": null}, "is_pih_fivetran_active": {"type": "boolean", "index": 11, "name": "is_pih_fivetran_active", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 12, "name": "academic_tenure_date", "comment": null}, "is_active": {"type": "boolean", "index": 13, "name": "is_active", "comment": null}, "active_status_date": {"type": "date", "index": 14, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 15, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 16, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 17, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 19, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 20, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 21, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 23, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 24, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 25, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 26, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 27, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 28, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 29, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 30, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 31, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 32, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 33, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 34, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 35, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 36, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 37, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 38, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 39, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 40, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 41, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 42, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 43, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 44, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 45, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 46, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 47, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 48, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 49, "name": "first_day_of_work", "comment": null}, "is_has_international_assignment": {"type": "boolean", "index": 50, "name": "is_has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 51, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 52, "name": "hire_reason", "comment": null}, "is_hire_rescinded": {"type": "boolean", "index": 53, "name": "is_hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 54, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 55, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 56, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 57, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 58, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 59, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 60, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 61, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 62, "name": "months_continuous_prior_employment", "comment": null}, "is_not_returning": {"type": "boolean", "index": 63, "name": "is_not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 64, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 65, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 66, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 67, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 68, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 69, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 70, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 71, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 72, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 73, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 74, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 75, "name": "reason_reference_id", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 76, "name": "is_regrettable_termination", "comment": null}, "is_rehire": {"type": "boolean", "index": 77, "name": "is_rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 78, "name": "resignation_date", "comment": null}, "is_retired": {"type": "boolean", "index": 79, "name": "is_retired", "comment": null}, "retirement_date": {"type": "integer", "index": 80, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 81, "name": "retirement_eligibility_date", "comment": null}, "is_return_unknown": {"type": "boolean", "index": 82, "name": "is_return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 83, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 84, "name": "severance_date", "comment": null}, "is_terminated": {"type": "boolean", "index": 85, "name": "is_terminated", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 86, "name": "termination_date", "comment": null}, "is_termination_involuntary": {"type": "boolean", "index": 87, "name": "is_termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 88, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 89, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 90, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 91, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 92, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 93, "name": "worker_code", "comment": null}, "position_location": {"type": "text", "index": 94, "name": "position_location", "comment": null}, "is_exclude_from_head_count": {"type": "boolean", "index": 95, "name": "is_exclude_from_head_count", "comment": null}, "fte_percent": {"type": "integer", "index": 96, "name": "fte_percent", "comment": null}, "is_job_exempt": {"type": "boolean", "index": 97, "name": "is_job_exempt", "comment": null}, "is_specify_paid_fte": {"type": "boolean", "index": 98, "name": "is_specify_paid_fte", "comment": null}, "is_specify_working_fte": {"type": "boolean", "index": 99, "name": "is_specify_working_fte", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 100, "name": "is_work_shift_required", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 101, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 102, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 103, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 104, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 105, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 106, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 107, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 108, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 109, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 110, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 111, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 112, "name": "business_title", "comment": null}, "is_critical_job": {"type": "boolean", "index": 113, "name": "is_critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 114, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 115, "name": "difficulty_to_fill", "comment": null}, "position_effective_date": {"type": "timestamp without time zone", "index": 116, "name": "position_effective_date", "comment": null}, "employee_type": {"type": "text", "index": 117, "name": "employee_type", "comment": null}, "position_end_date": {"type": "timestamp without time zone", "index": 118, "name": "position_end_date", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 119, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 120, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 121, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 122, "name": "frequency", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 123, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 124, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 125, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 126, "name": "is_primary_job", "comment": null}, "job_profile_id": {"type": "text", "index": 127, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 128, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 129, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 130, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 131, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 132, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 133, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 134, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 135, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 136, "name": "scheduled_weekly_hours", "comment": null}, "position_start_date": {"type": "timestamp without time zone", "index": 137, "name": "position_start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 138, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 139, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 140, "name": "work_shift", "comment": null}, "work_space": {"type": "integer", "index": 141, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 142, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 143, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 144, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 145, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 146, "name": "working_time_value", "comment": null}, "additional_nationality": {"type": "integer", "index": 147, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 148, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 149, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 150, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 151, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 152, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 153, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 154, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 155, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 156, "name": "is_hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 157, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 158, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 159, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 160, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 161, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 162, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 163, "name": "last_medical_exam_valid_to", "comment": null}, "is_local_hukou": {"type": "integer", "index": 164, "name": "is_local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 165, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 166, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 167, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 168, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 169, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 170, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 171, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 172, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 173, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 174, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 175, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 176, "name": "social_benefit", "comment": null}, "is_tobacco_use": {"type": "boolean", "index": 177, "name": "is_tobacco_use", "comment": null}, "type": {"type": "text", "index": 178, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__employee_history"}, "model.workday.workday__employee_daily_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_day_id": {"type": "text", "index": 1, "name": "employee_day_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "history_unique_key": {"type": "text", "index": 3, "name": "history_unique_key", "comment": null}, "employee_id": {"type": "text", "index": 4, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 5, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 6, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 8, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_end", "comment": null}, "is_wh_fivetran_active": {"type": "boolean", "index": 11, "name": "is_wh_fivetran_active", "comment": null}, "is_wph_fivetran_active": {"type": "boolean", "index": 12, "name": "is_wph_fivetran_active", "comment": null}, "is_pih_fivetran_active": {"type": "boolean", "index": 13, "name": "is_pih_fivetran_active", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 14, "name": "academic_tenure_date", "comment": null}, "is_active": {"type": "boolean", "index": 15, "name": "is_active", "comment": null}, "active_status_date": {"type": "date", "index": 16, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 17, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 18, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 19, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 20, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 22, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 23, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 24, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 25, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 26, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 27, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 28, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 29, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 30, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 31, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 32, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 33, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 34, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 35, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 36, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 37, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 38, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 39, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 40, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 41, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 42, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 43, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 44, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 45, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 46, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 47, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 48, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 49, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 50, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 51, "name": "first_day_of_work", "comment": null}, "is_has_international_assignment": {"type": "boolean", "index": 52, "name": "is_has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 53, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 54, "name": "hire_reason", "comment": null}, "is_hire_rescinded": {"type": "boolean", "index": 55, "name": "is_hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 56, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 57, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 58, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 59, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 60, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 61, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 62, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 63, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 64, "name": "months_continuous_prior_employment", "comment": null}, "is_not_returning": {"type": "boolean", "index": 65, "name": "is_not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 66, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 67, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 68, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 69, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 70, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 71, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 72, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 73, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 74, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 75, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 76, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 77, "name": "reason_reference_id", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 78, "name": "is_regrettable_termination", "comment": null}, "is_rehire": {"type": "boolean", "index": 79, "name": "is_rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 80, "name": "resignation_date", "comment": null}, "is_retired": {"type": "boolean", "index": 81, "name": "is_retired", "comment": null}, "retirement_date": {"type": "integer", "index": 82, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 83, "name": "retirement_eligibility_date", "comment": null}, "is_return_unknown": {"type": "boolean", "index": 84, "name": "is_return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 85, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 86, "name": "severance_date", "comment": null}, "is_terminated": {"type": "boolean", "index": 87, "name": "is_terminated", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 88, "name": "termination_date", "comment": null}, "is_termination_involuntary": {"type": "boolean", "index": 89, "name": "is_termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 90, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 91, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 92, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 93, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 94, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 95, "name": "worker_code", "comment": null}, "position_location": {"type": "text", "index": 96, "name": "position_location", "comment": null}, "is_exclude_from_head_count": {"type": "boolean", "index": 97, "name": "is_exclude_from_head_count", "comment": null}, "fte_percent": {"type": "integer", "index": 98, "name": "fte_percent", "comment": null}, "is_job_exempt": {"type": "boolean", "index": 99, "name": "is_job_exempt", "comment": null}, "is_specify_paid_fte": {"type": "boolean", "index": 100, "name": "is_specify_paid_fte", "comment": null}, "is_specify_working_fte": {"type": "boolean", "index": 101, "name": "is_specify_working_fte", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 102, "name": "is_work_shift_required", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 103, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 104, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 105, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 106, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 107, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 108, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 109, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 110, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 111, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 112, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 113, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 114, "name": "business_title", "comment": null}, "is_critical_job": {"type": "boolean", "index": 115, "name": "is_critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 116, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 117, "name": "difficulty_to_fill", "comment": null}, "position_effective_date": {"type": "timestamp without time zone", "index": 118, "name": "position_effective_date", "comment": null}, "employee_type": {"type": "text", "index": 119, "name": "employee_type", "comment": null}, "position_end_date": {"type": "timestamp without time zone", "index": 120, "name": "position_end_date", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 121, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 122, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 123, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 124, "name": "frequency", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 125, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 126, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 127, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 128, "name": "is_primary_job", "comment": null}, "job_profile_id": {"type": "text", "index": 129, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 130, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 131, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 132, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 133, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 134, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 135, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 136, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 137, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 138, "name": "scheduled_weekly_hours", "comment": null}, "position_start_date": {"type": "timestamp without time zone", "index": 139, "name": "position_start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 140, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 141, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 142, "name": "work_shift", "comment": null}, "work_space": {"type": "integer", "index": 143, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 144, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 145, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 146, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 147, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 148, "name": "working_time_value", "comment": null}, "additional_nationality": {"type": "integer", "index": 149, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 150, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 151, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 152, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 153, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 154, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 155, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 156, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 157, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 158, "name": "is_hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 159, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 160, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 161, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 162, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 163, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 164, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 165, "name": "last_medical_exam_valid_to", "comment": null}, "is_local_hukou": {"type": "integer", "index": 166, "name": "is_local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 167, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 168, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 169, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 170, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 171, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 172, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 173, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 174, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 175, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 176, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 177, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 178, "name": "social_benefit", "comment": null}, "is_tobacco_use": {"type": "boolean", "index": 179, "name": "is_tobacco_use", "comment": null}, "type": {"type": "text", "index": 180, "name": "type", "comment": null}, "row_num": {"type": "bigint", "index": 181, "name": "row_num", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_daily_history"}, "model.workday.workday__employee_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_id": {"type": "text", "index": 1, "name": "employee_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "position_start_date": {"type": "date", "index": 5, "name": "position_start_date", "comment": null}, "worker_code": {"type": "integer", "index": 6, "name": "worker_code", "comment": null}, "user_id": {"type": "text", "index": 7, "name": "user_id", "comment": null}, "universal_id": {"type": "integer", "index": 8, "name": "universal_id", "comment": null}, "is_user_active": {"type": "boolean", "index": 9, "name": "is_user_active", "comment": null}, "is_employed": {"type": "boolean", "index": 10, "name": "is_employed", "comment": null}, "hire_date": {"type": "date", "index": 11, "name": "hire_date", "comment": null}, "departure_date": {"type": "date", "index": 12, "name": "departure_date", "comment": null}, "days_as_worker": {"type": "integer", "index": 13, "name": "days_as_worker", "comment": null}, "is_terminated": {"type": "boolean", "index": 14, "name": "is_terminated", "comment": null}, "primary_termination_category": {"type": "text", "index": 15, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 16, "name": "primary_termination_reason", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 17, "name": "is_regrettable_termination", "comment": null}, "compensation_effective_date": {"type": "date", "index": 18, "name": "compensation_effective_date", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 19, "name": "employee_compensation_frequency", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 20, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_summary_currency": {"type": "text", "index": 23, "name": "annual_summary_currency", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 24, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 25, "name": "annual_summary_primary_compensation_basis", "comment": null}, "compensation_grade_id": {"type": "text", "index": 26, "name": "compensation_grade_id", "comment": null}, "first_name": {"type": "text", "index": 27, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 28, "name": "last_name", "comment": null}, "date_of_birth": {"type": "date", "index": 29, "name": "date_of_birth", "comment": null}, "gender": {"type": "text", "index": 30, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 31, "name": "is_hispanic_or_latino", "comment": null}, "email_address": {"type": "text", "index": 32, "name": "email_address", "comment": null}, "ethnicity_codes": {"type": "text", "index": 33, "name": "ethnicity_codes", "comment": null}, "military_status": {"type": "text", "index": 34, "name": "military_status", "comment": null}, "business_title": {"type": "text", "index": 35, "name": "business_title", "comment": null}, "job_profile_id": {"type": "text", "index": 36, "name": "job_profile_id", "comment": null}, "employee_type": {"type": "text", "index": 37, "name": "employee_type", "comment": null}, "position_location": {"type": "text", "index": 38, "name": "position_location", "comment": null}, "management_level_code": {"type": "text", "index": 39, "name": "management_level_code", "comment": null}, "fte_percent": {"type": "integer", "index": 40, "name": "fte_percent", "comment": null}, "position_end_date": {"type": "date", "index": 41, "name": "position_end_date", "comment": null}, "position_effective_date": {"type": "date", "index": 42, "name": "position_effective_date", "comment": null}, "days_employed": {"type": "integer", "index": 43, "name": "days_employed", "comment": null}, "is_employed_one_year": {"type": "boolean", "index": 44, "name": "is_employed_one_year", "comment": null}, "is_employed_five_years": {"type": "boolean", "index": 45, "name": "is_employed_five_years", "comment": null}, "is_employed_ten_years": {"type": "boolean", "index": 46, "name": "is_employed_ten_years", "comment": null}, "is_employed_twenty_years": {"type": "boolean", "index": 47, "name": "is_employed_twenty_years", "comment": null}, "is_employed_thirty_years": {"type": "boolean", "index": 48, "name": "is_employed_thirty_years", "comment": null}, "is_current_employee_one_year": {"type": "boolean", "index": 49, "name": "is_current_employee_one_year", "comment": null}, "is_current_employee_five_years": {"type": "boolean", "index": 50, "name": "is_current_employee_five_years", "comment": null}, "is_current_employee_ten_years": {"type": "boolean", "index": 51, "name": "is_current_employee_ten_years", "comment": null}, "is_current_employee_twenty_years": {"type": "boolean", "index": 52, "name": "is_current_employee_twenty_years", "comment": null}, "is_current_employee_thirty_years": {"type": "boolean", "index": 53, "name": "is_current_employee_thirty_years", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_overview"}, "model.workday.workday__job_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "job_profile_code": {"type": "text", "index": 3, "name": "job_profile_code", "comment": null}, "job_title": {"type": "text", "index": 4, "name": "job_title", "comment": null}, "private_title": {"type": "integer", "index": 5, "name": "private_title", "comment": null}, "job_summary": {"type": "text", "index": 6, "name": "job_summary", "comment": null}, "job_description": {"type": "text", "index": 7, "name": "job_description", "comment": null}, "job_family_codes": {"type": "text", "index": 8, "name": "job_family_codes", "comment": null}, "job_family_summaries": {"type": "text", "index": 9, "name": "job_family_summaries", "comment": null}, "job_family_group_codes": {"type": "text", "index": 10, "name": "job_family_group_codes", "comment": null}, "job_family_group_summaries": {"type": "text", "index": 11, "name": "job_family_group_summaries", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__job_overview"}, "model.workday.workday__monthly_summary": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"metrics_month": {"type": "date", "index": 1, "name": "metrics_month", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "new_employees": {"type": "bigint", "index": 3, "name": "new_employees", "comment": null}, "churned_employees": {"type": "bigint", "index": 4, "name": "churned_employees", "comment": null}, "churned_voluntary_employees": {"type": "bigint", "index": 5, "name": "churned_voluntary_employees", "comment": null}, "churned_involuntary_employees": {"type": "bigint", "index": 6, "name": "churned_involuntary_employees", "comment": null}, "churned_workers": {"type": "bigint", "index": 7, "name": "churned_workers", "comment": null}, "active_employees": {"type": "bigint", "index": 8, "name": "active_employees", "comment": null}, "active_male_employees": {"type": "bigint", "index": 9, "name": "active_male_employees", "comment": null}, "active_female_employees": {"type": "bigint", "index": 10, "name": "active_female_employees", "comment": null}, "active_workers": {"type": "bigint", "index": 11, "name": "active_workers", "comment": null}, "active_known_gender_employees": {"type": "bigint", "index": 12, "name": "active_known_gender_employees", "comment": null}, "avg_employee_primary_compensation": {"type": "double precision", "index": 13, "name": "avg_employee_primary_compensation", "comment": null}, "avg_employee_base_pay": {"type": "double precision", "index": 14, "name": "avg_employee_base_pay", "comment": null}, "avg_employee_salary_and_allowances": {"type": "double precision", "index": 15, "name": "avg_employee_salary_and_allowances", "comment": null}, "avg_days_as_employee": {"type": "numeric", "index": 16, "name": "avg_days_as_employee", "comment": null}, "avg_worker_primary_compensation": {"type": "double precision", "index": 17, "name": "avg_worker_primary_compensation", "comment": null}, "avg_worker_base_pay": {"type": "double precision", "index": 18, "name": "avg_worker_base_pay", "comment": null}, "avg_worker_salary_and_allowances": {"type": "double precision", "index": 19, "name": "avg_worker_salary_and_allowances", "comment": null}, "avg_days_as_worker": {"type": "numeric", "index": 20, "name": "avg_days_as_worker", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__monthly_summary"}, "model.workday.workday__organization_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "organization_role_id": {"type": "text", "index": 2, "name": "organization_role_id", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "organization_code": {"type": "text", "index": 6, "name": "organization_code", "comment": null}, "organization_name": {"type": "text", "index": 7, "name": "organization_name", "comment": null}, "organization_type": {"type": "text", "index": 8, "name": "organization_type", "comment": null}, "organization_sub_type": {"type": "text", "index": 9, "name": "organization_sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 10, "name": "superior_organization_id", "comment": null}, "top_level_organization_id": {"type": "text", "index": 11, "name": "top_level_organization_id", "comment": null}, "manager_id": {"type": "text", "index": 12, "name": "manager_id", "comment": null}, "organization_role_code": {"type": "text", "index": 13, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__organization_overview"}, "model.workday.workday__position_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "position_code": {"type": "text", "index": 3, "name": "position_code", "comment": null}, "job_posting_title": {"type": "text", "index": 4, "name": "job_posting_title", "comment": null}, "effective_date": {"type": "date", "index": 5, "name": "effective_date", "comment": null}, "is_closed": {"type": "boolean", "index": 6, "name": "is_closed", "comment": null}, "is_hiring_freeze": {"type": "boolean", "index": 7, "name": "is_hiring_freeze", "comment": null}, "is_available_for_hire": {"type": "boolean", "index": 8, "name": "is_available_for_hire", "comment": null}, "availability_date": {"type": "date", "index": 9, "name": "availability_date", "comment": null}, "is_available_for_recruiting": {"type": "boolean", "index": 10, "name": "is_available_for_recruiting", "comment": null}, "earliest_hire_date": {"type": "date", "index": 11, "name": "earliest_hire_date", "comment": null}, "is_available_for_overlap": {"type": "boolean", "index": 12, "name": "is_available_for_overlap", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 13, "name": "earliest_overlap_date", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 14, "name": "worker_for_filled_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 15, "name": "worker_type_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 16, "name": "position_time_type_code", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 17, "name": "supervisory_organization_id", "comment": null}, "job_profile_id": {"type": "text", "index": 18, "name": "job_profile_id", "comment": null}, "compensation_package_code": {"type": "integer", "index": 19, "name": "compensation_package_code", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 20, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 21, "name": "compensation_grade_profile_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__position_overview"}, "model.workday.workday__worker_position_org_daily_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__worker_position_org_daily_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"wpo_day_id": {"type": "text", "index": 1, "name": "wpo_day_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "organization_id": {"type": "text", "index": 5, "name": "organization_id", "comment": null}, "source_relation": {"type": "text", "index": 6, "name": "source_relation", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_end", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 9, "name": "_fivetran_active", "comment": null}, "_fivetran_date": {"type": "date", "index": 10, "name": "_fivetran_date", "comment": null}, "history_unique_key": {"type": "text", "index": 11, "name": "history_unique_key", "comment": null}, "index": {"type": "integer", "index": 12, "name": "index", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 13, "name": "date_of_pay_group_assignment", "comment": null}, "primary_business_site": {"type": "integer", "index": 14, "name": "primary_business_site", "comment": null}, "is_used_in_change_organization_assignments": {"type": "boolean", "index": 15, "name": "is_used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__worker_position_org_daily_history"}}, "sources": {"source.workday.workday.job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family"}, "source.workday.workday.job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_group"}, "source.workday.workday.job_family_job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_family_group"}, "source.workday.workday.job_family_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_profile"}, "source.workday.workday.job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_profile"}, "source.workday.workday.military_service": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.military_service"}, "source.workday.workday.organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization"}, "source.workday.workday.organization_job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_job_family"}, "source.workday.workday.organization_role": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role"}, "source.workday.workday.organization_role_worker": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role_worker"}, "source.workday.workday.person_contact_email_address": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_contact_email_address"}, "source.workday.workday.person_name": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_name"}, "source.workday.workday.personal_information_ethnicity": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_ethnicity"}, "source.workday.workday.personal_information_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_history"}, "source.workday.workday.position": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position"}, "source.workday.workday.position_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_job_profile"}, "source.workday.workday.position_organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_organization"}, "source.workday.workday.worker_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_history"}, "source.workday.workday.worker_leave_status": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_leave_status"}, "source.workday.workday.worker_position_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_history"}, "source.workday.workday.worker_position_organization_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_organization_history"}}, "errors": null} \ No newline at end of file diff --git a/docs/manifest.json b/docs/manifest.json index 12fb929..c9dbdf9 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v11.json", "dbt_version": "1.7.8", "generated_at": "2024-04-01T22:52:07.969130Z", "invocation_id": "8e65a20c-cb81-4843-9da9-8c7f4213e39a", "env": {}, "project_name": "workday_integration_tests", "project_id": "457920b1e5594993369a050db836d437", "user_id": "81581f81-d5af-4143-8fbf-c2f0001e4f56", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_job_family_group_data"], "alias": "workday_job_family_job_family_group_data", "checksum": {"name": "sha256", "checksum": "a4c9b0101811381ac698bec0ba8dd2474fa563f2d2dc6bdf1e072bd3f890313f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.0188851, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_history_data.csv", "original_file_path": "seeds/workday_personal_information_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "fqn": ["workday_integration_tests", "workday_personal_information_history_data"], "alias": "workday_personal_information_history_data", "checksum": {"name": "sha256", "checksum": "2810574ec93fc886e6f1faa097951c8d7c96336fbd1a03b75a22b5a7bb85d13a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.047761, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_ethnicity_data.csv", "original_file_path": "seeds/workday_personal_information_ethnicity_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "fqn": ["workday_integration_tests", "workday_personal_information_ethnicity_data"], "alias": "workday_personal_information_ethnicity_data", "checksum": {"name": "sha256", "checksum": "986222e9224bcca39693358ca9829277b4f6a2c56111ba9aa2db56734d128e9a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.050587, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_group_data"], "alias": "workday_job_family_group_data", "checksum": {"name": "sha256", "checksum": "394c43d528af65ce740ba8ebd24d6d14e6ea99f5d57abcdd2690070f408378f9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.052413, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_history_data.csv", "original_file_path": "seeds/workday_worker_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "fqn": ["workday_integration_tests", "workday_worker_history_data"], "alias": "workday_worker_history_data", "checksum": {"name": "sha256", "checksum": "b3b80c42d748789791fca4630504aafa22afd1dca315e0d63bc0f9f9fe33a68d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "annual_currency_summary_primary_compensation_basis": "float", "annual_currency_summary_total_base_pay": "float", "annual_currency_summary_total_salary_and_allowances": "float", "annual_summary_primary_compensation_basis": "float", "annual_summary_total_base_pay": "float", "annual_summary_total_salary_and_allowances": "float", "contract_pay_rate": "float", "days_unemployed": "float", "employee_compensation_primary_compensation_basis": "float", "employee_compensation_total_base_pay": "float", "employee_compensation_total_salary_and_allowances": "float", "hourly_frequency_primary_compensation_basis": "float", "hourly_frequency_total_base_pay": "float", "hourly_frequency_total_salary_and_allowances": "float", "months_continuous_prior_employment": "float", "pay_group_frequency_primary_compensation_basis": "float", "pay_group_frequency_total_base_pay": "float", "pay_group_frequency_total_salary_and_allowances": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "annual_currency_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "contract_pay_rate": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "days_unemployed": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "months_continuous_prior_employment": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712011819.0542521, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_leave_status_data.csv", "original_file_path": "seeds/workday_worker_leave_status_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "fqn": ["workday_integration_tests", "workday_worker_leave_status_data"], "alias": "workday_worker_leave_status_data", "checksum": {"name": "sha256", "checksum": "bec6fe9af70bc7bebcfebbd12d41d1674fa78fc88497783bf7be995f1290b901"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "age_of_dependent": "float", "leave_entitlement_override": "float", "leave_percentage": "float", "number_of_babies_adopted_children": "float", "number_of_child_dependents": "float", "number_of_previous_births": "float", "number_of_previous_maternity_leaves": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "age_of_dependent": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_entitlement_override": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_percentage": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_babies_adopted_children": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_child_dependents": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_births": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_maternity_leaves": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712011819.055881, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_organization_history_data.csv", "original_file_path": "seeds/workday_worker_position_organization_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_organization_history_data"], "alias": "workday_worker_position_organization_history_data", "checksum": {"name": "sha256", "checksum": "79d43cf1c2b3425d03d23b014705613022d55eb282108d972cbeb58bf55ed0d3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.057309, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_data.csv", "original_file_path": "seeds/workday_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_data", "fqn": ["workday_integration_tests", "workday_job_family_data"], "alias": "workday_job_family_data", "checksum": {"name": "sha256", "checksum": "727b3c01934259786bd85a1bed73ac70611363839a611bdea640bf9bd95cba2d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.059445, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_history_data.csv", "original_file_path": "seeds/workday_worker_position_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_history_data"], "alias": "workday_worker_position_history_data", "checksum": {"name": "sha256", "checksum": "434f6ed5606c6606bbbf41d1427584a275a825ae285f88c1b12d2c3d7da3c07d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "float", "business_site_summary_scheduled_weekly_hours": "float", "default_weekly_hours": "float", "start_date": "timestamp", "end_date": "timestamp"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "business_site_summary_scheduled_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "default_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "start_date": "timestamp", "end_date": "timestamp"}, "created_at": 1712011819.0620859, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_name_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_name_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_name_data.csv", "original_file_path": "seeds/workday_person_name_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_name_data", "fqn": ["workday_integration_tests", "workday_person_name_data"], "alias": "workday_person_name_data", "checksum": {"name": "sha256", "checksum": "104b5d938091b1587548c91aa46a0e5b38ebccec81cbc569993b8a971b116881"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.06398, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_data.csv", "original_file_path": "seeds/workday_organization_role_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "fqn": ["workday_integration_tests", "workday_organization_role_data"], "alias": "workday_organization_role_data", "checksum": {"name": "sha256", "checksum": "b3e1187179e8afc95fbf180efac810d5a8f4f57e118393c60fca2c2c7f09e024"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.065428, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_military_service_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_military_service_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_military_service_data.csv", "original_file_path": "seeds/workday_military_service_data.csv", "unique_id": "seed.workday_integration_tests.workday_military_service_data", "fqn": ["workday_integration_tests", "workday_military_service_data"], "alias": "workday_military_service_data", "checksum": {"name": "sha256", "checksum": "f3d25deafee7b4188b4bdfe815b40397bdd80cd135db866b9ddf2b3a0b346b07"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.067296, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_data.csv", "original_file_path": "seeds/workday_position_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_data", "fqn": ["workday_integration_tests", "workday_position_data"], "alias": "workday_position_data", "checksum": {"name": "sha256", "checksum": "f31ec8364b56eb931ab406b25be5cfc0301bba65908bc448aeb170ed79805894"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "primary_compensation_basis": "float", "primary_compensation_basis_amount_change": "float", "primary_compensation_basis_percent_change": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_amount_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_percent_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712011819.0687418, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_data.csv", "original_file_path": "seeds/workday_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_data", "fqn": ["workday_integration_tests", "workday_organization_data"], "alias": "workday_organization_data", "checksum": {"name": "sha256", "checksum": "e0ece91ba5a270a01be9bbe91ea46b49c9e5c3c56e7234b5a597c9d81f63b4cc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.071757, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_organization_data.csv", "original_file_path": "seeds/workday_position_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "fqn": ["workday_integration_tests", "workday_position_organization_data"], "alias": "workday_position_organization_data", "checksum": {"name": "sha256", "checksum": "c0cd526bcf4b91f1842484875ce4fe803d510862d4d4ddba72c6d1724c8e9ea8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.073389, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_profile_data.csv", "original_file_path": "seeds/workday_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_profile_data"], "alias": "workday_job_profile_data", "checksum": {"name": "sha256", "checksum": "677a184272cdd2e0d746d5616d33ad4ce394c74e759f73bf0e51f8dda5cc96e4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.07478, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_contact_email_address_data.csv", "original_file_path": "seeds/workday_person_contact_email_address_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "fqn": ["workday_integration_tests", "workday_person_contact_email_address_data"], "alias": "workday_person_contact_email_address_data", "checksum": {"name": "sha256", "checksum": "4641c91d789ed134081a55cf0aaafc5a61a7ea075904691a353389552038dbe9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.076436, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_job_family_data.csv", "original_file_path": "seeds/workday_organization_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "fqn": ["workday_integration_tests", "workday_organization_job_family_data"], "alias": "workday_organization_job_family_data", "checksum": {"name": "sha256", "checksum": "2db2016b7eea202409836faff94ba2f168ce13dfd9e00ee1d1591eb85315cd47"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.077794, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_profile_data.csv", "original_file_path": "seeds/workday_job_family_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_family_job_profile_data"], "alias": "workday_job_family_job_profile_data", "checksum": {"name": "sha256", "checksum": "bc99975db9382af8f66fd46976db4cca2a987b1e9de24d17ceeb1ebf6e5ecb68"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.080071, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_job_profile_data.csv", "original_file_path": "seeds/workday_position_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "fqn": ["workday_integration_tests", "workday_position_job_profile_data"], "alias": "workday_position_job_profile_data", "checksum": {"name": "sha256", "checksum": "e5d675b82b521d6856d8f516209642745a595a31d88d147f6561bcbc970433b3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.0826461, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_worker_data.csv", "original_file_path": "seeds/workday_organization_role_worker_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "fqn": ["workday_integration_tests", "workday_organization_role_worker_data"], "alias": "workday_organization_role_worker_data", "checksum": {"name": "sha256", "checksum": "e24079f7ed64c407174d546132b71c69a9b1eaa9951b5a91772a3da7b3ff95f8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712011819.0841558, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "model.workday.workday__employee_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "resource_type": "model", "package_name": "workday", "path": "workday__employee_overview.sql", "original_file_path": "models/workday__employee_overview.sql", "unique_id": "model.workday.workday__employee_overview", "fqn": ["workday", "workday__employee_overview"], "alias": "workday__employee_overview", "checksum": {"name": "sha256", "checksum": "b6fe9afa14aa393b3c40d1a669d182f20e556adacaa1ec46b05ad800bd4141a7"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees.", "columns": {"employee_id": {"name": "employee_id", "description": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_user_active": {"name": "is_user_active", "description": "Is the user currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed": {"name": "is_employed", "description": "Is the worker currently employed?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "departure_date": {"name": "departure_date", "description": "The departure date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_of_employment": {"name": "days_of_employment", "description": "Number of days employed by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Has the worker been regrettably terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_codes": {"name": "ethnicity_codes", "description": "String aggregation of all ethnicity codes associated with an individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The military status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_employed": {"name": "days_employed", "description": "The number of days the employee held their position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_one_year": {"name": "is_employed_one_year", "description": "Tracks whether a worker was employed at least one year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_five_years": {"name": "is_employed_five_years", "description": "Tracks whether a worker was employed at least five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_ten_years": {"name": "is_employed_ten_years", "description": "Tracks whether a worker was employed at least ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_twenty_years": {"name": "is_employed_twenty_years", "description": "Tracks whether a worker was employed at least twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_thirty_years": {"name": "is_employed_thirty_years", "description": "Tracks whether a worker was employed at least thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_one_year": {"name": "is_current_employee_one_year", "description": "Tracks whether a worker is active for more than a year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_five_years": {"name": "is_current_employee_five_years", "description": "Tracks whether a worker is active for more than five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "description": "Tracks whether a worker is active for more than ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "description": "Tracks whether a worker is active for more than twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "description": "Tracks whether a worker is active for more than thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712011820.088439, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"", "raw_code": "with employee_surrogate_key as (\n \n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'source_relation', 'position_id', 'position_start_date']) }} as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from {{ ref('int_workday__worker_employee_enhanced') }} \n)\n\nselect * \nfrom employee_surrogate_key", "language": "sql", "refs": [{"name": "int_workday__worker_employee_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.int_workday__worker_employee_enhanced"]}, "compiled_path": "target/compiled/workday/models/workday__employee_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n), employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from __dbt__cte__int_workday__worker_employee_enhanced \n)\n\nselect * \nfrom employee_surrogate_key", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_details", "sql": " __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n)"}, {"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__personal_details", "sql": " __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n)"}, {"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_position_enriched", "sql": " __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n)"}, {"id": "model.workday.int_workday__worker_employee_enhanced", "sql": " __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__job_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "resource_type": "model", "package_name": "workday", "path": "workday__job_overview.sql", "original_file_path": "models/workday__job_overview.sql", "unique_id": "model.workday.workday__job_overview", "fqn": ["workday", "workday__job_overview"], "alias": "workday__job_overview", "checksum": {"name": "sha256", "checksum": "b50072f5be5632d10a64a1e777aa62ae6f2283f22244bd033fea5fc20ce66165"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "The private title associated with the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "The summary of the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_codes": {"name": "job_family_codes", "description": "String array of all job family codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summaries": {"name": "job_family_summaries", "description": "String array of all job family summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_codes": {"name": "job_family_group_codes", "description": "String array of all job family group codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summaries": {"name": "job_family_group_summaries", "description": "String array of all job family group summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712011820.090158, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"", "raw_code": "with job_profile_data as (\n\n select * \n from {{ ref('stg_workday__job_profile') }}\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_profile') }}\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from {{ ref('stg_workday__job_family') }}\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_family_group') }}\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from {{ ref('stg_workday__job_family_group') }}\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_code', \"', '\" ) }} as job_family_codes,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_summary', \"', '\" ) }} as job_family_summaries, \n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_code', \"', '\" ) }} as job_family_group_codes,\n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_summary', \"', '\" ) }} as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom job_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}, {"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg", "macro.dbt_utils.group_by"], "nodes": ["model.workday.stg_workday__job_profile", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/workday__job_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), job_profile_data as (\n\n select * \n from __dbt__cte__stg_workday__job_profile\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_profile\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from __dbt__cte__stg_workday__job_family\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_family_group\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from __dbt__cte__stg_workday__job_family_group\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__position_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "resource_type": "model", "package_name": "workday", "path": "workday__position_overview.sql", "original_file_path": "models/workday__position_overview.sql", "unique_id": "model.workday.workday__position_overview", "fqn": ["workday", "workday__position_overview"], "alias": "workday__position_overview", "checksum": {"name": "sha256", "checksum": "567db8a61cd72c8faec1aac1963cbf05b776d0fe170a7f8c0ae8ea3d076464d3"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts.", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712011820.092854, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"", "raw_code": "with position_data as (\n\n select *\n from {{ ref('stg_workday__position') }}\n),\n\nposition_job_profile_data as (\n\n select *\n from {{ ref('stg_workday__position_job_profile') }}\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}, {"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/workday__position_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), position_data as (\n\n select *\n from __dbt__cte__stg_workday__position\n),\n\nposition_job_profile_data as (\n\n select *\n from __dbt__cte__stg_workday__position_job_profile\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__organization_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "resource_type": "model", "package_name": "workday", "path": "workday__organization_overview.sql", "original_file_path": "models/workday__organization_overview.sql", "unique_id": "model.workday.workday__organization_overview", "fqn": ["workday", "workday__organization_overview"], "alias": "workday__organization_overview", "checksum": {"name": "sha256", "checksum": "0df19685be8a2ffee5d5e16069cbc9771cc639372004929a73f500f9d7c59798"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712011820.095381, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"", "raw_code": "with organization_data as (\n\n select * \n from {{ ref('stg_workday__organization') }}\n),\n\norganization_role_data as (\n\n select * \n from {{ ref('stg_workday__organization_role') }}\n),\n\nworker_position_organization as (\n\n select *\n from {{ ref('stg_workday__worker_position_organization') }}\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}, {"name": "stg_workday__organization_role", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/workday__organization_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), organization_data as (\n\n select * \n from __dbt__cte__stg_workday__organization\n),\n\norganization_role_data as (\n\n select * \n from __dbt__cte__stg_workday__organization_role\n),\n\nworker_position_organization as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_organization\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position.sql", "original_file_path": "models/staging/stg_workday__position.sql", "unique_id": "model.workday.stg_workday__position", "fqn": ["workday", "staging", "stg_workday__position"], "alias": "stg_workday__position", "checksum": {"name": "sha256", "checksum": "a8eea235110df116f941d206b25f965ace56ec776662153af05d70a2bdf1cd4b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_academic_tenure_eligible": {"name": "is_academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.2733161, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_base')),\n staging_columns=get_position_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_base", "package": null, "version": null}, {"name": "stg_workday__position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_group"], "alias": "stg_workday__job_family_group", "checksum": {"name": "sha256", "checksum": "91495541dd20c1e46fd9fc7074605bd8d766196513173eb2e6d6d2abd779474a"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summary": {"name": "job_family_group_summary", "description": "The summary of the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.2688158, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_group_base')),\n staging_columns=get_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_profile.sql", "original_file_path": "models/staging/stg_workday__job_family_job_profile.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile", "fqn": ["workday", "staging", "stg_workday__job_family_job_profile"], "alias": "stg_workday__job_family_job_profile", "checksum": {"name": "sha256", "checksum": "22f926dc89704581204ef1db5906e7fc184c404d53dc5141b47056de357d6066"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.267395, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_profile_base')),\n staging_columns=get_job_family_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role_worker.sql", "original_file_path": "models/staging/stg_workday__organization_role_worker.sql", "unique_id": "model.workday.stg_workday__organization_role_worker", "fqn": ["workday", "staging", "stg_workday__organization_role_worker"], "alias": "stg_workday__organization_role_worker", "checksum": {"name": "sha256", "checksum": "6cbf3f20ac378d061a6c9034bd75c08e7cf7079ac12c8b167c31e6e1c0e54fa6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_worker_code": {"name": "organization_worker_code", "description": "The worker code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.26965, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_worker_base')),\n staging_columns=get_organization_role_worker_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_worker_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role_worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role.sql", "original_file_path": "models/staging/stg_workday__organization_role.sql", "unique_id": "model.workday.stg_workday__organization_role", "fqn": ["workday", "staging", "stg_workday__organization_role"], "alias": "stg_workday__organization_role", "checksum": {"name": "sha256", "checksum": "d20118b8c8234cda8e96b2df978fdce2aa46bbdb356ebac5b29680663d105e05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.269161, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_base')),\n staging_columns=get_organization_role_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position.sql", "original_file_path": "models/staging/stg_workday__worker_position.sql", "unique_id": "model.workday.stg_workday__worker_position", "fqn": ["workday", "staging", "stg_workday__worker_position"], "alias": "stg_workday__worker_position", "checksum": {"name": "sha256", "checksum": "f812d4b0a33146284f402362816bc05ca7a5e85fa228207ea0df356396906025"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the positions held by workers in the Workday system", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.3256562, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_base')),\n staging_columns=get_worker_position_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_contact_email_address.sql", "original_file_path": "models/staging/stg_workday__person_contact_email_address.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address", "fqn": ["workday", "staging", "stg_workday__person_contact_email_address"], "alias": "stg_workday__person_contact_email_address", "checksum": {"name": "sha256", "checksum": "fc93cd7747b3087ad994ab34f0feec9a8293e02f719a8ddb64bf652d786f50e5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_contact_email_address_id": {"name": "person_contact_email_address_id", "description": "The identifier of the personal contact email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.280951, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_contact_email_address_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_contact_email_address_base')),\n staging_columns=get_person_contact_email_address_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_contact_email_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_contact_email_address_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_contact_email_address.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_job_profile.sql", "original_file_path": "models/staging/stg_workday__position_job_profile.sql", "unique_id": "model.workday.stg_workday__position_job_profile", "fqn": ["workday", "staging", "stg_workday__position_job_profile"], "alias": "stg_workday__position_job_profile", "checksum": {"name": "sha256", "checksum": "1bd56f05d8c66dff4d5741a2ca3963cd4859341229686f1e9155289aa86ca3f3"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_job_profile_name": {"name": "position_job_profile_name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.2738612, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_job_profile_base')),\n staging_columns=get_position_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__position_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position_organization.sql", "original_file_path": "models/staging/stg_workday__worker_position_organization.sql", "unique_id": "model.workday.stg_workday__worker_position_organization", "fqn": ["workday", "staging", "stg_workday__worker_position_organization"], "alias": "stg_workday__worker_position_organization", "checksum": {"name": "sha256", "checksum": "c06c632d0c5bc211074ad78e1d36ea19e68ad03423068316bd207e3978472684"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.329005, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_organization_base')),\n staging_columns=get_worker_position_organization_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_profile.sql", "original_file_path": "models/staging/stg_workday__job_profile.sql", "unique_id": "model.workday.stg_workday__job_profile", "fqn": ["workday", "staging", "stg_workday__job_profile"], "alias": "stg_workday__job_profile", "checksum": {"name": "sha256", "checksum": "c58fefde4e2bab4dfcc7d23f270ba41e4b3a785de9c0f221854b44ce088753d6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_job_code_in_name": {"name": "is_include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_public_job": {"name": "is_public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.267055, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_profile_base')),\n staging_columns=get_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_organization.sql", "original_file_path": "models/staging/stg_workday__position_organization.sql", "unique_id": "model.workday.stg_workday__position_organization", "fqn": ["workday", "staging", "stg_workday__position_organization"], "alias": "stg_workday__position_organization", "checksum": {"name": "sha256", "checksum": "3e066e026cb6c5a57a3780d60185e331275a40666ec842bd51a9f5214c8106f0"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.272376, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_organization_base')),\n staging_columns=get_position_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_organization_base", "package": null, "version": null}, {"name": "stg_workday__position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_leave_status.sql", "original_file_path": "models/staging/stg_workday__worker_leave_status.sql", "unique_id": "model.workday.stg_workday__worker_leave_status", "fqn": ["workday", "staging", "stg_workday__worker_leave_status"], "alias": "stg_workday__worker_leave_status", "checksum": {"name": "sha256", "checksum": "7a780769764a426e346115891309d38326b383297d43976f5b368feefe555e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the leave status of workers in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_benefits_effect": {"name": "is_benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_caesarean_section_birth": {"name": "is_caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_continuous_service_accrual_effect": {"name": "is_continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_multiple_child_indicator": {"name": "is_multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_on_leave": {"name": "is_on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_paid_time_off_accrual_effect": {"name": "is_paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_payroll_effect": {"name": "is_payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_single_parent_indicator": {"name": "is_single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_stock_vesting_effect": {"name": "is_stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_related": {"name": "is_work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.3285, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_leave_status_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_leave_status_base')),\n staging_columns=get_worker_leave_status_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}, {"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_leave_status_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__worker_leave_status_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_leave_status.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_name.sql", "original_file_path": "models/staging/stg_workday__person_name.sql", "unique_id": "model.workday.stg_workday__person_name", "fqn": ["workday", "staging", "stg_workday__person_name"], "alias": "stg_workday__person_name", "checksum": {"name": "sha256", "checksum": "da74b8517c3659e32fa4600075b2c78fd9edf3b9d67b062a39aceeb7007a8106"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the name information for an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_name_type": {"name": "person_name_type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.279109, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_name_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_name_base')),\n staging_columns=get_person_name_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_name_base", "package": null, "version": null}, {"name": "stg_workday__person_name_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_name_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_name_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_name.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information_ethnicity.sql", "original_file_path": "models/staging/stg_workday__personal_information_ethnicity.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity", "fqn": ["workday", "staging", "stg_workday__personal_information_ethnicity"], "alias": "stg_workday__personal_information_ethnicity", "checksum": {"name": "sha256", "checksum": "1cddb347cc063152fdf7519ab20008979c18819cf57eda40f40b5c0ae4df795c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.2796319, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_ethnicity_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_ethnicity_base')),\n staging_columns=get_personal_information_ethnicity_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_ethnicity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information_ethnicity.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_job_family.sql", "original_file_path": "models/staging/stg_workday__organization_job_family.sql", "unique_id": "model.workday.stg_workday__organization_job_family", "fqn": ["workday", "staging", "stg_workday__organization_job_family"], "alias": "stg_workday__organization_job_family", "checksum": {"name": "sha256", "checksum": "25a30264c730bb3d4ed427d08d7262415aa13c72bda44f292aef305dabadb4dc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.270178, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_job_family_base')),\n staging_columns=get_organization_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family_base", "package": null, "version": null}, {"name": "stg_workday__organization_job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family.sql", "original_file_path": "models/staging/stg_workday__job_family.sql", "unique_id": "model.workday.stg_workday__job_family", "fqn": ["workday", "staging", "stg_workday__job_family"], "alias": "stg_workday__job_family", "checksum": {"name": "sha256", "checksum": "2b55aade2b7c5f3aaa66b8689637aecadf3960de67f0df66ecd9d511ec3f4a2c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summary": {"name": "job_family_summary", "description": "The summary of the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.2679622, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_base')),\n staging_columns=get_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_base", "package": null, "version": null}, {"name": "stg_workday__job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__military_service.sql", "original_file_path": "models/staging/stg_workday__military_service.sql", "unique_id": "model.workday.stg_workday__military_service", "fqn": ["workday", "staging", "stg_workday__military_service"], "alias": "stg_workday__military_service", "checksum": {"name": "sha256", "checksum": "2723e93ad3a6b887aa7d9b8c5d97bee2714a4b0d8ff0c80decb8be429e77b709"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about an individual's military service in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.2802198, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__military_service_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__military_service_base')),\n staging_columns=get_military_service_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__military_service_base", "package": null, "version": null}, {"name": "stg_workday__military_service_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_military_service_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__military_service_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__military_service.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information.sql", "original_file_path": "models/staging/stg_workday__personal_information.sql", "unique_id": "model.workday.stg_workday__personal_information", "fqn": ["workday", "staging", "stg_workday__personal_information"], "alias": "stg_workday__personal_information", "checksum": {"name": "sha256", "checksum": "99c2547b9cba3b9798c54da22173f0f4e2d0db3f9623673fc37f0c6f081646bd"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "The personal information associated with each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.277739, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_base')),\n staging_columns=get_personal_information_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__personal_information_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_job_family_group"], "alias": "stg_workday__job_family_job_family_group", "checksum": {"name": "sha256", "checksum": "6fd4740d69f85753d0bf54a02768c8d9b8887e6e58481511bb3067f6dbe9b7eb"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.268299, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_family_group_base')),\n staging_columns=get_job_family_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker.sql", "original_file_path": "models/staging/stg_workday__worker.sql", "unique_id": "model.workday.stg_workday__worker", "fqn": ["workday", "staging", "stg_workday__worker"], "alias": "stg_workday__worker", "checksum": {"name": "sha256", "checksum": "eabb44e7218212b2cfa0ed153715acd2cd920d91f48a20884f237d3307a8d88d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.276544, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_base')),\n staging_columns=get_worker_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization.sql", "original_file_path": "models/staging/stg_workday__organization.sql", "unique_id": "model.workday.stg_workday__organization", "fqn": ["workday", "staging", "stg_workday__organization"], "alias": "stg_workday__organization", "checksum": {"name": "sha256", "checksum": "ddc0897b633fd79f01412ef8b78788ca8168409bbdd6a076e7ae77eae46e5b4c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Identifier for the organization.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_description": {"name": "organization_description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_manager_in_name": {"name": "is_include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_organization_code_in_name": {"name": "is_include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_location": {"name": "organization_location", "description": "The location of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712011820.272023, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_base')),\n staging_columns=get_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_base", "package": null, "version": null}, {"name": "stg_workday__organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_family_group_base"], "alias": "stg_workday__job_family_job_family_group_base", "checksum": {"name": "sha256", "checksum": "e2032528b0352adb9b447a62934a158666a681a00bfd8821c454342850710217"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.460848, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_family_group"], ["workday", "job_family_job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_ethnicity_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_ethnicity_base"], "alias": "stg_workday__personal_information_ethnicity_base", "checksum": {"name": "sha256", "checksum": "83d4f52d542558f35ac9c4bca924abf5d50bd6d060b57de257d9b3a8011375bc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.4774249, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_ethnicity', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_ethnicity',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_ethnicity"], ["workday", "personal_information_ethnicity"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_group_base"], "alias": "stg_workday__job_family_group_base", "checksum": {"name": "sha256", "checksum": "bea26ff96c14d3e08fd64f97fbc8fbefc3cc6cc6726f7eb27132f966e3ace85d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.481528, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_group"], ["workday", "job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_organization_base.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_organization_base"], "alias": "stg_workday__worker_position_organization_base", "checksum": {"name": "sha256", "checksum": "42729b33f262620d892e95707fef1e711b95c66a4df3fb612d1eb73d024a7e38"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.485429, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_organization_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_organization_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_organization_history"], ["workday", "worker_position_organization_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_base.sql", "original_file_path": "models/staging/base/stg_workday__position_base.sql", "unique_id": "model.workday.stg_workday__position_base", "fqn": ["workday", "staging", "base", "stg_workday__position_base"], "alias": "stg_workday__position_base", "checksum": {"name": "sha256", "checksum": "4ccfff02ed1a6e0e94868985aa08ad5eaac5c78e608ae24eb36ebeb3da3b1443"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.489259, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position"], ["workday", "position"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_contact_email_address_base.sql", "original_file_path": "models/staging/base/stg_workday__person_contact_email_address_base.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "fqn": ["workday", "staging", "base", "stg_workday__person_contact_email_address_base"], "alias": "stg_workday__person_contact_email_address_base", "checksum": {"name": "sha256", "checksum": "2bfb4c913c999795db2691f4b3bc115fbae9bbad6e4eb59ad305bc057e7e0e5b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.49381, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_contact_email_address', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_contact_email_address',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_contact_email_address"], ["workday", "person_contact_email_address"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_contact_email_address_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_job_family_base.sql", "unique_id": "model.workday.stg_workday__organization_job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_job_family_base"], "alias": "stg_workday__organization_job_family_base", "checksum": {"name": "sha256", "checksum": "8a999ebe4367e8c4e6994124834c09f9d1eeb411d6e00353c9995bc0900ee1ea"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.49744, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_job_family"], ["workday", "organization_job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_profile_base"], "alias": "stg_workday__job_family_job_profile_base", "checksum": {"name": "sha256", "checksum": "61149fbd447008acfc11c0cce919a3dcdfc878b1e43f1a904bed99cd0e12e934"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.500743, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_profile"], ["workday", "job_family_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__position_organization_base.sql", "unique_id": "model.workday.stg_workday__position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__position_organization_base"], "alias": "stg_workday__position_organization_base", "checksum": {"name": "sha256", "checksum": "e9e1144f5ba976bda0612b7899e5c418c8f2880a69bb98c7bd61826b438cf705"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.5047061, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_organization"], ["workday", "position_organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_base.sql", "unique_id": "model.workday.stg_workday__organization_role_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_base"], "alias": "stg_workday__organization_role_base", "checksum": {"name": "sha256", "checksum": "7da1ae4c5e420c6a429f6082802496377da44449aefb62728c64e31c64923832"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.5089831, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role"], ["workday", "organization_role"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_leave_status_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_leave_status_base.sql", "unique_id": "model.workday.stg_workday__worker_leave_status_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_leave_status_base"], "alias": "stg_workday__worker_leave_status_base", "checksum": {"name": "sha256", "checksum": "25de6c8505c09d17787931dd2ad7fb497ee4fcc6ad9c076417ac327d38b2cee5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.514085, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_leave_status', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_leave_status',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_leave_status"], ["workday", "worker_leave_status"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_leave_status_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_base.sql", "unique_id": "model.workday.stg_workday__job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_base"], "alias": "stg_workday__job_family_base", "checksum": {"name": "sha256", "checksum": "a6d51501e8a9f185408e2c8c963b04ed89e1f87260216f3e994f324119a0f804"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.5177112, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family"], ["workday", "job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_profile_base"], "alias": "stg_workday__job_profile_base", "checksum": {"name": "sha256", "checksum": "ddeb40a89a0b03a8748dae6a224bade7705498441a9f295682bd24ef643fc563"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.521646, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_profile"], ["workday", "job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_base.sql", "unique_id": "model.workday.stg_workday__organization_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_base"], "alias": "stg_workday__organization_base", "checksum": {"name": "sha256", "checksum": "ee0cb72047f2c7760251317c86318a9f46c5a8be9113fcb7d81b269e1b4b4e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.525996, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization"], ["workday", "organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_worker_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_worker_base.sql", "unique_id": "model.workday.stg_workday__organization_role_worker_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_worker_base"], "alias": "stg_workday__organization_role_worker_base", "checksum": {"name": "sha256", "checksum": "74e858892ef8851aec9a06e4e05dbca91361b09939c257c69db38356d59acf05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.5300171, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role_worker', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role_worker',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role_worker"], ["workday", "organization_role_worker"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_base.sql", "unique_id": "model.workday.stg_workday__worker_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_base"], "alias": "stg_workday__worker_base", "checksum": {"name": "sha256", "checksum": "5f0f82a654f8f22d1e129cebdf87aa064125f5deeeca51c50d53f249dd0d96e1"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.535232, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_history"], ["workday", "worker_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__position_job_profile_base.sql", "unique_id": "model.workday.stg_workday__position_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__position_job_profile_base"], "alias": "stg_workday__position_job_profile_base", "checksum": {"name": "sha256", "checksum": "7a2843eac9ceff71866501a413274121b15a2e8d1337b83962e0045cb1b403c5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.5393379, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_job_profile"], ["workday", "position_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_base.sql", "unique_id": "model.workday.stg_workday__worker_position_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_base"], "alias": "stg_workday__worker_position_base", "checksum": {"name": "sha256", "checksum": "8a8431d94738ad8c342bba23f86ace1e658cf63ac9254481bf8463622129514e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.5437062, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_history"], ["workday", "worker_position_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_name_base.sql", "original_file_path": "models/staging/base/stg_workday__person_name_base.sql", "unique_id": "model.workday.stg_workday__person_name_base", "fqn": ["workday", "staging", "base", "stg_workday__person_name_base"], "alias": "stg_workday__person_name_base", "checksum": {"name": "sha256", "checksum": "85c57cfa1fe54db08605b75e32060e1bd488a4f71eae27b2cb8a2805ac4ac655"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.54806, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_name', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_name',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_name"], ["workday", "person_name"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_name"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_name_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__military_service_base.sql", "original_file_path": "models/staging/base/stg_workday__military_service_base.sql", "unique_id": "model.workday.stg_workday__military_service_base", "fqn": ["workday", "staging", "base", "stg_workday__military_service_base"], "alias": "stg_workday__military_service_base", "checksum": {"name": "sha256", "checksum": "9478cb8eea5671a0261ed280e3723a9ad826ee22b77b9dfe709be5fc85fd295e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.552546, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='military_service', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='military_service',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "military_service"], ["workday", "military_service"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.military_service"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__military_service_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_base.sql", "unique_id": "model.workday.stg_workday__personal_information_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_base"], "alias": "stg_workday__personal_information_base", "checksum": {"name": "sha256", "checksum": "0767af75bcb79f32dd324d8bf4e57ffc0d0014bda0609b426df78cdc17566e96"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712011819.557956, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_history"], ["workday", "personal_information_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__monthly_summary": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__monthly_summary.sql", "original_file_path": "models/workday_history/workday__monthly_summary.sql", "unique_id": "model.workday.workday__monthly_summary", "fqn": ["workday", "workday_history", "workday__monthly_summary"], "alias": "workday__monthly_summary", "checksum": {"name": "sha256", "checksum": "10a75175687b647eb539d873e0fae6f27ed89c819915cf14296b7cb1c0e37ae5"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a month, aggregated from the last day of each month of the employee daily history. This captures monthly metrics of workers, such as average salary, churned and retained employees, etc.", "columns": {"metrics_month": {"name": "metrics_month", "description": "Month in which metrics are being aggregated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_employees": {"name": "new_employees", "description": "New employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_employees": {"name": "churned_employees", "description": "Churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_voluntary_employees": {"name": "churned_voluntary_employees", "description": "Voluntary churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_involuntary_employees": {"name": "churned_involuntary_employees", "description": "Involuntary churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_workers": {"name": "churned_workers", "description": "Churned workers that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_employees": {"name": "active_employees", "description": "Employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_male_employees": {"name": "active_male_employees", "description": "Male employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_female_employees": {"name": "active_female_employees", "description": "Female employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_workers": {"name": "active_workers", "description": "Workers considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_known_gender_employees": {"name": "active_known_gender_employees", "description": "Known gender employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_primary_compensation": {"name": "avg_employee_primary_compensation", "description": "Average primary compensation salary of employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_base_pay": {"name": "avg_employee_base_pay", "description": "Average base pay of the employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_salary_and_allowances": {"name": "avg_employee_salary_and_allowances", "description": "Average salary and allowances of the employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_days_as_employee": {"name": "avg_days_as_employee", "description": "Average days employee has been active month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_primary_compensation": {"name": "avg_worker_primary_compensation", "description": "Average primary compensation for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_base_pay": {"name": "avg_worker_base_pay", "description": "Average base pay for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_salary_and_allowances": {"name": "avg_worker_salary_and_allowances", "description": "Average salary plus allowances for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_days_as_worker": {"name": "avg_days_as_worker", "description": "Average days as a worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712011820.435772, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }} \n\nwith row_month_partition as (\n\n select *, \n cast({{ dbt.date_trunc(\"month\", \"date_day\") }} as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from {{ ref('workday__employee_daily_history') }}\n),\n\nend_of_month_history as (\n \n select *,\n {{ dbt.current_timestamp() }} as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then {{ dbt.datediff(\"hire_date\", \"current_date\", \"day\") }}\n else {{ dbt.datediff(\"hire_date\", \"termination_date\", \"day\") }}\n end as days_as_worker,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when cast(date_month as date) = cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date) then 1 else 0 end) as new_employees,\n sum(case when cast(date_month as date) = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) then 1 else 0 end) as churned_employees,\n sum(case when (cast(date_month as date) = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (cast(date_month as date) = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when cast(date_month as date) = cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date)\n and (cast(date_month as date) <= cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date)\n and cast(date_month as date) <= cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__monthly_summary.sql", "compiled": true, "compiled_code": " \n\nwith row_month_partition as (\n\n select *, \n cast(date_trunc('month', date_day) as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n),\n\nend_of_month_history as (\n \n select *,\n now() as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when cast(date_month as date) = cast(date_trunc('month', position_effective_date) as date) then 1 else 0 end) as new_employees,\n sum(case when cast(date_month as date) = cast(date_trunc('month', termination_date) as date) then 1 else 0 end) as churned_employees,\n sum(case when (cast(date_month as date) = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (cast(date_month as date) = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when cast(date_month as date) = cast(date_trunc('month', end_employment_date) as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and (cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__employee_daily_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__employee_daily_history.sql", "original_file_path": "models/workday_history/workday__employee_daily_history.sql", "unique_id": "model.workday.workday__employee_daily_history", "fqn": ["workday", "workday_history", "workday__employee_daily_history"], "alias": "workday__employee_daily_history", "checksum": {"name": "sha256", "checksum": "4c14b35e16add086112f1162036ec382847846ca5f62b7ba617c1b812b7978dd"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a daily record in an employee, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to track the daily history of their employees from when they started.", "columns": {"employee_day_id": {"name": "employee_day_id", "description": "Surrogate key hashed on `date_day` and `employee_id`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date on which the account had these field values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on 'employee_id' and '_fivetran_date'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_id": {"name": "employee_id", "description": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_wh_fivetran_active": {"name": "is_wh_fivetran_active", "description": "Is the worker history record the most recent fivetran active record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_wph_fivetran_active": {"name": "is_wph_fivetran_active", "description": "Is the worker position history record the most recent fivetranactive record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_pih_fivetran_active": {"name": "is_pih_fivetran_active", "description": "Is the personal information history record the most recent fivetran active record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wh_end_employment_date": {"name": "wh_end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wph_end_employment_date": {"name": "wph_end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wh_pay_through_date": {"name": "wh_pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wph_pay_through_date": {"name": "wph_pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712011820.4324229, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"", "raw_code": "-- depends_on: {{ ref('int_workday__employee_history') }}\n{{ config(enabled=var('employee_history_enabled', False)) }}\n\n{% if execute %} \n {% set first_last_date_query %}\n with min_max_values as (\n\n select \n min(_fivetran_start) as min_start,\n max(_fivetran_start) as max_start \n from {{ ref('int_workday__employee_history') }}\n )\n\n select \n min_start,\n case when max_start >= {{ dbt.current_timestamp() }}\n then max_start\n else {{ dbt.date_trunc('day', dbt.current_timestamp()) }} \n end as max_start\n from min_max_values\n \n {% endset %}\n\n {% set start_date = run_query(first_last_date_query).columns[0][0]|string %}\n {% set last_date = run_query(first_last_date_query).columns[1][0]|string %}\n\n{# If only compiling, creates range going back 1 year #}\n{% else %} \n {% set start_date = dbt.dateadd(\"year\", \"-2\", \"current_date\") %} -- Arbitrarily picked. Choose a more appropriate default if necessary.\n {% set last_date = dbt.dateadd(\"year\", \"-1\", \"current_date\") %}\n{% endif %}\n\n\nwith spine as (\n {# Prioritizes variables over calculated dates #}\n {# Arbitrarily picked employee_history_start_date variable value. Choose a more appropriate default if necessary. #}\n {{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date = \"greatest(cast('\" ~ start_date[0:10] ~ \"' as date), cast('\" ~ var('employee_history_start_date','2000-12-31') ~ \"' as date))\", \n end_date = \"cast('\" ~ last_date[0:10] ~ \"'as date)\"\n )\n }}\n),\n\nemployee_history as (\n\n select * \n from {{ ref('int_workday__employee_history') }}\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['spine.date_day','get_latest_daily_value.history_unique_key']) }} as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }})\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }})\n)\n\nselect * \nfrom daily_history", "language": "sql", "refs": [{"name": "int_workday__employee_history", "package": null, "version": null}, {"name": "int_workday__employee_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp", "macro.dbt.current_timestamp", "macro.dbt.date_trunc", "macro.dbt.run_query"], "nodes": ["model.workday.int_workday__employee_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__employee_daily_history.sql", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n\n\n \n \n\n \n \n\n\n\n\n\nwith spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n + \n \n p13.generated_number * power(2, 13)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n cross join \n \n p as p13\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 8492\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2000-12-31' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-01'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__worker_position_org_daily_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__worker_position_org_daily_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__worker_position_org_daily_history.sql", "original_file_path": "models/workday_history/workday__worker_position_org_daily_history.sql", "unique_id": "model.workday.workday__worker_position_org_daily_history", "fqn": ["workday", "workday_history", "workday__worker_position_org_daily_history"], "alias": "workday__worker_position_org_daily_history", "checksum": {"name": "sha256", "checksum": "4f92714b6d8488cdb6ef2aadf6b5ff59f2ac55ab3a66eb296ef69e978f4eff30"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a daily record for a worker/position/organization combination, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to tie in organizations to employees via other organization models (such as `workday__organization_overview`) more easily in their warehouses.", "columns": {"wpo_day_id": {"name": "wpo_day_id", "description": "Surrogate key hashed on `date_day` and `history_unique_key`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date on which the account had these field values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, `source_relation`, and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712011820.4365718, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"", "raw_code": "-- depends_on: {{ ref('stg_workday__worker_position_organization_base') }}\n{{ config(enabled=var('employee_history_enabled', False)) }}\n\n{% if execute %} \n {% set first_last_date_query %}\n with min_max_values as (\n select \n min(_fivetran_start) as min_start,\n max(_fivetran_start) as max_start \n from {{ ref('stg_workday__worker_position_organization_base') }}\n )\n\n select \n min_start,\n case when max_start >= {{ dbt.current_timestamp() }}\n then max_start\n else {{ dbt.date_trunc('day', dbt.current_timestamp()) }} \n end as max_date\n from min_max_values\n\n {% endset %}\n\n {% set start_date = run_query(first_last_date_query).columns[0][0]|string %}\n {% set last_date = run_query(first_last_date_query).columns[1][0]|string %}\n\n{# If only compiling, creates range going back 1 year #}\n{% else %} \n {% set start_date = dbt.dateadd(\"year\", \"-2\", \"current_date\") %} -- Arbitrarily picked. Choose a more appropriate default if necessary.\n {% set last_date = dbt.dateadd(\"year\", \"-1\", \"current_date\") %}\n{% endif %}\n\nwith spine as (\n {# Prioritizes variables over calculated dates #}\n {# Arbitrarily picked employee_history_start_date variable value. Choose a more appropriate default if necessary. #}\n {{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date = \"greatest(cast('\" ~ start_date[0:10] ~ \"' as date), cast('\" ~ var('employee_history_start_date','2000-12-31') ~ \"' as date))\",\n end_date = \"cast('\" ~ last_date[0:10] ~ \"'as date)\"\n )\n }}\n),\n\nworker_position_org_history as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_history') }}\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['spine.date_day',\n 'get_latest_daily_value.history_unique_key']) }} \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }})\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }})\n)\n\nselect * \nfrom daily_history", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp", "macro.dbt.current_timestamp", "macro.dbt.date_trunc", "macro.dbt.run_query"], "nodes": ["model.workday.stg_workday__worker_position_organization_base", "model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__worker_position_org_daily_history.sql", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n\n\n \n \n\n \n \n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n), spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n + \n \n p13.generated_number * power(2, 13)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n cross join \n \n p as p13\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 8492\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2000-12-31' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-01'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nworker_position_org_history as (\n\n select * \n from __dbt__cte__stg_workday__worker_position_organization_history\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_position_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_position_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_position_history.sql", "unique_id": "model.workday.stg_workday__worker_position_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_position_history"], "alias": "stg_workday__worker_position_history", "checksum": {"name": "sha256", "checksum": "4b069cd710a40dce5b38c3760c73eaf5e215020a92036a30ce06271aa39450a7"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id` and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712011820.450326, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_position_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %}\n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_base')),\n staging_columns=get_worker_position_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', '_fivetran_start']) }} as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as {{ dbt.type_timestamp() }}) as position_effective_date,\n employee_type,\n cast(end_date as {{ dbt.type_timestamp() }}) as position_end_date,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as {{ dbt.type_timestamp() }}) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_position_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_position_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_history.sql", "unique_id": "model.workday.stg_workday__worker_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_history"], "alias": "stg_workday__worker_history", "checksum": {"name": "sha256", "checksum": "182531312b167651cffb742d7e954b4d1e60af695dcd4761e95b548bc1d020ff"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712011820.448791, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_base')),\n staging_columns=get_worker_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as {{ dbt.type_timestamp() }}) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__personal_information_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__personal_information_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__personal_information_history.sql", "unique_id": "model.workday.stg_workday__personal_information_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__personal_information_history"], "alias": "stg_workday__personal_information_history", "checksum": {"name": "sha256", "checksum": "9ac063e4c8dc8a37a24239a9aba7cccd0f3dd74943b147a3d501ece935785670"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712011820.446804, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__personal_information_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_base')),\n staging_columns=get_personal_information_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__personal_information_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__personal_information_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_position_organization_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_position_organization_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_position_organization_history.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_position_organization_history"], "alias": "stg_workday__worker_position_organization_history", "checksum": {"name": "sha256", "checksum": "63667ebc0f312b52e03c78332d5b58a5492fb902b40805cb1a327dc99c8d8fa2"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712011820.4511008, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_organization_base')),\n staging_columns=get_worker_position_organization_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'organization_id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_position_organization_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_position_organization_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__employee_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/intermediate/int_workday__employee_history.sql", "original_file_path": "models/workday_history/intermediate/int_workday__employee_history.sql", "unique_id": "model.workday.int_workday__employee_history", "fqn": ["workday", "workday_history", "intermediate", "int_workday__employee_history"], "alias": "int_workday__employee_history", "checksum": {"name": "sha256", "checksum": "5c18f885ead273db1df9a2203e804797db6e3cfcb3f0e3554b6f6309ef440998"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "view", "enabled": true}, "created_at": 1712011819.711157, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith worker_history as (\n\n select *\n from {{ ref('stg_workday__worker_history') }}\n),\n\nworker_position_history as (\n\n select *\n from {{ ref('stg_workday__worker_position_history') }}\n),\n\npersonal_information_history as (\n\n select *\n from {{ ref('stg_workday__personal_information_history') }}\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead({{ dbt.dateadd('microsecond', -1, '_fivetran_start') }} ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as {{ dbt.type_timestamp() }}),\n cast('9999-12-31 23:59:59.999000' as {{ dbt.type_timestamp() }})) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select {{ dbt_utils.generate_surrogate_key(['worker_id', 'source_relation', 'position_id', 'position_start_date']) }} as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select {{ dbt_utils.generate_surrogate_key(['employee_id', '_fivetran_date']) }} as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}, {"name": "stg_workday__worker_position_history", "package": null, "version": null}, {"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history", "model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/intermediate/int_workday__employee_history.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n), worker_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_history\n),\n\nworker_position_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_history\n),\n\npersonal_information_history as (\n\n select *\n from __dbt__cte__stg_workday__personal_information_history\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select md5(cast(coalesce(cast(employee_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_position_enriched": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_position_enriched", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_position_enriched.sql", "original_file_path": "models/intermediate/int_workday__worker_position_enriched.sql", "unique_id": "model.workday.int_workday__worker_position_enriched", "fqn": ["workday", "intermediate", "int_workday__worker_position_enriched"], "alias": "int_workday__worker_position_enriched", "checksum": {"name": "sha256", "checksum": "0bcb8eaaab77feebef76105a810b2f955a424dab91401003170763a691f1bc6d"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712011819.7187269, "relation_name": null, "raw_code": "with worker_position_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker_position') }}\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_position_enriched.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__personal_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__personal_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__personal_details.sql", "original_file_path": "models/intermediate/int_workday__personal_details.sql", "unique_id": "model.workday.int_workday__personal_details", "fqn": ["workday", "intermediate", "int_workday__personal_details"], "alias": "int_workday__personal_details", "checksum": {"name": "sha256", "checksum": "594516db9541d923dcc1958d6ed5747fb91aee48aaa01e0acf8fcbd2fb1a8950"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712011819.723296, "relation_name": null, "raw_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from {{ ref('stg_workday__personal_information') }}\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from {{ ref('stg_workday__person_name') }}\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from {{ ref('stg_workday__person_contact_email_address') }}\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n {{ fivetran_utils.string_agg('distinct ethnicity_code', \"', '\" ) }} as ethnicity_codes\n from {{ ref('stg_workday__personal_information_ethnicity') }}\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from {{ ref('stg_workday__military_service') }}\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}, {"name": "stg_workday__person_name", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}, {"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.workday.stg_workday__personal_information", "model.workday.stg_workday__person_name", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__personal_information_ethnicity", "model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__personal_details.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_details.sql", "original_file_path": "models/intermediate/int_workday__worker_details.sql", "unique_id": "model.workday.int_workday__worker_details", "fqn": ["workday", "intermediate", "int_workday__worker_details"], "alias": "int_workday__worker_details", "checksum": {"name": "sha256", "checksum": "6004df52c6e8acb2f9eb07f0e02e5fb9f694a9f8c3cb3d129916e686039ffd7a"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712011819.727519, "relation_name": null, "raw_code": "with worker_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker') }}\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then {{ dbt.datediff('hire_date', 'current_date', 'day') }}\n else {{ dbt.datediff('hire_date', 'termination_date', 'day') }}\n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_details.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_employee_enhanced": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_employee_enhanced", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_employee_enhanced.sql", "original_file_path": "models/intermediate/int_workday__worker_employee_enhanced.sql", "unique_id": "model.workday.int_workday__worker_employee_enhanced", "fqn": ["workday", "intermediate", "int_workday__worker_employee_enhanced"], "alias": "int_workday__worker_employee_enhanced", "checksum": {"name": "sha256", "checksum": "b304988457480f06f3bbc052fb27d7d6af37592d243606c4acf783558786aa1d"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712011819.7325702, "relation_name": null, "raw_code": "with int_worker_base as (\n\n select * \n from {{ ref('int_workday__worker_details') }} \n),\n\nint_worker_personal_details as (\n\n select * \n from {{ ref('int_workday__personal_details') }} \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from {{ ref('int_workday__worker_position_enriched') }} \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "language": "sql", "refs": [{"name": "int_workday__worker_details", "package": null, "version": null}, {"name": "int_workday__personal_details", "package": null, "version": null}, {"name": "int_workday__worker_position_enriched", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.int_workday__worker_details", "model.workday.int_workday__personal_details", "model.workday.int_workday__worker_position_enriched"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_employee_enhanced.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_details", "sql": " __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n)"}, {"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__personal_details", "sql": " __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n)"}, {"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_position_enriched", "sql": " __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "employee_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__employee_overview_employee_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__employee_overview_employee_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.unique_workday__employee_overview_employee_id.b01e19996c", "fqn": ["workday", "unique_workday__employee_overview_employee_id"], "alias": "unique_workday__employee_overview_employee_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.14127, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/unique_workday__employee_overview_employee_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is not null\ngroup by employee_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "employee_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_overview_employee_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_overview_employee_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "fqn": ["workday", "not_null_workday__employee_overview_employee_id"], "alias": "not_null_workday__employee_overview_employee_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.142616, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__employee_overview_employee_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_overview_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_overview_worker_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "fqn": ["workday", "not_null_workday__employee_overview_worker_id"], "alias": "not_null_workday__employee_overview_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.145118, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__employee_overview_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__job_overview_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__job_overview_job_profile_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "fqn": ["workday", "not_null_workday__job_overview_job_profile_id"], "alias": "not_null_workday__job_overview_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.14639, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__job_overview_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656"}, "created_at": 1712011820.1476648, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656\") }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.not_null_workday__position_overview_position_id.603beb3f22": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__position_overview_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__position_overview_position_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "fqn": ["workday", "not_null_workday__position_overview_position_id"], "alias": "not_null_workday__position_overview_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.1562948, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__position_overview_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e"}, "created_at": 1712011820.15733, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e\") }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "fqn": ["workday", "not_null_workday__organization_overview_organization_id"], "alias": "not_null_workday__organization_overview_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.1625931, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_role_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "fqn": ["workday", "not_null_workday__organization_overview_organization_role_id"], "alias": "not_null_workday__organization_overview_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.163746, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1"}, "created_at": 1712011820.164769, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1\") }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "fqn": ["workday", "staging", "not_null_stg_workday__job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.329555, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1"}, "created_at": 1712011820.3310301, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id\n from __dbt__cte__stg_workday__job_profile\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_family_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.3341691, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.335328, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id"], "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378"}, "created_at": 1712011820.336363, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from __dbt__cte__stg_workday__job_family_job_profile\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.339861, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id"], "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd"}, "created_at": 1712011820.340933, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id\n from __dbt__cte__stg_workday__job_family\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_group_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.344411, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af"}, "created_at": 1712011820.345435, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4"}, "created_at": 1712011820.346426, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from __dbt__cte__stg_workday__job_family_job_family_group\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_group_job_family_group_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_family_group_job_family_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.349248, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_group_job_family_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_group\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5"}, "created_at": 1712011820.350156, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_group_id\n from __dbt__cte__stg_workday__job_family_group\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_id"], "alias": "not_null_stg_workday__organization_role_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.35292, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_role_id"], "alias": "not_null_stg_workday__organization_role_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.354249, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_role_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id"], "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908"}, "created_at": 1712011820.355499, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from __dbt__cte__stg_workday__organization_role\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_worker_code", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_worker_code", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_worker_code"], "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda"}, "created_at": 1712011820.358607, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_worker_code\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_worker_code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_worker_code", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_id"], "alias": "not_null_stg_workday__organization_role_worker_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.359832, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_role_id"], "alias": "not_null_stg_workday__organization_role_worker_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.360815, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select role_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "role_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_worker_code", "organization_id", "role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id"], "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a"}, "created_at": 1712011820.362038, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from __dbt__cte__stg_workday__organization_role_worker\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_job_family_id"], "alias": "not_null_stg_workday__organization_job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.364911, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_organization_id"], "alias": "not_null_stg_workday__organization_job_family_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.366071, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id"], "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456"}, "created_at": 1712011820.367129, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from __dbt__cte__stg_workday__organization_job_family\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_organization_id"], "alias": "not_null_stg_workday__organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.37051, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id"], "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5"}, "created_at": 1712011820.371545, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id\n from __dbt__cte__stg_workday__organization\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_organization_id"], "alias": "not_null_stg_workday__position_organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.3743758, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_position_id"], "alias": "not_null_stg_workday__position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.375675, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id"], "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc"}, "created_at": 1712011820.376676, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from __dbt__cte__stg_workday__position_organization\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "fqn": ["workday", "staging", "not_null_stg_workday__position_position_id"], "alias": "not_null_stg_workday__position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.3793821, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32"}, "created_at": 1712011820.3803039, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32\") }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id\n from __dbt__cte__stg_workday__position\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_job_profile_id"], "alias": "not_null_stg_workday__position_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.382797, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_position_id"], "alias": "not_null_stg_workday__position_job_profile_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.384213, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id"], "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62"}, "created_at": 1712011820.385611, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from __dbt__cte__stg_workday__position_job_profile\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "fqn": ["workday", "staging", "not_null_stg_workday__worker_worker_id"], "alias": "not_null_stg_workday__worker_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.38877, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33"}, "created_at": 1712011820.389811, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__worker\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_worker_id"], "alias": "not_null_stg_workday__personal_information_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.392703, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13"}, "created_at": 1712011820.393779, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__personal_information\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_worker_id"], "alias": "not_null_stg_workday__person_name_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.396341, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_name\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_name_type", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_person_name_type", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_person_name_type.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_person_name_type"], "alias": "not_null_stg_workday__person_name_person_name_type", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.397245, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_person_name_type.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_name_type\nfrom __dbt__cte__stg_workday__person_name\nwhere person_name_type is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_name_type", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_name_type"], "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type"], "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574"}, "created_at": 1712011820.398219, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from __dbt__cte__stg_workday__person_name\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_worker_id"], "alias": "not_null_stg_workday__personal_information_ethnicity_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.400885, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ethnicity_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_ethnicity_id"], "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5"}, "created_at": 1712011820.401851, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select ethnicity_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere ethnicity_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ethnicity_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "ethnicity_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id"], "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5"}, "created_at": 1712011820.4027572, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__military_service_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__military_service_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "fqn": ["workday", "staging", "not_null_stg_workday__military_service_worker_id"], "alias": "not_null_stg_workday__military_service_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.40527, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__military_service_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__military_service\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9"}, "created_at": 1712011820.4061708, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9\") }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__military_service\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_contact_email_address_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id"], "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08"}, "created_at": 1712011820.4085271, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_contact_email_address_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere person_contact_email_address_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_contact_email_address_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_contact_email_address_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_worker_id"], "alias": "not_null_stg_workday__person_contact_email_address_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.409438, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_contact_email_address_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_contact_email_address_id"], "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id"], "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb"}, "created_at": 1712011820.4107258, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from __dbt__cte__stg_workday__person_contact_email_address\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_position_id"], "alias": "not_null_stg_workday__worker_position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.413582, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_worker_id"], "alias": "not_null_stg_workday__worker_position_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.414517, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7"}, "created_at": 1712011820.4155169, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from __dbt__cte__stg_workday__worker_position\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "leave_request_event_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_leave_request_event_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_leave_request_event_id"], "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308"}, "created_at": 1712011820.418242, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select leave_request_event_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere leave_request_event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "leave_request_event_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_leave_status_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_worker_id"], "alias": "not_null_stg_workday__worker_leave_status_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.4192379, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_leave_status_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "leave_request_event_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id"], "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f"}, "created_at": 1712011820.420177, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from __dbt__cte__stg_workday__worker_leave_status\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_position_id"], "alias": "not_null_stg_workday__worker_position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.423208, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_worker_id"], "alias": "not_null_stg_workday__worker_position_organization_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.424148, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_organization_id"], "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23"}, "created_at": 1712011820.425449, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "position_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id"], "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926"}, "created_at": 1712011820.426563, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from __dbt__cte__stg_workday__worker_position_organization\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "employee_day_id", "model": "{{ get_where_subquery(ref('workday__employee_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__employee_daily_history_employee_day_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__employee_daily_history_employee_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269", "fqn": ["workday", "workday_history", "unique_workday__employee_daily_history_employee_day_id"], "alias": "unique_workday__employee_daily_history_employee_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.43706, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__employee_daily_history_employee_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is not null\ngroup by employee_day_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_day_id", "file_key_name": "models.workday__employee_daily_history", "attached_node": "model.workday.workday__employee_daily_history"}, "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "employee_day_id", "model": "{{ get_where_subquery(ref('workday__employee_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_daily_history_employee_day_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_daily_history_employee_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "fqn": ["workday", "workday_history", "not_null_workday__employee_daily_history_employee_day_id"], "alias": "not_null_workday__employee_daily_history_employee_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.43807, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__employee_daily_history_employee_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_day_id", "file_key_name": "models.workday__employee_daily_history", "attached_node": "model.workday.workday__employee_daily_history"}, "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__monthly_summary_metrics_month", "resource_type": "test", "package_name": "workday", "path": "unique_workday__monthly_summary_metrics_month.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab", "fqn": ["workday", "workday_history", "unique_workday__monthly_summary_metrics_month"], "alias": "unique_workday__monthly_summary_metrics_month", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.438997, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__monthly_summary"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__monthly_summary_metrics_month.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n metrics_month as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is not null\ngroup by metrics_month\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metrics_month", "file_key_name": "models.workday__monthly_summary", "attached_node": "model.workday.workday__monthly_summary"}, "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__monthly_summary_metrics_month", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__monthly_summary_metrics_month.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "fqn": ["workday", "workday_history", "not_null_workday__monthly_summary_metrics_month"], "alias": "not_null_workday__monthly_summary_metrics_month", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.439967, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__monthly_summary"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__monthly_summary_metrics_month.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metrics_month\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metrics_month", "file_key_name": "models.workday__monthly_summary", "attached_node": "model.workday.workday__monthly_summary"}, "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "wpo_day_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__worker_position_org_daily_history_wpo_day_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__worker_position_org_daily_history_wpo_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21", "fqn": ["workday", "workday_history", "unique_workday__worker_position_org_daily_history_wpo_day_id"], "alias": "unique_workday__worker_position_org_daily_history_wpo_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.44121, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__worker_position_org_daily_history_wpo_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n wpo_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is not null\ngroup by wpo_day_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "wpo_day_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "wpo_day_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_wpo_day_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_wpo_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_wpo_day_id"], "alias": "not_null_workday__worker_position_org_daily_history_wpo_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.442166, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_wpo_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect wpo_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "wpo_day_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_worker_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_worker_id"], "alias": "not_null_workday__worker_position_org_daily_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.443039, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_position_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_position_id"], "alias": "not_null_workday__worker_position_org_daily_history_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.4439209, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_organization_id"], "alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632"}, "created_at": 1712011820.444983, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632\") }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__personal_information_history_worker_id"], "alias": "not_null_stg_workday__personal_information_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.4516811, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__personal_information_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__personal_information_history_history_unique_key"], "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2"}, "created_at": 1712011820.4529002, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__personal_information_history_history_unique_key"], "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3"}, "created_at": 1712011820.453942, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c", "fqn": ["workday", "workday_history", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523"}, "created_at": 1712011820.45505, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/dbt_utils_unique_combination_o_1f075da8c8727c9c86a0bcc515191523.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n worker_id, _fivetran_start\n from __dbt__cte__stg_workday__personal_information_history\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_history_worker_id"], "alias": "not_null_stg_workday__worker_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.458369, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_history_history_unique_key"], "alias": "unique_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.459278, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_history_history_unique_key"], "alias": "not_null_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.460163, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df", "fqn": ["workday", "workday_history", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135"}, "created_at": 1712011820.461484, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/dbt_utils_unique_combination_o_303c7b4b391bd36a1958320ff4b51135.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n worker_id, _fivetran_start\n from __dbt__cte__stg_workday__worker_history\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_worker_id"], "alias": "not_null_stg_workday__worker_position_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.464323, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_position_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_position_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_position_id"], "alias": "not_null_stg_workday__worker_position_history_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.465608, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_position_history_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_position_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_position_history_history_unique_key"], "alias": "unique_stg_workday__worker_position_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712011820.4666, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_position_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9"}, "created_at": 1712011820.467515, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "position_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b", "fqn": ["workday", "workday_history", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412"}, "created_at": 1712011820.468498, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/dbt_utils_unique_combination_o_6154a4e4415524e6566a0c654b7c0412.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n worker_id, position_id, _fivetran_start\n from __dbt__cte__stg_workday__worker_position_history\n group by worker_id, position_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_worker_id"], "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a"}, "created_at": 1712011820.471627, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_position_id"], "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441"}, "created_at": 1712011820.472917, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_organization_id"], "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0"}, "created_at": 1712011820.4741209, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22"}, "created_at": 1712011820.475466, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6"}, "created_at": 1712011820.476466, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["worker_id", "position_id", "organization_id", "_fivetran_start"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888", "fqn": ["workday", "workday_history", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start"], "alias": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71"}, "created_at": 1712011820.477411, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/dbt_utils_unique_combination_o_82bb9c3164573991de8897e033d5fc71.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n worker_id, position_id, organization_id, _fivetran_start\n from __dbt__cte__stg_workday__worker_position_organization_history\n group by worker_id, position_id, organization_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}}, "sources": {"source.workday.workday.job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_profile", "fqn": ["workday", "staging", "workday", "job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"id": {"name": "id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_job_code_in_name": {"name": "include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "public_job": {"name": "public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "title": {"name": "title", "description": "Title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "created_at": 1712011820.4814}, "source.workday.workday.job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_profile", "fqn": ["workday", "staging", "workday", "job_family_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "created_at": 1712011820.481527}, "source.workday.workday.job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family", "fqn": ["workday", "staging", "workday", "job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "created_at": 1712011820.481617}, "source.workday.workday.job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_family_group", "fqn": ["workday", "staging", "workday", "job_family_job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "created_at": 1712011820.481698}, "source.workday.workday.job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_group", "fqn": ["workday", "staging", "workday", "job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"id": {"name": "id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "created_at": 1712011820.481781}, "source.workday.workday.organization_role": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role", "fqn": ["workday", "staging", "workday", "organization_role"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "created_at": 1712011820.4818618}, "source.workday.workday.organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role_worker", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role_worker", "fqn": ["workday", "staging", "workday", "organization_role_worker"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_worker_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"associated_worker_id": {"name": "associated_worker_id", "description": "Identifier for the worker associated with the organization role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "created_at": 1712011820.481944}, "source.workday.workday.organization_job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_job_family", "fqn": ["workday", "staging", "workday", "organization_job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "created_at": 1712011820.482021}, "source.workday.workday.organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization", "fqn": ["workday", "staging", "workday", "organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Identifier for the organization.", "columns": {"id": {"name": "id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_manager_in_name": {"name": "include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_organization_code_in_name": {"name": "include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location": {"name": "location", "description": "Location associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sub_type": {"name": "sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "created_at": 1712011820.482136}, "source.workday.workday.position_organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_organization", "fqn": ["workday", "staging", "workday", "position_organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "created_at": 1712011820.482214}, "source.workday.workday.position": {"database": "postgres", "schema": "workday_integration_tests", "name": "position", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position", "fqn": ["workday", "staging", "workday", "position"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_eligible": {"name": "academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_overlap": {"name": "available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_recruiting": {"name": "available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "created_at": 1712011820.4823282}, "source.workday.workday.position_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_job_profile", "fqn": ["workday", "staging", "workday", "position_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "created_at": 1712011820.482523}, "source.workday.workday.worker_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_history", "fqn": ["workday", "staging", "workday", "worker_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"id": {"name": "id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "has_international_assignment": {"name": "has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_rescinded": {"name": "hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "not_returning": {"name": "not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regrettable_termination": {"name": "regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rehire": {"name": "rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retired": {"name": "retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "return_unknown": {"name": "return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "terminated": {"name": "terminated", "description": "Flag indicating whether the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_involuntary": {"name": "termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "created_at": 1712011820.482701}, "source.workday.workday.personal_information_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_history", "fqn": ["workday", "staging", "workday", "personal_information_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The personal information associated with each worker.", "columns": {"id": {"name": "id", "description": "The identifier for each personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hispanic_or_latino": {"name": "hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_hukou": {"name": "local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tobacco_use": {"name": "tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "created_at": 1712011820.482817}, "source.workday.workday.person_name": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_name", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_name", "fqn": ["workday", "staging", "workday", "person_name"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_name_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the name information for an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "created_at": 1712011820.4829261}, "source.workday.workday.personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_ethnicity", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_ethnicity", "fqn": ["workday", "staging", "workday", "personal_information_ethnicity"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_ethnicity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "created_at": 1712011820.4830039}, "source.workday.workday.military_service": {"database": "postgres", "schema": "workday_integration_tests", "name": "military_service", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.military_service", "fqn": ["workday", "staging", "workday", "military_service"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_military_service_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about an individual's military service in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "created_at": 1712011820.483114}, "source.workday.workday.person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_contact_email_address", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_contact_email_address", "fqn": ["workday", "staging", "workday", "person_contact_email_address"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_contact_email_address_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "created_at": 1712011820.483191}, "source.workday.workday.worker_position_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_history", "fqn": ["workday", "staging", "workday", "worker_position_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the positions held by workers in the Workday system", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location": {"name": "business_site_summary_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "exclude_from_head_count": {"name": "exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_exempt": {"name": "job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_paid_fte": {"name": "specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_working_fte": {"name": "specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "created_at": 1712011820.483333}, "source.workday.workday.worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_leave_status", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_leave_status", "fqn": ["workday", "staging", "workday", "worker_leave_status"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_leave_status_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the leave status of workers in the Workday system.", "columns": {"leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_effect": {"name": "benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caesarean_section_birth": {"name": "caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "multiple_child_indicator": {"name": "multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_leave": {"name": "on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_effect": {"name": "payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "single_parent_indicator": {"name": "single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stock_vesting_effect": {"name": "stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_related": {"name": "work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "created_at": 1712011820.4834518}, "source.workday.workday.worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_organization_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_organization_history", "fqn": ["workday", "staging", "workday", "worker_position_organization_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_organization_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "created_at": 1712011820.483537}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.2879, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.28813, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.288238, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.288341, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.2884412, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n when 'm' then 'MATERIALIZED VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.289902, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.290323, "supported_languages": null}, "macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.290963, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.291094, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.299317, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.299799, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.300104, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.300395, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.300842, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.301259, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.301425, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.30175, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.302109, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3029602, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.303144, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3034399, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3037262, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.304118, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.304327, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.304875, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.305063, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3051672, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.305335, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3054678, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.30584, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3065019, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.306632, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.306911, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3070452, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.307212, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.307988, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }};\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.308438, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.308714, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.309054, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.309185, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.309937, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.310225, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3103878, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.310957, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.311143, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3113542, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.311916, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.314882, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3150349, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.315508, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.315882, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.316868, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3170528, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3171892, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.317323, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.317458, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.317811, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.318093, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3184562, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3188522, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3191, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.322269, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.322431, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.322633, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.323304, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.323471, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.323638, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.324914, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3261912, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3297532, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3300118, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.330164, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.330244, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.330374, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3304791, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.33066, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.331441, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.331608, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3318279, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3322089, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3378701, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.34047, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.340925, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.341218, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.341563, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3419242, "supported_languages": null}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.346208, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3467572, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.347052, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3483279, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3485692, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.34918, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.352164, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.354997, "supported_languages": ["sql"]}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.356653, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.357198, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.357826, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.358041, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.358688, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.364197, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.36565, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.36589, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.366965, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.367303, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.367947, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.368586, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.369457, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.369698, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.369983, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.370401, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.370734, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.371032, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3712199, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.371476, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.371659, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.371804, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.372158, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.377503, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.382494, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3836749, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.384817, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.385634, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.385895, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.386008, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.386299, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation }} clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.386432, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {% if target_relation and defer_relation and target_relation == defer_relation %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation) }}\n {% else %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endif %}\n\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3902452, "supported_languages": ["sql"]}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.393427, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.397992, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.3989089, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.399182, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.399673, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.39987, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.399998, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4001348, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.400306, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.400494, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4006112, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.401072, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.401262, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4026518, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.40312, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.403471, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.404124, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.404404, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.404684, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4050891, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.405327, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.405992, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4063518, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4065301, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4067168, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.406909, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4076538, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation_type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.40894, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.409336, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.409584, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.409902, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.410105, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.410829, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.411256, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.411454, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.411731, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.412062, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.412304, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.412735, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.413145, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4134452, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.413644, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{ return(adapter.dispatch('drop_materialized_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.413901, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.414, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.414256, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.414389, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4146712, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.414871, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4151208, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.415254, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.41581, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.415979, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.416251, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.416385, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4166322, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.416767, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.417779, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.417898, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.418405, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.418568, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.418698, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.419978, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.420332, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.420657, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{ return(adapter.dispatch('drop_table', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.420921, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4210181, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.421264, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.421404, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.421654, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.421791, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.422564, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.422737, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.42313, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.423761, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4241831, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.424362, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.424522, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{ return(adapter.dispatch('drop_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.424768, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.424864, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.425646, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.425787, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4269729, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.42719, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.427393, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.427671, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4278002, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.428162, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.428305, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.428472, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.428849, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.429158, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.429418, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.429644, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.430153, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.43149, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.432019, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.432322, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.434038, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.435349, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.436165, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4363909, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.436618, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.436689, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.437346, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.43788, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.438087, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.438415, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.438713, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.43886, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4390779, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.439187, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4399319, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4403148, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.44049, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.44095, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.441185, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.441282, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4415889, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.44174, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.441979, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.442146, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.442421, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4425652, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4428558, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.442996, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.443813, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4442508, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.444611, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.44477, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.445075, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.445214, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4454558, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.445604, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.445834, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.446008, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.446242, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.446338, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4466, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4467258, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4469602, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.447146, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.448002, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.448143, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.448298, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.448436, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4485838, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.448722, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4488692, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4490392, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4491892, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.449336, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.449486, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4496179, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.449763, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.449895, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.450176, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4503691, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.450634, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.450753, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.451175, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.451445, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4515882, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.45208, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.452242, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.45245, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.452707, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4528298, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.453174, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4534059, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.453672, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4537978, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.454144, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.454318, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4544692, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.454635, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.455076, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4552221, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4553568, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4554582, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.455692, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.455764, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.455918, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.456075, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4568162, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.456942, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.457085, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4574668, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.457641, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.457769, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4579148, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.458038, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.45996, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.460128, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.46033, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.460596, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4608178, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.461109, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4612741, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4616718, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.461897, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.462389, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.462593, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.462719, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.463098, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4634602, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.463711, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.463914, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.465394, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.465497, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4656482, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.465749, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.466049, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.466219, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.466308, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.466509, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.466688, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.466888, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.467116, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.467329, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.46795, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.468218, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4685838, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4688692, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.470022, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header -%}\n {{ sql_header }}\n {%- endif -%}\n {%- if limit is not none -%}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n {%- else -%}\n {{ compiled_code }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4705842, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "{% macro get_limit_subquery_sql(sql, limit) %}\n {{ adapter.dispatch('get_limit_subquery_sql', 'dbt')(sql, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.470792, "supported_languages": null}, "macro.dbt.default__get_limit_subquery_sql": {"name": "default__get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_subquery_sql", "macro_sql": "{% macro default__get_limit_subquery_sql(sql, limit) %}\n select *\n from (\n {{ sql }}\n ) as model_limit_subq\n limit {{ limit }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4709241, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4715679, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.47174, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4719381, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.472102, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.47236, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.472833, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.47557, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.475827, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.476028, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4764018, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.476584, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4767401, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.476913, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.477144, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4773371, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.477616, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4777842, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4779341, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.478113, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.478355, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.478621, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4788322, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4810061, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.481167, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.481465, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.481664, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.481854, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.482021, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n cast(null as {{ col['data_type'] }}) as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.483262, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4836202, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.483804, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4841769, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4844642, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.485173, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.485446, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.486166, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4876502, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.487794, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.488618, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.489022, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.489556, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.489991, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.49006, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.490541, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.490759, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.491029, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.491284, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.491605, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.492065, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.49263, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.493563, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4939399, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.494265, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.495313, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.496342, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.497215, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.498347, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.499049, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.4993799, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.500087, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.501069, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5016372, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.502103, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.502819, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5032902, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.503804, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.504147, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.504748, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n where {{ column_name }} is not null\n limit 1\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.50569, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.506482, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.507123, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.507659, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.50797, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.508336, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.508655, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5092502, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.510004, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.510902, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.51175, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.512438, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.513226, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.513668, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.513931, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.516887, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.518332, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.518589, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.518739, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5191739, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.519422, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5196018, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5198321, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.519994, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5205572, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.521596, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5223339, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.522933, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5231528, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.523499, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.523874, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5243871, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.524677, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.524992, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.525602, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5264919, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.527275, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.527655, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5278258, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5282829, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.528859, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5296268, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.529999, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.53026, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5314271, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5327559, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.533951, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.535458, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.535746, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.535869, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.538615, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5419369, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.542279, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.542516, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.543235, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.543437, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5436249, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.543803, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.543953, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.544111, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5444689, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.544697, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.545042, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.545542, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.545871, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5462, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5477178, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.548068, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.548821, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5493052, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.550404, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.551883, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5529091, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.553709, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.554196, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.554889, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.555735, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.556247, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.556436, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.556823, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5573661, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.557784, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.558372, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5588422, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.558969, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.55909, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.55921, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.55965, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.560419, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.561392, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5616379, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.56214, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.562861, "supported_languages": null}, "macro.workday.get_person_contact_email_address_columns": {"name": "get_person_contact_email_address_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_contact_email_address_columns.sql", "original_file_path": "macros/get_person_contact_email_address_columns.sql", "unique_id": "macro.workday.get_person_contact_email_address_columns", "macro_sql": "{% macro get_person_contact_email_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_address\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_comment\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.563689, "supported_languages": null}, "macro.workday.get_military_service_columns": {"name": "get_military_service_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_military_service_columns.sql", "original_file_path": "macros/get_military_service_columns.sql", "unique_id": "macro.workday.get_military_service_columns", "macro_sql": "{% macro get_military_service_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"discharge_date\", \"datatype\": \"date\"},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"rank\", \"datatype\": dbt.type_string()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status_begin_date\", \"datatype\": \"date\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.564863, "supported_languages": null}, "macro.workday.get_position_job_profile_columns": {"name": "get_position_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_job_profile_columns.sql", "original_file_path": "macros/get_position_job_profile_columns.sql", "unique_id": "macro.workday.get_position_job_profile_columns", "macro_sql": "{% macro get_position_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.566087, "supported_languages": null}, "macro.workday.get_job_family_job_family_group_columns": {"name": "get_job_family_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_job_family_group_columns", "macro_sql": "{% macro get_job_family_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.566713, "supported_languages": null}, "macro.workday.get_worker_history_columns": {"name": "get_worker_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_history_columns.sql", "original_file_path": "macros/get_worker_history_columns.sql", "unique_id": "macro.workday.get_worker_history_columns", "macro_sql": "{% macro get_worker_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_date\", \"datatype\": \"date\"},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"active_status_date\", \"datatype\": \"date\"},\n {\"name\": \"annual_currency_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_service_date\", \"datatype\": \"date\"},\n {\"name\": \"company_service_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_effective_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"continuous_service_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_assignment_details\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_end_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_frequency_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_pay_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"contract_vendor_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_entered_workforce\", \"datatype\": \"date\"},\n {\"name\": \"days_unemployed\", \"datatype\": dbt.type_float()},\n {\"name\": \"eligible_for_hire\", \"datatype\": dbt.type_string()},\n {\"name\": \"eligible_for_rehire_on_latest_termination\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_date_of_return\", \"datatype\": \"date\"},\n {\"name\": \"expected_retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"has_international_assignment\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hire_date\", \"datatype\": \"date\"},\n {\"name\": \"hire_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"hire_rescinded\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_datefor_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"local_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"months_continuous_prior_employment\", \"datatype\": dbt.type_float()},\n {\"name\": \"not_returning\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"original_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"pay_group_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"primary_termination_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"probation_end_date\", \"datatype\": \"date\"},\n {\"name\": \"probation_start_date\", \"datatype\": \"date\"},\n {\"name\": \"reason_reference_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regrettable_termination\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"rehire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"resignation_date\", \"datatype\": \"date\"},\n {\"name\": \"retired\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"retirement_eligibility_date\", \"datatype\": \"date\"},\n {\"name\": \"return_unknown\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"seniority_date\", \"datatype\": \"date\"},\n {\"name\": \"severance_date\", \"datatype\": \"date\"},\n {\"name\": \"terminated\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_date\", \"datatype\": \"date\"},\n {\"name\": \"termination_involuntary\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"time_off_service_date\", \"datatype\": \"date\"},\n {\"name\": \"universal_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vesting_date\", \"datatype\": \"date\"},\n {\"name\": \"worker_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.579527, "supported_languages": null}, "macro.workday.get_job_family_group_columns": {"name": "get_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_group_columns", "macro_sql": "{% macro get_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_group_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.580469, "supported_languages": null}, "macro.workday.get_worker_leave_status_columns": {"name": "get_worker_leave_status_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_leave_status_columns.sql", "original_file_path": "macros/get_worker_leave_status_columns.sql", "unique_id": "macro.workday.get_worker_leave_status_columns", "macro_sql": "{% macro get_worker_leave_status_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"adoption_notification_date\", \"datatype\": \"date\"},\n {\"name\": \"adoption_placement_date\", \"datatype\": \"date\"},\n {\"name\": \"age_of_dependent\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"caesarean_section_birth\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"child_birth_date\", \"datatype\": \"date\"},\n {\"name\": \"child_sdate_of_death\", \"datatype\": \"date\"},\n {\"name\": \"continuous_service_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"date_baby_arrived_home_from_hospital\", \"datatype\": \"date\"},\n {\"name\": \"date_child_entered_country\", \"datatype\": \"date\"},\n {\"name\": \"date_of_recall\", \"datatype\": \"date\"},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimated_leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_due_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"last_date_for_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_entitlement_override\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"leave_of_absence_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_request_event_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_return_event\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_start_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_status_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_type_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_during_leave\", \"datatype\": dbt.type_string()},\n {\"name\": \"multiple_child_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"number_of_babies_adopted_children\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_child_dependents\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_births\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_maternity_leaves\", \"datatype\": dbt.type_float()},\n {\"name\": \"on_leave\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"paid_time_off_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"payroll_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"single_parent_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"social_security_disability_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"stock_vesting_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"stop_payment_date\", \"datatype\": \"date\"},\n {\"name\": \"week_of_confinement\", \"datatype\": \"date\"},\n {\"name\": \"work_related\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.585435, "supported_languages": null}, "macro.workday.get_organization_role_worker_columns": {"name": "get_organization_role_worker_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_worker_columns.sql", "original_file_path": "macros/get_organization_role_worker_columns.sql", "unique_id": "macro.workday.get_organization_role_worker_columns", "macro_sql": "{% macro get_organization_role_worker_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"associated_worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.586114, "supported_languages": null}, "macro.workday.get_job_profile_columns": {"name": "get_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_profile_columns.sql", "original_file_path": "macros/get_job_profile_columns.sql", "unique_id": "macro.workday.get_job_profile_columns", "macro_sql": "{% macro get_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_job_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"public_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"referral_payment_plan\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_membership_requirement\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_study_award_source_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_study_requirement_option_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.588945, "supported_languages": null}, "macro.workday.get_organization_role_columns": {"name": "get_organization_role_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_columns.sql", "original_file_path": "macros/get_organization_role_columns.sql", "unique_id": "macro.workday.get_organization_role_columns", "macro_sql": "{% macro get_organization_role_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_role_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.589736, "supported_languages": null}, "macro.workday.get_person_name_columns": {"name": "get_person_name_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_name_columns.sql", "original_file_path": "macros/get_person_name_columns.sql", "unique_id": "macro.workday.get_person_name_columns", "macro_sql": "{% macro get_person_name_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"additional_name_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name_singapore_malaysia\", \"datatype\": dbt.type_string()},\n {\"name\": \"hereditary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"honorary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_salutation\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"professional_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"religious_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"royal_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tertiary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.593187, "supported_languages": null}, "macro.workday.get_job_family_job_profile_columns": {"name": "get_job_family_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_profile_columns.sql", "original_file_path": "macros/get_job_family_job_profile_columns.sql", "unique_id": "macro.workday.get_job_family_job_profile_columns", "macro_sql": "{% macro get_job_family_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.5937579, "supported_languages": null}, "macro.workday.get_worker_position_history_columns": {"name": "get_worker_position_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_history_columns.sql", "original_file_path": "macros/get_worker_position_history_columns.sql", "unique_id": "macro.workday.get_worker_position_history_columns", "macro_sql": "{% macro get_worker_position_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_pay_setup_data_annual_work_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_work_percent_of_year\", \"datatype\": dbt.type_float()},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"business_site_summary_display_language\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_local\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"business_site_summary_time_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"default_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"employee_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"exclude_from_head_count\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"expected_assignment_end_date\", \"datatype\": \"date\"},\n {\"name\": \"external_employee\", \"datatype\": dbt.type_string()},\n {\"name\": \"federal_withholding_fein\", \"datatype\": dbt.type_string()},\n {\"name\": \"frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_time_equivalent_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"headcount_restriction_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"host_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"international_assignment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_primary_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"paid_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"payroll_entity\", \"datatype\": dbt.type_string()},\n {\"name\": \"payroll_file_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regular_paid_equivalent_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"specify_paid_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"specify_working_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"start_international_assignment_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_hours_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_space\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_hours_profile_classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"working_time_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.601677, "supported_languages": null}, "macro.workday.get_personal_information_ethnicity_columns": {"name": "get_personal_information_ethnicity_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_ethnicity_columns.sql", "original_file_path": "macros/get_personal_information_ethnicity_columns.sql", "unique_id": "macro.workday.get_personal_information_ethnicity_columns", "macro_sql": "{% macro get_personal_information_ethnicity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ethnicity_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"ethnicity_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.602475, "supported_languages": null}, "macro.workday.get_personal_information_history_columns": {"name": "get_personal_information_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_history_columns.sql", "original_file_path": "macros/get_personal_information_history_columns.sql", "unique_id": "macro.workday.get_personal_information_history_columns", "macro_sql": "{% macro get_personal_information_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"blood_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"citizenship_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_birth\", \"datatype\": \"date\"},\n {\"name\": \"date_of_death\", \"datatype\": \"date\"},\n {\"name\": \"gender\", \"datatype\": dbt.type_string()},\n {\"name\": \"hispanic_or_latino\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hukou_locality\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_subregion\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_medical_exam_date\", \"datatype\": \"date\"},\n {\"name\": \"last_medical_exam_valid_to\", \"datatype\": \"date\"},\n {\"name\": \"local_hukou\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"marital_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"marital_status_date\", \"datatype\": \"date\"},\n {\"name\": \"medical_exam_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"personnel_file_agency\", \"datatype\": dbt.type_string()},\n {\"name\": \"political_affiliation\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"religion\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_benefit\", \"datatype\": dbt.type_string()},\n {\"name\": \"tobacco_use\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.606645, "supported_languages": null}, "macro.workday.get_worker_position_organization_history_columns": {"name": "get_worker_position_organization_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_organization_history_columns.sql", "original_file_path": "macros/get_worker_position_organization_history_columns.sql", "unique_id": "macro.workday.get_worker_position_organization_history_columns", "macro_sql": "{% macro get_worker_position_organization_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_pay_group_assignment\", \"datatype\": \"date\"},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_business_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"used_in_change_organization_assignments\", \"datatype\": dbt.type_boolean()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.607841, "supported_languages": null}, "macro.workday.get_organization_job_family_columns": {"name": "get_organization_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_job_family_columns.sql", "original_file_path": "macros/get_organization_job_family_columns.sql", "unique_id": "macro.workday.get_organization_job_family_columns", "macro_sql": "{% macro get_organization_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6084712, "supported_languages": null}, "macro.workday.get_job_family_columns": {"name": "get_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_columns.sql", "original_file_path": "macros/get_job_family_columns.sql", "unique_id": "macro.workday.get_job_family_columns", "macro_sql": "{% macro get_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6092522, "supported_languages": null}, "macro.workday.get_organization_columns": {"name": "get_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_columns.sql", "original_file_path": "macros/get_organization_columns.sql", "unique_id": "macro.workday.get_organization_columns", "macro_sql": "{% macro get_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"availability_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"external_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"inactive_date\", \"datatype\": \"date\"},\n {\"name\": \"include_manager_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_organization_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"last_updated_date_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"location\", \"datatype\": dbt.type_string()},\n {\"name\": \"manager_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_owner_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"staffing_model\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"superior_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_availability_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_time_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_worker_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"top_level_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"visibility\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.61225, "supported_languages": null}, "macro.workday.get_position_organization_columns": {"name": "get_position_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_organization_columns.sql", "original_file_path": "macros/get_position_organization_columns.sql", "unique_id": "macro.workday.get_position_organization_columns", "macro_sql": "{% macro get_position_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.612872, "supported_languages": null}, "macro.workday.get_position_columns": {"name": "get_position_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_columns.sql", "original_file_path": "macros/get_position_columns.sql", "unique_id": "macro.workday.get_position_columns", "macro_sql": "{% macro get_position_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_eligible\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"availability_date\", \"datatype\": \"date\"},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_overlap\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_recruiting\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"closed\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"compensation_grade_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_package_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_step_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"earliest_overlap_date\", \"datatype\": \"date\"},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_posting_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_time_type_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_amount_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_percent_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"supervisory_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_for_filled_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_type_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.616328, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.616707, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.617586, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6177568, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.617911, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6180558, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.618186, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.618336, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6191008, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.61977, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.621134, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6214132, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.621669, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.621946, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6222029, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6224692, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.622733, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.623075, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6234229, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.62353, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.623626, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.623724, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6240819, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.624733, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.62575, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.626518, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.627255, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6278741, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6280131, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.628144, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6282802, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.628405, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.631148, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.631308, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.631468, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6316118, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6334112, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.634366, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6345139, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.634781, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.635062, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.635202, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.63532, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.635436, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6355531, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6360471, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.636608, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.637098, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6372962, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6374998, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.637755, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6389818, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.642755, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.643158, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.643541, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.64504, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.645638, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6462789, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.646454, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6466298, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.646805, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.646955, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.647101, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6479418, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6494038, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.650248, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.650453, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.650607, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.650764, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.650913, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6510851, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.651362, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6514628, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.651558, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.652213, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.653428, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.653604, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.65439, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6576252, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.662526, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.663894, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.664215, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.664356, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.664535, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6648462, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.664948, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.665049, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.66514, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.665231, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6654878, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.665581, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.66567, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.6660311, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712011818.666389, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.workday._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_deleted", "block_contents": "Indicates if the record was soft-deleted by Fivetran."}, "doc.workday._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_synced", "block_contents": "Timestamp the record was synced by Fivetran."}, "doc.workday._fivetran_start": {"name": "_fivetran_start", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_start", "block_contents": "Timestamp when the record was first created or modified in the source."}, "doc.workday._fivetran_end": {"name": "_fivetran_end", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_end", "block_contents": "Timestamp marking the end of a record being active."}, "doc.workday._fivetran_date": {"name": "_fivetran_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_date", "block_contents": "Date when the record was first created or modified in the source."}, "doc.workday._fivetran_active": {"name": "_fivetran_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_active", "block_contents": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE."}, "doc.workday.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.source_relation", "block_contents": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "doc.workday.academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_end_date", "block_contents": "The end date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_start_date", "block_contents": "The start date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year", "block_contents": "The work percentage of the year in the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date", "block_contents": "The end date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date", "block_contents": "The start date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_suffix": {"name": "academic_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_suffix", "block_contents": "The academic suffix, if applicable (e.g., PhD, MD)."}, "doc.workday.academic_tenure_date": {"name": "academic_tenure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_date", "block_contents": "Date when academic tenure is achieved."}, "doc.workday.academic_tenure_eligible": {"name": "academic_tenure_eligible", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_eligible", "block_contents": "Flag indicating whether the position is eligible for academic tenure."}, "doc.workday.active": {"name": "active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active", "block_contents": "Flag indicating the current active status of the worker."}, "doc.workday.active_status_date": {"name": "active_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active_status_date", "block_contents": "Date when the active status was last updated."}, "doc.workday.additional_job_description": {"name": "additional_job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_job_description", "block_contents": "Additional details or information about the job."}, "doc.workday.additional_name_type": {"name": "additional_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_name_type", "block_contents": "Additional type or category for the person name."}, "doc.workday.additional_nationality": {"name": "additional_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_nationality", "block_contents": "Additional nationality associated with the individual."}, "doc.workday.adoption_notification_date": {"name": "adoption_notification_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_notification_date", "block_contents": "The date of adoption notification."}, "doc.workday.adoption_placement_date": {"name": "adoption_placement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_placement_date", "block_contents": "The date of adoption placement."}, "doc.workday.age_of_dependent": {"name": "age_of_dependent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.age_of_dependent", "block_contents": "The age of the dependent associated with the leave status."}, "doc.workday.annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_currency", "block_contents": "Currency used for annual compensation summaries."}, "doc.workday.annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_frequency", "block_contents": "Frequency of currency for annual compensation summaries."}, "doc.workday.annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual compensation summaries."}, "doc.workday.annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.annual_summary_currency": {"name": "annual_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_currency", "block_contents": "Currency used for annual summaries."}, "doc.workday.annual_summary_frequency": {"name": "annual_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_frequency", "block_contents": "Frequency of currency for annual summaries."}, "doc.workday.annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual summaries."}, "doc.workday.annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.associated_worker_id": {"name": "associated_worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.associated_worker_id", "block_contents": "Identifier for the worker associated with the organization role."}, "doc.workday.availability_date": {"name": "availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.availability_date", "block_contents": "Date when the organization becomes available."}, "doc.workday.available_for_hire": {"name": "available_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_hire", "block_contents": "Flag indicating whether the organization is available for hiring."}, "doc.workday.available_for_overlap": {"name": "available_for_overlap", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_overlap", "block_contents": "Flag indicating whether the position is available for overlap with other positions."}, "doc.workday.available_for_recruiting": {"name": "available_for_recruiting", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_recruiting", "block_contents": "Flag indicating whether the position is available for recruiting."}, "doc.workday.benefits_effect": {"name": "benefits_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_effect", "block_contents": "The effect of leave on benefits."}, "doc.workday.benefits_service_date": {"name": "benefits_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_service_date", "block_contents": "Date when the worker's benefits service starts."}, "doc.workday.blood_type": {"name": "blood_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.blood_type", "block_contents": "The blood type of the individual."}, "doc.workday.business_site_summary_display_language": {"name": "business_site_summary_display_language", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_display_language", "block_contents": "The display language of the business site summary."}, "doc.workday.business_site_summary_local": {"name": "business_site_summary_local", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_local", "block_contents": "Local information related to the business site summary."}, "doc.workday.business_site_summary_location": {"name": "business_site_summary_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location", "block_contents": "The location of the business site summary."}, "doc.workday.business_site_summary_location_type": {"name": "business_site_summary_location_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location_type", "block_contents": "The type of location for the business site summary."}, "doc.workday.business_site_summary_name": {"name": "business_site_summary_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_name", "block_contents": "The name associated with the business site summary."}, "doc.workday.business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the business site summary."}, "doc.workday.business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_time_profile", "block_contents": "The time profile associated with the business site summary."}, "doc.workday.business_title": {"name": "business_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_title", "block_contents": "The business title associated with the worker position."}, "doc.workday.caesarean_section_birth": {"name": "caesarean_section_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.caesarean_section_birth", "block_contents": "Indicator for Caesarean section birth."}, "doc.workday.child_birth_date": {"name": "child_birth_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_birth_date", "block_contents": "The date of child birth."}, "doc.workday.child_sdate_of_death": {"name": "child_sdate_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_sdate_of_death", "block_contents": "The start date of child death.>"}, "doc.workday.citizenship_status": {"name": "citizenship_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.citizenship_status", "block_contents": "The citizenship status of the individual."}, "doc.workday.city_of_birth": {"name": "city_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth", "block_contents": "The city of birth of the individual."}, "doc.workday.city_of_birth_code": {"name": "city_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth_code", "block_contents": "The city of birth code of the individual."}, "doc.workday.closed": {"name": "closed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.closed", "block_contents": "Flag indicating whether the position is closed."}, "doc.workday.code": {"name": "code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.code", "block_contents": "Code assigned to the organization for reference and categorization."}, "doc.workday.company_service_date": {"name": "company_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.company_service_date", "block_contents": "Date when the worker's service with the company started."}, "doc.workday.compensation_effective_date": {"name": "compensation_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_effective_date", "block_contents": "Effective date when changes to the worker's compensation take effect."}, "doc.workday.compensation_grade_code": {"name": "compensation_grade_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_code", "block_contents": "Code associated with the compensation grade of the position."}, "doc.workday.compensation_grade_id": {"name": "compensation_grade_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_id", "block_contents": "Identifier for the compensation grade."}, "doc.workday.compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_code", "block_contents": "Code associated with the compensation grade profile of the position."}, "doc.workday.compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_id", "block_contents": "Unique identifier for the compensation grade profile associated with the worker."}, "doc.workday.compensation_package_code": {"name": "compensation_package_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_package_code", "block_contents": "Code associated with the compensation package of the position."}, "doc.workday.compensation_step_code": {"name": "compensation_step_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_step_code", "block_contents": "Code associated with the compensation step of the position."}, "doc.workday.continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_accrual_effect", "block_contents": "The effect of leave on continuous service accrual."}, "doc.workday.continuous_service_date": {"name": "continuous_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_date", "block_contents": "Date when the worker's continuous service with the organization started."}, "doc.workday.contract_assignment_details": {"name": "contract_assignment_details", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_assignment_details", "block_contents": "Details of the worker's contract assignment."}, "doc.workday.contract_currency_code": {"name": "contract_currency_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_currency_code", "block_contents": "Currency code used for the worker's contract."}, "doc.workday.contract_end_date": {"name": "contract_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_end_date", "block_contents": "Date when the worker's contract is scheduled to end."}, "doc.workday.contract_frequency_name": {"name": "contract_frequency_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_frequency_name", "block_contents": "Frequency of payment for the worker's contract."}, "doc.workday.contract_pay_rate": {"name": "contract_pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_pay_rate", "block_contents": "Pay rate associated with the worker's contract."}, "doc.workday.contract_vendor_name": {"name": "contract_vendor_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_vendor_name", "block_contents": "Name of the vendor associated with the worker's contract."}, "doc.workday.country": {"name": "country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country", "block_contents": "The country associated with the person name."}, "doc.workday.country_of_birth": {"name": "country_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country_of_birth", "block_contents": "The country of birth of the individual."}, "doc.workday.critical_job": {"name": "critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.critical_job", "block_contents": "Flag indicating whether the job is critical."}, "doc.workday.date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_baby_arrived_home_from_hospital", "block_contents": "The date when the baby arrived home from the hospital."}, "doc.workday.date_child_entered_country": {"name": "date_child_entered_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_child_entered_country", "block_contents": "The date when the child entered the country."}, "doc.workday.date_entered_workforce": {"name": "date_entered_workforce", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_entered_workforce", "block_contents": "Date when the worker entered the workforce."}, "doc.workday.date_of_birth": {"name": "date_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_birth", "block_contents": "The date of birth of the individual."}, "doc.workday.date_of_death": {"name": "date_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_death", "block_contents": "The date of death of the individual."}, "doc.workday.date_of_recall": {"name": "date_of_recall", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_recall", "block_contents": "The date of recall."}, "doc.workday.days_employed": {"name": "days_employed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_employed", "block_contents": "The number of days the employee held their position."}, "doc.workday.days_of_employment": {"name": "days_of_employment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_of_employment", "block_contents": "Number of days employed by the worker."}, "doc.workday.days_unemployed": {"name": "days_unemployed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_unemployed", "block_contents": "Number of days the worker has been unemployed."}, "doc.workday.default_weekly_hours": {"name": "default_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.default_weekly_hours", "block_contents": "The default weekly hours associated with the worker position."}, "doc.workday.departure_date": {"name": "departure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.departure_date", "block_contents": "The departure date for the employee."}, "doc.workday.difficulty_to_fill": {"name": "difficulty_to_fill", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill", "block_contents": "Indication of the difficulty level in filling the job."}, "doc.workday.difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill_code", "block_contents": "Code indicating the difficulty level in filling the position."}, "doc.workday.discharge_date": {"name": "discharge_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.discharge_date", "block_contents": "The date on which the individual was discharged from military service."}, "doc.workday.earliest_hire_date": {"name": "earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_hire_date", "block_contents": "Earliest date when the position can be filled."}, "doc.workday.earliest_overlap_date": {"name": "earliest_overlap_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_overlap_date", "block_contents": "Earliest date when the position can overlap with other positions."}, "doc.workday.effective_date": {"name": "effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.effective_date", "block_contents": "Date when the job profile becomes effective."}, "doc.workday.eligible_for_hire": {"name": "eligible_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_hire", "block_contents": "Flag indicating whether the worker is eligible for hire."}, "doc.workday.eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_rehire_on_latest_termination", "block_contents": "Flag indicating whether the worker is eligible for rehire based on the latest termination."}, "doc.workday.email_address": {"name": "email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_address", "block_contents": "The actual email address of the person."}, "doc.workday.email_code": {"name": "email_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_code", "block_contents": "A code or label associated with the type or purpose of the email address."}, "doc.workday.email_comment": {"name": "email_comment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_comment", "block_contents": "Any additional comments or notes related to the email address."}, "doc.workday.employee_id": {"name": "employee_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_id", "block_contents": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee."}, "doc.workday.employed_five_years": {"name": "employed_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_five_years", "block_contents": "Tracks whether a worker was employed at least five years."}, "doc.workday.employed_one_year": {"name": "employed_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_one_year", "block_contents": "Tracks whether a worker was employed at least one year."}, "doc.workday.employed_ten_years": {"name": "employed_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_ten_years", "block_contents": "Tracks whether a worker was employed at least ten years."}, "doc.workday.employed_thirty_years": {"name": "employed_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_thirty_years", "block_contents": "Tracks whether a worker was employed at least thirty years."}, "doc.workday.employed_twenty_years": {"name": "employed_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_twenty_years", "block_contents": "Tracks whether a worker was employed at least twenty years."}, "doc.workday.employee_compensation_currency": {"name": "employee_compensation_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_currency", "block_contents": "Currency code used for the worker's employee compensation."}, "doc.workday.employee_compensation_frequency": {"name": "employee_compensation_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_frequency", "block_contents": "Frequency of payment for the worker's employee compensation."}, "doc.workday.employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's employee compensation."}, "doc.workday.employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_base_pay", "block_contents": "Total base pay for the worker's employee compensation."}, "doc.workday.employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's employee compensation."}, "doc.workday.employee_type": {"name": "employee_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_type", "block_contents": "The type of employee associated with the worker position."}, "doc.workday.end_date": {"name": "end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_date", "block_contents": "The end date of the worker position."}, "doc.workday.end_employment_date": {"name": "end_employment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_employment_date", "block_contents": "Date when the worker's employment is scheduled to end."}, "doc.workday.estimated_leave_end_date": {"name": "estimated_leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.estimated_leave_end_date", "block_contents": "The estimated end date of the leave."}, "doc.workday.ethnicity_code": {"name": "ethnicity_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_code", "block_contents": "The code representing the ethnicity of the individual."}, "doc.workday.ethnicity_codes": {"name": "ethnicity_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_codes", "block_contents": "String aggregation of all ethnicity codes associated with an individual."}, "doc.workday.ethnicity_id": {"name": "ethnicity_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_id", "block_contents": "The identifier associated with the ethnicity."}, "doc.workday.exclude_from_head_count": {"name": "exclude_from_head_count", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.exclude_from_head_count", "block_contents": "Flag indicating whether the position is excluded from headcount."}, "doc.workday.expected_assignment_end_date": {"name": "expected_assignment_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_assignment_end_date", "block_contents": "The expected end date of the assignment associated with the worker position."}, "doc.workday.expected_date_of_return": {"name": "expected_date_of_return", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_date_of_return", "block_contents": "Expected date of the worker's return."}, "doc.workday.expected_due_date": {"name": "expected_due_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_due_date", "block_contents": "The expected due date."}, "doc.workday.expected_retirement_date": {"name": "expected_retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_retirement_date", "block_contents": "Expected date of the worker's retirement."}, "doc.workday.external_employee": {"name": "external_employee", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_employee", "block_contents": "Flag indicating whether the worker is an external employee."}, "doc.workday.external_url": {"name": "external_url", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_url", "block_contents": "External URL associated with the organization."}, "doc.workday.federal_withholding_fein": {"name": "federal_withholding_fein", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.federal_withholding_fein", "block_contents": "The Federal Employer Identification Number (FEIN) for federal withholding."}, "doc.workday.first_day_of_work": {"name": "first_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_day_of_work", "block_contents": "The date when the worker started their first day of work."}, "doc.workday.first_name": {"name": "first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_name", "block_contents": "The first name of the individual."}, "doc.workday.frequency": {"name": "frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.frequency", "block_contents": "The frequency associated with the worker position."}, "doc.workday.fte_percent": {"name": "fte_percent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.fte_percent", "block_contents": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek"}, "doc.workday.full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_name_singapore_malaysia", "block_contents": "The full name as used in Singapore and Malaysia."}, "doc.workday.full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_time_equivalent_percentage", "block_contents": "The full-time equivalent (FTE) percentage associated with the worker position."}, "doc.workday.gender": {"name": "gender", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.gender", "block_contents": "The gender of the individual."}, "doc.workday.has_international_assignment": {"name": "has_international_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.has_international_assignment", "block_contents": "Flag indicating whether the worker has an international assignment."}, "doc.workday.headcount_restriction_code": {"name": "headcount_restriction_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.headcount_restriction_code", "block_contents": "The code associated with headcount restriction for the worker position."}, "doc.workday.hereditary_suffix": {"name": "hereditary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hereditary_suffix", "block_contents": "The hereditary suffix, if applicable (e.g., Jr, Sr)."}, "doc.workday.hire_date": {"name": "hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_date", "block_contents": "The date when the worker was hired."}, "doc.workday.hire_reason": {"name": "hire_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_reason", "block_contents": "The reason for hiring the worker."}, "doc.workday.hire_rescinded": {"name": "hire_rescinded", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_rescinded", "block_contents": "Flag indicating whether the worker's hire was rescinded."}, "doc.workday.hiring_freeze": {"name": "hiring_freeze", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hiring_freeze", "block_contents": "Flag indicating whether the organization is under a hiring freeze."}, "doc.workday.hispanic_or_latino": {"name": "hispanic_or_latino", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hispanic_or_latino", "block_contents": "lag indicating whether the individual is Hispanic or Latino."}, "doc.workday.home_country": {"name": "home_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.home_country", "block_contents": "The home country of the worker."}, "doc.workday.honorary_suffix": {"name": "honorary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.honorary_suffix", "block_contents": "The honorary suffix, if applicable."}, "doc.workday.host_country": {"name": "host_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.host_country", "block_contents": "The host country associated with the worker."}, "doc.workday.hourly_frequency_currency": {"name": "hourly_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_currency", "block_contents": "Currency code used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_frequency", "block_contents": "Frequency of payment for the worker's hourly compensation."}, "doc.workday.hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_base_pay", "block_contents": "Total base pay for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's hourly compensation."}, "doc.workday.hukou_locality": {"name": "hukou_locality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_locality", "block_contents": "The locality associated with the Hukou."}, "doc.workday.hukou_postal_code": {"name": "hukou_postal_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_postal_code", "block_contents": "The postal code associated with the Hukou."}, "doc.workday.hukou_region": {"name": "hukou_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_region", "block_contents": "The region associated with the Hukou."}, "doc.workday.hukou_subregion": {"name": "hukou_subregion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_subregion", "block_contents": "The subregion associated with the Hukou."}, "doc.workday.hukou_type": {"name": "hukou_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_type", "block_contents": "The type of Hukou."}, "doc.workday.id": {"name": "id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.id", "block_contents": "Unique identifier."}, "doc.workday.inactive": {"name": "inactive", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive", "block_contents": "Flag indicating whether this is inactive."}, "doc.workday.inactive_date": {"name": "inactive_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive_date", "block_contents": "Date when the organization becomes inactive"}, "doc.workday.include_job_code_in_name": {"name": "include_job_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_job_code_in_name", "block_contents": "Flag indicating whether to include the job code in the job profile name."}, "doc.workday.include_manager_in_name": {"name": "include_manager_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_manager_in_name", "block_contents": "Flag indicating whether to include the manager in the organization name."}, "doc.workday.include_organization_code_in_name": {"name": "include_organization_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_organization_code_in_name", "block_contents": "Flag indicating whether to include the organization code in the name."}, "doc.workday.index": {"name": "index", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.index", "block_contents": "An index for a particular identifier."}, "doc.workday.international_assignment_type": {"name": "international_assignment_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.international_assignment_type", "block_contents": "The type of international assignment associated with the worker position."}, "doc.workday.is_critical_job": {"name": "is_critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_critical_job", "block_contents": "Flag indicating whether the position is considered critical based on the job profile."}, "doc.workday.is_current_employee_five_years": {"name": "is_current_employee_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_five_years", "block_contents": "Tracks whether a worker is active for more than five years."}, "doc.workday.is_current_employee_one_year": {"name": "is_current_employee_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_one_year", "block_contents": "Tracks whether a worker is active for more than a year."}, "doc.workday.is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_ten_years", "block_contents": "Tracks whether a worker is active for more than ten years."}, "doc.workday.is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_thirty_years", "block_contents": "Tracks whether a worker is active for more than thirty years."}, "doc.workday.is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_twenty_years", "block_contents": "Tracks whether a worker is active for more than twenty years."}, "doc.workday.is_employed": {"name": "is_employed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_employed", "block_contents": "Is the worker currently employed?"}, "doc.workday.is_military_service": {"name": "is_military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_military_service", "block_contents": "Whether the employee served in the military."}, "doc.workday.is_primary_job": {"name": "is_primary_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_primary_job", "block_contents": "Flag indicating whether the job is the primary job for the worker."}, "doc.workday.is_regrettable_termination": {"name": "is_regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_regrettable_termination", "block_contents": "Has the worker been regrettably terminated?"}, "doc.workday.is_terminated": {"name": "is_terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_terminated", "block_contents": "Has the worker been terminated?"}, "doc.workday.is_user_active": {"name": "is_user_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_user_active", "block_contents": "Is the user currently active."}, "doc.workday.job_category_code": {"name": "job_category_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_code", "block_contents": "Code indicating the category of the job profile associated with the position."}, "doc.workday.job_category_id": {"name": "job_category_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_id", "block_contents": "Identifier for the job category."}, "doc.workday.job_description": {"name": "job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description", "block_contents": "Detailed description of the job associated with the position."}, "doc.workday.job_description_summary": {"name": "job_description_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description_summary", "block_contents": "Summary or overview of the job description for the position."}, "doc.workday.job_exempt": {"name": "job_exempt", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_exempt", "block_contents": "Indicates whether the job is exempt from certain regulations."}, "doc.workday.job_family": {"name": "job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family", "block_contents": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles."}, "doc.workday.job_family_code": {"name": "job_family_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_code", "block_contents": "Code assigned to the job family"}, "doc.workday.job_family_codes": {"name": "job_family_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_codes", "block_contents": "String array of all job family codes assigned to a job profile."}, "doc.workday.job_family_group": {"name": "job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group", "block_contents": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics."}, "doc.workday.job_family_group_code": {"name": "job_family_group_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_code", "block_contents": "Code assigned to the job family group for reference and categorization."}, "doc.workday.job_family_group_codes": {"name": "job_family_group_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_codes", "block_contents": "String array of all job family group codes assigned to a job profile."}, "doc.workday.job_family_group_id": {"name": "job_family_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_id", "block_contents": "Identifier for the job family group."}, "doc.workday.job_family_group_summary": {"name": "job_family_group_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summary", "block_contents": "The summary of the job family group."}, "doc.workday.job_family_group_summaries": {"name": "job_family_group_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summaries", "block_contents": "String array of all job family group summaries assigned to a job profile."}, "doc.workday.job_family_id": {"name": "job_family_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_id", "block_contents": "Identifier for the job family."}, "doc.workday.job_family_job_family_group": {"name": "job_family_job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_family_group", "block_contents": "Represents the relationship between job families and job family groups in the Workday dataset."}, "doc.workday.job_family_job_profile": {"name": "job_family_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_profile", "block_contents": "Represents the relationship between job families and job profiles in the Workday dataset."}, "doc.workday.job_family_summary": {"name": "job_family_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summary", "block_contents": "The summary of the job family."}, "doc.workday.job_family_summaries": {"name": "job_family_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summaries", "block_contents": "String array of all job family summaries assigned to a job profile."}, "doc.workday.job_group_id": {"name": "job_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_group_id", "block_contents": "The unique identifier for the job group."}, "doc.workday.job_posting_title": {"name": "job_posting_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_posting_title", "block_contents": "Title used for job postings associated with the position."}, "doc.workday.job_private_title": {"name": "job_private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_private_title", "block_contents": "The private title associated with the job."}, "doc.workday.job_profile": {"name": "job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile", "block_contents": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes."}, "doc.workday.job_profile_code": {"name": "job_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_code", "block_contents": "Code assigned to the job profile."}, "doc.workday.job_profile_description": {"name": "job_profile_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_description", "block_contents": "Brief description of the job profile."}, "doc.workday.job_profile_id": {"name": "job_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_id", "block_contents": "Identifier for the job profile."}, "doc.workday.job_summary": {"name": "job_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_summary", "block_contents": "The summary of the job."}, "doc.workday.job_title": {"name": "job_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_title", "block_contents": "The title of the job for the worker."}, "doc.workday.last_date_for_which_paid": {"name": "last_date_for_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_date_for_which_paid", "block_contents": "The last date being paid before leave."}, "doc.workday.last_datefor_which_paid": {"name": "last_datefor_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_datefor_which_paid", "block_contents": "Last date for which the worker was paid."}, "doc.workday.last_medical_exam_date": {"name": "last_medical_exam_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_date", "block_contents": "The date of the last medical exam."}, "doc.workday.last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_valid_to", "block_contents": "The validity date of the last medical exam."}, "doc.workday.last_name": {"name": "last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_name", "block_contents": "The last name or surname of the individual."}, "doc.workday.last_updated_date_time": {"name": "last_updated_date_time", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_updated_date_time", "block_contents": "Date and time when the organization record was last updated."}, "doc.workday.leave_description": {"name": "leave_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_description", "block_contents": "Description of the type of leave"}, "doc.workday.leave_end_date": {"name": "leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_end_date", "block_contents": "The end date of the leave."}, "doc.workday.leave_entitlement_override": {"name": "leave_entitlement_override", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_entitlement_override", "block_contents": "Override for leave entitlement."}, "doc.workday.leave_last_day_of_work": {"name": "leave_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_last_day_of_work", "block_contents": "The last day of work associated with the leave status."}, "doc.workday.leave_of_absence_type": {"name": "leave_of_absence_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_of_absence_type", "block_contents": "The type of leave of absence."}, "doc.workday.leave_percentage": {"name": "leave_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_percentage", "block_contents": "The percentage of leave."}, "doc.workday.leave_request_event_id": {"name": "leave_request_event_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_request_event_id", "block_contents": "The unique identifier for the leave request event."}, "doc.workday.leave_return_event": {"name": "leave_return_event", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_return_event", "block_contents": "The event associated with the return from leave."}, "doc.workday.leave_start_date": {"name": "leave_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_start_date", "block_contents": "The start date of the leave."}, "doc.workday.leave_status_code": {"name": "leave_status_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_status_code", "block_contents": "The code indicating the status of the leave."}, "doc.workday.leave_type_reason": {"name": "leave_type_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_type_reason", "block_contents": "The reason for the leave type."}, "doc.workday.level": {"name": "level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.level", "block_contents": "Level associated with the job profile."}, "doc.workday.local_first_name": {"name": "local_first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name", "block_contents": "The local or native first name of the individual."}, "doc.workday.local_first_name_2": {"name": "local_first_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name_2", "block_contents": "Additional local or native first name, if applicable."}, "doc.workday.local_hukou": {"name": "local_hukou", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_hukou", "block_contents": "Flag indicating whether the Hukou is local."}, "doc.workday.local_last_name": {"name": "local_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name", "block_contents": "The local or native last name of the individual."}, "doc.workday.local_last_name_2": {"name": "local_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name_2", "block_contents": "Additional local or native last name, if applicable."}, "doc.workday.local_middle_name": {"name": "local_middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name", "block_contents": "The local or native middle name of the individual."}, "doc.workday.local_middle_name_2": {"name": "local_middle_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name_2", "block_contents": "Additional local or native middle name, if applicable."}, "doc.workday.local_secondary_last_name": {"name": "local_secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name", "block_contents": "Secondary local or native last name or surname, if applicable."}, "doc.workday.local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name_2", "block_contents": "Additional secondary local or native last name, if applicable."}, "doc.workday.local_termination_reason": {"name": "local_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_termination_reason", "block_contents": "The reason for local termination of the worker."}, "doc.workday.location": {"name": "location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location", "block_contents": "Location associated with the organization."}, "doc.workday.location_during_leave": {"name": "location_during_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location_during_leave", "block_contents": "The location during the leave."}, "doc.workday.management_level": {"name": "management_level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level", "block_contents": "Management level associated with the job profile."}, "doc.workday.management_level_code": {"name": "management_level_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level_code", "block_contents": "Code indicating the management level associated with the job profile."}, "doc.workday.manager_id": {"name": "manager_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.manager_id", "block_contents": "Identifier for the manager associated with the organization."}, "doc.workday.marital_status": {"name": "marital_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status", "block_contents": "The marital status of the individual."}, "doc.workday.marital_status_date": {"name": "marital_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status_date", "block_contents": "The date of the marital status."}, "doc.workday.medical_exam_notes": {"name": "medical_exam_notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.medical_exam_notes", "block_contents": "Notes from the medical exam."}, "doc.workday.middle_name": {"name": "middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.middle_name", "block_contents": "The middle name of the individual."}, "doc.workday.military_service": {"name": "military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_service", "block_contents": "Represents information about an individual's military service in the Workday system."}, "doc.workday.military_status": {"name": "military_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_status", "block_contents": "The military status of the worker."}, "doc.workday.months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.months_continuous_prior_employment", "block_contents": "Number of months of continuous prior employment."}, "doc.workday.position_location": {"name": "position_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_location", "block_contents": "The position location of the employee."}, "doc.workday.position_effective_date": {"name": "position_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_effective_date", "block_contents": "The position effective date for the employee."}, "doc.workday.position_end_date": {"name": "position_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_end_date", "block_contents": "The position end date for this employee."}, "doc.workday.position_start_date": {"name": "position_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_start_date", "block_contents": "The position start date for this employee."}, "doc.workday.multiple_child_indicator": {"name": "multiple_child_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.multiple_child_indicator", "block_contents": "Indicator for multiple children."}, "doc.workday.native_region": {"name": "native_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region", "block_contents": "The native region of the individual."}, "doc.workday.native_region_code": {"name": "native_region_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region_code", "block_contents": "The code of the native region."}, "doc.workday.not_returning": {"name": "not_returning", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.not_returning", "block_contents": "Flag indicating whether the worker is not returning."}, "doc.workday.notes": {"name": "notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.notes", "block_contents": "Additional notes or comments related to the military service record."}, "doc.workday.number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_babies_adopted_children", "block_contents": "The number of babies adopted by the worker."}, "doc.workday.number_of_child_dependents": {"name": "number_of_child_dependents", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_child_dependents", "block_contents": "The number of child dependents."}, "doc.workday.number_of_previous_births": {"name": "number_of_previous_births", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_births", "block_contents": "The number of previous births."}, "doc.workday.number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_maternity_leaves", "block_contents": "The number of previous maternity leaves."}, "doc.workday.on_leave": {"name": "on_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.on_leave", "block_contents": "Indicator for whether the worker is on leave."}, "doc.workday.organization": {"name": "organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization", "block_contents": "Identifier for the organization."}, "doc.workday.organization_code": {"name": "organization_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_code", "block_contents": "Code associated with the organization."}, "doc.workday.organization_description": {"name": "organization_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_description", "block_contents": "The description of the organization."}, "doc.workday.organization_id": {"name": "organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_id", "block_contents": "Identifier for the organization."}, "doc.workday.organization_job_family": {"name": "organization_job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_job_family", "block_contents": "Captures the associations between different organizational entities and the job families they are linked to."}, "doc.workday.organization_location": {"name": "organization_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_location", "block_contents": "The location of the organization."}, "doc.workday.organization_name": {"name": "organization_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_name", "block_contents": "Name of the organization."}, "doc.workday.organization_owner_id": {"name": "organization_owner_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_owner_id", "block_contents": "Identifier for the owner of the organization."}, "doc.workday.organization_role": {"name": "organization_role", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role", "block_contents": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities."}, "doc.workday.organization_role_code": {"name": "organization_role_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_code", "block_contents": "Code assigned to the organization role for reference and categorization."}, "doc.workday.organization_role_id": {"name": "organization_role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_id", "block_contents": "The role id associated with the organization."}, "doc.workday.organization_role_worker": {"name": "organization_role_worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_worker", "block_contents": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill."}, "doc.workday.organization_sub_type": {"name": "organization_sub_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_sub_type", "block_contents": "Subtype or classification of the organization."}, "doc.workday.organization_type": {"name": "organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_type", "block_contents": "Type or category of the organization."}, "doc.workday.organization_worker_code": {"name": "organization_worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_worker_code", "block_contents": "The worker code associated with the organization."}, "doc.workday.original_hire_date": {"name": "original_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.original_hire_date", "block_contents": "The original date when the worker was hired."}, "doc.workday.paid_fte": {"name": "paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_fte", "block_contents": "The paid full-time equivalent (FTE) associated with the worker position."}, "doc.workday.paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_time_off_accrual_effect", "block_contents": "The effect of leave on paid time off accrual."}, "doc.workday.pay_group": {"name": "pay_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group", "block_contents": "The pay group associated with the worker position."}, "doc.workday.pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_currency", "block_contents": "Currency code used for the worker's pay group frequency."}, "doc.workday.pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_frequency", "block_contents": "Frequency of payment for the worker's pay group."}, "doc.workday.pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's pay group."}, "doc.workday.pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_base_pay", "block_contents": "Total base pay for the worker's pay group."}, "doc.workday.pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's pay group."}, "doc.workday.pay_rate": {"name": "pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate", "block_contents": "The pay rate associated with the worker position."}, "doc.workday.pay_rate_type": {"name": "pay_rate_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate_type", "block_contents": "The type of pay rate associated with the worker position."}, "doc.workday.pay_through_date": {"name": "pay_through_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_through_date", "block_contents": "The date through which the worker is paid."}, "doc.workday.payroll_effect": {"name": "payroll_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_effect", "block_contents": "The effect of leave on payroll."}, "doc.workday.payroll_entity": {"name": "payroll_entity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_entity", "block_contents": "The payroll entity associated with the worker position."}, "doc.workday.payroll_file_number": {"name": "payroll_file_number", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_file_number", "block_contents": "The file number associated with payroll for the worker position."}, "doc.workday.person_contact_email_address": {"name": "person_contact_email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address", "block_contents": "Represents the email addresses associated with a person in the Workday system."}, "doc.workday.person_contact_email_address_id": {"name": "person_contact_email_address_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address_id", "block_contents": "The identifier of the personal contact email address."}, "doc.workday.person_name": {"name": "person_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name", "block_contents": "Represents the name information for an individual in the Workday system."}, "doc.workday.person_name_type": {"name": "person_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name_type", "block_contents": "The type or category of the person name (e.g., legal name, preferred name)."}, "doc.workday.personal_info_system_id": {"name": "personal_info_system_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_info_system_id", "block_contents": "The system ID associated with the personal information of the individual."}, "doc.workday.personal_information": {"name": "personal_information", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information", "block_contents": "The personal information associated with each worker."}, "doc.workday.personal_information_ethnicity": {"name": "personal_information_ethnicity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_ethnicity", "block_contents": "Represents information about the ethnicity of an individual in the Workday system."}, "doc.workday.personal_information_id": {"name": "personal_information_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_id", "block_contents": "The identifier for each personal information record."}, "doc.workday.personal_information_type": {"name": "personal_information_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_type", "block_contents": "The type of personal information record."}, "doc.workday.personnel_file_agency": {"name": "personnel_file_agency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personnel_file_agency", "block_contents": "The agency associated with the personnel file."}, "doc.workday.political_affiliation": {"name": "political_affiliation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.political_affiliation", "block_contents": "The political affiliation of the individual."}, "doc.workday.position": {"name": "position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position", "block_contents": "Resource for understanding the details and attributes associated with each position."}, "doc.workday.position_code": {"name": "position_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_code", "block_contents": "Code associated with the position for reference and categorization."}, "doc.workday.position_days": {"name": "position_days", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_days", "block_contents": "The days the worker held positions at the company."}, "doc.workday.position_id": {"name": "position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_id", "block_contents": "Identifier for the specific position."}, "doc.workday.position_job_profile": {"name": "position_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile", "block_contents": "Captures the associations between specific positions and the job profiles they are linked to."}, "doc.workday.position_job_profile_name": {"name": "position_job_profile_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile_name", "block_contents": "Name associated with the job profile linked to the position."}, "doc.workday.position_organization": {"name": "position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization", "block_contents": "Captures the associations between specific positions and the organizations to which they belong."}, "doc.workday.position_organization_type": {"name": "position_organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization_type", "block_contents": "Type or category of the position within the organization."}, "doc.workday.position_time_type_code": {"name": "position_time_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_time_type_code", "block_contents": "Code indicating the time type associated with the position."}, "doc.workday.prefix_salutation": {"name": "prefix_salutation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_salutation", "block_contents": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.)."}, "doc.workday.prefix_title": {"name": "prefix_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title", "block_contents": "The prefix or title associated with the name (e.g., Professor)."}, "doc.workday.prefix_title_code": {"name": "prefix_title_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title_code", "block_contents": "The code associated with the prefix or title."}, "doc.workday.primary_compensation_basis": {"name": "primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis", "block_contents": "Primary basis of compensation for the position."}, "doc.workday.primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_amount_change", "block_contents": "Change in the amount of the primary compensation basis."}, "doc.workday.primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_percent_change", "block_contents": "Change in the percentage of the primary compensation basis."}, "doc.workday.primary_nationality": {"name": "primary_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_nationality", "block_contents": "The primary nationality of the individual."}, "doc.workday.primary_termination_category": {"name": "primary_termination_category", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_category", "block_contents": "The primary termination category for the worker."}, "doc.workday.primary_termination_reason": {"name": "primary_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_reason", "block_contents": "The primary termination reason for the worker."}, "doc.workday.private_title": {"name": "private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.private_title", "block_contents": "Private title associated with the job profile."}, "doc.workday.probation_end_date": {"name": "probation_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_end_date", "block_contents": "The date when the worker's probation ends."}, "doc.workday.probation_start_date": {"name": "probation_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_start_date", "block_contents": "The date when the worker's probation starts."}, "doc.workday.professional_suffix": {"name": "professional_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.professional_suffix", "block_contents": "The professional suffix, if applicable (e.g., Esq., CPA)."}, "doc.workday.public_job": {"name": "public_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.public_job", "block_contents": "Flag indicating whether the job is public."}, "doc.workday.rank": {"name": "rank", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rank", "block_contents": "The rank achieved by the individual during military service."}, "doc.workday.reason_reference_id": {"name": "reason_reference_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.reason_reference_id", "block_contents": "The reference ID for the termination reason."}, "doc.workday.referral_payment_plan": {"name": "referral_payment_plan", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.referral_payment_plan", "block_contents": "Referral payment plan associated with the job profile."}, "doc.workday.region_of_birth": {"name": "region_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth", "block_contents": "The region of birth of the individual."}, "doc.workday.region_of_birth_code": {"name": "region_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth_code", "block_contents": "The code of the region of birth."}, "doc.workday.regrettable_termination": {"name": "regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regrettable_termination", "block_contents": "Flag indicating whether the worker's termination is regrettable."}, "doc.workday.regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regular_paid_equivalent_hours", "block_contents": "The regular paid equivalent hours associated with the worker position."}, "doc.workday.rehire": {"name": "rehire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rehire", "block_contents": "Flag indicating whether the worker is eligible for rehire."}, "doc.workday.religion": {"name": "religion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religion", "block_contents": "The religion of the individual."}, "doc.workday.religious_suffix": {"name": "religious_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religious_suffix", "block_contents": "The religious suffix, if applicable."}, "doc.workday.resignation_date": {"name": "resignation_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.resignation_date", "block_contents": "The date when the worker resigned."}, "doc.workday.retired": {"name": "retired", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retired", "block_contents": "Flag indicating whether the worker is retired."}, "doc.workday.retirement_date": {"name": "retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_date", "block_contents": "The date when the worker retired."}, "doc.workday.retirement_eligibility_date": {"name": "retirement_eligibility_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_eligibility_date", "block_contents": "The date when the worker becomes eligible for retirement."}, "doc.workday.return_unknown": {"name": "return_unknown", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.return_unknown", "block_contents": "Flag indicating whether the worker's return status is unknown."}, "doc.workday.role_id": {"name": "role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.role_id", "block_contents": "Identifier for the specific role."}, "doc.workday.royal_suffix": {"name": "royal_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.royal_suffix", "block_contents": "The royal suffix, if applicable."}, "doc.workday.scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the worker position."}, "doc.workday.secondary_last_name": {"name": "secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.secondary_last_name", "block_contents": "Secondary last name or surname, if applicable."}, "doc.workday.seniority_date": {"name": "seniority_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.seniority_date", "block_contents": "The date when the worker's seniority is recorded."}, "doc.workday.service": {"name": "service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service", "block_contents": "The specific military service branch in which the individual served."}, "doc.workday.service_type": {"name": "service_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service_type", "block_contents": "The type or category of military service (e.g., active duty, reserve, etc.)."}, "doc.workday.severance_date": {"name": "severance_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.severance_date", "block_contents": "The date when the worker's severance is recorded."}, "doc.workday.single_parent_indicator": {"name": "single_parent_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.single_parent_indicator", "block_contents": "Indicator for a single parent."}, "doc.workday.social_benefit": {"name": "social_benefit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_benefit", "block_contents": "The social benefit associated with the individual."}, "doc.workday.social_security_disability_code": {"name": "social_security_disability_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_security_disability_code", "block_contents": "The code indicating social security disability."}, "doc.workday.social_suffix": {"name": "social_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix", "block_contents": "The social suffix, if applicable."}, "doc.workday.social_suffix_id": {"name": "social_suffix_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix_id", "block_contents": "The identifier for the social suffix."}, "doc.workday.specify_paid_fte": {"name": "specify_paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_paid_fte", "block_contents": "Flag indicating whether to specify paid FTE for the worker position."}, "doc.workday.specify_working_fte": {"name": "specify_working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_working_fte", "block_contents": "Flag indicating whether to specify working FTE for the worker position."}, "doc.workday.staffing_model": {"name": "staffing_model", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.staffing_model", "block_contents": "Staffing model associated with the organization"}, "doc.workday.start_date": {"name": "start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_date", "block_contents": "The start date of the worker position."}, "doc.workday.start_international_assignment_reason": {"name": "start_international_assignment_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_international_assignment_reason", "block_contents": "The reason for starting an international assignment associated with the worker position."}, "doc.workday.status": {"name": "status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status", "block_contents": "The status of the individual's military service (e.g., active, inactive, retired)."}, "doc.workday.status_begin_date": {"name": "status_begin_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status_begin_date", "block_contents": "The date on which the current military service status began."}, "doc.workday.stock_vesting_effect": {"name": "stock_vesting_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stock_vesting_effect", "block_contents": "The effect of leave on stock vesting."}, "doc.workday.stop_payment_date": {"name": "stop_payment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stop_payment_date", "block_contents": "The date when stop payment occurs."}, "doc.workday.summary": {"name": "summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.summary", "block_contents": "Summary or overview of the job profile."}, "doc.workday.superior_organization_id": {"name": "superior_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.superior_organization_id", "block_contents": "Identifier for the superior organization, if applicable."}, "doc.workday.supervisory_organization_id": {"name": "supervisory_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_organization_id", "block_contents": "Identifier for the supervisory organization associated with the position."}, "doc.workday.supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_availability_date", "block_contents": "Availability date for supervisory positions within the organization."}, "doc.workday.supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_earliest_hire_date", "block_contents": "Earliest hire date for supervisory positions within the organization."}, "doc.workday.supervisory_position_time_type": {"name": "supervisory_position_time_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_time_type", "block_contents": "Time type associated with supervisory positions."}, "doc.workday.supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_worker_type", "block_contents": "Worker type associated with supervisory positions."}, "doc.workday.terminated": {"name": "terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.terminated", "block_contents": "Flag indicating whether the worker is terminated."}, "doc.workday.termination_date": {"name": "termination_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_date", "block_contents": "The date when the worker is terminated."}, "doc.workday.termination_involuntary": {"name": "termination_involuntary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_involuntary", "block_contents": "Flag indicating whether the termination is involuntary."}, "doc.workday.termination_last_day_of_work": {"name": "termination_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_last_day_of_work", "block_contents": "The last day of work for the worker during termination."}, "doc.workday.tertiary_last_name": {"name": "tertiary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tertiary_last_name", "block_contents": "Tertiary last name or surname, if applicable."}, "doc.workday.time_off_service_date": {"name": "time_off_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.time_off_service_date", "block_contents": "The date when the worker's time-off service starts."}, "doc.workday.title": {"name": "title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.title", "block_contents": "Title associated with the job profile."}, "doc.workday.tobacco_use": {"name": "tobacco_use", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tobacco_use", "block_contents": "Flag indicating whether the individual uses tobacco."}, "doc.workday.top_level_organization_id": {"name": "top_level_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.top_level_organization_id", "block_contents": "Identifier for the top-level organization, if applicable."}, "doc.workday.union_code": {"name": "union_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_code", "block_contents": "Code associated with the union related to the job profile."}, "doc.workday.union_membership_requirement": {"name": "union_membership_requirement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_membership_requirement", "block_contents": "Flag indicating whether union membership is a requirement for the job profile."}, "doc.workday.universal_id": {"name": "universal_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.universal_id", "block_contents": "The universal ID associated with the worker."}, "doc.workday.user_id": {"name": "user_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.user_id", "block_contents": "The identifier for the user associated with the worker."}, "doc.workday.vesting_date": {"name": "vesting_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.vesting_date", "block_contents": "The date when the worker's vesting starts."}, "doc.workday.visibility": {"name": "visibility", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.visibility", "block_contents": "Visibility level of the organization."}, "doc.workday.week_of_confinement": {"name": "week_of_confinement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.week_of_confinement", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_hours_profile": {"name": "work_hours_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_hours_profile", "block_contents": "The work hours profile associated with the worker position."}, "doc.workday.work_related": {"name": "work_related", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_related", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_shift": {"name": "work_shift", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift", "block_contents": "The work shift associated with the worker position."}, "doc.workday.work_shift_required": {"name": "work_shift_required", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift_required", "block_contents": "Flag indicating whether a work shift is required."}, "doc.workday.work_space": {"name": "work_space", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_space", "block_contents": "The work space associated with the worker position."}, "doc.workday.work_study_award_source_code": {"name": "work_study_award_source_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_award_source_code", "block_contents": "Code associated with the source of work study awards."}, "doc.workday.work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_requirement_option_code", "block_contents": "Code associated with work study requirement options."}, "doc.workday.workday__employee_overview": {"name": "workday__employee_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__employee_overview", "block_contents": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees."}, "doc.workday.workday__job_overview": {"name": "workday__job_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__job_overview", "block_contents": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings."}, "doc.workday.workday__role_overview": {"name": "workday__role_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__role_overview", "block_contents": "Each record represents a role in an organization, enhanced with additional organizational details."}, "doc.workday.workday__organization_overview": {"name": "workday__organization_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__organization_overview", "block_contents": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures."}, "doc.workday.workday__position_overview": {"name": "workday__position_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__position_overview", "block_contents": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts."}, "doc.workday.worker": {"name": "worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker", "block_contents": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker."}, "doc.workday.worker_code": {"name": "worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_code", "block_contents": "The code associated with the worker."}, "doc.workday.worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_for_filled_position_id", "block_contents": "Identifier for the worker filling the position, if applicable."}, "doc.workday.worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_hours_profile_classification", "block_contents": "The classification of worker hours profile associated with the worker position."}, "doc.workday.worker_id": {"name": "worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_id", "block_contents": "Unique identifier for the worker."}, "doc.workday.worker_leave_status": {"name": "worker_leave_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_leave_status", "block_contents": "Represents the leave status of workers in the Workday system."}, "doc.workday.worker_levels": {"name": "worker_levels", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_levels", "block_contents": "The number of levels the worker has worked at."}, "doc.workday.worker_position": {"name": "worker_position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position", "block_contents": "Represents the positions held by workers in the Workday system"}, "doc.workday.worker_position_organization": {"name": "worker_position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_organization", "block_contents": "Ties together workers to the positions and organizations they hold in the Workday system."}, "doc.workday.worker_position_id": {"name": "worker_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_id", "block_contents": "Identifier for the worker associated with the position."}, "doc.workday.worker_positions": {"name": "worker_positions", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_positions", "block_contents": "The number of positions the worker has held"}, "doc.workday.worker_type_code": {"name": "worker_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_type_code", "block_contents": "Code indicating the type of worker associated with the position."}, "doc.workday.working_fte": {"name": "working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_fte", "block_contents": "The working full-time equivalent (FTE) associated with the worker position."}, "doc.workday.working_time_frequency": {"name": "working_time_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_frequency", "block_contents": "The frequency of working time associated with the worker position."}, "doc.workday.working_time_unit": {"name": "working_time_unit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_unit", "block_contents": "The unit of working time associated with the worker position."}, "doc.workday.working_time_value": {"name": "working_time_value", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_value", "block_contents": "The value of working time associated with the worker position."}, "doc.workday.date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_pay_group_assignment", "block_contents": "Date a group's pay is assigned to be processed."}, "doc.workday.primary_business_site": {"name": "primary_business_site", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_business_site", "block_contents": "Primary location a worker's business is situated."}, "doc.workday.used_in_change_organization_assignments": {"name": "used_in_change_organization_assignments", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.used_in_change_organization_assignments", "block_contents": "If a worker has opted to change these organization assignments."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {}, "parent_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.workday__job_overview": ["model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_group", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_profile"], "model.workday.workday__position_overview": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"], "model.workday.workday__organization_overview": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"], "model.workday.stg_workday__position": ["model.workday.stg_workday__position_base"], "model.workday.stg_workday__job_family_group": ["model.workday.stg_workday__job_family_group_base"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "model.workday.stg_workday__organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "model.workday.stg_workday__organization_role": ["model.workday.stg_workday__organization_role_base"], "model.workday.stg_workday__worker_position": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "model.workday.stg_workday__position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "model.workday.stg_workday__worker_position_organization": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.stg_workday__job_profile": ["model.workday.stg_workday__job_profile_base"], "model.workday.stg_workday__position_organization": ["model.workday.stg_workday__position_organization_base"], "model.workday.stg_workday__worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "model.workday.stg_workday__person_name": ["model.workday.stg_workday__person_name_base"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "model.workday.stg_workday__organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "model.workday.stg_workday__job_family": ["model.workday.stg_workday__job_family_base"], "model.workday.stg_workday__military_service": ["model.workday.stg_workday__military_service_base"], "model.workday.stg_workday__personal_information": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "model.workday.stg_workday__worker": ["model.workday.stg_workday__worker_base"], "model.workday.stg_workday__organization": ["model.workday.stg_workday__organization_base"], "model.workday.stg_workday__job_family_job_family_group_base": ["source.workday.workday.job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["source.workday.workday.personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["source.workday.workday.job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["source.workday.workday.worker_position_organization_history"], "model.workday.stg_workday__position_base": ["source.workday.workday.position"], "model.workday.stg_workday__person_contact_email_address_base": ["source.workday.workday.person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["source.workday.workday.organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["source.workday.workday.job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["source.workday.workday.position_organization"], "model.workday.stg_workday__organization_role_base": ["source.workday.workday.organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["source.workday.workday.worker_leave_status"], "model.workday.stg_workday__job_family_base": ["source.workday.workday.job_family"], "model.workday.stg_workday__job_profile_base": ["source.workday.workday.job_profile"], "model.workday.stg_workday__organization_base": ["source.workday.workday.organization"], "model.workday.stg_workday__organization_role_worker_base": ["source.workday.workday.organization_role_worker"], "model.workday.stg_workday__worker_base": ["source.workday.workday.worker_history"], "model.workday.stg_workday__position_job_profile_base": ["source.workday.workday.position_job_profile"], "model.workday.stg_workday__worker_position_base": ["source.workday.workday.worker_position_history"], "model.workday.stg_workday__person_name_base": ["source.workday.workday.person_name"], "model.workday.stg_workday__military_service_base": ["source.workday.workday.military_service"], "model.workday.stg_workday__personal_information_base": ["source.workday.workday.personal_information_history"], "model.workday.workday__monthly_summary": ["model.workday.workday__employee_daily_history"], "model.workday.workday__employee_daily_history": ["model.workday.int_workday__employee_history"], "model.workday.workday__worker_position_org_daily_history": ["model.workday.stg_workday__worker_position_organization_base", "model.workday.stg_workday__worker_position_organization_history"], "model.workday.stg_workday__worker_position_history": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__worker_history": ["model.workday.stg_workday__worker_base"], "model.workday.stg_workday__personal_information_history": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.int_workday__employee_history": ["model.workday.stg_workday__personal_information_history", "model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history"], "model.workday.int_workday__worker_position_enriched": ["model.workday.stg_workday__worker_position"], "model.workday.int_workday__personal_details": ["model.workday.stg_workday__military_service", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__person_name", "model.workday.stg_workday__personal_information", "model.workday.stg_workday__personal_information_ethnicity"], "model.workday.int_workday__worker_details": ["model.workday.stg_workday__worker"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.int_workday__personal_details", "model.workday.int_workday__worker_details", "model.workday.int_workday__worker_position_enriched"], "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": ["model.workday.workday__job_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": ["model.workday.workday__job_overview"], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": ["model.workday.workday__position_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": ["model.workday.workday__position_overview"], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": ["model.workday.workday__organization_overview"], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": ["model.workday.workday__organization_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": ["model.workday.workday__organization_overview"], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": ["model.workday.stg_workday__job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": ["model.workday.stg_workday__job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": ["model.workday.stg_workday__job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": ["model.workday.stg_workday__job_family"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": ["model.workday.stg_workday__job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": ["model.workday.stg_workday__job_family_group"], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": ["model.workday.stg_workday__organization_role"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": ["model.workday.stg_workday__organization_role_worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": ["model.workday.stg_workday__organization_job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": ["model.workday.stg_workday__organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": ["model.workday.stg_workday__organization"], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": ["model.workday.stg_workday__position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": ["model.workday.stg_workday__position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": ["model.workday.stg_workday__position"], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": ["model.workday.stg_workday__position_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": ["model.workday.stg_workday__worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": ["model.workday.stg_workday__worker"], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": ["model.workday.stg_workday__personal_information"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": ["model.workday.stg_workday__personal_information"], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": ["model.workday.stg_workday__person_name"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": ["model.workday.stg_workday__military_service"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": ["model.workday.stg_workday__military_service"], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": ["model.workday.stg_workday__worker_position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": ["model.workday.stg_workday__worker_leave_status"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": ["model.workday.stg_workday__worker_position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": ["model.workday.stg_workday__worker_position_organization"], "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": ["model.workday.workday__employee_daily_history"], "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": ["model.workday.workday__employee_daily_history"], "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": ["model.workday.workday__monthly_summary"], "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": ["model.workday.workday__monthly_summary"], "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": ["model.workday.stg_workday__personal_information_history"], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": ["model.workday.stg_workday__personal_information_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": ["model.workday.stg_workday__worker_history"], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": ["model.workday.stg_workday__worker_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": ["model.workday.stg_workday__worker_position_history"], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": ["model.workday.stg_workday__worker_position_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888": ["model.workday.stg_workday__worker_position_organization_history"], "source.workday.workday.job_profile": [], "source.workday.workday.job_family_job_profile": [], "source.workday.workday.job_family": [], "source.workday.workday.job_family_job_family_group": [], "source.workday.workday.job_family_group": [], "source.workday.workday.organization_role": [], "source.workday.workday.organization_role_worker": [], "source.workday.workday.organization_job_family": [], "source.workday.workday.organization": [], "source.workday.workday.position_organization": [], "source.workday.workday.position": [], "source.workday.workday.position_job_profile": [], "source.workday.workday.worker_history": [], "source.workday.workday.personal_information_history": [], "source.workday.workday.person_name": [], "source.workday.workday.personal_information_ethnicity": [], "source.workday.workday.military_service": [], "source.workday.workday.person_contact_email_address": [], "source.workday.workday.worker_position_history": [], "source.workday.workday.worker_leave_status": [], "source.workday.workday.worker_position_organization_history": []}, "child_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "test.workday.unique_workday__employee_overview_employee_id.b01e19996c"], "model.workday.workday__job_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857"], "model.workday.workday__position_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "test.workday.not_null_workday__position_overview_position_id.603beb3f22"], "model.workday.workday__organization_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412"], "model.workday.stg_workday__position": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e"], "model.workday.stg_workday__job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c"], "model.workday.stg_workday__organization_role_worker": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72"], "model.workday.stg_workday__organization_role": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f"], "model.workday.stg_workday__worker_position": ["model.workday.int_workday__worker_position_enriched", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755"], "model.workday.stg_workday__position_job_profile": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7"], "model.workday.stg_workday__worker_position_organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b"], "model.workday.stg_workday__job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa"], "model.workday.stg_workday__position_organization": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7"], "model.workday.stg_workday__worker_leave_status": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61"], "model.workday.stg_workday__person_name": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd"], "model.workday.stg_workday__organization_job_family": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e"], "model.workday.stg_workday__job_family": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f"], "model.workday.stg_workday__military_service": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38"], "model.workday.stg_workday__personal_information": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b"], "model.workday.stg_workday__worker": ["model.workday.int_workday__worker_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "test.workday.not_null_stg_workday__worker_worker_id.8dae310560"], "model.workday.stg_workday__organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7"], "model.workday.stg_workday__job_family_job_family_group_base": ["model.workday.stg_workday__job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["model.workday.stg_workday__personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["model.workday.stg_workday__job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["model.workday.stg_workday__worker_position_organization", "model.workday.stg_workday__worker_position_organization_history", "model.workday.workday__worker_position_org_daily_history"], "model.workday.stg_workday__position_base": ["model.workday.stg_workday__position"], "model.workday.stg_workday__person_contact_email_address_base": ["model.workday.stg_workday__person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["model.workday.stg_workday__organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["model.workday.stg_workday__job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["model.workday.stg_workday__position_organization"], "model.workday.stg_workday__organization_role_base": ["model.workday.stg_workday__organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["model.workday.stg_workday__worker_leave_status"], "model.workday.stg_workday__job_family_base": ["model.workday.stg_workday__job_family"], "model.workday.stg_workday__job_profile_base": ["model.workday.stg_workday__job_profile"], "model.workday.stg_workday__organization_base": ["model.workday.stg_workday__organization"], "model.workday.stg_workday__organization_role_worker_base": ["model.workday.stg_workday__organization_role_worker"], "model.workday.stg_workday__worker_base": ["model.workday.stg_workday__worker", "model.workday.stg_workday__worker_history"], "model.workday.stg_workday__position_job_profile_base": ["model.workday.stg_workday__position_job_profile"], "model.workday.stg_workday__worker_position_base": ["model.workday.stg_workday__worker_position", "model.workday.stg_workday__worker_position_history"], "model.workday.stg_workday__person_name_base": ["model.workday.stg_workday__person_name"], "model.workday.stg_workday__military_service_base": ["model.workday.stg_workday__military_service"], "model.workday.stg_workday__personal_information_base": ["model.workday.stg_workday__personal_information", "model.workday.stg_workday__personal_information_history"], "model.workday.workday__monthly_summary": ["test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab"], "model.workday.workday__employee_daily_history": ["model.workday.workday__monthly_summary", "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269"], "model.workday.workday__worker_position_org_daily_history": ["test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21"], "model.workday.stg_workday__worker_position_history": ["model.workday.int_workday__employee_history", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b", "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879"], "model.workday.stg_workday__worker_history": ["model.workday.int_workday__employee_history", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df", "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72"], "model.workday.stg_workday__personal_information_history": ["model.workday.int_workday__employee_history", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c", "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc"], "model.workday.stg_workday__worker_position_organization_history": ["model.workday.workday__worker_position_org_daily_history", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888", "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398"], "model.workday.int_workday__employee_history": ["model.workday.workday__employee_daily_history"], "model.workday.int_workday__worker_position_enriched": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__personal_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.workday__employee_overview"], "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": [], "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": [], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": [], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": [], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": [], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": [], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": [], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": [], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": [], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": [], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": [], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": [], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": [], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": [], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": [], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": [], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": [], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": [], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": [], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": [], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": [], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": [], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": [], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": [], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": [], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": [], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": [], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": [], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": [], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": [], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": [], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": [], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": [], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": [], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": [], "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": [], "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": [], "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": [], "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": [], "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": [], "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": [], "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": [], "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": [], "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": [], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": [], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": [], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c": [], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": [], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": [], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df": [], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": [], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": [], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": [], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b": [], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": [], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": [], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": [], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": [], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888": [], "source.workday.workday.job_profile": ["model.workday.stg_workday__job_profile_base"], "source.workday.workday.job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "source.workday.workday.job_family": ["model.workday.stg_workday__job_family_base"], "source.workday.workday.job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "source.workday.workday.job_family_group": ["model.workday.stg_workday__job_family_group_base"], "source.workday.workday.organization_role": ["model.workday.stg_workday__organization_role_base"], "source.workday.workday.organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "source.workday.workday.organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "source.workday.workday.organization": ["model.workday.stg_workday__organization_base"], "source.workday.workday.position_organization": ["model.workday.stg_workday__position_organization_base"], "source.workday.workday.position": ["model.workday.stg_workday__position_base"], "source.workday.workday.position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "source.workday.workday.worker_history": ["model.workday.stg_workday__worker_base"], "source.workday.workday.personal_information_history": ["model.workday.stg_workday__personal_information_base"], "source.workday.workday.person_name": ["model.workday.stg_workday__person_name_base"], "source.workday.workday.personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "source.workday.workday.military_service": ["model.workday.stg_workday__military_service_base"], "source.workday.workday.person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "source.workday.workday.worker_position_history": ["model.workday.stg_workday__worker_position_base"], "source.workday.workday.worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "source.workday.workday.worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v11.json", "dbt_version": "1.7.8", "generated_at": "2024-04-02T10:15:44.650404Z", "invocation_id": "2c956fce-7a6c-4f51-b5a5-d975f2021c95", "env": {}, "project_name": "workday_integration_tests", "project_id": "457920b1e5594993369a050db836d437", "user_id": "81581f81-d5af-4143-8fbf-c2f0001e4f56", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_job_family_group_data"], "alias": "workday_job_family_job_family_group_data", "checksum": {"name": "sha256", "checksum": "a4c9b0101811381ac698bec0ba8dd2474fa563f2d2dc6bdf1e072bd3f890313f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.831813, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_history_data.csv", "original_file_path": "seeds/workday_personal_information_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "fqn": ["workday_integration_tests", "workday_personal_information_history_data"], "alias": "workday_personal_information_history_data", "checksum": {"name": "sha256", "checksum": "2810574ec93fc886e6f1faa097951c8d7c96336fbd1a03b75a22b5a7bb85d13a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.8401651, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_ethnicity_data.csv", "original_file_path": "seeds/workday_personal_information_ethnicity_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "fqn": ["workday_integration_tests", "workday_personal_information_ethnicity_data"], "alias": "workday_personal_information_ethnicity_data", "checksum": {"name": "sha256", "checksum": "986222e9224bcca39693358ca9829277b4f6a2c56111ba9aa2db56734d128e9a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.8414981, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_group_data"], "alias": "workday_job_family_group_data", "checksum": {"name": "sha256", "checksum": "394c43d528af65ce740ba8ebd24d6d14e6ea99f5d57abcdd2690070f408378f9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.842734, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_history_data.csv", "original_file_path": "seeds/workday_worker_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "fqn": ["workday_integration_tests", "workday_worker_history_data"], "alias": "workday_worker_history_data", "checksum": {"name": "sha256", "checksum": "b3b80c42d748789791fca4630504aafa22afd1dca315e0d63bc0f9f9fe33a68d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "annual_currency_summary_primary_compensation_basis": "float", "annual_currency_summary_total_base_pay": "float", "annual_currency_summary_total_salary_and_allowances": "float", "annual_summary_primary_compensation_basis": "float", "annual_summary_total_base_pay": "float", "annual_summary_total_salary_and_allowances": "float", "contract_pay_rate": "float", "days_unemployed": "float", "employee_compensation_primary_compensation_basis": "float", "employee_compensation_total_base_pay": "float", "employee_compensation_total_salary_and_allowances": "float", "hourly_frequency_primary_compensation_basis": "float", "hourly_frequency_total_base_pay": "float", "hourly_frequency_total_salary_and_allowances": "float", "months_continuous_prior_employment": "float", "pay_group_frequency_primary_compensation_basis": "float", "pay_group_frequency_total_base_pay": "float", "pay_group_frequency_total_salary_and_allowances": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "annual_currency_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "contract_pay_rate": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "days_unemployed": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "months_continuous_prior_employment": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712052882.844159, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_leave_status_data.csv", "original_file_path": "seeds/workday_worker_leave_status_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "fqn": ["workday_integration_tests", "workday_worker_leave_status_data"], "alias": "workday_worker_leave_status_data", "checksum": {"name": "sha256", "checksum": "bec6fe9af70bc7bebcfebbd12d41d1674fa78fc88497783bf7be995f1290b901"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "age_of_dependent": "float", "leave_entitlement_override": "float", "leave_percentage": "float", "number_of_babies_adopted_children": "float", "number_of_child_dependents": "float", "number_of_previous_births": "float", "number_of_previous_maternity_leaves": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "age_of_dependent": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_entitlement_override": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_percentage": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_babies_adopted_children": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_child_dependents": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_births": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_maternity_leaves": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712052882.84544, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_organization_history_data.csv", "original_file_path": "seeds/workday_worker_position_organization_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_organization_history_data"], "alias": "workday_worker_position_organization_history_data", "checksum": {"name": "sha256", "checksum": "79d43cf1c2b3425d03d23b014705613022d55eb282108d972cbeb58bf55ed0d3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.8466098, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_data.csv", "original_file_path": "seeds/workday_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_data", "fqn": ["workday_integration_tests", "workday_job_family_data"], "alias": "workday_job_family_data", "checksum": {"name": "sha256", "checksum": "727b3c01934259786bd85a1bed73ac70611363839a611bdea640bf9bd95cba2d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.8478222, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_history_data.csv", "original_file_path": "seeds/workday_worker_position_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_history_data"], "alias": "workday_worker_position_history_data", "checksum": {"name": "sha256", "checksum": "434f6ed5606c6606bbbf41d1427584a275a825ae285f88c1b12d2c3d7da3c07d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "float", "business_site_summary_scheduled_weekly_hours": "float", "default_weekly_hours": "float", "start_date": "timestamp", "end_date": "timestamp"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "business_site_summary_scheduled_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "default_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "start_date": "timestamp", "end_date": "timestamp"}, "created_at": 1712052882.849225, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_name_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_name_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_name_data.csv", "original_file_path": "seeds/workday_person_name_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_name_data", "fqn": ["workday_integration_tests", "workday_person_name_data"], "alias": "workday_person_name_data", "checksum": {"name": "sha256", "checksum": "104b5d938091b1587548c91aa46a0e5b38ebccec81cbc569993b8a971b116881"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.850626, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_data.csv", "original_file_path": "seeds/workday_organization_role_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "fqn": ["workday_integration_tests", "workday_organization_role_data"], "alias": "workday_organization_role_data", "checksum": {"name": "sha256", "checksum": "b3e1187179e8afc95fbf180efac810d5a8f4f57e118393c60fca2c2c7f09e024"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.851776, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_military_service_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_military_service_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_military_service_data.csv", "original_file_path": "seeds/workday_military_service_data.csv", "unique_id": "seed.workday_integration_tests.workday_military_service_data", "fqn": ["workday_integration_tests", "workday_military_service_data"], "alias": "workday_military_service_data", "checksum": {"name": "sha256", "checksum": "f3d25deafee7b4188b4bdfe815b40397bdd80cd135db866b9ddf2b3a0b346b07"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.853112, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_data.csv", "original_file_path": "seeds/workday_position_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_data", "fqn": ["workday_integration_tests", "workday_position_data"], "alias": "workday_position_data", "checksum": {"name": "sha256", "checksum": "f31ec8364b56eb931ab406b25be5cfc0301bba65908bc448aeb170ed79805894"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "primary_compensation_basis": "float", "primary_compensation_basis_amount_change": "float", "primary_compensation_basis_percent_change": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_amount_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_percent_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712052882.8543239, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_data.csv", "original_file_path": "seeds/workday_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_data", "fqn": ["workday_integration_tests", "workday_organization_data"], "alias": "workday_organization_data", "checksum": {"name": "sha256", "checksum": "e0ece91ba5a270a01be9bbe91ea46b49c9e5c3c56e7234b5a597c9d81f63b4cc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.855556, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_organization_data.csv", "original_file_path": "seeds/workday_position_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "fqn": ["workday_integration_tests", "workday_position_organization_data"], "alias": "workday_position_organization_data", "checksum": {"name": "sha256", "checksum": "c0cd526bcf4b91f1842484875ce4fe803d510862d4d4ddba72c6d1724c8e9ea8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.857141, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_profile_data.csv", "original_file_path": "seeds/workday_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_profile_data"], "alias": "workday_job_profile_data", "checksum": {"name": "sha256", "checksum": "677a184272cdd2e0d746d5616d33ad4ce394c74e759f73bf0e51f8dda5cc96e4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.8585558, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_contact_email_address_data.csv", "original_file_path": "seeds/workday_person_contact_email_address_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "fqn": ["workday_integration_tests", "workday_person_contact_email_address_data"], "alias": "workday_person_contact_email_address_data", "checksum": {"name": "sha256", "checksum": "4641c91d789ed134081a55cf0aaafc5a61a7ea075904691a353389552038dbe9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.8599281, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_job_family_data.csv", "original_file_path": "seeds/workday_organization_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "fqn": ["workday_integration_tests", "workday_organization_job_family_data"], "alias": "workday_organization_job_family_data", "checksum": {"name": "sha256", "checksum": "2db2016b7eea202409836faff94ba2f168ce13dfd9e00ee1d1591eb85315cd47"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.861192, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_profile_data.csv", "original_file_path": "seeds/workday_job_family_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_family_job_profile_data"], "alias": "workday_job_family_job_profile_data", "checksum": {"name": "sha256", "checksum": "bc99975db9382af8f66fd46976db4cca2a987b1e9de24d17ceeb1ebf6e5ecb68"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.862769, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_job_profile_data.csv", "original_file_path": "seeds/workday_position_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "fqn": ["workday_integration_tests", "workday_position_job_profile_data"], "alias": "workday_position_job_profile_data", "checksum": {"name": "sha256", "checksum": "e5d675b82b521d6856d8f516209642745a595a31d88d147f6561bcbc970433b3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.8639958, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_worker_data.csv", "original_file_path": "seeds/workday_organization_role_worker_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "fqn": ["workday_integration_tests", "workday_organization_role_worker_data"], "alias": "workday_organization_role_worker_data", "checksum": {"name": "sha256", "checksum": "e24079f7ed64c407174d546132b71c69a9b1eaa9951b5a91772a3da7b3ff95f8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.865373, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "model.workday.workday__employee_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "resource_type": "model", "package_name": "workday", "path": "workday__employee_overview.sql", "original_file_path": "models/workday__employee_overview.sql", "unique_id": "model.workday.workday__employee_overview", "fqn": ["workday", "workday__employee_overview"], "alias": "workday__employee_overview", "checksum": {"name": "sha256", "checksum": "b6fe9afa14aa393b3c40d1a669d182f20e556adacaa1ec46b05ad800bd4141a7"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees.", "columns": {"employee_id": {"name": "employee_id", "description": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_user_active": {"name": "is_user_active", "description": "Is the user currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed": {"name": "is_employed", "description": "Is the worker currently employed?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "departure_date": {"name": "departure_date", "description": "The departure date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_as_worker": {"name": "days_as_worker", "description": "Number of days since the worker has been created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Has the worker been regrettably terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_codes": {"name": "ethnicity_codes", "description": "String aggregation of all ethnicity codes associated with an individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The military status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The position start date for this employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The position end date for this employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "The position effective date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The position location of the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_employed": {"name": "days_employed", "description": "The number of days the employee held their position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_one_year": {"name": "is_employed_one_year", "description": "Tracks whether a worker was employed at least one year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_five_years": {"name": "is_employed_five_years", "description": "Tracks whether a worker was employed at least five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_ten_years": {"name": "is_employed_ten_years", "description": "Tracks whether a worker was employed at least ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_twenty_years": {"name": "is_employed_twenty_years", "description": "Tracks whether a worker was employed at least twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_thirty_years": {"name": "is_employed_thirty_years", "description": "Tracks whether a worker was employed at least thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_one_year": {"name": "is_current_employee_one_year", "description": "Tracks whether a worker is active for more than a year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_five_years": {"name": "is_current_employee_five_years", "description": "Tracks whether a worker is active for more than five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "description": "Tracks whether a worker is active for more than ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "description": "Tracks whether a worker is active for more than twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "description": "Tracks whether a worker is active for more than thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712052884.2743528, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"", "raw_code": "with employee_surrogate_key as (\n \n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'source_relation', 'position_id', 'position_start_date']) }} as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from {{ ref('int_workday__worker_employee_enhanced') }} \n)\n\nselect * \nfrom employee_surrogate_key", "language": "sql", "refs": [{"name": "int_workday__worker_employee_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.int_workday__worker_employee_enhanced"]}, "compiled_path": "target/compiled/workday/models/workday__employee_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n), employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from __dbt__cte__int_workday__worker_employee_enhanced \n)\n\nselect * \nfrom employee_surrogate_key", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_details", "sql": " __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n)"}, {"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__personal_details", "sql": " __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n)"}, {"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_position_enriched", "sql": " __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n)"}, {"id": "model.workday.int_workday__worker_employee_enhanced", "sql": " __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__job_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "resource_type": "model", "package_name": "workday", "path": "workday__job_overview.sql", "original_file_path": "models/workday__job_overview.sql", "unique_id": "model.workday.workday__job_overview", "fqn": ["workday", "workday__job_overview"], "alias": "workday__job_overview", "checksum": {"name": "sha256", "checksum": "b50072f5be5632d10a64a1e777aa62ae6f2283f22244bd033fea5fc20ce66165"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "The private title associated with the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "The summary of the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_codes": {"name": "job_family_codes", "description": "String array of all job family codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summaries": {"name": "job_family_summaries", "description": "String array of all job family summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_codes": {"name": "job_family_group_codes", "description": "String array of all job family group codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summaries": {"name": "job_family_group_summaries", "description": "String array of all job family group summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712052884.280128, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"", "raw_code": "with job_profile_data as (\n\n select * \n from {{ ref('stg_workday__job_profile') }}\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_profile') }}\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from {{ ref('stg_workday__job_family') }}\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_family_group') }}\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from {{ ref('stg_workday__job_family_group') }}\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_code', \"', '\" ) }} as job_family_codes,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_summary', \"', '\" ) }} as job_family_summaries, \n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_code', \"', '\" ) }} as job_family_group_codes,\n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_summary', \"', '\" ) }} as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom job_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}, {"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg", "macro.dbt_utils.group_by"], "nodes": ["model.workday.stg_workday__job_profile", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/workday__job_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), job_profile_data as (\n\n select * \n from __dbt__cte__stg_workday__job_profile\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_profile\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from __dbt__cte__stg_workday__job_family\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_family_group\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from __dbt__cte__stg_workday__job_family_group\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__position_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "resource_type": "model", "package_name": "workday", "path": "workday__position_overview.sql", "original_file_path": "models/workday__position_overview.sql", "unique_id": "model.workday.workday__position_overview", "fqn": ["workday", "workday__position_overview"], "alias": "workday__position_overview", "checksum": {"name": "sha256", "checksum": "567db8a61cd72c8faec1aac1963cbf05b776d0fe170a7f8c0ae8ea3d076464d3"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts.", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712052884.2831511, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"", "raw_code": "with position_data as (\n\n select *\n from {{ ref('stg_workday__position') }}\n),\n\nposition_job_profile_data as (\n\n select *\n from {{ ref('stg_workday__position_job_profile') }}\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}, {"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/workday__position_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), position_data as (\n\n select *\n from __dbt__cte__stg_workday__position\n),\n\nposition_job_profile_data as (\n\n select *\n from __dbt__cte__stg_workday__position_job_profile\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__organization_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "resource_type": "model", "package_name": "workday", "path": "workday__organization_overview.sql", "original_file_path": "models/workday__organization_overview.sql", "unique_id": "model.workday.workday__organization_overview", "fqn": ["workday", "workday__organization_overview"], "alias": "workday__organization_overview", "checksum": {"name": "sha256", "checksum": "0df19685be8a2ffee5d5e16069cbc9771cc639372004929a73f500f9d7c59798"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712052884.285163, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"", "raw_code": "with organization_data as (\n\n select * \n from {{ ref('stg_workday__organization') }}\n),\n\norganization_role_data as (\n\n select * \n from {{ ref('stg_workday__organization_role') }}\n),\n\nworker_position_organization as (\n\n select *\n from {{ ref('stg_workday__worker_position_organization') }}\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}, {"name": "stg_workday__organization_role", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/workday__organization_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), organization_data as (\n\n select * \n from __dbt__cte__stg_workday__organization\n),\n\norganization_role_data as (\n\n select * \n from __dbt__cte__stg_workday__organization_role\n),\n\nworker_position_organization as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_organization\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position.sql", "original_file_path": "models/staging/stg_workday__position.sql", "unique_id": "model.workday.stg_workday__position", "fqn": ["workday", "staging", "stg_workday__position"], "alias": "stg_workday__position", "checksum": {"name": "sha256", "checksum": "a8eea235110df116f941d206b25f965ace56ec776662153af05d70a2bdf1cd4b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_academic_tenure_eligible": {"name": "is_academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.527124, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_base')),\n staging_columns=get_position_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_base", "package": null, "version": null}, {"name": "stg_workday__position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_group"], "alias": "stg_workday__job_family_group", "checksum": {"name": "sha256", "checksum": "91495541dd20c1e46fd9fc7074605bd8d766196513173eb2e6d6d2abd779474a"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summary": {"name": "job_family_group_summary", "description": "The summary of the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.5221388, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_group_base')),\n staging_columns=get_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_profile.sql", "original_file_path": "models/staging/stg_workday__job_family_job_profile.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile", "fqn": ["workday", "staging", "stg_workday__job_family_job_profile"], "alias": "stg_workday__job_family_job_profile", "checksum": {"name": "sha256", "checksum": "22f926dc89704581204ef1db5906e7fc184c404d53dc5141b47056de357d6066"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.520638, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_profile_base')),\n staging_columns=get_job_family_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role_worker.sql", "original_file_path": "models/staging/stg_workday__organization_role_worker.sql", "unique_id": "model.workday.stg_workday__organization_role_worker", "fqn": ["workday", "staging", "stg_workday__organization_role_worker"], "alias": "stg_workday__organization_role_worker", "checksum": {"name": "sha256", "checksum": "6cbf3f20ac378d061a6c9034bd75c08e7cf7079ac12c8b167c31e6e1c0e54fa6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_worker_code": {"name": "organization_worker_code", "description": "The worker code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.523408, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_worker_base')),\n staging_columns=get_organization_role_worker_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_worker_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role_worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role.sql", "original_file_path": "models/staging/stg_workday__organization_role.sql", "unique_id": "model.workday.stg_workday__organization_role", "fqn": ["workday", "staging", "stg_workday__organization_role"], "alias": "stg_workday__organization_role", "checksum": {"name": "sha256", "checksum": "d20118b8c8234cda8e96b2df978fdce2aa46bbdb356ebac5b29680663d105e05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.522731, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_base')),\n staging_columns=get_organization_role_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position.sql", "original_file_path": "models/staging/stg_workday__worker_position.sql", "unique_id": "model.workday.stg_workday__worker_position", "fqn": ["workday", "staging", "stg_workday__worker_position"], "alias": "stg_workday__worker_position", "checksum": {"name": "sha256", "checksum": "f812d4b0a33146284f402362816bc05ca7a5e85fa228207ea0df356396906025"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the positions held by workers in the Workday system", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.536212, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_base')),\n staging_columns=get_worker_position_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_contact_email_address.sql", "original_file_path": "models/staging/stg_workday__person_contact_email_address.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address", "fqn": ["workday", "staging", "stg_workday__person_contact_email_address"], "alias": "stg_workday__person_contact_email_address", "checksum": {"name": "sha256", "checksum": "fc93cd7747b3087ad994ab34f0feec9a8293e02f719a8ddb64bf652d786f50e5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_contact_email_address_id": {"name": "person_contact_email_address_id", "description": "The identifier of the personal contact email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.5340219, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_contact_email_address_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_contact_email_address_base')),\n staging_columns=get_person_contact_email_address_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_contact_email_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_contact_email_address_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_contact_email_address.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_job_profile.sql", "original_file_path": "models/staging/stg_workday__position_job_profile.sql", "unique_id": "model.workday.stg_workday__position_job_profile", "fqn": ["workday", "staging", "stg_workday__position_job_profile"], "alias": "stg_workday__position_job_profile", "checksum": {"name": "sha256", "checksum": "1bd56f05d8c66dff4d5741a2ca3963cd4859341229686f1e9155289aa86ca3f3"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_job_profile_name": {"name": "position_job_profile_name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.527661, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_job_profile_base')),\n staging_columns=get_position_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__position_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position_organization.sql", "original_file_path": "models/staging/stg_workday__worker_position_organization.sql", "unique_id": "model.workday.stg_workday__worker_position_organization", "fqn": ["workday", "staging", "stg_workday__worker_position_organization"], "alias": "stg_workday__worker_position_organization", "checksum": {"name": "sha256", "checksum": "c06c632d0c5bc211074ad78e1d36ea19e68ad03423068316bd207e3978472684"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.539503, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_organization_base')),\n staging_columns=get_worker_position_organization_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_profile.sql", "original_file_path": "models/staging/stg_workday__job_profile.sql", "unique_id": "model.workday.stg_workday__job_profile", "fqn": ["workday", "staging", "stg_workday__job_profile"], "alias": "stg_workday__job_profile", "checksum": {"name": "sha256", "checksum": "c58fefde4e2bab4dfcc7d23f270ba41e4b3a785de9c0f221854b44ce088753d6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_job_code_in_name": {"name": "is_include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_public_job": {"name": "is_public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.5202858, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_profile_base')),\n staging_columns=get_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_organization.sql", "original_file_path": "models/staging/stg_workday__position_organization.sql", "unique_id": "model.workday.stg_workday__position_organization", "fqn": ["workday", "staging", "stg_workday__position_organization"], "alias": "stg_workday__position_organization", "checksum": {"name": "sha256", "checksum": "3e066e026cb6c5a57a3780d60185e331275a40666ec842bd51a9f5214c8106f0"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.5256488, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_organization_base')),\n staging_columns=get_position_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_organization_base", "package": null, "version": null}, {"name": "stg_workday__position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_leave_status.sql", "original_file_path": "models/staging/stg_workday__worker_leave_status.sql", "unique_id": "model.workday.stg_workday__worker_leave_status", "fqn": ["workday", "staging", "stg_workday__worker_leave_status"], "alias": "stg_workday__worker_leave_status", "checksum": {"name": "sha256", "checksum": "7a780769764a426e346115891309d38326b383297d43976f5b368feefe555e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the leave status of workers in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_benefits_effect": {"name": "is_benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_caesarean_section_birth": {"name": "is_caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_continuous_service_accrual_effect": {"name": "is_continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_multiple_child_indicator": {"name": "is_multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_on_leave": {"name": "is_on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_paid_time_off_accrual_effect": {"name": "is_paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_payroll_effect": {"name": "is_payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_single_parent_indicator": {"name": "is_single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_stock_vesting_effect": {"name": "is_stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_related": {"name": "is_work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.539029, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_leave_status_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_leave_status_base')),\n staging_columns=get_worker_leave_status_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}, {"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_leave_status_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__worker_leave_status_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_leave_status.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_name.sql", "original_file_path": "models/staging/stg_workday__person_name.sql", "unique_id": "model.workday.stg_workday__person_name", "fqn": ["workday", "staging", "stg_workday__person_name"], "alias": "stg_workday__person_name", "checksum": {"name": "sha256", "checksum": "da74b8517c3659e32fa4600075b2c78fd9edf3b9d67b062a39aceeb7007a8106"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the name information for an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_name_type": {"name": "person_name_type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.5323389, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_name_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_name_base')),\n staging_columns=get_person_name_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_name_base", "package": null, "version": null}, {"name": "stg_workday__person_name_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_name_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_name_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_name.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information_ethnicity.sql", "original_file_path": "models/staging/stg_workday__personal_information_ethnicity.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity", "fqn": ["workday", "staging", "stg_workday__personal_information_ethnicity"], "alias": "stg_workday__personal_information_ethnicity", "checksum": {"name": "sha256", "checksum": "1cddb347cc063152fdf7519ab20008979c18819cf57eda40f40b5c0ae4df795c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.5327182, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_ethnicity_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_ethnicity_base')),\n staging_columns=get_personal_information_ethnicity_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_ethnicity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information_ethnicity.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_job_family.sql", "original_file_path": "models/staging/stg_workday__organization_job_family.sql", "unique_id": "model.workday.stg_workday__organization_job_family", "fqn": ["workday", "staging", "stg_workday__organization_job_family"], "alias": "stg_workday__organization_job_family", "checksum": {"name": "sha256", "checksum": "25a30264c730bb3d4ed427d08d7262415aa13c72bda44f292aef305dabadb4dc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.5240471, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_job_family_base')),\n staging_columns=get_organization_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family_base", "package": null, "version": null}, {"name": "stg_workday__organization_job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family.sql", "original_file_path": "models/staging/stg_workday__job_family.sql", "unique_id": "model.workday.stg_workday__job_family", "fqn": ["workday", "staging", "stg_workday__job_family"], "alias": "stg_workday__job_family", "checksum": {"name": "sha256", "checksum": "2b55aade2b7c5f3aaa66b8689637aecadf3960de67f0df66ecd9d511ec3f4a2c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summary": {"name": "job_family_summary", "description": "The summary of the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.5212002, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_base')),\n staging_columns=get_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_base", "package": null, "version": null}, {"name": "stg_workday__job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__military_service.sql", "original_file_path": "models/staging/stg_workday__military_service.sql", "unique_id": "model.workday.stg_workday__military_service", "fqn": ["workday", "staging", "stg_workday__military_service"], "alias": "stg_workday__military_service", "checksum": {"name": "sha256", "checksum": "2723e93ad3a6b887aa7d9b8c5d97bee2714a4b0d8ff0c80decb8be429e77b709"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about an individual's military service in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.533133, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__military_service_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__military_service_base')),\n staging_columns=get_military_service_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__military_service_base", "package": null, "version": null}, {"name": "stg_workday__military_service_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_military_service_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__military_service_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__military_service.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information.sql", "original_file_path": "models/staging/stg_workday__personal_information.sql", "unique_id": "model.workday.stg_workday__personal_information", "fqn": ["workday", "staging", "stg_workday__personal_information"], "alias": "stg_workday__personal_information", "checksum": {"name": "sha256", "checksum": "99c2547b9cba3b9798c54da22173f0f4e2d0db3f9623673fc37f0c6f081646bd"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "The personal information associated with each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.531379, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_base')),\n staging_columns=get_personal_information_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__personal_information_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_job_family_group"], "alias": "stg_workday__job_family_job_family_group", "checksum": {"name": "sha256", "checksum": "6fd4740d69f85753d0bf54a02768c8d9b8887e6e58481511bb3067f6dbe9b7eb"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.5215218, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_family_group_base')),\n staging_columns=get_job_family_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker.sql", "original_file_path": "models/staging/stg_workday__worker.sql", "unique_id": "model.workday.stg_workday__worker", "fqn": ["workday", "staging", "stg_workday__worker"], "alias": "stg_workday__worker", "checksum": {"name": "sha256", "checksum": "eabb44e7218212b2cfa0ed153715acd2cd920d91f48a20884f237d3307a8d88d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.53029, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_base')),\n staging_columns=get_worker_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization.sql", "original_file_path": "models/staging/stg_workday__organization.sql", "unique_id": "model.workday.stg_workday__organization", "fqn": ["workday", "staging", "stg_workday__organization"], "alias": "stg_workday__organization", "checksum": {"name": "sha256", "checksum": "ddc0897b633fd79f01412ef8b78788ca8168409bbdd6a076e7ae77eae46e5b4c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Identifier for the organization.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_description": {"name": "organization_description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_manager_in_name": {"name": "is_include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_organization_code_in_name": {"name": "is_include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_location": {"name": "organization_location", "description": "The location of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.5252988, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_base')),\n staging_columns=get_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_base", "package": null, "version": null}, {"name": "stg_workday__organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_family_group_base"], "alias": "stg_workday__job_family_job_family_group_base", "checksum": {"name": "sha256", "checksum": "e2032528b0352adb9b447a62934a158666a681a00bfd8821c454342850710217"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.258977, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_family_group"], ["workday", "job_family_job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_ethnicity_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_ethnicity_base"], "alias": "stg_workday__personal_information_ethnicity_base", "checksum": {"name": "sha256", "checksum": "83d4f52d542558f35ac9c4bca924abf5d50bd6d060b57de257d9b3a8011375bc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.276758, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_ethnicity', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_ethnicity',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_ethnicity"], ["workday", "personal_information_ethnicity"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_group_base"], "alias": "stg_workday__job_family_group_base", "checksum": {"name": "sha256", "checksum": "bea26ff96c14d3e08fd64f97fbc8fbefc3cc6cc6726f7eb27132f966e3ace85d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.280705, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_group"], ["workday", "job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_organization_base.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_organization_base"], "alias": "stg_workday__worker_position_organization_base", "checksum": {"name": "sha256", "checksum": "42729b33f262620d892e95707fef1e711b95c66a4df3fb612d1eb73d024a7e38"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.285463, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_organization_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_organization_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_organization_history"], ["workday", "worker_position_organization_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_base.sql", "original_file_path": "models/staging/base/stg_workday__position_base.sql", "unique_id": "model.workday.stg_workday__position_base", "fqn": ["workday", "staging", "base", "stg_workday__position_base"], "alias": "stg_workday__position_base", "checksum": {"name": "sha256", "checksum": "4ccfff02ed1a6e0e94868985aa08ad5eaac5c78e608ae24eb36ebeb3da3b1443"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.2892742, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position"], ["workday", "position"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_contact_email_address_base.sql", "original_file_path": "models/staging/base/stg_workday__person_contact_email_address_base.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "fqn": ["workday", "staging", "base", "stg_workday__person_contact_email_address_base"], "alias": "stg_workday__person_contact_email_address_base", "checksum": {"name": "sha256", "checksum": "2bfb4c913c999795db2691f4b3bc115fbae9bbad6e4eb59ad305bc057e7e0e5b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.293539, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_contact_email_address', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_contact_email_address',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_contact_email_address"], ["workday", "person_contact_email_address"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_contact_email_address_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_job_family_base.sql", "unique_id": "model.workday.stg_workday__organization_job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_job_family_base"], "alias": "stg_workday__organization_job_family_base", "checksum": {"name": "sha256", "checksum": "8a999ebe4367e8c4e6994124834c09f9d1eeb411d6e00353c9995bc0900ee1ea"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.298037, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_job_family"], ["workday", "organization_job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_profile_base"], "alias": "stg_workday__job_family_job_profile_base", "checksum": {"name": "sha256", "checksum": "61149fbd447008acfc11c0cce919a3dcdfc878b1e43f1a904bed99cd0e12e934"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.301793, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_profile"], ["workday", "job_family_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__position_organization_base.sql", "unique_id": "model.workday.stg_workday__position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__position_organization_base"], "alias": "stg_workday__position_organization_base", "checksum": {"name": "sha256", "checksum": "e9e1144f5ba976bda0612b7899e5c418c8f2880a69bb98c7bd61826b438cf705"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.307219, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_organization"], ["workday", "position_organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_base.sql", "unique_id": "model.workday.stg_workday__organization_role_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_base"], "alias": "stg_workday__organization_role_base", "checksum": {"name": "sha256", "checksum": "7da1ae4c5e420c6a429f6082802496377da44449aefb62728c64e31c64923832"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.3112059, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role"], ["workday", "organization_role"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_leave_status_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_leave_status_base.sql", "unique_id": "model.workday.stg_workday__worker_leave_status_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_leave_status_base"], "alias": "stg_workday__worker_leave_status_base", "checksum": {"name": "sha256", "checksum": "25de6c8505c09d17787931dd2ad7fb497ee4fcc6ad9c076417ac327d38b2cee5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.3153, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_leave_status', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_leave_status',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_leave_status"], ["workday", "worker_leave_status"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_leave_status_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_base.sql", "unique_id": "model.workday.stg_workday__job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_base"], "alias": "stg_workday__job_family_base", "checksum": {"name": "sha256", "checksum": "a6d51501e8a9f185408e2c8c963b04ed89e1f87260216f3e994f324119a0f804"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.319455, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family"], ["workday", "job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_profile_base"], "alias": "stg_workday__job_profile_base", "checksum": {"name": "sha256", "checksum": "ddeb40a89a0b03a8748dae6a224bade7705498441a9f295682bd24ef643fc563"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.3230028, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_profile"], ["workday", "job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_base.sql", "unique_id": "model.workday.stg_workday__organization_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_base"], "alias": "stg_workday__organization_base", "checksum": {"name": "sha256", "checksum": "ee0cb72047f2c7760251317c86318a9f46c5a8be9113fcb7d81b269e1b4b4e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.328475, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization"], ["workday", "organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_worker_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_worker_base.sql", "unique_id": "model.workday.stg_workday__organization_role_worker_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_worker_base"], "alias": "stg_workday__organization_role_worker_base", "checksum": {"name": "sha256", "checksum": "74e858892ef8851aec9a06e4e05dbca91361b09939c257c69db38356d59acf05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.332772, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role_worker', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role_worker',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role_worker"], ["workday", "organization_role_worker"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_base.sql", "unique_id": "model.workday.stg_workday__worker_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_base"], "alias": "stg_workday__worker_base", "checksum": {"name": "sha256", "checksum": "5f0f82a654f8f22d1e129cebdf87aa064125f5deeeca51c50d53f249dd0d96e1"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.3369222, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_history"], ["workday", "worker_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__position_job_profile_base.sql", "unique_id": "model.workday.stg_workday__position_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__position_job_profile_base"], "alias": "stg_workday__position_job_profile_base", "checksum": {"name": "sha256", "checksum": "7a2843eac9ceff71866501a413274121b15a2e8d1337b83962e0045cb1b403c5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.341221, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_job_profile"], ["workday", "position_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_base.sql", "unique_id": "model.workday.stg_workday__worker_position_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_base"], "alias": "stg_workday__worker_position_base", "checksum": {"name": "sha256", "checksum": "8a8431d94738ad8c342bba23f86ace1e658cf63ac9254481bf8463622129514e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.3451588, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_history"], ["workday", "worker_position_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_name_base.sql", "original_file_path": "models/staging/base/stg_workday__person_name_base.sql", "unique_id": "model.workday.stg_workday__person_name_base", "fqn": ["workday", "staging", "base", "stg_workday__person_name_base"], "alias": "stg_workday__person_name_base", "checksum": {"name": "sha256", "checksum": "85c57cfa1fe54db08605b75e32060e1bd488a4f71eae27b2cb8a2805ac4ac655"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.3503501, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_name', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_name',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_name"], ["workday", "person_name"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_name"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_name_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__military_service_base.sql", "original_file_path": "models/staging/base/stg_workday__military_service_base.sql", "unique_id": "model.workday.stg_workday__military_service_base", "fqn": ["workday", "staging", "base", "stg_workday__military_service_base"], "alias": "stg_workday__military_service_base", "checksum": {"name": "sha256", "checksum": "9478cb8eea5671a0261ed280e3723a9ad826ee22b77b9dfe709be5fc85fd295e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.3542342, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='military_service', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='military_service',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "military_service"], ["workday", "military_service"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.military_service"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__military_service_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_base.sql", "unique_id": "model.workday.stg_workday__personal_information_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_base"], "alias": "stg_workday__personal_information_base", "checksum": {"name": "sha256", "checksum": "0767af75bcb79f32dd324d8bf4e57ffc0d0014bda0609b426df78cdc17566e96"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.358171, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_history"], ["workday", "personal_information_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__monthly_summary": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__monthly_summary.sql", "original_file_path": "models/workday_history/workday__monthly_summary.sql", "unique_id": "model.workday.workday__monthly_summary", "fqn": ["workday", "workday_history", "workday__monthly_summary"], "alias": "workday__monthly_summary", "checksum": {"name": "sha256", "checksum": "c2c7661c8324a927d8bf739bdcc37d21d650b2aa0ca769ee77205b47dc81e804"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a month, aggregated from the last day of each month of the employee daily history. This captures monthly metrics of workers, such as average salary, churned and retained employees, etc.", "columns": {"metrics_month": {"name": "metrics_month", "description": "Month in which metrics are being aggregated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_employees": {"name": "new_employees", "description": "New employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_employees": {"name": "churned_employees", "description": "Churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_voluntary_employees": {"name": "churned_voluntary_employees", "description": "Voluntary churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_involuntary_employees": {"name": "churned_involuntary_employees", "description": "Involuntary churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_workers": {"name": "churned_workers", "description": "Churned workers that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_employees": {"name": "active_employees", "description": "Employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_male_employees": {"name": "active_male_employees", "description": "Male employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_female_employees": {"name": "active_female_employees", "description": "Female employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_workers": {"name": "active_workers", "description": "Workers considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_known_gender_employees": {"name": "active_known_gender_employees", "description": "Known gender employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_primary_compensation": {"name": "avg_employee_primary_compensation", "description": "Average primary compensation salary of employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_base_pay": {"name": "avg_employee_base_pay", "description": "Average base pay of the employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_salary_and_allowances": {"name": "avg_employee_salary_and_allowances", "description": "Average salary and allowances of the employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_days_as_employee": {"name": "avg_days_as_employee", "description": "Average days employee has been active month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_primary_compensation": {"name": "avg_worker_primary_compensation", "description": "Average primary compensation for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_base_pay": {"name": "avg_worker_base_pay", "description": "Average base pay for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_salary_and_allowances": {"name": "avg_worker_salary_and_allowances", "description": "Average salary plus allowances for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_days_as_worker": {"name": "avg_days_as_worker", "description": "Average days as a worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712052884.661385, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }} \n\nwith row_month_partition as (\n\n select *, \n cast({{ dbt.date_trunc(\"month\", \"date_day\") }} as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from {{ ref('workday__employee_daily_history') }}\n),\n\nend_of_month_history as (\n \n select *,\n {{ dbt.current_timestamp() }} as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then {{ dbt.datediff(\"hire_date\", \"current_date\", \"day\") }}\n else {{ dbt.datediff(\"hire_date\", \"termination_date\", \"day\") }}\n end as days_as_worker,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when date_month = cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date) then 1 else 0 end) as new_employees,\n sum(case when date_month = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) then 1 else 0 end) as churned_employees,\n sum(case when (date_month = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date)\n and (cast(date_month as date) <= cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date)\n and cast(date_month as date) <= cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__monthly_summary.sql", "compiled": true, "compiled_code": " \n\nwith row_month_partition as (\n\n select *, \n cast(date_trunc('month', date_day) as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n),\n\nend_of_month_history as (\n \n select *,\n now() as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when date_month = cast(date_trunc('month', position_effective_date) as date) then 1 else 0 end) as new_employees,\n sum(case when date_month = cast(date_trunc('month', termination_date) as date) then 1 else 0 end) as churned_employees,\n sum(case when (date_month = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = cast(date_trunc('month', end_employment_date) as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and (cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__employee_daily_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__employee_daily_history.sql", "original_file_path": "models/workday_history/workday__employee_daily_history.sql", "unique_id": "model.workday.workday__employee_daily_history", "fqn": ["workday", "workday_history", "workday__employee_daily_history"], "alias": "workday__employee_daily_history", "checksum": {"name": "sha256", "checksum": "4c14b35e16add086112f1162036ec382847846ca5f62b7ba617c1b812b7978dd"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a daily record in an employee, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to track the daily history of their employees from when they started.", "columns": {"employee_day_id": {"name": "employee_day_id", "description": "Surrogate key hashed on `date_day` and `history_unique_key`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date on which the account had these field values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on 'employee_id' and '_fivetran_date'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_id": {"name": "employee_id", "description": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_wh_fivetran_active": {"name": "is_wh_fivetran_active", "description": "Is the worker history record the most recent fivetran active record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_wph_fivetran_active": {"name": "is_wph_fivetran_active", "description": "Is the worker position history record the most recent fivetranactive record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_pih_fivetran_active": {"name": "is_pih_fivetran_active", "description": "Is the personal information history record the most recent fivetran active record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wh_end_employment_date": {"name": "wh_end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wph_end_employment_date": {"name": "wph_end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wh_pay_through_date": {"name": "wh_pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wph_pay_through_date": {"name": "wph_pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The position location of the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "The position effective date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "row_num": {"name": "row_num", "description": "This is the row number filter designed to grab the most recent daily record for an employee. This value should always be 1 in this model.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712052884.6578372, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"", "raw_code": "-- depends_on: {{ ref('int_workday__employee_history') }}\n{{ config(enabled=var('employee_history_enabled', False)) }}\n\n{% if execute %} \n {% set first_last_date_query %}\n with min_max_values as (\n\n select \n min(_fivetran_start) as min_start,\n max(_fivetran_start) as max_start \n from {{ ref('int_workday__employee_history') }}\n )\n\n select \n min_start,\n case when max_start >= {{ dbt.current_timestamp() }}\n then max_start\n else {{ dbt.date_trunc('day', dbt.current_timestamp()) }} \n end as max_start\n from min_max_values\n \n {% endset %}\n\n {% set start_date = run_query(first_last_date_query).columns[0][0]|string %}\n {% set last_date = run_query(first_last_date_query).columns[1][0]|string %}\n\n{# If only compiling, creates range going back 1 year #}\n{% else %} \n {% set start_date = dbt.dateadd(\"year\", \"-2\", \"current_date\") %} -- Arbitrarily picked. Choose a more appropriate default if necessary.\n {% set last_date = dbt.dateadd(\"year\", \"-1\", \"current_date\") %}\n{% endif %}\n\n\nwith spine as (\n {# Prioritizes variables over calculated dates #}\n {# Arbitrarily picked employee_history_start_date variable value. Choose a more appropriate default if necessary. #}\n {{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date = \"greatest(cast('\" ~ start_date[0:10] ~ \"' as date), cast('\" ~ var('employee_history_start_date','2000-12-31') ~ \"' as date))\", \n end_date = \"cast('\" ~ last_date[0:10] ~ \"'as date)\"\n )\n }}\n),\n\nemployee_history as (\n\n select * \n from {{ ref('int_workday__employee_history') }}\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['spine.date_day','get_latest_daily_value.history_unique_key']) }} as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }})\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }})\n)\n\nselect * \nfrom daily_history", "language": "sql", "refs": [{"name": "int_workday__employee_history", "package": null, "version": null}, {"name": "int_workday__employee_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp", "macro.dbt.current_timestamp", "macro.dbt.date_trunc", "macro.dbt.run_query"], "nodes": ["model.workday.int_workday__employee_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__employee_daily_history.sql", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n\n\n \n \n\n \n \n\n\n\n\n\nwith spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n + \n \n p13.generated_number * power(2, 13)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n cross join \n \n p as p13\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 8493\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2000-12-31' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-02'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__worker_position_org_daily_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__worker_position_org_daily_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__worker_position_org_daily_history.sql", "original_file_path": "models/workday_history/workday__worker_position_org_daily_history.sql", "unique_id": "model.workday.workday__worker_position_org_daily_history", "fqn": ["workday", "workday_history", "workday__worker_position_org_daily_history"], "alias": "workday__worker_position_org_daily_history", "checksum": {"name": "sha256", "checksum": "c1c36a835209fef8128f0be01c63b79d2ee2f6fcdde4326f542dcc4b32bff610"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a daily record for a worker/position/organization combination, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to tie in organizations to employees via other organization models (such as `workday__organization_overview`) more easily in their warehouses.", "columns": {"wpo_day_id": {"name": "wpo_day_id", "description": "Surrogate key hashed on `date_day` and `history_unique_key`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date on which the account had these field values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, `source_relation`, and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712052884.662327, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"", "raw_code": "-- depends_on: {{ ref('stg_workday__worker_position_organization_base') }}\n{{ config(enabled=var('employee_history_enabled', False)) }}\n\n{% if execute %} \n {% set first_last_date_query %}\n with min_max_values as (\n select \n min(_fivetran_start) as min_start,\n max(_fivetran_start) as max_start \n from {{ ref('stg_workday__worker_position_organization_base') }}\n )\n\n select \n min_start,\n case when max_start >= {{ dbt.current_timestamp() }}\n then max_start\n else {{ dbt.date_trunc('day', dbt.current_timestamp()) }} \n end as max_date\n from min_max_values\n\n {% endset %}\n\n {% set start_date = run_query(first_last_date_query).columns[0][0]|string %}\n {% set last_date = run_query(first_last_date_query).columns[1][0]|string %}\n\n{# If only compiling, creates range going back 1 year #}\n{% else %} \n {% set start_date = dbt.dateadd(\"year\", \"-2\", \"current_date\") %} -- Arbitrarily picked. Choose a more appropriate default if necessary.\n {% set last_date = dbt.dateadd(\"year\", \"-1\", \"current_date\") %}\n{% endif %}\n\nwith spine as (\n {# Prioritizes variables over calculated dates #}\n {# Arbitrarily picked employee_history_start_date variable value. Choose a more appropriate default if necessary. #}\n {{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date = \"greatest(cast('\" ~ start_date[0:10] ~ \"' as date), cast('\" ~ var('employee_history_start_date','2000-12-31') ~ \"' as date))\",\n end_date = \"cast('\" ~ last_date[0:10] ~ \"'as date)\"\n )\n }}\n),\n\nworker_position_org_history as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_history') }}\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['spine.date_day',\n 'get_latest_daily_value.history_unique_key']) }} \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n _fivetran_start,\n _fivetran_end,\n _fivetran_active,\n _fivetran_date,\n history_unique_key,\n index,\n date_of_pay_group_assignment,\n primary_business_site,\n is_used_in_change_organization_assignments\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }})\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }})\n)\n\nselect * \nfrom daily_history", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp", "macro.dbt.current_timestamp", "macro.dbt.date_trunc", "macro.dbt.run_query"], "nodes": ["model.workday.stg_workday__worker_position_organization_base", "model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__worker_position_org_daily_history.sql", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n\n\n \n \n\n \n \n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n), spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n + \n \n p13.generated_number * power(2, 13)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n cross join \n \n p as p13\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 8493\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2000-12-31' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-02'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nworker_position_org_history as (\n\n select * \n from __dbt__cte__stg_workday__worker_position_organization_history\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n _fivetran_start,\n _fivetran_end,\n _fivetran_active,\n _fivetran_date,\n history_unique_key,\n index,\n date_of_pay_group_assignment,\n primary_business_site,\n is_used_in_change_organization_assignments\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_position_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_position_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_position_history.sql", "unique_id": "model.workday.stg_workday__worker_position_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_position_history"], "alias": "stg_workday__worker_position_history", "checksum": {"name": "sha256", "checksum": "bc97bcda48a57bad3149f45aae7b36daf46dc32061c7bcaa281fbbbcab8375c8"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id`, `source_relation` and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712052884.6801338, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_position_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %}\n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_base')),\n staging_columns=get_worker_position_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as {{ dbt.type_timestamp() }}) as position_effective_date,\n employee_type,\n cast(end_date as {{ dbt.type_timestamp() }}) as position_end_date,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as {{ dbt.type_timestamp() }}) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_position_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_history.sql", "unique_id": "model.workday.stg_workday__worker_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_history"], "alias": "stg_workday__worker_history", "checksum": {"name": "sha256", "checksum": "d53da2e60d3a239d9d0a6c3cf1b733df3ef3c1671f6432a0c7bad7017eb6ef5c"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id`, `source_relation` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712052884.678474, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_base')),\n staging_columns=get_worker_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as {{ dbt.type_timestamp() }}) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "nodes": ["model.workday.stg_workday__worker_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__personal_information_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__personal_information_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__personal_information_history.sql", "unique_id": "model.workday.stg_workday__personal_information_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__personal_information_history"], "alias": "stg_workday__personal_information_history", "checksum": {"name": "sha256", "checksum": "f5f3d7da4818c5381dfcd37b1ae3896f7a3b4c4f963aeb8035eb2866579c982e"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id`, `source_relation` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712052884.675947, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__personal_information_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_base')),\n staging_columns=get_personal_information_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "nodes": ["model.workday.stg_workday__personal_information_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__personal_information_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_position_organization_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_position_organization_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_position_organization_history.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_position_organization_history"], "alias": "stg_workday__worker_position_organization_history", "checksum": {"name": "sha256", "checksum": "bafdee6a223a9eb9a1c8d8272ff66de3a7c34d74682ef3613569c9b80a297f6c"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id`, `position_id`, `organization_id`, `source_relation`, and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712052884.680804, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_organization_base')),\n staging_columns=get_worker_position_organization_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'organization_id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_organization_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_position_organization_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__employee_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/intermediate/int_workday__employee_history.sql", "original_file_path": "models/workday_history/intermediate/int_workday__employee_history.sql", "unique_id": "model.workday.int_workday__employee_history", "fqn": ["workday", "workday_history", "intermediate", "int_workday__employee_history"], "alias": "int_workday__employee_history", "checksum": {"name": "sha256", "checksum": "5c18f885ead273db1df9a2203e804797db6e3cfcb3f0e3554b6f6309ef440998"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "view", "enabled": true}, "created_at": 1712052883.464845, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith worker_history as (\n\n select *\n from {{ ref('stg_workday__worker_history') }}\n),\n\nworker_position_history as (\n\n select *\n from {{ ref('stg_workday__worker_position_history') }}\n),\n\npersonal_information_history as (\n\n select *\n from {{ ref('stg_workday__personal_information_history') }}\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead({{ dbt.dateadd('microsecond', -1, '_fivetran_start') }} ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as {{ dbt.type_timestamp() }}),\n cast('9999-12-31 23:59:59.999000' as {{ dbt.type_timestamp() }})) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select {{ dbt_utils.generate_surrogate_key(['worker_id', 'source_relation', 'position_id', 'position_start_date']) }} as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select {{ dbt_utils.generate_surrogate_key(['employee_id', '_fivetran_date']) }} as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}, {"name": "stg_workday__worker_position_history", "package": null, "version": null}, {"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history", "model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/intermediate/int_workday__employee_history.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n), worker_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_history\n),\n\nworker_position_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_history\n),\n\npersonal_information_history as (\n\n select *\n from __dbt__cte__stg_workday__personal_information_history\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select md5(cast(coalesce(cast(employee_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_position_enriched": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_position_enriched", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_position_enriched.sql", "original_file_path": "models/intermediate/int_workday__worker_position_enriched.sql", "unique_id": "model.workday.int_workday__worker_position_enriched", "fqn": ["workday", "intermediate", "int_workday__worker_position_enriched"], "alias": "int_workday__worker_position_enriched", "checksum": {"name": "sha256", "checksum": "0bcb8eaaab77feebef76105a810b2f955a424dab91401003170763a691f1bc6d"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712052883.471843, "relation_name": null, "raw_code": "with worker_position_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker_position') }}\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_position_enriched.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__personal_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__personal_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__personal_details.sql", "original_file_path": "models/intermediate/int_workday__personal_details.sql", "unique_id": "model.workday.int_workday__personal_details", "fqn": ["workday", "intermediate", "int_workday__personal_details"], "alias": "int_workday__personal_details", "checksum": {"name": "sha256", "checksum": "594516db9541d923dcc1958d6ed5747fb91aee48aaa01e0acf8fcbd2fb1a8950"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712052883.47624, "relation_name": null, "raw_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from {{ ref('stg_workday__personal_information') }}\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from {{ ref('stg_workday__person_name') }}\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from {{ ref('stg_workday__person_contact_email_address') }}\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n {{ fivetran_utils.string_agg('distinct ethnicity_code', \"', '\" ) }} as ethnicity_codes\n from {{ ref('stg_workday__personal_information_ethnicity') }}\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from {{ ref('stg_workday__military_service') }}\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}, {"name": "stg_workday__person_name", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}, {"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.workday.stg_workday__personal_information", "model.workday.stg_workday__person_name", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__personal_information_ethnicity", "model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__personal_details.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_details.sql", "original_file_path": "models/intermediate/int_workday__worker_details.sql", "unique_id": "model.workday.int_workday__worker_details", "fqn": ["workday", "intermediate", "int_workday__worker_details"], "alias": "int_workday__worker_details", "checksum": {"name": "sha256", "checksum": "6004df52c6e8acb2f9eb07f0e02e5fb9f694a9f8c3cb3d129916e686039ffd7a"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712052883.480088, "relation_name": null, "raw_code": "with worker_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker') }}\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then {{ dbt.datediff('hire_date', 'current_date', 'day') }}\n else {{ dbt.datediff('hire_date', 'termination_date', 'day') }}\n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_details.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_employee_enhanced": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_employee_enhanced", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_employee_enhanced.sql", "original_file_path": "models/intermediate/int_workday__worker_employee_enhanced.sql", "unique_id": "model.workday.int_workday__worker_employee_enhanced", "fqn": ["workday", "intermediate", "int_workday__worker_employee_enhanced"], "alias": "int_workday__worker_employee_enhanced", "checksum": {"name": "sha256", "checksum": "b304988457480f06f3bbc052fb27d7d6af37592d243606c4acf783558786aa1d"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712052883.4844449, "relation_name": null, "raw_code": "with int_worker_base as (\n\n select * \n from {{ ref('int_workday__worker_details') }} \n),\n\nint_worker_personal_details as (\n\n select * \n from {{ ref('int_workday__personal_details') }} \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from {{ ref('int_workday__worker_position_enriched') }} \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "language": "sql", "refs": [{"name": "int_workday__worker_details", "package": null, "version": null}, {"name": "int_workday__personal_details", "package": null, "version": null}, {"name": "int_workday__worker_position_enriched", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.int_workday__worker_details", "model.workday.int_workday__personal_details", "model.workday.int_workday__worker_position_enriched"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_employee_enhanced.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_details", "sql": " __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n)"}, {"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__personal_details", "sql": " __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n)"}, {"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_position_enriched", "sql": " __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "employee_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__employee_overview_employee_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__employee_overview_employee_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.unique_workday__employee_overview_employee_id.b01e19996c", "fqn": ["workday", "unique_workday__employee_overview_employee_id"], "alias": "unique_workday__employee_overview_employee_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.356127, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/unique_workday__employee_overview_employee_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is not null\ngroup by employee_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "employee_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_overview_employee_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_overview_employee_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "fqn": ["workday", "not_null_workday__employee_overview_employee_id"], "alias": "not_null_workday__employee_overview_employee_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.35758, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__employee_overview_employee_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_overview_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_overview_worker_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "fqn": ["workday", "not_null_workday__employee_overview_worker_id"], "alias": "not_null_workday__employee_overview_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.358596, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__employee_overview_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__job_overview_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__job_overview_job_profile_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "fqn": ["workday", "not_null_workday__job_overview_job_profile_id"], "alias": "not_null_workday__job_overview_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.359797, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__job_overview_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656"}, "created_at": 1712052884.3607838, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656\") }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.not_null_workday__position_overview_position_id.603beb3f22": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__position_overview_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__position_overview_position_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "fqn": ["workday", "not_null_workday__position_overview_position_id"], "alias": "not_null_workday__position_overview_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.369046, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__position_overview_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e"}, "created_at": 1712052884.371072, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e\") }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "fqn": ["workday", "not_null_workday__organization_overview_organization_id"], "alias": "not_null_workday__organization_overview_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.374027, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_role_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "fqn": ["workday", "not_null_workday__organization_overview_organization_role_id"], "alias": "not_null_workday__organization_overview_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.3753788, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1"}, "created_at": 1712052884.376631, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1\") }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "fqn": ["workday", "staging", "not_null_stg_workday__job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.540131, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1"}, "created_at": 1712052884.5414422, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id\n from __dbt__cte__stg_workday__job_profile\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_family_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.5446131, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.545612, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id"], "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378"}, "created_at": 1712052884.546679, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from __dbt__cte__stg_workday__job_family_job_profile\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.5496309, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id"], "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd"}, "created_at": 1712052884.5507011, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id\n from __dbt__cte__stg_workday__job_family\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_group_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.5535932, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af"}, "created_at": 1712052884.554666, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4"}, "created_at": 1712052884.555867, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from __dbt__cte__stg_workday__job_family_job_family_group\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_group_job_family_group_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_family_group_job_family_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.559603, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_group_job_family_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_group\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5"}, "created_at": 1712052884.560756, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_group_id\n from __dbt__cte__stg_workday__job_family_group\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_id"], "alias": "not_null_stg_workday__organization_role_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.5639732, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_role_id"], "alias": "not_null_stg_workday__organization_role_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.5650702, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_role_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id"], "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908"}, "created_at": 1712052884.566216, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from __dbt__cte__stg_workday__organization_role\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_worker_code", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_worker_code", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_worker_code"], "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda"}, "created_at": 1712052884.568921, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_worker_code\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_worker_code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_worker_code", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_id"], "alias": "not_null_stg_workday__organization_role_worker_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.569878, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_role_id"], "alias": "not_null_stg_workday__organization_role_worker_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.570816, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select role_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "role_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_worker_code", "organization_id", "role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id"], "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a"}, "created_at": 1712052884.571948, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from __dbt__cte__stg_workday__organization_role_worker\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_job_family_id"], "alias": "not_null_stg_workday__organization_job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.5744379, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_organization_id"], "alias": "not_null_stg_workday__organization_job_family_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.575379, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id"], "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456"}, "created_at": 1712052884.57679, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from __dbt__cte__stg_workday__organization_job_family\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_organization_id"], "alias": "not_null_stg_workday__organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.579913, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id"], "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5"}, "created_at": 1712052884.581078, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id\n from __dbt__cte__stg_workday__organization\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_organization_id"], "alias": "not_null_stg_workday__position_organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.583554, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_position_id"], "alias": "not_null_stg_workday__position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.584756, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id"], "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc"}, "created_at": 1712052884.585693, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from __dbt__cte__stg_workday__position_organization\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "fqn": ["workday", "staging", "not_null_stg_workday__position_position_id"], "alias": "not_null_stg_workday__position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.58898, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32"}, "created_at": 1712052884.5900958, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32\") }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id\n from __dbt__cte__stg_workday__position\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_job_profile_id"], "alias": "not_null_stg_workday__position_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.592927, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_position_id"], "alias": "not_null_stg_workday__position_job_profile_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.5941162, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id"], "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62"}, "created_at": 1712052884.595105, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from __dbt__cte__stg_workday__position_job_profile\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "fqn": ["workday", "staging", "not_null_stg_workday__worker_worker_id"], "alias": "not_null_stg_workday__worker_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.598243, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33"}, "created_at": 1712052884.599212, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__worker\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_worker_id"], "alias": "not_null_stg_workday__personal_information_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.6018372, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13"}, "created_at": 1712052884.60284, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__personal_information\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_worker_id"], "alias": "not_null_stg_workday__person_name_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.605418, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_name\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_name_type", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_person_name_type", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_person_name_type.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_person_name_type"], "alias": "not_null_stg_workday__person_name_person_name_type", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.606425, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_person_name_type.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_name_type\nfrom __dbt__cte__stg_workday__person_name\nwhere person_name_type is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_name_type", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_name_type"], "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type"], "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574"}, "created_at": 1712052884.6077929, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from __dbt__cte__stg_workday__person_name\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_worker_id"], "alias": "not_null_stg_workday__personal_information_ethnicity_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.611412, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ethnicity_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_ethnicity_id"], "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5"}, "created_at": 1712052884.612482, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select ethnicity_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere ethnicity_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ethnicity_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "ethnicity_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id"], "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5"}, "created_at": 1712052884.6136472, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__military_service_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__military_service_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "fqn": ["workday", "staging", "not_null_stg_workday__military_service_worker_id"], "alias": "not_null_stg_workday__military_service_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.617713, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__military_service_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__military_service\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9"}, "created_at": 1712052884.618965, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9\") }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__military_service\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_contact_email_address_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id"], "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08"}, "created_at": 1712052884.624084, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_contact_email_address_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere person_contact_email_address_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_contact_email_address_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_contact_email_address_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_worker_id"], "alias": "not_null_stg_workday__person_contact_email_address_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.626574, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_contact_email_address_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_contact_email_address_id"], "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id"], "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb"}, "created_at": 1712052884.628292, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from __dbt__cte__stg_workday__person_contact_email_address\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_position_id"], "alias": "not_null_stg_workday__worker_position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.632622, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_worker_id"], "alias": "not_null_stg_workday__worker_position_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.633754, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7"}, "created_at": 1712052884.635325, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from __dbt__cte__stg_workday__worker_position\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "leave_request_event_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_leave_request_event_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_leave_request_event_id"], "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308"}, "created_at": 1712052884.639499, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select leave_request_event_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere leave_request_event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "leave_request_event_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_leave_status_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_worker_id"], "alias": "not_null_stg_workday__worker_leave_status_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.640613, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_leave_status_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "leave_request_event_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id"], "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f"}, "created_at": 1712052884.6416159, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from __dbt__cte__stg_workday__worker_leave_status\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_position_id"], "alias": "not_null_stg_workday__worker_position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.6451461, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_worker_id"], "alias": "not_null_stg_workday__worker_position_organization_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.6464121, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_organization_id"], "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23"}, "created_at": 1712052884.647498, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "position_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id"], "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926"}, "created_at": 1712052884.648679, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from __dbt__cte__stg_workday__worker_position_organization\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "employee_day_id", "model": "{{ get_where_subquery(ref('workday__employee_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__employee_daily_history_employee_day_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__employee_daily_history_employee_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269", "fqn": ["workday", "workday_history", "unique_workday__employee_daily_history_employee_day_id"], "alias": "unique_workday__employee_daily_history_employee_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.662912, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__employee_daily_history_employee_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is not null\ngroup by employee_day_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_day_id", "file_key_name": "models.workday__employee_daily_history", "attached_node": "model.workday.workday__employee_daily_history"}, "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "employee_day_id", "model": "{{ get_where_subquery(ref('workday__employee_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_daily_history_employee_day_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_daily_history_employee_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "fqn": ["workday", "workday_history", "not_null_workday__employee_daily_history_employee_day_id"], "alias": "not_null_workday__employee_daily_history_employee_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.665602, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__employee_daily_history_employee_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_day_id", "file_key_name": "models.workday__employee_daily_history", "attached_node": "model.workday.workday__employee_daily_history"}, "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__monthly_summary_metrics_month", "resource_type": "test", "package_name": "workday", "path": "unique_workday__monthly_summary_metrics_month.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab", "fqn": ["workday", "workday_history", "unique_workday__monthly_summary_metrics_month"], "alias": "unique_workday__monthly_summary_metrics_month", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.666923, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__monthly_summary"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__monthly_summary_metrics_month.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n metrics_month as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is not null\ngroup by metrics_month\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metrics_month", "file_key_name": "models.workday__monthly_summary", "attached_node": "model.workday.workday__monthly_summary"}, "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__monthly_summary_metrics_month", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__monthly_summary_metrics_month.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "fqn": ["workday", "workday_history", "not_null_workday__monthly_summary_metrics_month"], "alias": "not_null_workday__monthly_summary_metrics_month", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.668053, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__monthly_summary"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__monthly_summary_metrics_month.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metrics_month\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metrics_month", "file_key_name": "models.workday__monthly_summary", "attached_node": "model.workday.workday__monthly_summary"}, "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "wpo_day_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__worker_position_org_daily_history_wpo_day_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__worker_position_org_daily_history_wpo_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21", "fqn": ["workday", "workday_history", "unique_workday__worker_position_org_daily_history_wpo_day_id"], "alias": "unique_workday__worker_position_org_daily_history_wpo_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.669326, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__worker_position_org_daily_history_wpo_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n wpo_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is not null\ngroup by wpo_day_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "wpo_day_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "wpo_day_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_wpo_day_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_wpo_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_wpo_day_id"], "alias": "not_null_workday__worker_position_org_daily_history_wpo_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.6703591, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_wpo_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect wpo_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "wpo_day_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_worker_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_worker_id"], "alias": "not_null_workday__worker_position_org_daily_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.6716301, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_position_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_position_id"], "alias": "not_null_workday__worker_position_org_daily_history_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.672597, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_organization_id"], "alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632"}, "created_at": 1712052884.673752, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632\") }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__personal_information_history_history_unique_key"], "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2"}, "created_at": 1712052884.681522, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__personal_information_history_history_unique_key"], "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3"}, "created_at": 1712052884.6829271, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__personal_information_history_worker_id"], "alias": "not_null_stg_workday__personal_information_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.683976, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__personal_information_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_history_history_unique_key"], "alias": "unique_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.684948, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_history_history_unique_key"], "alias": "not_null_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.686103, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_history_worker_id"], "alias": "not_null_stg_workday__worker_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.6873221, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_position_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_position_history_history_unique_key"], "alias": "unique_stg_workday__worker_position_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.688384, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_position_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9"}, "created_at": 1712052884.689348, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_worker_id"], "alias": "not_null_stg_workday__worker_position_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.6904461, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_position_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_position_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_position_id"], "alias": "not_null_stg_workday__worker_position_history_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.6917188, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_position_history_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22"}, "created_at": 1712052884.6926742, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6"}, "created_at": 1712052884.693603, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_worker_id"], "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a"}, "created_at": 1712052884.694519, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_position_id"], "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441"}, "created_at": 1712052884.69539, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_organization_id"], "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0"}, "created_at": 1712052884.6964211, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}}, "sources": {"source.workday.workday.job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_profile", "fqn": ["workday", "staging", "workday", "job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"id": {"name": "id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_job_code_in_name": {"name": "include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "public_job": {"name": "public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "title": {"name": "title", "description": "Title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "created_at": 1712052884.69876}, "source.workday.workday.job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_profile", "fqn": ["workday", "staging", "workday", "job_family_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "created_at": 1712052884.698892}, "source.workday.workday.job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family", "fqn": ["workday", "staging", "workday", "job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "created_at": 1712052884.698986}, "source.workday.workday.job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_family_group", "fqn": ["workday", "staging", "workday", "job_family_job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "created_at": 1712052884.699065}, "source.workday.workday.job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_group", "fqn": ["workday", "staging", "workday", "job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"id": {"name": "id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "created_at": 1712052884.6991491}, "source.workday.workday.organization_role": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role", "fqn": ["workday", "staging", "workday", "organization_role"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "created_at": 1712052884.699231}, "source.workday.workday.organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role_worker", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role_worker", "fqn": ["workday", "staging", "workday", "organization_role_worker"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_worker_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"associated_worker_id": {"name": "associated_worker_id", "description": "Identifier for the worker associated with the organization role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "created_at": 1712052884.69931}, "source.workday.workday.organization_job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_job_family", "fqn": ["workday", "staging", "workday", "organization_job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "created_at": 1712052884.6993878}, "source.workday.workday.organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization", "fqn": ["workday", "staging", "workday", "organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Identifier for the organization.", "columns": {"id": {"name": "id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_manager_in_name": {"name": "include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_organization_code_in_name": {"name": "include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location": {"name": "location", "description": "Location associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sub_type": {"name": "sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "created_at": 1712052884.6995049}, "source.workday.workday.position_organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_organization", "fqn": ["workday", "staging", "workday", "position_organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "created_at": 1712052884.699583}, "source.workday.workday.position": {"database": "postgres", "schema": "workday_integration_tests", "name": "position", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position", "fqn": ["workday", "staging", "workday", "position"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_eligible": {"name": "academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_overlap": {"name": "available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_recruiting": {"name": "available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "created_at": 1712052884.699698}, "source.workday.workday.position_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_job_profile", "fqn": ["workday", "staging", "workday", "position_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "created_at": 1712052884.699919}, "source.workday.workday.worker_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_history", "fqn": ["workday", "staging", "workday", "worker_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"id": {"name": "id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "has_international_assignment": {"name": "has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_rescinded": {"name": "hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "not_returning": {"name": "not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regrettable_termination": {"name": "regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rehire": {"name": "rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retired": {"name": "retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "return_unknown": {"name": "return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "terminated": {"name": "terminated", "description": "Flag indicating whether the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_involuntary": {"name": "termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "created_at": 1712052884.700096}, "source.workday.workday.personal_information_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_history", "fqn": ["workday", "staging", "workday", "personal_information_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The personal information associated with each worker.", "columns": {"id": {"name": "id", "description": "The identifier for each personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hispanic_or_latino": {"name": "hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_hukou": {"name": "local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tobacco_use": {"name": "tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "created_at": 1712052884.700211}, "source.workday.workday.person_name": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_name", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_name", "fqn": ["workday", "staging", "workday", "person_name"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_name_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the name information for an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "created_at": 1712052884.700325}, "source.workday.workday.personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_ethnicity", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_ethnicity", "fqn": ["workday", "staging", "workday", "personal_information_ethnicity"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_ethnicity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "created_at": 1712052884.7004008}, "source.workday.workday.military_service": {"database": "postgres", "schema": "workday_integration_tests", "name": "military_service", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.military_service", "fqn": ["workday", "staging", "workday", "military_service"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_military_service_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about an individual's military service in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "created_at": 1712052884.70051}, "source.workday.workday.person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_contact_email_address", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_contact_email_address", "fqn": ["workday", "staging", "workday", "person_contact_email_address"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_contact_email_address_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "created_at": 1712052884.700595}, "source.workday.workday.worker_position_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_history", "fqn": ["workday", "staging", "workday", "worker_position_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the positions held by workers in the Workday system", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location": {"name": "business_site_summary_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "exclude_from_head_count": {"name": "exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_exempt": {"name": "job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_paid_fte": {"name": "specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_working_fte": {"name": "specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "created_at": 1712052884.700741}, "source.workday.workday.worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_leave_status", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_leave_status", "fqn": ["workday", "staging", "workday", "worker_leave_status"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_leave_status_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the leave status of workers in the Workday system.", "columns": {"leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_effect": {"name": "benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caesarean_section_birth": {"name": "caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "multiple_child_indicator": {"name": "multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_leave": {"name": "on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_effect": {"name": "payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "single_parent_indicator": {"name": "single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stock_vesting_effect": {"name": "stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_related": {"name": "work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "created_at": 1712052884.700865}, "source.workday.workday.worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_organization_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_organization_history", "fqn": ["workday", "staging", "workday", "worker_position_organization_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_organization_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "created_at": 1712052884.700948}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.109657, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1098921, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1100001, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.110102, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1102028, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n when 'm' then 'MATERIALIZED VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1116438, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.112082, "supported_languages": null}, "macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1127622, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.11292, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.120942, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.121574, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.121921, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.12223, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1226728, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1231549, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.123327, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.123643, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.123994, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.124875, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1251042, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1254249, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1256802, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.12607, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.126274, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1268091, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.127, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1271, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1272728, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.127397, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.127753, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.128505, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.128672, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.129123, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.129287, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.129451, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.13039, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }};\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.130857, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1311328, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.131495, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.131625, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.132417, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1325839, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1327128, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.133219, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1333811, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.133575, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.134113, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.137005, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.137152, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1376069, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1379662, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.138911, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.139086, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.139213, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1393359, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.139466, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.139919, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.14024, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.140712, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.141122, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1413739, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1444108, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.144565, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.144774, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1455529, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.145762, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.146004, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.147441, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1753879, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.178955, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.179234, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.179397, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.179481, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.179617, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.179724, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1799092, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.180743, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.180921, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.181157, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.181622, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.187168, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1895602, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1899688, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1902452, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.190571, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.190909, "supported_languages": null}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.195659, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.196088, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1963289, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1974988, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.197718, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.198314, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2009559, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.203804, "supported_languages": ["sql"]}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2052631, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.205767, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.206368, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2065852, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2072499, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.212914, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.214388, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.214635, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2155552, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.215801, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2164102, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.217016, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.218017, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.218247, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.218421, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.218703, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.218977, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.219253, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.219425, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2196648, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.219838, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.219975, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.220242, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.224994, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2300942, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.231248, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.232573, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2335749, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.233991, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.234158, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2344708, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation }} clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2346072, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {% if target_relation and defer_relation and target_relation == defer_relation %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation) }}\n {% else %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endif %}\n\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.239532, "supported_languages": ["sql"]}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2428522, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2476318, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.24855, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.248815, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.249469, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.249841, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.250008, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.250155, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.25027, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.250428, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.250544, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.250992, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2511842, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.252405, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.252904, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.253344, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.253885, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.254136, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.254406, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.254782, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.255018, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2556648, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.256006, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.256178, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.256361, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.256541, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.257298, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation_type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.258501, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2588742, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.259111, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.259403, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.259595, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.260226, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.260624, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2608151, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.261077, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.261395, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.261645, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.262086, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2625148, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.262836, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.263105, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{ return(adapter.dispatch('drop_materialized_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.26337, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.263486, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.263751, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.263894, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.264181, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.264408, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.264659, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.264794, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.265367, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2655418, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.265811, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.265949, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.266212, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2663438, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.267262, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.267373, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.267853, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.268, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.268116, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.269322, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2696629, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2699788, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{ return(adapter.dispatch('drop_table', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.270227, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2703218, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.270562, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.270692, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2709298, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.271062, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2718048, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.27197, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.272345, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2729511, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2735832, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.273843, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.274027, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{ return(adapter.dispatch('drop_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.274276, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2743711, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.275119, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.275251, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2763278, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.27651, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2767081, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.276951, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2770822, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.277442, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.277587, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2777479, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2781298, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2784462, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.278705, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.278922, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.279423, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.280718, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.281237, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.281493, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.283202, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.284618, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.285362, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.285592, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.285839, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.285912, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.286581, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.287136, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.287359, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.287725, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.288039, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.288186, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.288416, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.288594, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.289553, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.289956, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2901309, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.290584, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.290821, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.290915, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.291216, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2913668, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2915661, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.291948, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.292181, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.292307, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2925599, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.292681, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.293386, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2938461, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.294208, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.29437, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.294677, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.294819, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.295063, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.295228, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.295462, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.295638, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.295905, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2960372, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.296353, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.296504, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.296742, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.296931, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.297778, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2979252, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.298073, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.298215, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.298369, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.298508, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2986581, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.298831, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.298978, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.299117, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2992709, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2994401, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.299602, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.299735, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.299995, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.300119, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.30034, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.300438, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.300828, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.301072, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.301209, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.301674, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.301824, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.302022, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.302273, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.302392, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.302735, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.302957, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.303211, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.303336, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3036659, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.303831, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.30398, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.304136, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.304563, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.304696, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3048189, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.304908, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.30512, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3051898, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.305341, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3054872, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.306218, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.306347, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.306491, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.306859, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3070312, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.307154, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3074, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.307573, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.309489, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.309651, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3098528, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.310123, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3103402, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3106189, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3107798, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3110201, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3112419, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.311729, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.311935, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3120608, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.312439, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.312802, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.313055, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3132532, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.31475, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3148532, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.315007, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.315178, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.315574, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3157701, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.315872, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.31609, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.316287, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.316493, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.316751, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.316959, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.317715, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3179572, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3182201, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.318443, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3195992, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header -%}\n {{ sql_header }}\n {%- endif -%}\n {%- if limit is not none -%}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n {%- else -%}\n {{ compiled_code }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3201191, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "{% macro get_limit_subquery_sql(sql, limit) %}\n {{ adapter.dispatch('get_limit_subquery_sql', 'dbt')(sql, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3203032, "supported_languages": null}, "macro.dbt.default__get_limit_subquery_sql": {"name": "default__get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_subquery_sql", "macro_sql": "{% macro default__get_limit_subquery_sql(sql, limit) %}\n select *\n from (\n {{ sql }}\n ) as model_limit_subq\n limit {{ limit }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.320431, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.321032, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.321205, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3213902, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.321544, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.321794, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.322285, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.324775, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.325043, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.325252, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.325632, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.325844, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.325997, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.326161, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.326383, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.326574, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.326856, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3270311, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.327181, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.327331, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.327578, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3278248, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.328001, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.330055, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.330209, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.330494, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.330692, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3308768, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3310442, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n cast(null as {{ col['data_type'] }}) as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3323011, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.332696, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3329, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3332381, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.333457, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.334013, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3342552, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.33497, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3364758, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.336616, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.337355, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.337717, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.338235, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3386612, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.338728, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.339185, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.339408, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.339692, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3399749, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3403509, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3409479, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.341404, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3421052, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.342431, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.34273, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.343682, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3445919, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3453598, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.346307, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.346904, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3472042, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.347834, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.348587, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.349, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.349567, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3503098, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.350776, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.351271, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.351739, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.352341, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n where {{ column_name }} is not null\n limit 1\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3530838, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.353635, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.354211, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.354719, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3550248, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.355561, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.355936, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.356609, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.357424, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3582761, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.359092, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3598819, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.360747, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.361231, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3615181, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.364703, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.366318, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.366616, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3667681, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3671849, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.367436, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3676128, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.367841, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.367993, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3685691, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3693051, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.369916, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.370446, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.370649, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.370966, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.371305, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.371844, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3721988, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.372546, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.373204, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.374107, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3748999, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3752692, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.375436, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.375903, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.376483, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3772328, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.377592, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.37785, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3789282, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3804579, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3816042, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3830569, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.383338, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.38346, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.386105, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.389347, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.389632, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3898602, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.390563, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.390768, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.390955, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.391128, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3912802, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3914418, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.391806, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.392034, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3923829, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.392879, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.393182, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.393475, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.394909, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.395241, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.396008, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3965209, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.397578, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.399155, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.400128, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4008808, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4013, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.401946, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.402617, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.403024, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.40319, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.403529, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.404053, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.404476, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.405051, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.405503, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.405626, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4057522, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.405874, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.406313, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.407069, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.408032, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.408409, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.409002, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4097369, "supported_languages": null}, "macro.workday.get_person_contact_email_address_columns": {"name": "get_person_contact_email_address_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_contact_email_address_columns.sql", "original_file_path": "macros/get_person_contact_email_address_columns.sql", "unique_id": "macro.workday.get_person_contact_email_address_columns", "macro_sql": "{% macro get_person_contact_email_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_address\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_comment\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4105852, "supported_languages": null}, "macro.workday.get_military_service_columns": {"name": "get_military_service_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_military_service_columns.sql", "original_file_path": "macros/get_military_service_columns.sql", "unique_id": "macro.workday.get_military_service_columns", "macro_sql": "{% macro get_military_service_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"discharge_date\", \"datatype\": \"date\"},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"rank\", \"datatype\": dbt.type_string()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status_begin_date\", \"datatype\": \"date\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4118469, "supported_languages": null}, "macro.workday.get_position_job_profile_columns": {"name": "get_position_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_job_profile_columns.sql", "original_file_path": "macros/get_position_job_profile_columns.sql", "unique_id": "macro.workday.get_position_job_profile_columns", "macro_sql": "{% macro get_position_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4129589, "supported_languages": null}, "macro.workday.get_job_family_job_family_group_columns": {"name": "get_job_family_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_job_family_group_columns", "macro_sql": "{% macro get_job_family_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.413492, "supported_languages": null}, "macro.workday.get_worker_history_columns": {"name": "get_worker_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_history_columns.sql", "original_file_path": "macros/get_worker_history_columns.sql", "unique_id": "macro.workday.get_worker_history_columns", "macro_sql": "{% macro get_worker_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_date\", \"datatype\": \"date\"},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"active_status_date\", \"datatype\": \"date\"},\n {\"name\": \"annual_currency_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_service_date\", \"datatype\": \"date\"},\n {\"name\": \"company_service_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_effective_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"continuous_service_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_assignment_details\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_end_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_frequency_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_pay_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"contract_vendor_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_entered_workforce\", \"datatype\": \"date\"},\n {\"name\": \"days_unemployed\", \"datatype\": dbt.type_float()},\n {\"name\": \"eligible_for_hire\", \"datatype\": dbt.type_string()},\n {\"name\": \"eligible_for_rehire_on_latest_termination\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_date_of_return\", \"datatype\": \"date\"},\n {\"name\": \"expected_retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"has_international_assignment\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hire_date\", \"datatype\": \"date\"},\n {\"name\": \"hire_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"hire_rescinded\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_datefor_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"local_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"months_continuous_prior_employment\", \"datatype\": dbt.type_float()},\n {\"name\": \"not_returning\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"original_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"pay_group_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"primary_termination_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"probation_end_date\", \"datatype\": \"date\"},\n {\"name\": \"probation_start_date\", \"datatype\": \"date\"},\n {\"name\": \"reason_reference_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regrettable_termination\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"rehire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"resignation_date\", \"datatype\": \"date\"},\n {\"name\": \"retired\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"retirement_eligibility_date\", \"datatype\": \"date\"},\n {\"name\": \"return_unknown\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"seniority_date\", \"datatype\": \"date\"},\n {\"name\": \"severance_date\", \"datatype\": \"date\"},\n {\"name\": \"terminated\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_date\", \"datatype\": \"date\"},\n {\"name\": \"termination_involuntary\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"time_off_service_date\", \"datatype\": \"date\"},\n {\"name\": \"universal_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vesting_date\", \"datatype\": \"date\"},\n {\"name\": \"worker_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.425184, "supported_languages": null}, "macro.workday.get_job_family_group_columns": {"name": "get_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_group_columns", "macro_sql": "{% macro get_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_group_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.426071, "supported_languages": null}, "macro.workday.get_worker_leave_status_columns": {"name": "get_worker_leave_status_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_leave_status_columns.sql", "original_file_path": "macros/get_worker_leave_status_columns.sql", "unique_id": "macro.workday.get_worker_leave_status_columns", "macro_sql": "{% macro get_worker_leave_status_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"adoption_notification_date\", \"datatype\": \"date\"},\n {\"name\": \"adoption_placement_date\", \"datatype\": \"date\"},\n {\"name\": \"age_of_dependent\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"caesarean_section_birth\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"child_birth_date\", \"datatype\": \"date\"},\n {\"name\": \"child_sdate_of_death\", \"datatype\": \"date\"},\n {\"name\": \"continuous_service_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"date_baby_arrived_home_from_hospital\", \"datatype\": \"date\"},\n {\"name\": \"date_child_entered_country\", \"datatype\": \"date\"},\n {\"name\": \"date_of_recall\", \"datatype\": \"date\"},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimated_leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_due_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"last_date_for_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_entitlement_override\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"leave_of_absence_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_request_event_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_return_event\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_start_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_status_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_type_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_during_leave\", \"datatype\": dbt.type_string()},\n {\"name\": \"multiple_child_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"number_of_babies_adopted_children\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_child_dependents\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_births\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_maternity_leaves\", \"datatype\": dbt.type_float()},\n {\"name\": \"on_leave\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"paid_time_off_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"payroll_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"single_parent_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"social_security_disability_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"stock_vesting_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"stop_payment_date\", \"datatype\": \"date\"},\n {\"name\": \"week_of_confinement\", \"datatype\": \"date\"},\n {\"name\": \"work_related\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.431276, "supported_languages": null}, "macro.workday.get_organization_role_worker_columns": {"name": "get_organization_role_worker_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_worker_columns.sql", "original_file_path": "macros/get_organization_role_worker_columns.sql", "unique_id": "macro.workday.get_organization_role_worker_columns", "macro_sql": "{% macro get_organization_role_worker_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"associated_worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.431947, "supported_languages": null}, "macro.workday.get_job_profile_columns": {"name": "get_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_profile_columns.sql", "original_file_path": "macros/get_job_profile_columns.sql", "unique_id": "macro.workday.get_job_profile_columns", "macro_sql": "{% macro get_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_job_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"public_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"referral_payment_plan\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_membership_requirement\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_study_award_source_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_study_requirement_option_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4345589, "supported_languages": null}, "macro.workday.get_organization_role_columns": {"name": "get_organization_role_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_columns.sql", "original_file_path": "macros/get_organization_role_columns.sql", "unique_id": "macro.workday.get_organization_role_columns", "macro_sql": "{% macro get_organization_role_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_role_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.435304, "supported_languages": null}, "macro.workday.get_person_name_columns": {"name": "get_person_name_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_name_columns.sql", "original_file_path": "macros/get_person_name_columns.sql", "unique_id": "macro.workday.get_person_name_columns", "macro_sql": "{% macro get_person_name_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"additional_name_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name_singapore_malaysia\", \"datatype\": dbt.type_string()},\n {\"name\": \"hereditary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"honorary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_salutation\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"professional_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"religious_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"royal_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tertiary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4389188, "supported_languages": null}, "macro.workday.get_job_family_job_profile_columns": {"name": "get_job_family_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_profile_columns.sql", "original_file_path": "macros/get_job_family_job_profile_columns.sql", "unique_id": "macro.workday.get_job_family_job_profile_columns", "macro_sql": "{% macro get_job_family_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.43952, "supported_languages": null}, "macro.workday.get_worker_position_history_columns": {"name": "get_worker_position_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_history_columns.sql", "original_file_path": "macros/get_worker_position_history_columns.sql", "unique_id": "macro.workday.get_worker_position_history_columns", "macro_sql": "{% macro get_worker_position_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_pay_setup_data_annual_work_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_work_percent_of_year\", \"datatype\": dbt.type_float()},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"business_site_summary_display_language\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_local\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"business_site_summary_time_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"default_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"employee_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"exclude_from_head_count\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"expected_assignment_end_date\", \"datatype\": \"date\"},\n {\"name\": \"external_employee\", \"datatype\": dbt.type_string()},\n {\"name\": \"federal_withholding_fein\", \"datatype\": dbt.type_string()},\n {\"name\": \"frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_time_equivalent_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"headcount_restriction_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"host_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"international_assignment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_primary_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"paid_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"payroll_entity\", \"datatype\": dbt.type_string()},\n {\"name\": \"payroll_file_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regular_paid_equivalent_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"specify_paid_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"specify_working_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"start_international_assignment_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_hours_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_space\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_hours_profile_classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"working_time_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.446857, "supported_languages": null}, "macro.workday.get_personal_information_ethnicity_columns": {"name": "get_personal_information_ethnicity_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_ethnicity_columns.sql", "original_file_path": "macros/get_personal_information_ethnicity_columns.sql", "unique_id": "macro.workday.get_personal_information_ethnicity_columns", "macro_sql": "{% macro get_personal_information_ethnicity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ethnicity_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"ethnicity_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.447586, "supported_languages": null}, "macro.workday.get_personal_information_history_columns": {"name": "get_personal_information_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_history_columns.sql", "original_file_path": "macros/get_personal_information_history_columns.sql", "unique_id": "macro.workday.get_personal_information_history_columns", "macro_sql": "{% macro get_personal_information_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"blood_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"citizenship_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_birth\", \"datatype\": \"date\"},\n {\"name\": \"date_of_death\", \"datatype\": \"date\"},\n {\"name\": \"gender\", \"datatype\": dbt.type_string()},\n {\"name\": \"hispanic_or_latino\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hukou_locality\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_subregion\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_medical_exam_date\", \"datatype\": \"date\"},\n {\"name\": \"last_medical_exam_valid_to\", \"datatype\": \"date\"},\n {\"name\": \"local_hukou\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"marital_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"marital_status_date\", \"datatype\": \"date\"},\n {\"name\": \"medical_exam_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"personnel_file_agency\", \"datatype\": dbt.type_string()},\n {\"name\": \"political_affiliation\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"religion\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_benefit\", \"datatype\": dbt.type_string()},\n {\"name\": \"tobacco_use\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4515882, "supported_languages": null}, "macro.workday.get_worker_position_organization_history_columns": {"name": "get_worker_position_organization_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_organization_history_columns.sql", "original_file_path": "macros/get_worker_position_organization_history_columns.sql", "unique_id": "macro.workday.get_worker_position_organization_history_columns", "macro_sql": "{% macro get_worker_position_organization_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_pay_group_assignment\", \"datatype\": \"date\"},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_business_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"used_in_change_organization_assignments\", \"datatype\": dbt.type_boolean()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.452783, "supported_languages": null}, "macro.workday.get_organization_job_family_columns": {"name": "get_organization_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_job_family_columns.sql", "original_file_path": "macros/get_organization_job_family_columns.sql", "unique_id": "macro.workday.get_organization_job_family_columns", "macro_sql": "{% macro get_organization_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.453426, "supported_languages": null}, "macro.workday.get_job_family_columns": {"name": "get_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_columns.sql", "original_file_path": "macros/get_job_family_columns.sql", "unique_id": "macro.workday.get_job_family_columns", "macro_sql": "{% macro get_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4541929, "supported_languages": null}, "macro.workday.get_organization_columns": {"name": "get_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_columns.sql", "original_file_path": "macros/get_organization_columns.sql", "unique_id": "macro.workday.get_organization_columns", "macro_sql": "{% macro get_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"availability_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"external_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"inactive_date\", \"datatype\": \"date\"},\n {\"name\": \"include_manager_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_organization_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"last_updated_date_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"location\", \"datatype\": dbt.type_string()},\n {\"name\": \"manager_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_owner_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"staffing_model\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"superior_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_availability_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_time_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_worker_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"top_level_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"visibility\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.457201, "supported_languages": null}, "macro.workday.get_position_organization_columns": {"name": "get_position_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_organization_columns.sql", "original_file_path": "macros/get_position_organization_columns.sql", "unique_id": "macro.workday.get_position_organization_columns", "macro_sql": "{% macro get_position_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4578922, "supported_languages": null}, "macro.workday.get_position_columns": {"name": "get_position_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_columns.sql", "original_file_path": "macros/get_position_columns.sql", "unique_id": "macro.workday.get_position_columns", "macro_sql": "{% macro get_position_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_eligible\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"availability_date\", \"datatype\": \"date\"},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_overlap\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_recruiting\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"closed\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"compensation_grade_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_package_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_step_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"earliest_overlap_date\", \"datatype\": \"date\"},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_posting_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_time_type_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_amount_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_percent_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"supervisory_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_for_filled_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_type_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.461468, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4619362, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4628549, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4630132, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.463178, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.463329, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4634612, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4636118, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4643579, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.464957, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.466356, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.466608, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.466847, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.467079, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.467312, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4675689, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4678242, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.468141, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.468461, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.468558, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.468651, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.468746, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.469089, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.46985, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.470828, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.471406, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4721699, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4726799, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.472811, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4729338, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.473058, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.473189, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.477002, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.477174, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4773262, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.47747, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4792252, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.480096, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.480233, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4804852, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.48075, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.480872, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4809868, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.481101, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.481216, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.481675, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.482219, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.482688, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.482929, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.48319, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.483467, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.484579, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.488183, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.488657, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.489169, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.490676, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4912481, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4918091, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.491958, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4921, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.492258, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.492407, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4925451, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4932969, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.494528, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.495282, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.495465, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.49561, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.495755, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.495894, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.496054, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.496298, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4963882, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.496475, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4970381, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4981601, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.498325, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4990962, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.502199, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.506788, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.508199, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.508545, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.508694, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.508887, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.509208, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.509312, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.5094159, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.509512, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.50961, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.50986, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.509957, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.510051, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.5104299, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.5107799, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.workday._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_deleted", "block_contents": "Indicates if the record was soft-deleted by Fivetran."}, "doc.workday._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_synced", "block_contents": "Timestamp the record was synced by Fivetran."}, "doc.workday._fivetran_start": {"name": "_fivetran_start", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_start", "block_contents": "Timestamp when the record was first created or modified in the source."}, "doc.workday._fivetran_end": {"name": "_fivetran_end", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_end", "block_contents": "Timestamp marking the end of a record being active."}, "doc.workday._fivetran_date": {"name": "_fivetran_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_date", "block_contents": "Date when the record was first created or modified in the source."}, "doc.workday._fivetran_active": {"name": "_fivetran_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_active", "block_contents": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE."}, "doc.workday.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.source_relation", "block_contents": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "doc.workday.academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_end_date", "block_contents": "The end date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_start_date", "block_contents": "The start date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year", "block_contents": "The work percentage of the year in the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date", "block_contents": "The end date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date", "block_contents": "The start date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_suffix": {"name": "academic_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_suffix", "block_contents": "The academic suffix, if applicable (e.g., PhD, MD)."}, "doc.workday.academic_tenure_date": {"name": "academic_tenure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_date", "block_contents": "Date when academic tenure is achieved."}, "doc.workday.academic_tenure_eligible": {"name": "academic_tenure_eligible", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_eligible", "block_contents": "Flag indicating whether the position is eligible for academic tenure."}, "doc.workday.active": {"name": "active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active", "block_contents": "Flag indicating the current active status of the worker."}, "doc.workday.active_status_date": {"name": "active_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active_status_date", "block_contents": "Date when the active status was last updated."}, "doc.workday.additional_job_description": {"name": "additional_job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_job_description", "block_contents": "Additional details or information about the job."}, "doc.workday.additional_name_type": {"name": "additional_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_name_type", "block_contents": "Additional type or category for the person name."}, "doc.workday.additional_nationality": {"name": "additional_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_nationality", "block_contents": "Additional nationality associated with the individual."}, "doc.workday.adoption_notification_date": {"name": "adoption_notification_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_notification_date", "block_contents": "The date of adoption notification."}, "doc.workday.adoption_placement_date": {"name": "adoption_placement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_placement_date", "block_contents": "The date of adoption placement."}, "doc.workday.age_of_dependent": {"name": "age_of_dependent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.age_of_dependent", "block_contents": "The age of the dependent associated with the leave status."}, "doc.workday.annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_currency", "block_contents": "Currency used for annual compensation summaries."}, "doc.workday.annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_frequency", "block_contents": "Frequency of currency for annual compensation summaries."}, "doc.workday.annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual compensation summaries."}, "doc.workday.annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.annual_summary_currency": {"name": "annual_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_currency", "block_contents": "Currency used for annual summaries."}, "doc.workday.annual_summary_frequency": {"name": "annual_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_frequency", "block_contents": "Frequency of currency for annual summaries."}, "doc.workday.annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual summaries."}, "doc.workday.annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.associated_worker_id": {"name": "associated_worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.associated_worker_id", "block_contents": "Identifier for the worker associated with the organization role."}, "doc.workday.availability_date": {"name": "availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.availability_date", "block_contents": "Date when the organization becomes available."}, "doc.workday.available_for_hire": {"name": "available_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_hire", "block_contents": "Flag indicating whether the organization is available for hiring."}, "doc.workday.available_for_overlap": {"name": "available_for_overlap", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_overlap", "block_contents": "Flag indicating whether the position is available for overlap with other positions."}, "doc.workday.available_for_recruiting": {"name": "available_for_recruiting", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_recruiting", "block_contents": "Flag indicating whether the position is available for recruiting."}, "doc.workday.benefits_effect": {"name": "benefits_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_effect", "block_contents": "The effect of leave on benefits."}, "doc.workday.benefits_service_date": {"name": "benefits_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_service_date", "block_contents": "Date when the worker's benefits service starts."}, "doc.workday.blood_type": {"name": "blood_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.blood_type", "block_contents": "The blood type of the individual."}, "doc.workday.business_site_summary_display_language": {"name": "business_site_summary_display_language", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_display_language", "block_contents": "The display language of the business site summary."}, "doc.workday.business_site_summary_local": {"name": "business_site_summary_local", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_local", "block_contents": "Local information related to the business site summary."}, "doc.workday.business_site_summary_location": {"name": "business_site_summary_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location", "block_contents": "The location of the business site summary."}, "doc.workday.business_site_summary_location_type": {"name": "business_site_summary_location_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location_type", "block_contents": "The type of location for the business site summary."}, "doc.workday.business_site_summary_name": {"name": "business_site_summary_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_name", "block_contents": "The name associated with the business site summary."}, "doc.workday.business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the business site summary."}, "doc.workday.business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_time_profile", "block_contents": "The time profile associated with the business site summary."}, "doc.workday.business_title": {"name": "business_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_title", "block_contents": "The business title associated with the worker position."}, "doc.workday.caesarean_section_birth": {"name": "caesarean_section_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.caesarean_section_birth", "block_contents": "Indicator for Caesarean section birth."}, "doc.workday.child_birth_date": {"name": "child_birth_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_birth_date", "block_contents": "The date of child birth."}, "doc.workday.child_sdate_of_death": {"name": "child_sdate_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_sdate_of_death", "block_contents": "The start date of child death.>"}, "doc.workday.citizenship_status": {"name": "citizenship_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.citizenship_status", "block_contents": "The citizenship status of the individual."}, "doc.workday.city_of_birth": {"name": "city_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth", "block_contents": "The city of birth of the individual."}, "doc.workday.city_of_birth_code": {"name": "city_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth_code", "block_contents": "The city of birth code of the individual."}, "doc.workday.closed": {"name": "closed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.closed", "block_contents": "Flag indicating whether the position is closed."}, "doc.workday.code": {"name": "code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.code", "block_contents": "Code assigned to the organization for reference and categorization."}, "doc.workday.company_service_date": {"name": "company_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.company_service_date", "block_contents": "Date when the worker's service with the company started."}, "doc.workday.compensation_effective_date": {"name": "compensation_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_effective_date", "block_contents": "Effective date when changes to the worker's compensation take effect."}, "doc.workday.compensation_grade_code": {"name": "compensation_grade_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_code", "block_contents": "Code associated with the compensation grade of the position."}, "doc.workday.compensation_grade_id": {"name": "compensation_grade_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_id", "block_contents": "Identifier for the compensation grade."}, "doc.workday.compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_code", "block_contents": "Code associated with the compensation grade profile of the position."}, "doc.workday.compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_id", "block_contents": "Unique identifier for the compensation grade profile associated with the worker."}, "doc.workday.compensation_package_code": {"name": "compensation_package_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_package_code", "block_contents": "Code associated with the compensation package of the position."}, "doc.workday.compensation_step_code": {"name": "compensation_step_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_step_code", "block_contents": "Code associated with the compensation step of the position."}, "doc.workday.continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_accrual_effect", "block_contents": "The effect of leave on continuous service accrual."}, "doc.workday.continuous_service_date": {"name": "continuous_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_date", "block_contents": "Date when the worker's continuous service with the organization started."}, "doc.workday.contract_assignment_details": {"name": "contract_assignment_details", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_assignment_details", "block_contents": "Details of the worker's contract assignment."}, "doc.workday.contract_currency_code": {"name": "contract_currency_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_currency_code", "block_contents": "Currency code used for the worker's contract."}, "doc.workday.contract_end_date": {"name": "contract_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_end_date", "block_contents": "Date when the worker's contract is scheduled to end."}, "doc.workday.contract_frequency_name": {"name": "contract_frequency_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_frequency_name", "block_contents": "Frequency of payment for the worker's contract."}, "doc.workday.contract_pay_rate": {"name": "contract_pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_pay_rate", "block_contents": "Pay rate associated with the worker's contract."}, "doc.workday.contract_vendor_name": {"name": "contract_vendor_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_vendor_name", "block_contents": "Name of the vendor associated with the worker's contract."}, "doc.workday.country": {"name": "country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country", "block_contents": "The country associated with the person name."}, "doc.workday.country_of_birth": {"name": "country_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country_of_birth", "block_contents": "The country of birth of the individual."}, "doc.workday.critical_job": {"name": "critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.critical_job", "block_contents": "Flag indicating whether the job is critical."}, "doc.workday.date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_baby_arrived_home_from_hospital", "block_contents": "The date when the baby arrived home from the hospital."}, "doc.workday.date_child_entered_country": {"name": "date_child_entered_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_child_entered_country", "block_contents": "The date when the child entered the country."}, "doc.workday.date_entered_workforce": {"name": "date_entered_workforce", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_entered_workforce", "block_contents": "Date when the worker entered the workforce."}, "doc.workday.date_of_birth": {"name": "date_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_birth", "block_contents": "The date of birth of the individual."}, "doc.workday.date_of_death": {"name": "date_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_death", "block_contents": "The date of death of the individual."}, "doc.workday.date_of_recall": {"name": "date_of_recall", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_recall", "block_contents": "The date of recall."}, "doc.workday.days_employed": {"name": "days_employed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_employed", "block_contents": "The number of days the employee held their position."}, "doc.workday.days_as_worker": {"name": "days_as_worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_as_worker", "block_contents": "Number of days since the worker has been created."}, "doc.workday.days_unemployed": {"name": "days_unemployed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_unemployed", "block_contents": "Number of days the worker has been unemployed."}, "doc.workday.default_weekly_hours": {"name": "default_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.default_weekly_hours", "block_contents": "The default weekly hours associated with the worker position."}, "doc.workday.departure_date": {"name": "departure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.departure_date", "block_contents": "The departure date for the employee."}, "doc.workday.difficulty_to_fill": {"name": "difficulty_to_fill", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill", "block_contents": "Indication of the difficulty level in filling the job."}, "doc.workday.difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill_code", "block_contents": "Code indicating the difficulty level in filling the position."}, "doc.workday.discharge_date": {"name": "discharge_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.discharge_date", "block_contents": "The date on which the individual was discharged from military service."}, "doc.workday.earliest_hire_date": {"name": "earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_hire_date", "block_contents": "Earliest date when the position can be filled."}, "doc.workday.earliest_overlap_date": {"name": "earliest_overlap_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_overlap_date", "block_contents": "Earliest date when the position can overlap with other positions."}, "doc.workday.effective_date": {"name": "effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.effective_date", "block_contents": "Date when the job profile becomes effective."}, "doc.workday.eligible_for_hire": {"name": "eligible_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_hire", "block_contents": "Flag indicating whether the worker is eligible for hire."}, "doc.workday.eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_rehire_on_latest_termination", "block_contents": "Flag indicating whether the worker is eligible for rehire based on the latest termination."}, "doc.workday.email_address": {"name": "email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_address", "block_contents": "The actual email address of the person."}, "doc.workday.email_code": {"name": "email_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_code", "block_contents": "A code or label associated with the type or purpose of the email address."}, "doc.workday.email_comment": {"name": "email_comment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_comment", "block_contents": "Any additional comments or notes related to the email address."}, "doc.workday.employee_id": {"name": "employee_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_id", "block_contents": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee."}, "doc.workday.employed_five_years": {"name": "employed_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_five_years", "block_contents": "Tracks whether a worker was employed at least five years."}, "doc.workday.employed_one_year": {"name": "employed_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_one_year", "block_contents": "Tracks whether a worker was employed at least one year."}, "doc.workday.employed_ten_years": {"name": "employed_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_ten_years", "block_contents": "Tracks whether a worker was employed at least ten years."}, "doc.workday.employed_thirty_years": {"name": "employed_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_thirty_years", "block_contents": "Tracks whether a worker was employed at least thirty years."}, "doc.workday.employed_twenty_years": {"name": "employed_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_twenty_years", "block_contents": "Tracks whether a worker was employed at least twenty years."}, "doc.workday.employee_compensation_currency": {"name": "employee_compensation_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_currency", "block_contents": "Currency code used for the worker's employee compensation."}, "doc.workday.employee_compensation_frequency": {"name": "employee_compensation_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_frequency", "block_contents": "Frequency of payment for the worker's employee compensation."}, "doc.workday.employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's employee compensation."}, "doc.workday.employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_base_pay", "block_contents": "Total base pay for the worker's employee compensation."}, "doc.workday.employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's employee compensation."}, "doc.workday.employee_type": {"name": "employee_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_type", "block_contents": "The type of employee associated with the worker position."}, "doc.workday.end_date": {"name": "end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_date", "block_contents": "The end date of the worker position."}, "doc.workday.end_employment_date": {"name": "end_employment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_employment_date", "block_contents": "Date when the worker's employment is scheduled to end."}, "doc.workday.estimated_leave_end_date": {"name": "estimated_leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.estimated_leave_end_date", "block_contents": "The estimated end date of the leave."}, "doc.workday.ethnicity_code": {"name": "ethnicity_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_code", "block_contents": "The code representing the ethnicity of the individual."}, "doc.workday.ethnicity_codes": {"name": "ethnicity_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_codes", "block_contents": "String aggregation of all ethnicity codes associated with an individual."}, "doc.workday.ethnicity_id": {"name": "ethnicity_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_id", "block_contents": "The identifier associated with the ethnicity."}, "doc.workday.exclude_from_head_count": {"name": "exclude_from_head_count", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.exclude_from_head_count", "block_contents": "Flag indicating whether the position is excluded from headcount."}, "doc.workday.expected_assignment_end_date": {"name": "expected_assignment_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_assignment_end_date", "block_contents": "The expected end date of the assignment associated with the worker position."}, "doc.workday.expected_date_of_return": {"name": "expected_date_of_return", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_date_of_return", "block_contents": "Expected date of the worker's return."}, "doc.workday.expected_due_date": {"name": "expected_due_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_due_date", "block_contents": "The expected due date."}, "doc.workday.expected_retirement_date": {"name": "expected_retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_retirement_date", "block_contents": "Expected date of the worker's retirement."}, "doc.workday.external_employee": {"name": "external_employee", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_employee", "block_contents": "Flag indicating whether the worker is an external employee."}, "doc.workday.external_url": {"name": "external_url", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_url", "block_contents": "External URL associated with the organization."}, "doc.workday.federal_withholding_fein": {"name": "federal_withholding_fein", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.federal_withholding_fein", "block_contents": "The Federal Employer Identification Number (FEIN) for federal withholding."}, "doc.workday.first_day_of_work": {"name": "first_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_day_of_work", "block_contents": "The date when the worker started their first day of work."}, "doc.workday.first_name": {"name": "first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_name", "block_contents": "The first name of the individual."}, "doc.workday.frequency": {"name": "frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.frequency", "block_contents": "The frequency associated with the worker position."}, "doc.workday.fte_percent": {"name": "fte_percent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.fte_percent", "block_contents": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek"}, "doc.workday.full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_name_singapore_malaysia", "block_contents": "The full name as used in Singapore and Malaysia."}, "doc.workday.full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_time_equivalent_percentage", "block_contents": "The full-time equivalent (FTE) percentage associated with the worker position."}, "doc.workday.gender": {"name": "gender", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.gender", "block_contents": "The gender of the individual."}, "doc.workday.has_international_assignment": {"name": "has_international_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.has_international_assignment", "block_contents": "Flag indicating whether the worker has an international assignment."}, "doc.workday.headcount_restriction_code": {"name": "headcount_restriction_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.headcount_restriction_code", "block_contents": "The code associated with headcount restriction for the worker position."}, "doc.workday.hereditary_suffix": {"name": "hereditary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hereditary_suffix", "block_contents": "The hereditary suffix, if applicable (e.g., Jr, Sr)."}, "doc.workday.hire_date": {"name": "hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_date", "block_contents": "The date when the worker was hired."}, "doc.workday.hire_reason": {"name": "hire_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_reason", "block_contents": "The reason for hiring the worker."}, "doc.workday.hire_rescinded": {"name": "hire_rescinded", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_rescinded", "block_contents": "Flag indicating whether the worker's hire was rescinded."}, "doc.workday.hiring_freeze": {"name": "hiring_freeze", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hiring_freeze", "block_contents": "Flag indicating whether the organization is under a hiring freeze."}, "doc.workday.hispanic_or_latino": {"name": "hispanic_or_latino", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hispanic_or_latino", "block_contents": "lag indicating whether the individual is Hispanic or Latino."}, "doc.workday.home_country": {"name": "home_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.home_country", "block_contents": "The home country of the worker."}, "doc.workday.honorary_suffix": {"name": "honorary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.honorary_suffix", "block_contents": "The honorary suffix, if applicable."}, "doc.workday.host_country": {"name": "host_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.host_country", "block_contents": "The host country associated with the worker."}, "doc.workday.hourly_frequency_currency": {"name": "hourly_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_currency", "block_contents": "Currency code used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_frequency", "block_contents": "Frequency of payment for the worker's hourly compensation."}, "doc.workday.hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_base_pay", "block_contents": "Total base pay for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's hourly compensation."}, "doc.workday.hukou_locality": {"name": "hukou_locality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_locality", "block_contents": "The locality associated with the Hukou."}, "doc.workday.hukou_postal_code": {"name": "hukou_postal_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_postal_code", "block_contents": "The postal code associated with the Hukou."}, "doc.workday.hukou_region": {"name": "hukou_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_region", "block_contents": "The region associated with the Hukou."}, "doc.workday.hukou_subregion": {"name": "hukou_subregion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_subregion", "block_contents": "The subregion associated with the Hukou."}, "doc.workday.hukou_type": {"name": "hukou_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_type", "block_contents": "The type of Hukou."}, "doc.workday.id": {"name": "id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.id", "block_contents": "Unique identifier."}, "doc.workday.inactive": {"name": "inactive", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive", "block_contents": "Flag indicating whether this is inactive."}, "doc.workday.inactive_date": {"name": "inactive_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive_date", "block_contents": "Date when the organization becomes inactive"}, "doc.workday.include_job_code_in_name": {"name": "include_job_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_job_code_in_name", "block_contents": "Flag indicating whether to include the job code in the job profile name."}, "doc.workday.include_manager_in_name": {"name": "include_manager_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_manager_in_name", "block_contents": "Flag indicating whether to include the manager in the organization name."}, "doc.workday.include_organization_code_in_name": {"name": "include_organization_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_organization_code_in_name", "block_contents": "Flag indicating whether to include the organization code in the name."}, "doc.workday.index": {"name": "index", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.index", "block_contents": "An index for a particular identifier."}, "doc.workday.international_assignment_type": {"name": "international_assignment_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.international_assignment_type", "block_contents": "The type of international assignment associated with the worker position."}, "doc.workday.is_critical_job": {"name": "is_critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_critical_job", "block_contents": "Flag indicating whether the position is considered critical based on the job profile."}, "doc.workday.is_current_employee_five_years": {"name": "is_current_employee_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_five_years", "block_contents": "Tracks whether a worker is active for more than five years."}, "doc.workday.is_current_employee_one_year": {"name": "is_current_employee_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_one_year", "block_contents": "Tracks whether a worker is active for more than a year."}, "doc.workday.is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_ten_years", "block_contents": "Tracks whether a worker is active for more than ten years."}, "doc.workday.is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_thirty_years", "block_contents": "Tracks whether a worker is active for more than thirty years."}, "doc.workday.is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_twenty_years", "block_contents": "Tracks whether a worker is active for more than twenty years."}, "doc.workday.is_employed": {"name": "is_employed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_employed", "block_contents": "Is the worker currently employed?"}, "doc.workday.is_military_service": {"name": "is_military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_military_service", "block_contents": "Whether the employee served in the military."}, "doc.workday.is_primary_job": {"name": "is_primary_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_primary_job", "block_contents": "Flag indicating whether the job is the primary job for the worker."}, "doc.workday.is_regrettable_termination": {"name": "is_regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_regrettable_termination", "block_contents": "Has the worker been regrettably terminated?"}, "doc.workday.is_terminated": {"name": "is_terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_terminated", "block_contents": "Has the worker been terminated?"}, "doc.workday.is_user_active": {"name": "is_user_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_user_active", "block_contents": "Is the user currently active."}, "doc.workday.job_category_code": {"name": "job_category_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_code", "block_contents": "Code indicating the category of the job profile associated with the position."}, "doc.workday.job_category_id": {"name": "job_category_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_id", "block_contents": "Identifier for the job category."}, "doc.workday.job_description": {"name": "job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description", "block_contents": "Detailed description of the job associated with the position."}, "doc.workday.job_description_summary": {"name": "job_description_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description_summary", "block_contents": "Summary or overview of the job description for the position."}, "doc.workday.job_exempt": {"name": "job_exempt", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_exempt", "block_contents": "Indicates whether the job is exempt from certain regulations."}, "doc.workday.job_family": {"name": "job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family", "block_contents": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles."}, "doc.workday.job_family_code": {"name": "job_family_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_code", "block_contents": "Code assigned to the job family"}, "doc.workday.job_family_codes": {"name": "job_family_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_codes", "block_contents": "String array of all job family codes assigned to a job profile."}, "doc.workday.job_family_group": {"name": "job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group", "block_contents": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics."}, "doc.workday.job_family_group_code": {"name": "job_family_group_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_code", "block_contents": "Code assigned to the job family group for reference and categorization."}, "doc.workday.job_family_group_codes": {"name": "job_family_group_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_codes", "block_contents": "String array of all job family group codes assigned to a job profile."}, "doc.workday.job_family_group_id": {"name": "job_family_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_id", "block_contents": "Identifier for the job family group."}, "doc.workday.job_family_group_summary": {"name": "job_family_group_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summary", "block_contents": "The summary of the job family group."}, "doc.workday.job_family_group_summaries": {"name": "job_family_group_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summaries", "block_contents": "String array of all job family group summaries assigned to a job profile."}, "doc.workday.job_family_id": {"name": "job_family_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_id", "block_contents": "Identifier for the job family."}, "doc.workday.job_family_job_family_group": {"name": "job_family_job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_family_group", "block_contents": "Represents the relationship between job families and job family groups in the Workday dataset."}, "doc.workday.job_family_job_profile": {"name": "job_family_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_profile", "block_contents": "Represents the relationship between job families and job profiles in the Workday dataset."}, "doc.workday.job_family_summary": {"name": "job_family_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summary", "block_contents": "The summary of the job family."}, "doc.workday.job_family_summaries": {"name": "job_family_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summaries", "block_contents": "String array of all job family summaries assigned to a job profile."}, "doc.workday.job_group_id": {"name": "job_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_group_id", "block_contents": "The unique identifier for the job group."}, "doc.workday.job_posting_title": {"name": "job_posting_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_posting_title", "block_contents": "Title used for job postings associated with the position."}, "doc.workday.job_private_title": {"name": "job_private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_private_title", "block_contents": "The private title associated with the job."}, "doc.workday.job_profile": {"name": "job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile", "block_contents": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes."}, "doc.workday.job_profile_code": {"name": "job_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_code", "block_contents": "Code assigned to the job profile."}, "doc.workday.job_profile_description": {"name": "job_profile_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_description", "block_contents": "Brief description of the job profile."}, "doc.workday.job_profile_id": {"name": "job_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_id", "block_contents": "Identifier for the job profile."}, "doc.workday.job_summary": {"name": "job_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_summary", "block_contents": "The summary of the job."}, "doc.workday.job_title": {"name": "job_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_title", "block_contents": "The title of the job for the worker."}, "doc.workday.last_date_for_which_paid": {"name": "last_date_for_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_date_for_which_paid", "block_contents": "The last date being paid before leave."}, "doc.workday.last_datefor_which_paid": {"name": "last_datefor_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_datefor_which_paid", "block_contents": "Last date for which the worker was paid."}, "doc.workday.last_medical_exam_date": {"name": "last_medical_exam_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_date", "block_contents": "The date of the last medical exam."}, "doc.workday.last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_valid_to", "block_contents": "The validity date of the last medical exam."}, "doc.workday.last_name": {"name": "last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_name", "block_contents": "The last name or surname of the individual."}, "doc.workday.last_updated_date_time": {"name": "last_updated_date_time", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_updated_date_time", "block_contents": "Date and time when the organization record was last updated."}, "doc.workday.leave_description": {"name": "leave_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_description", "block_contents": "Description of the type of leave"}, "doc.workday.leave_end_date": {"name": "leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_end_date", "block_contents": "The end date of the leave."}, "doc.workday.leave_entitlement_override": {"name": "leave_entitlement_override", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_entitlement_override", "block_contents": "Override for leave entitlement."}, "doc.workday.leave_last_day_of_work": {"name": "leave_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_last_day_of_work", "block_contents": "The last day of work associated with the leave status."}, "doc.workday.leave_of_absence_type": {"name": "leave_of_absence_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_of_absence_type", "block_contents": "The type of leave of absence."}, "doc.workday.leave_percentage": {"name": "leave_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_percentage", "block_contents": "The percentage of leave."}, "doc.workday.leave_request_event_id": {"name": "leave_request_event_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_request_event_id", "block_contents": "The unique identifier for the leave request event."}, "doc.workday.leave_return_event": {"name": "leave_return_event", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_return_event", "block_contents": "The event associated with the return from leave."}, "doc.workday.leave_start_date": {"name": "leave_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_start_date", "block_contents": "The start date of the leave."}, "doc.workday.leave_status_code": {"name": "leave_status_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_status_code", "block_contents": "The code indicating the status of the leave."}, "doc.workday.leave_type_reason": {"name": "leave_type_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_type_reason", "block_contents": "The reason for the leave type."}, "doc.workday.level": {"name": "level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.level", "block_contents": "Level associated with the job profile."}, "doc.workday.local_first_name": {"name": "local_first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name", "block_contents": "The local or native first name of the individual."}, "doc.workday.local_first_name_2": {"name": "local_first_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name_2", "block_contents": "Additional local or native first name, if applicable."}, "doc.workday.local_hukou": {"name": "local_hukou", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_hukou", "block_contents": "Flag indicating whether the Hukou is local."}, "doc.workday.local_last_name": {"name": "local_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name", "block_contents": "The local or native last name of the individual."}, "doc.workday.local_last_name_2": {"name": "local_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name_2", "block_contents": "Additional local or native last name, if applicable."}, "doc.workday.local_middle_name": {"name": "local_middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name", "block_contents": "The local or native middle name of the individual."}, "doc.workday.local_middle_name_2": {"name": "local_middle_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name_2", "block_contents": "Additional local or native middle name, if applicable."}, "doc.workday.local_secondary_last_name": {"name": "local_secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name", "block_contents": "Secondary local or native last name or surname, if applicable."}, "doc.workday.local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name_2", "block_contents": "Additional secondary local or native last name, if applicable."}, "doc.workday.local_termination_reason": {"name": "local_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_termination_reason", "block_contents": "The reason for local termination of the worker."}, "doc.workday.location": {"name": "location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location", "block_contents": "Location associated with the organization."}, "doc.workday.location_during_leave": {"name": "location_during_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location_during_leave", "block_contents": "The location during the leave."}, "doc.workday.management_level": {"name": "management_level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level", "block_contents": "Management level associated with the job profile."}, "doc.workday.management_level_code": {"name": "management_level_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level_code", "block_contents": "Code indicating the management level associated with the job profile."}, "doc.workday.manager_id": {"name": "manager_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.manager_id", "block_contents": "Identifier for the manager associated with the organization."}, "doc.workday.marital_status": {"name": "marital_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status", "block_contents": "The marital status of the individual."}, "doc.workday.marital_status_date": {"name": "marital_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status_date", "block_contents": "The date of the marital status."}, "doc.workday.medical_exam_notes": {"name": "medical_exam_notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.medical_exam_notes", "block_contents": "Notes from the medical exam."}, "doc.workday.middle_name": {"name": "middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.middle_name", "block_contents": "The middle name of the individual."}, "doc.workday.military_service": {"name": "military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_service", "block_contents": "Represents information about an individual's military service in the Workday system."}, "doc.workday.military_status": {"name": "military_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_status", "block_contents": "The military status of the worker."}, "doc.workday.months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.months_continuous_prior_employment", "block_contents": "Number of months of continuous prior employment."}, "doc.workday.position_location": {"name": "position_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_location", "block_contents": "The position location of the employee."}, "doc.workday.position_effective_date": {"name": "position_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_effective_date", "block_contents": "The position effective date for the employee."}, "doc.workday.position_end_date": {"name": "position_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_end_date", "block_contents": "The position end date for this employee."}, "doc.workday.position_start_date": {"name": "position_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_start_date", "block_contents": "The position start date for this employee."}, "doc.workday.multiple_child_indicator": {"name": "multiple_child_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.multiple_child_indicator", "block_contents": "Indicator for multiple children."}, "doc.workday.native_region": {"name": "native_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region", "block_contents": "The native region of the individual."}, "doc.workday.native_region_code": {"name": "native_region_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region_code", "block_contents": "The code of the native region."}, "doc.workday.not_returning": {"name": "not_returning", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.not_returning", "block_contents": "Flag indicating whether the worker is not returning."}, "doc.workday.notes": {"name": "notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.notes", "block_contents": "Additional notes or comments related to the military service record."}, "doc.workday.number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_babies_adopted_children", "block_contents": "The number of babies adopted by the worker."}, "doc.workday.number_of_child_dependents": {"name": "number_of_child_dependents", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_child_dependents", "block_contents": "The number of child dependents."}, "doc.workday.number_of_previous_births": {"name": "number_of_previous_births", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_births", "block_contents": "The number of previous births."}, "doc.workday.number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_maternity_leaves", "block_contents": "The number of previous maternity leaves."}, "doc.workday.on_leave": {"name": "on_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.on_leave", "block_contents": "Indicator for whether the worker is on leave."}, "doc.workday.organization": {"name": "organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization", "block_contents": "Identifier for the organization."}, "doc.workday.organization_code": {"name": "organization_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_code", "block_contents": "Code associated with the organization."}, "doc.workday.organization_description": {"name": "organization_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_description", "block_contents": "The description of the organization."}, "doc.workday.organization_id": {"name": "organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_id", "block_contents": "Identifier for the organization."}, "doc.workday.organization_job_family": {"name": "organization_job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_job_family", "block_contents": "Captures the associations between different organizational entities and the job families they are linked to."}, "doc.workday.organization_location": {"name": "organization_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_location", "block_contents": "The location of the organization."}, "doc.workday.organization_name": {"name": "organization_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_name", "block_contents": "Name of the organization."}, "doc.workday.organization_owner_id": {"name": "organization_owner_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_owner_id", "block_contents": "Identifier for the owner of the organization."}, "doc.workday.organization_role": {"name": "organization_role", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role", "block_contents": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities."}, "doc.workday.organization_role_code": {"name": "organization_role_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_code", "block_contents": "Code assigned to the organization role for reference and categorization."}, "doc.workday.organization_role_id": {"name": "organization_role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_id", "block_contents": "The role id associated with the organization."}, "doc.workday.organization_role_worker": {"name": "organization_role_worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_worker", "block_contents": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill."}, "doc.workday.organization_sub_type": {"name": "organization_sub_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_sub_type", "block_contents": "Subtype or classification of the organization."}, "doc.workday.organization_type": {"name": "organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_type", "block_contents": "Type or category of the organization."}, "doc.workday.organization_worker_code": {"name": "organization_worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_worker_code", "block_contents": "The worker code associated with the organization."}, "doc.workday.original_hire_date": {"name": "original_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.original_hire_date", "block_contents": "The original date when the worker was hired."}, "doc.workday.paid_fte": {"name": "paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_fte", "block_contents": "The paid full-time equivalent (FTE) associated with the worker position."}, "doc.workday.paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_time_off_accrual_effect", "block_contents": "The effect of leave on paid time off accrual."}, "doc.workday.pay_group": {"name": "pay_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group", "block_contents": "The pay group associated with the worker position."}, "doc.workday.pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_currency", "block_contents": "Currency code used for the worker's pay group frequency."}, "doc.workday.pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_frequency", "block_contents": "Frequency of payment for the worker's pay group."}, "doc.workday.pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's pay group."}, "doc.workday.pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_base_pay", "block_contents": "Total base pay for the worker's pay group."}, "doc.workday.pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's pay group."}, "doc.workday.pay_rate": {"name": "pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate", "block_contents": "The pay rate associated with the worker position."}, "doc.workday.pay_rate_type": {"name": "pay_rate_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate_type", "block_contents": "The type of pay rate associated with the worker position."}, "doc.workday.pay_through_date": {"name": "pay_through_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_through_date", "block_contents": "The date through which the worker is paid."}, "doc.workday.payroll_effect": {"name": "payroll_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_effect", "block_contents": "The effect of leave on payroll."}, "doc.workday.payroll_entity": {"name": "payroll_entity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_entity", "block_contents": "The payroll entity associated with the worker position."}, "doc.workday.payroll_file_number": {"name": "payroll_file_number", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_file_number", "block_contents": "The file number associated with payroll for the worker position."}, "doc.workday.person_contact_email_address": {"name": "person_contact_email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address", "block_contents": "Represents the email addresses associated with a person in the Workday system."}, "doc.workday.person_contact_email_address_id": {"name": "person_contact_email_address_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address_id", "block_contents": "The identifier of the personal contact email address."}, "doc.workday.person_name": {"name": "person_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name", "block_contents": "Represents the name information for an individual in the Workday system."}, "doc.workday.person_name_type": {"name": "person_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name_type", "block_contents": "The type or category of the person name (e.g., legal name, preferred name)."}, "doc.workday.personal_info_system_id": {"name": "personal_info_system_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_info_system_id", "block_contents": "The system ID associated with the personal information of the individual."}, "doc.workday.personal_information": {"name": "personal_information", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information", "block_contents": "The personal information associated with each worker."}, "doc.workday.personal_information_ethnicity": {"name": "personal_information_ethnicity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_ethnicity", "block_contents": "Represents information about the ethnicity of an individual in the Workday system."}, "doc.workday.personal_information_id": {"name": "personal_information_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_id", "block_contents": "The identifier for each personal information record."}, "doc.workday.personal_information_type": {"name": "personal_information_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_type", "block_contents": "The type of personal information record."}, "doc.workday.personnel_file_agency": {"name": "personnel_file_agency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personnel_file_agency", "block_contents": "The agency associated with the personnel file."}, "doc.workday.political_affiliation": {"name": "political_affiliation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.political_affiliation", "block_contents": "The political affiliation of the individual."}, "doc.workday.position": {"name": "position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position", "block_contents": "Resource for understanding the details and attributes associated with each position."}, "doc.workday.position_code": {"name": "position_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_code", "block_contents": "Code associated with the position for reference and categorization."}, "doc.workday.position_days": {"name": "position_days", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_days", "block_contents": "The days the worker held positions at the company."}, "doc.workday.position_id": {"name": "position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_id", "block_contents": "Identifier for the specific position."}, "doc.workday.position_job_profile": {"name": "position_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile", "block_contents": "Captures the associations between specific positions and the job profiles they are linked to."}, "doc.workday.position_job_profile_name": {"name": "position_job_profile_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile_name", "block_contents": "Name associated with the job profile linked to the position."}, "doc.workday.position_organization": {"name": "position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization", "block_contents": "Captures the associations between specific positions and the organizations to which they belong."}, "doc.workday.position_organization_type": {"name": "position_organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization_type", "block_contents": "Type or category of the position within the organization."}, "doc.workday.position_time_type_code": {"name": "position_time_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_time_type_code", "block_contents": "Code indicating the time type associated with the position."}, "doc.workday.prefix_salutation": {"name": "prefix_salutation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_salutation", "block_contents": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.)."}, "doc.workday.prefix_title": {"name": "prefix_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title", "block_contents": "The prefix or title associated with the name (e.g., Professor)."}, "doc.workday.prefix_title_code": {"name": "prefix_title_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title_code", "block_contents": "The code associated with the prefix or title."}, "doc.workday.primary_compensation_basis": {"name": "primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis", "block_contents": "Primary basis of compensation for the position."}, "doc.workday.primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_amount_change", "block_contents": "Change in the amount of the primary compensation basis."}, "doc.workday.primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_percent_change", "block_contents": "Change in the percentage of the primary compensation basis."}, "doc.workday.primary_nationality": {"name": "primary_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_nationality", "block_contents": "The primary nationality of the individual."}, "doc.workday.primary_termination_category": {"name": "primary_termination_category", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_category", "block_contents": "The primary termination category for the worker."}, "doc.workday.primary_termination_reason": {"name": "primary_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_reason", "block_contents": "The primary termination reason for the worker."}, "doc.workday.private_title": {"name": "private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.private_title", "block_contents": "Private title associated with the job profile."}, "doc.workday.probation_end_date": {"name": "probation_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_end_date", "block_contents": "The date when the worker's probation ends."}, "doc.workday.probation_start_date": {"name": "probation_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_start_date", "block_contents": "The date when the worker's probation starts."}, "doc.workday.professional_suffix": {"name": "professional_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.professional_suffix", "block_contents": "The professional suffix, if applicable (e.g., Esq., CPA)."}, "doc.workday.public_job": {"name": "public_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.public_job", "block_contents": "Flag indicating whether the job is public."}, "doc.workday.rank": {"name": "rank", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rank", "block_contents": "The rank achieved by the individual during military service."}, "doc.workday.reason_reference_id": {"name": "reason_reference_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.reason_reference_id", "block_contents": "The reference ID for the termination reason."}, "doc.workday.referral_payment_plan": {"name": "referral_payment_plan", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.referral_payment_plan", "block_contents": "Referral payment plan associated with the job profile."}, "doc.workday.region_of_birth": {"name": "region_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth", "block_contents": "The region of birth of the individual."}, "doc.workday.region_of_birth_code": {"name": "region_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth_code", "block_contents": "The code of the region of birth."}, "doc.workday.regrettable_termination": {"name": "regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regrettable_termination", "block_contents": "Flag indicating whether the worker's termination is regrettable."}, "doc.workday.regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regular_paid_equivalent_hours", "block_contents": "The regular paid equivalent hours associated with the worker position."}, "doc.workday.rehire": {"name": "rehire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rehire", "block_contents": "Flag indicating whether the worker is eligible for rehire."}, "doc.workday.religion": {"name": "religion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religion", "block_contents": "The religion of the individual."}, "doc.workday.religious_suffix": {"name": "religious_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religious_suffix", "block_contents": "The religious suffix, if applicable."}, "doc.workday.resignation_date": {"name": "resignation_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.resignation_date", "block_contents": "The date when the worker resigned."}, "doc.workday.retired": {"name": "retired", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retired", "block_contents": "Flag indicating whether the worker is retired."}, "doc.workday.retirement_date": {"name": "retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_date", "block_contents": "The date when the worker retired."}, "doc.workday.retirement_eligibility_date": {"name": "retirement_eligibility_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_eligibility_date", "block_contents": "The date when the worker becomes eligible for retirement."}, "doc.workday.return_unknown": {"name": "return_unknown", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.return_unknown", "block_contents": "Flag indicating whether the worker's return status is unknown."}, "doc.workday.role_id": {"name": "role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.role_id", "block_contents": "Identifier for the specific role."}, "doc.workday.royal_suffix": {"name": "royal_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.royal_suffix", "block_contents": "The royal suffix, if applicable."}, "doc.workday.scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the worker position."}, "doc.workday.secondary_last_name": {"name": "secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.secondary_last_name", "block_contents": "Secondary last name or surname, if applicable."}, "doc.workday.seniority_date": {"name": "seniority_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.seniority_date", "block_contents": "The date when the worker's seniority is recorded."}, "doc.workday.service": {"name": "service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service", "block_contents": "The specific military service branch in which the individual served."}, "doc.workday.service_type": {"name": "service_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service_type", "block_contents": "The type or category of military service (e.g., active duty, reserve, etc.)."}, "doc.workday.severance_date": {"name": "severance_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.severance_date", "block_contents": "The date when the worker's severance is recorded."}, "doc.workday.single_parent_indicator": {"name": "single_parent_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.single_parent_indicator", "block_contents": "Indicator for a single parent."}, "doc.workday.social_benefit": {"name": "social_benefit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_benefit", "block_contents": "The social benefit associated with the individual."}, "doc.workday.social_security_disability_code": {"name": "social_security_disability_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_security_disability_code", "block_contents": "The code indicating social security disability."}, "doc.workday.social_suffix": {"name": "social_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix", "block_contents": "The social suffix, if applicable."}, "doc.workday.social_suffix_id": {"name": "social_suffix_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix_id", "block_contents": "The identifier for the social suffix."}, "doc.workday.specify_paid_fte": {"name": "specify_paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_paid_fte", "block_contents": "Flag indicating whether to specify paid FTE for the worker position."}, "doc.workday.specify_working_fte": {"name": "specify_working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_working_fte", "block_contents": "Flag indicating whether to specify working FTE for the worker position."}, "doc.workday.staffing_model": {"name": "staffing_model", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.staffing_model", "block_contents": "Staffing model associated with the organization"}, "doc.workday.start_date": {"name": "start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_date", "block_contents": "The start date of the worker position."}, "doc.workday.start_international_assignment_reason": {"name": "start_international_assignment_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_international_assignment_reason", "block_contents": "The reason for starting an international assignment associated with the worker position."}, "doc.workday.status": {"name": "status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status", "block_contents": "The status of the individual's military service (e.g., active, inactive, retired)."}, "doc.workday.status_begin_date": {"name": "status_begin_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status_begin_date", "block_contents": "The date on which the current military service status began."}, "doc.workday.stock_vesting_effect": {"name": "stock_vesting_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stock_vesting_effect", "block_contents": "The effect of leave on stock vesting."}, "doc.workday.stop_payment_date": {"name": "stop_payment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stop_payment_date", "block_contents": "The date when stop payment occurs."}, "doc.workday.summary": {"name": "summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.summary", "block_contents": "Summary or overview of the job profile."}, "doc.workday.superior_organization_id": {"name": "superior_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.superior_organization_id", "block_contents": "Identifier for the superior organization, if applicable."}, "doc.workday.supervisory_organization_id": {"name": "supervisory_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_organization_id", "block_contents": "Identifier for the supervisory organization associated with the position."}, "doc.workday.supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_availability_date", "block_contents": "Availability date for supervisory positions within the organization."}, "doc.workday.supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_earliest_hire_date", "block_contents": "Earliest hire date for supervisory positions within the organization."}, "doc.workday.supervisory_position_time_type": {"name": "supervisory_position_time_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_time_type", "block_contents": "Time type associated with supervisory positions."}, "doc.workday.supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_worker_type", "block_contents": "Worker type associated with supervisory positions."}, "doc.workday.terminated": {"name": "terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.terminated", "block_contents": "Flag indicating whether the worker is terminated."}, "doc.workday.termination_date": {"name": "termination_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_date", "block_contents": "The date when the worker is terminated."}, "doc.workday.termination_involuntary": {"name": "termination_involuntary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_involuntary", "block_contents": "Flag indicating whether the termination is involuntary."}, "doc.workday.termination_last_day_of_work": {"name": "termination_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_last_day_of_work", "block_contents": "The last day of work for the worker during termination."}, "doc.workday.tertiary_last_name": {"name": "tertiary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tertiary_last_name", "block_contents": "Tertiary last name or surname, if applicable."}, "doc.workday.time_off_service_date": {"name": "time_off_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.time_off_service_date", "block_contents": "The date when the worker's time-off service starts."}, "doc.workday.title": {"name": "title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.title", "block_contents": "Title associated with the job profile."}, "doc.workday.tobacco_use": {"name": "tobacco_use", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tobacco_use", "block_contents": "Flag indicating whether the individual uses tobacco."}, "doc.workday.top_level_organization_id": {"name": "top_level_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.top_level_organization_id", "block_contents": "Identifier for the top-level organization, if applicable."}, "doc.workday.union_code": {"name": "union_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_code", "block_contents": "Code associated with the union related to the job profile."}, "doc.workday.union_membership_requirement": {"name": "union_membership_requirement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_membership_requirement", "block_contents": "Flag indicating whether union membership is a requirement for the job profile."}, "doc.workday.universal_id": {"name": "universal_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.universal_id", "block_contents": "The universal ID associated with the worker."}, "doc.workday.user_id": {"name": "user_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.user_id", "block_contents": "The identifier for the user associated with the worker."}, "doc.workday.vesting_date": {"name": "vesting_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.vesting_date", "block_contents": "The date when the worker's vesting starts."}, "doc.workday.visibility": {"name": "visibility", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.visibility", "block_contents": "Visibility level of the organization."}, "doc.workday.week_of_confinement": {"name": "week_of_confinement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.week_of_confinement", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_hours_profile": {"name": "work_hours_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_hours_profile", "block_contents": "The work hours profile associated with the worker position."}, "doc.workday.work_related": {"name": "work_related", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_related", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_shift": {"name": "work_shift", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift", "block_contents": "The work shift associated with the worker position."}, "doc.workday.work_shift_required": {"name": "work_shift_required", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift_required", "block_contents": "Flag indicating whether a work shift is required."}, "doc.workday.work_space": {"name": "work_space", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_space", "block_contents": "The work space associated with the worker position."}, "doc.workday.work_study_award_source_code": {"name": "work_study_award_source_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_award_source_code", "block_contents": "Code associated with the source of work study awards."}, "doc.workday.work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_requirement_option_code", "block_contents": "Code associated with work study requirement options."}, "doc.workday.workday__employee_overview": {"name": "workday__employee_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__employee_overview", "block_contents": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees."}, "doc.workday.workday__job_overview": {"name": "workday__job_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__job_overview", "block_contents": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings."}, "doc.workday.workday__role_overview": {"name": "workday__role_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__role_overview", "block_contents": "Each record represents a role in an organization, enhanced with additional organizational details."}, "doc.workday.workday__organization_overview": {"name": "workday__organization_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__organization_overview", "block_contents": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures."}, "doc.workday.workday__position_overview": {"name": "workday__position_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__position_overview", "block_contents": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts."}, "doc.workday.worker": {"name": "worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker", "block_contents": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker."}, "doc.workday.worker_code": {"name": "worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_code", "block_contents": "The code associated with the worker."}, "doc.workday.worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_for_filled_position_id", "block_contents": "Identifier for the worker filling the position, if applicable."}, "doc.workday.worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_hours_profile_classification", "block_contents": "The classification of worker hours profile associated with the worker position."}, "doc.workday.worker_id": {"name": "worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_id", "block_contents": "Unique identifier for the worker."}, "doc.workday.worker_leave_status": {"name": "worker_leave_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_leave_status", "block_contents": "Represents the leave status of workers in the Workday system."}, "doc.workday.worker_levels": {"name": "worker_levels", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_levels", "block_contents": "The number of levels the worker has worked at."}, "doc.workday.worker_position": {"name": "worker_position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position", "block_contents": "Represents the positions held by workers in the Workday system"}, "doc.workday.worker_position_organization": {"name": "worker_position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_organization", "block_contents": "Ties together workers to the positions and organizations they hold in the Workday system."}, "doc.workday.worker_position_id": {"name": "worker_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_id", "block_contents": "Identifier for the worker associated with the position."}, "doc.workday.worker_positions": {"name": "worker_positions", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_positions", "block_contents": "The number of positions the worker has held"}, "doc.workday.worker_type_code": {"name": "worker_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_type_code", "block_contents": "Code indicating the type of worker associated with the position."}, "doc.workday.working_fte": {"name": "working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_fte", "block_contents": "The working full-time equivalent (FTE) associated with the worker position."}, "doc.workday.working_time_frequency": {"name": "working_time_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_frequency", "block_contents": "The frequency of working time associated with the worker position."}, "doc.workday.working_time_unit": {"name": "working_time_unit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_unit", "block_contents": "The unit of working time associated with the worker position."}, "doc.workday.working_time_value": {"name": "working_time_value", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_value", "block_contents": "The value of working time associated with the worker position."}, "doc.workday.date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_pay_group_assignment", "block_contents": "Date a group's pay is assigned to be processed."}, "doc.workday.primary_business_site": {"name": "primary_business_site", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_business_site", "block_contents": "Primary location a worker's business is situated."}, "doc.workday.used_in_change_organization_assignments": {"name": "used_in_change_organization_assignments", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.used_in_change_organization_assignments", "block_contents": "If a worker has opted to change these organization assignments."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {}, "parent_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.workday__job_overview": ["model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_group", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_profile"], "model.workday.workday__position_overview": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"], "model.workday.workday__organization_overview": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"], "model.workday.stg_workday__position": ["model.workday.stg_workday__position_base"], "model.workday.stg_workday__job_family_group": ["model.workday.stg_workday__job_family_group_base"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "model.workday.stg_workday__organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "model.workday.stg_workday__organization_role": ["model.workday.stg_workday__organization_role_base"], "model.workday.stg_workday__worker_position": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "model.workday.stg_workday__position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "model.workday.stg_workday__worker_position_organization": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.stg_workday__job_profile": ["model.workday.stg_workday__job_profile_base"], "model.workday.stg_workday__position_organization": ["model.workday.stg_workday__position_organization_base"], "model.workday.stg_workday__worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "model.workday.stg_workday__person_name": ["model.workday.stg_workday__person_name_base"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "model.workday.stg_workday__organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "model.workday.stg_workday__job_family": ["model.workday.stg_workday__job_family_base"], "model.workday.stg_workday__military_service": ["model.workday.stg_workday__military_service_base"], "model.workday.stg_workday__personal_information": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "model.workday.stg_workday__worker": ["model.workday.stg_workday__worker_base"], "model.workday.stg_workday__organization": ["model.workday.stg_workday__organization_base"], "model.workday.stg_workday__job_family_job_family_group_base": ["source.workday.workday.job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["source.workday.workday.personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["source.workday.workday.job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["source.workday.workday.worker_position_organization_history"], "model.workday.stg_workday__position_base": ["source.workday.workday.position"], "model.workday.stg_workday__person_contact_email_address_base": ["source.workday.workday.person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["source.workday.workday.organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["source.workday.workday.job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["source.workday.workday.position_organization"], "model.workday.stg_workday__organization_role_base": ["source.workday.workday.organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["source.workday.workday.worker_leave_status"], "model.workday.stg_workday__job_family_base": ["source.workday.workday.job_family"], "model.workday.stg_workday__job_profile_base": ["source.workday.workday.job_profile"], "model.workday.stg_workday__organization_base": ["source.workday.workday.organization"], "model.workday.stg_workday__organization_role_worker_base": ["source.workday.workday.organization_role_worker"], "model.workday.stg_workday__worker_base": ["source.workday.workday.worker_history"], "model.workday.stg_workday__position_job_profile_base": ["source.workday.workday.position_job_profile"], "model.workday.stg_workday__worker_position_base": ["source.workday.workday.worker_position_history"], "model.workday.stg_workday__person_name_base": ["source.workday.workday.person_name"], "model.workday.stg_workday__military_service_base": ["source.workday.workday.military_service"], "model.workday.stg_workday__personal_information_base": ["source.workday.workday.personal_information_history"], "model.workday.workday__monthly_summary": ["model.workday.workday__employee_daily_history"], "model.workday.workday__employee_daily_history": ["model.workday.int_workday__employee_history"], "model.workday.workday__worker_position_org_daily_history": ["model.workday.stg_workday__worker_position_organization_base", "model.workday.stg_workday__worker_position_organization_history"], "model.workday.stg_workday__worker_position_history": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__worker_history": ["model.workday.stg_workday__worker_base"], "model.workday.stg_workday__personal_information_history": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.int_workday__employee_history": ["model.workday.stg_workday__personal_information_history", "model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history"], "model.workday.int_workday__worker_position_enriched": ["model.workday.stg_workday__worker_position"], "model.workday.int_workday__personal_details": ["model.workday.stg_workday__military_service", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__person_name", "model.workday.stg_workday__personal_information", "model.workday.stg_workday__personal_information_ethnicity"], "model.workday.int_workday__worker_details": ["model.workday.stg_workday__worker"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.int_workday__personal_details", "model.workday.int_workday__worker_details", "model.workday.int_workday__worker_position_enriched"], "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": ["model.workday.workday__job_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": ["model.workday.workday__job_overview"], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": ["model.workday.workday__position_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": ["model.workday.workday__position_overview"], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": ["model.workday.workday__organization_overview"], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": ["model.workday.workday__organization_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": ["model.workday.workday__organization_overview"], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": ["model.workday.stg_workday__job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": ["model.workday.stg_workday__job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": ["model.workday.stg_workday__job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": ["model.workday.stg_workday__job_family"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": ["model.workday.stg_workday__job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": ["model.workday.stg_workday__job_family_group"], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": ["model.workday.stg_workday__organization_role"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": ["model.workday.stg_workday__organization_role_worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": ["model.workday.stg_workday__organization_job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": ["model.workday.stg_workday__organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": ["model.workday.stg_workday__organization"], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": ["model.workday.stg_workday__position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": ["model.workday.stg_workday__position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": ["model.workday.stg_workday__position"], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": ["model.workday.stg_workday__position_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": ["model.workday.stg_workday__worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": ["model.workday.stg_workday__worker"], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": ["model.workday.stg_workday__personal_information"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": ["model.workday.stg_workday__personal_information"], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": ["model.workday.stg_workday__person_name"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": ["model.workday.stg_workday__military_service"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": ["model.workday.stg_workday__military_service"], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": ["model.workday.stg_workday__worker_position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": ["model.workday.stg_workday__worker_leave_status"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": ["model.workday.stg_workday__worker_position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": ["model.workday.stg_workday__worker_position_organization"], "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": ["model.workday.workday__employee_daily_history"], "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": ["model.workday.workday__employee_daily_history"], "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": ["model.workday.workday__monthly_summary"], "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": ["model.workday.workday__monthly_summary"], "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": ["model.workday.stg_workday__personal_information_history"], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": ["model.workday.stg_workday__worker_history"], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": ["model.workday.stg_workday__worker_position_history"], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": ["model.workday.stg_workday__worker_position_organization_history"], "source.workday.workday.job_profile": [], "source.workday.workday.job_family_job_profile": [], "source.workday.workday.job_family": [], "source.workday.workday.job_family_job_family_group": [], "source.workday.workday.job_family_group": [], "source.workday.workday.organization_role": [], "source.workday.workday.organization_role_worker": [], "source.workday.workday.organization_job_family": [], "source.workday.workday.organization": [], "source.workday.workday.position_organization": [], "source.workday.workday.position": [], "source.workday.workday.position_job_profile": [], "source.workday.workday.worker_history": [], "source.workday.workday.personal_information_history": [], "source.workday.workday.person_name": [], "source.workday.workday.personal_information_ethnicity": [], "source.workday.workday.military_service": [], "source.workday.workday.person_contact_email_address": [], "source.workday.workday.worker_position_history": [], "source.workday.workday.worker_leave_status": [], "source.workday.workday.worker_position_organization_history": []}, "child_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "test.workday.unique_workday__employee_overview_employee_id.b01e19996c"], "model.workday.workday__job_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857"], "model.workday.workday__position_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "test.workday.not_null_workday__position_overview_position_id.603beb3f22"], "model.workday.workday__organization_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412"], "model.workday.stg_workday__position": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e"], "model.workday.stg_workday__job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c"], "model.workday.stg_workday__organization_role_worker": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72"], "model.workday.stg_workday__organization_role": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f"], "model.workday.stg_workday__worker_position": ["model.workday.int_workday__worker_position_enriched", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755"], "model.workday.stg_workday__position_job_profile": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7"], "model.workday.stg_workday__worker_position_organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b"], "model.workday.stg_workday__job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa"], "model.workday.stg_workday__position_organization": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7"], "model.workday.stg_workday__worker_leave_status": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61"], "model.workday.stg_workday__person_name": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd"], "model.workday.stg_workday__organization_job_family": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e"], "model.workday.stg_workday__job_family": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f"], "model.workday.stg_workday__military_service": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38"], "model.workday.stg_workday__personal_information": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b"], "model.workday.stg_workday__worker": ["model.workday.int_workday__worker_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "test.workday.not_null_stg_workday__worker_worker_id.8dae310560"], "model.workday.stg_workday__organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7"], "model.workday.stg_workday__job_family_job_family_group_base": ["model.workday.stg_workday__job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["model.workday.stg_workday__personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["model.workday.stg_workday__job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["model.workday.stg_workday__worker_position_organization", "model.workday.stg_workday__worker_position_organization_history", "model.workday.workday__worker_position_org_daily_history"], "model.workday.stg_workday__position_base": ["model.workday.stg_workday__position"], "model.workday.stg_workday__person_contact_email_address_base": ["model.workday.stg_workday__person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["model.workday.stg_workday__organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["model.workday.stg_workday__job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["model.workday.stg_workday__position_organization"], "model.workday.stg_workday__organization_role_base": ["model.workday.stg_workday__organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["model.workday.stg_workday__worker_leave_status"], "model.workday.stg_workday__job_family_base": ["model.workday.stg_workday__job_family"], "model.workday.stg_workday__job_profile_base": ["model.workday.stg_workday__job_profile"], "model.workday.stg_workday__organization_base": ["model.workday.stg_workday__organization"], "model.workday.stg_workday__organization_role_worker_base": ["model.workday.stg_workday__organization_role_worker"], "model.workday.stg_workday__worker_base": ["model.workday.stg_workday__worker", "model.workday.stg_workday__worker_history"], "model.workday.stg_workday__position_job_profile_base": ["model.workday.stg_workday__position_job_profile"], "model.workday.stg_workday__worker_position_base": ["model.workday.stg_workday__worker_position", "model.workday.stg_workday__worker_position_history"], "model.workday.stg_workday__person_name_base": ["model.workday.stg_workday__person_name"], "model.workday.stg_workday__military_service_base": ["model.workday.stg_workday__military_service"], "model.workday.stg_workday__personal_information_base": ["model.workday.stg_workday__personal_information", "model.workday.stg_workday__personal_information_history"], "model.workday.workday__monthly_summary": ["test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab"], "model.workday.workday__employee_daily_history": ["model.workday.workday__monthly_summary", "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269"], "model.workday.workday__worker_position_org_daily_history": ["test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21"], "model.workday.stg_workday__worker_position_history": ["model.workday.int_workday__employee_history", "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879"], "model.workday.stg_workday__worker_history": ["model.workday.int_workday__employee_history", "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72"], "model.workday.stg_workday__personal_information_history": ["model.workday.int_workday__employee_history", "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc"], "model.workday.stg_workday__worker_position_organization_history": ["model.workday.workday__worker_position_org_daily_history", "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398"], "model.workday.int_workday__employee_history": ["model.workday.workday__employee_daily_history"], "model.workday.int_workday__worker_position_enriched": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__personal_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.workday__employee_overview"], "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": [], "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": [], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": [], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": [], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": [], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": [], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": [], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": [], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": [], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": [], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": [], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": [], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": [], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": [], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": [], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": [], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": [], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": [], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": [], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": [], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": [], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": [], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": [], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": [], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": [], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": [], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": [], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": [], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": [], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": [], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": [], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": [], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": [], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": [], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": [], "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": [], "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": [], "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": [], "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": [], "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": [], "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": [], "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": [], "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": [], "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": [], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": [], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": [], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": [], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": [], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": [], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": [], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": [], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": [], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": [], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": [], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": [], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": [], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": [], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": [], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": [], "source.workday.workday.job_profile": ["model.workday.stg_workday__job_profile_base"], "source.workday.workday.job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "source.workday.workday.job_family": ["model.workday.stg_workday__job_family_base"], "source.workday.workday.job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "source.workday.workday.job_family_group": ["model.workday.stg_workday__job_family_group_base"], "source.workday.workday.organization_role": ["model.workday.stg_workday__organization_role_base"], "source.workday.workday.organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "source.workday.workday.organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "source.workday.workday.organization": ["model.workday.stg_workday__organization_base"], "source.workday.workday.position_organization": ["model.workday.stg_workday__position_organization_base"], "source.workday.workday.position": ["model.workday.stg_workday__position_base"], "source.workday.workday.position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "source.workday.workday.worker_history": ["model.workday.stg_workday__worker_base"], "source.workday.workday.personal_information_history": ["model.workday.stg_workday__personal_information_base"], "source.workday.workday.person_name": ["model.workday.stg_workday__person_name_base"], "source.workday.workday.personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "source.workday.workday.military_service": ["model.workday.stg_workday__military_service_base"], "source.workday.workday.person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "source.workday.workday.worker_position_history": ["model.workday.stg_workday__worker_position_base"], "source.workday.workday.worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "source.workday.workday.worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json index d6d3fcf..c0439a5 100644 --- a/docs/run_results.json +++ b/docs/run_results.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v5.json", "dbt_version": "1.7.8", "generated_at": "2024-04-01T22:52:24.269450Z", "invocation_id": "8e65a20c-cb81-4843-9da9-8c7f4213e39a", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.216236Z", "completed_at": "2024-04-01T22:52:12.331630Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.333722Z", "completed_at": "2024-04-01T22:52:12.333771Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.13081598281860352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.234106Z", "completed_at": "2024-04-01T22:52:12.332023Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.334022Z", "completed_at": "2024-04-01T22:52:12.334025Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.12884879112243652, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.283034Z", "completed_at": "2024-04-01T22:52:12.332382Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.334495Z", "completed_at": "2024-04-01T22:52:12.334498Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.12891077995300293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.327584Z", "completed_at": "2024-04-01T22:52:12.333183Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.336012Z", "completed_at": "2024-04-01T22:52:12.336020Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.12781310081481934, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.345137Z", "completed_at": "2024-04-01T22:52:12.354061Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.356920Z", "completed_at": "2024-04-01T22:52:12.356927Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.018774986267089844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__military_service_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.342251Z", "completed_at": "2024-04-01T22:52:12.354498Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.357225Z", "completed_at": "2024-04-01T22:52:12.357231Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.019749164581298828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.348361Z", "completed_at": "2024-04-01T22:52:12.355350Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.357780Z", "completed_at": "2024-04-01T22:52:12.357785Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.019112825393676758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.351628Z", "completed_at": "2024-04-01T22:52:12.356366Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.359188Z", "completed_at": "2024-04-01T22:52:12.359193Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0195310115814209, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.368066Z", "completed_at": "2024-04-01T22:52:12.378050Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.380426Z", "completed_at": "2024-04-01T22:52:12.380438Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.019721031188964844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.365119Z", "completed_at": "2024-04-01T22:52:12.378322Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.381119Z", "completed_at": "2024-04-01T22:52:12.381123Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.021065950393676758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.371259Z", "completed_at": "2024-04-01T22:52:12.379069Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.382440Z", "completed_at": "2024-04-01T22:52:12.382445Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.02106499671936035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.374649Z", "completed_at": "2024-04-01T22:52:12.379988Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.383428Z", "completed_at": "2024-04-01T22:52:12.383434Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.020886898040771484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_name_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.388416Z", "completed_at": "2024-04-01T22:52:12.399848Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.403885Z", "completed_at": "2024-04-01T22:52:12.403893Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.019798994064331055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.392625Z", "completed_at": "2024-04-01T22:52:12.403485Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.406187Z", "completed_at": "2024-04-01T22:52:12.406193Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.02152705192565918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.395773Z", "completed_at": "2024-04-01T22:52:12.404143Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.407182Z", "completed_at": "2024-04-01T22:52:12.407186Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.021695852279663086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.400293Z", "completed_at": "2024-04-01T22:52:12.405580Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.408396Z", "completed_at": "2024-04-01T22:52:12.408399Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.022176027297973633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.410996Z", "completed_at": "2024-04-01T22:52:12.419738Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.426514Z", "completed_at": "2024-04-01T22:52:12.426525Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.019732952117919922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.416158Z", "completed_at": "2024-04-01T22:52:12.426256Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.428655Z", "completed_at": "2024-04-01T22:52:12.428662Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.019649028778076172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.420438Z", "completed_at": "2024-04-01T22:52:12.426959Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.429347Z", "completed_at": "2024-04-01T22:52:12.429351Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016704082489013672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_leave_status_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.423741Z", "completed_at": "2024-04-01T22:52:12.428369Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.431780Z", "completed_at": "2024-04-01T22:52:12.431786Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.018108129501342773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.440204Z", "completed_at": "2024-04-01T22:52:12.441440Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.507559Z", "completed_at": "2024-04-01T22:52:12.507576Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.07504892349243164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.434638Z", "completed_at": "2024-04-01T22:52:12.441754Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.508017Z", "completed_at": "2024-04-01T22:52:12.508024Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.07927989959716797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.442137Z", "completed_at": "2024-04-01T22:52:12.443077Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.508420Z", "completed_at": "2024-04-01T22:52:12.508426Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.07282567024230957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.444542Z", "completed_at": "2024-04-01T22:52:12.506953Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.511154Z", "completed_at": "2024-04-01T22:52:12.511164Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.07402586936950684, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.517623Z", "completed_at": "2024-04-01T22:52:12.518865Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.524796Z", "completed_at": "2024-04-01T22:52:12.524806Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01205897331237793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.519252Z", "completed_at": "2024-04-01T22:52:12.520295Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.525155Z", "completed_at": "2024-04-01T22:52:12.525160Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.012091875076293945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.520612Z", "completed_at": "2024-04-01T22:52:12.521592Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.525471Z", "completed_at": "2024-04-01T22:52:12.525476Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.012099027633666992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_military_service_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.523255Z", "completed_at": "2024-04-01T22:52:12.524438Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.527852Z", "completed_at": "2024-04-01T22:52:12.527859Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01248931884765625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.533358Z", "completed_at": "2024-04-01T22:52:12.534499Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.542098Z", "completed_at": "2024-04-01T22:52:12.542107Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013848066329956055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.534957Z", "completed_at": "2024-04-01T22:52:12.536729Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.542597Z", "completed_at": "2024-04-01T22:52:12.542604Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013975858688354492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.537158Z", "completed_at": "2024-04-01T22:52:12.538748Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.542898Z", "completed_at": "2024-04-01T22:52:12.542901Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.013909101486206055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.540333Z", "completed_at": "2024-04-01T22:52:12.541634Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.545413Z", "completed_at": "2024-04-01T22:52:12.545418Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.015161991119384766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.551433Z", "completed_at": "2024-04-01T22:52:12.553546Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.560821Z", "completed_at": "2024-04-01T22:52:12.560827Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0136871337890625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_name_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.554091Z", "completed_at": "2024-04-01T22:52:12.555395Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.561146Z", "completed_at": "2024-04-01T22:52:12.561149Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013862133026123047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.555881Z", "completed_at": "2024-04-01T22:52:12.556955Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.561447Z", "completed_at": "2024-04-01T22:52:12.561450Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.014091014862060547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.558365Z", "completed_at": "2024-04-01T22:52:12.560479Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.563897Z", "completed_at": "2024-04-01T22:52:12.563902Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01464700698852539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.569604Z", "completed_at": "2024-04-01T22:52:12.570831Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.576932Z", "completed_at": "2024-04-01T22:52:12.576940Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012605905532836914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.571229Z", "completed_at": "2024-04-01T22:52:12.572336Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.577339Z", "completed_at": "2024-04-01T22:52:12.577350Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.012531757354736328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.572809Z", "completed_at": "2024-04-01T22:52:12.573899Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.577760Z", "completed_at": "2024-04-01T22:52:12.577764Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.012366056442260742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.575554Z", "completed_at": "2024-04-01T22:52:12.576552Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.580205Z", "completed_at": "2024-04-01T22:52:12.580209Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.012942075729370117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.584883Z", "completed_at": "2024-04-01T22:52:12.586021Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.600461Z", "completed_at": "2024-04-01T22:52:12.600467Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0194089412689209, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:12.586306Z", "completed_at": "2024-04-01T22:52:12.588888Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:12.600723Z", "completed_at": "2024-04-01T22:52:12.600725Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0195770263671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.386883Z", "completed_at": "2024-04-01T22:52:21.414838Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.416518Z", "completed_at": "2024-04-01T22:52:21.416526Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.03340435028076172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id\n from __dbt__cte__stg_workday__job_family\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.400392Z", "completed_at": "2024-04-01T22:52:21.415280Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.417077Z", "completed_at": "2024-04-01T22:52:21.417080Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.03377485275268555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.408439Z", "completed_at": "2024-04-01T22:52:21.415904Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.417981Z", "completed_at": "2024-04-01T22:52:21.417985Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.03428816795349121, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from __dbt__cte__stg_workday__job_family_job_profile\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.422272Z", "completed_at": "2024-04-01T22:52:21.434892Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.435467Z", "completed_at": "2024-04-01T22:52:21.435481Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.015895843505859375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.425958Z", "completed_at": "2024-04-01T22:52:21.436290Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.438063Z", "completed_at": "2024-04-01T22:52:21.438067Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01836395263671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.429861Z", "completed_at": "2024-04-01T22:52:21.436528Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.438345Z", "completed_at": "2024-04-01T22:52:21.438353Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.018107891082763672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from __dbt__cte__stg_workday__job_family_job_family_group\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.440050Z", "completed_at": "2024-04-01T22:52:21.445726Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.454483Z", "completed_at": "2024-04-01T22:52:21.454490Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01760411262512207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.446341Z", "completed_at": "2024-04-01T22:52:21.455496Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.457475Z", "completed_at": "2024-04-01T22:52:21.457480Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.013790130615234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.450134Z", "completed_at": "2024-04-01T22:52:21.456247Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.458030Z", "completed_at": "2024-04-01T22:52:21.458033Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.018204927444458008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_group_id\n from __dbt__cte__stg_workday__job_family_group\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.458799Z", "completed_at": "2024-04-01T22:52:21.465274Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.485072Z", "completed_at": "2024-04-01T22:52:21.485078Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.029066085815429688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_group\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.466252Z", "completed_at": "2024-04-01T22:52:21.490472Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.491507Z", "completed_at": "2024-04-01T22:52:21.491513Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.027987957000732422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__job_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), job_profile_data as (\n\n select * \n from __dbt__cte__stg_workday__job_profile\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_profile\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from __dbt__cte__stg_workday__job_family\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_family_group\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from __dbt__cte__stg_workday__job_family_group\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.481410Z", "completed_at": "2024-04-01T22:52:21.491228Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.492996Z", "completed_at": "2024-04-01T22:52:21.493000Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.029147863388061523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id\n from __dbt__cte__stg_workday__job_profile\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.487103Z", "completed_at": "2024-04-01T22:52:21.491735Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.493643Z", "completed_at": "2024-04-01T22:52:21.493646Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.008301019668579102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.496409Z", "completed_at": "2024-04-01T22:52:21.510034Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.510989Z", "completed_at": "2024-04-01T22:52:21.510997Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01762676239013672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__military_service\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.502760Z", "completed_at": "2024-04-01T22:52:21.511239Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.513232Z", "completed_at": "2024-04-01T22:52:21.513237Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.018660783767700195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__military_service\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.506146Z", "completed_at": "2024-04-01T22:52:21.511496Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.513533Z", "completed_at": "2024-04-01T22:52:21.513536Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013845682144165039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from __dbt__cte__stg_workday__organization_job_family\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.516600Z", "completed_at": "2024-04-01T22:52:21.525356Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.531594Z", "completed_at": "2024-04-01T22:52:21.531622Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.018663883209228516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.521710Z", "completed_at": "2024-04-01T22:52:21.531914Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.533968Z", "completed_at": "2024-04-01T22:52:21.533973Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.014868974685668945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.525768Z", "completed_at": "2024-04-01T22:52:21.532861Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.534641Z", "completed_at": "2024-04-01T22:52:21.534645Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.015246152877807617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id\n from __dbt__cte__stg_workday__organization\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.536464Z", "completed_at": "2024-04-01T22:52:21.541975Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.550732Z", "completed_at": "2024-04-01T22:52:21.550740Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01703786849975586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.546942Z", "completed_at": "2024-04-01T22:52:21.551888Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.553523Z", "completed_at": "2024-04-01T22:52:21.553527Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016686201095581055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.542240Z", "completed_at": "2024-04-01T22:52:21.552112Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.553786Z", "completed_at": "2024-04-01T22:52:21.553789Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017845869064331055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from __dbt__cte__stg_workday__organization_role_worker\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.554039Z", "completed_at": "2024-04-01T22:52:21.559979Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.565915Z", "completed_at": "2024-04-01T22:52:21.565922Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01884174346923828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_worker_code\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_worker_code is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.561344Z", "completed_at": "2024-04-01T22:52:21.572171Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.573777Z", "completed_at": "2024-04-01T22:52:21.573781Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01867532730102539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select role_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.566242Z", "completed_at": "2024-04-01T22:52:21.572879Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.577709Z", "completed_at": "2024-04-01T22:52:21.577716Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01852893829345703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from __dbt__cte__stg_workday__person_contact_email_address\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.574006Z", "completed_at": "2024-04-01T22:52:21.579740Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.581786Z", "completed_at": "2024-04-01T22:52:21.581796Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01800680160522461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_contact_email_address_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere person_contact_email_address_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.585777Z", "completed_at": "2024-04-01T22:52:21.596489Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.597740Z", "completed_at": "2024-04-01T22:52:21.597748Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.018254756927490234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from __dbt__cte__stg_workday__person_name\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.582112Z", "completed_at": "2024-04-01T22:52:21.596797Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.598053Z", "completed_at": "2024-04-01T22:52:21.598057Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.019248008728027344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.592014Z", "completed_at": "2024-04-01T22:52:21.598324Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.600765Z", "completed_at": "2024-04-01T22:52:21.600770Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.010567903518676758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_name_type\nfrom __dbt__cte__stg_workday__person_name\nwhere person_name_type is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.606736Z", "completed_at": "2024-04-01T22:52:21.616454Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.617806Z", "completed_at": "2024-04-01T22:52:21.617815Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.017277002334594727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from __dbt__cte__stg_workday__organization_role\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.603000Z", "completed_at": "2024-04-01T22:52:21.616810Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.618196Z", "completed_at": "2024-04-01T22:52:21.618203Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.018245220184326172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_name\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.612447Z", "completed_at": "2024-04-01T22:52:21.620126Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.623799Z", "completed_at": "2024-04-01T22:52:21.623808Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0177457332611084, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.625007Z", "completed_at": "2024-04-01T22:52:21.636159Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.685842Z", "completed_at": "2024-04-01T22:52:21.685849Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.06613993644714355, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_role_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.629666Z", "completed_at": "2024-04-01T22:52:21.636725Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.686260Z", "completed_at": "2024-04-01T22:52:21.686271Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0648336410522461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__personal_information\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.637215Z", "completed_at": "2024-04-01T22:52:21.687979Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.690485Z", "completed_at": "2024-04-01T22:52:21.690491Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0559239387512207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.691982Z", "completed_at": "2024-04-01T22:52:21.702274Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.722026Z", "completed_at": "2024-04-01T22:52:21.722039Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.03386497497558594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id\n from __dbt__cte__stg_workday__position\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.697359Z", "completed_at": "2024-04-01T22:52:21.702680Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.722729Z", "completed_at": "2024-04-01T22:52:21.722735Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0359499454498291, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.734061Z", "completed_at": "2024-04-01T22:52:21.755278Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.756065Z", "completed_at": "2024-04-01T22:52:21.756073Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0287320613861084, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.742824Z", "completed_at": "2024-04-01T22:52:21.756385Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.759545Z", "completed_at": "2024-04-01T22:52:21.759551Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.02984905242919922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_history_worker_id___fivetran_start.cd9718ce7c", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n worker_id, _fivetran_start\n from __dbt__cte__stg_workday__personal_information_history\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.748611Z", "completed_at": "2024-04-01T22:52:21.756727Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.759874Z", "completed_at": "2024-04-01T22:52:21.759878Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.029052734375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select ethnicity_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere ethnicity_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.763467Z", "completed_at": "2024-04-01T22:52:21.773360Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.778928Z", "completed_at": "2024-04-01T22:52:21.778935Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.019628047943115234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.769370Z", "completed_at": "2024-04-01T22:52:21.779226Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.781555Z", "completed_at": "2024-04-01T22:52:21.781561Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.015173912048339844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.773838Z", "completed_at": "2024-04-01T22:52:21.780284Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.782423Z", "completed_at": "2024-04-01T22:52:21.782428Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.015497922897338867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.784231Z", "completed_at": "2024-04-01T22:52:21.791344Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.803330Z", "completed_at": "2024-04-01T22:52:21.803342Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.02210211753845215, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.791928Z", "completed_at": "2024-04-01T22:52:21.804451Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.806235Z", "completed_at": "2024-04-01T22:52:21.806242Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017253875732421875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__position_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), position_data as (\n\n select *\n from __dbt__cte__stg_workday__position\n),\n\nposition_job_profile_data as (\n\n select *\n from __dbt__cte__stg_workday__position_job_profile\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.798886Z", "completed_at": "2024-04-01T22:52:21.805457Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.807646Z", "completed_at": "2024-04-01T22:52:21.807649Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.021514892578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from __dbt__cte__stg_workday__position_job_profile\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.807940Z", "completed_at": "2024-04-01T22:52:21.813372Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.819725Z", "completed_at": "2024-04-01T22:52:21.819732Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.018564701080322266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.814671Z", "completed_at": "2024-04-01T22:52:21.824739Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.826314Z", "completed_at": "2024-04-01T22:52:21.826319Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.014655113220214844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.820074Z", "completed_at": "2024-04-01T22:52:21.826045Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.831041Z", "completed_at": "2024-04-01T22:52:21.831054Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.018551111221313477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from __dbt__cte__stg_workday__position_organization\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.827519Z", "completed_at": "2024-04-01T22:52:21.833355Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.838414Z", "completed_at": "2024-04-01T22:52:21.838421Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013761043548583984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.834947Z", "completed_at": "2024-04-01T22:52:21.851911Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.859959Z", "completed_at": "2024-04-01T22:52:21.859967Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.027821063995361328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.861328Z", "completed_at": "2024-04-01T22:52:21.867872Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.873382Z", "completed_at": "2024-04-01T22:52:21.873389Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.018733978271484375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__worker\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.869005Z", "completed_at": "2024-04-01T22:52:21.878534Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.880429Z", "completed_at": "2024-04-01T22:52:21.880435Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.014460086822509766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.873834Z", "completed_at": "2024-04-01T22:52:21.879549Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.881897Z", "completed_at": "2024-04-01T22:52:21.881901Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.018034934997558594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_history_worker_id___fivetran_start.d1c40461df", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n worker_id, _fivetran_start\n from __dbt__cte__stg_workday__worker_history\n group by worker_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.882176Z", "completed_at": "2024-04-01T22:52:21.887513Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.894308Z", "completed_at": "2024-04-01T22:52:21.894316Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.019279956817626953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.889256Z", "completed_at": "2024-04-01T22:52:21.900147Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.901878Z", "completed_at": "2024-04-01T22:52:21.901884Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.020772218704223633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.894659Z", "completed_at": "2024-04-01T22:52:21.901323Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.908078Z", "completed_at": "2024-04-01T22:52:21.908083Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.020632266998291016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.902529Z", "completed_at": "2024-04-01T22:52:21.909935Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.914934Z", "completed_at": "2024-04-01T22:52:21.914949Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.015423297882080078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from __dbt__cte__stg_workday__worker_leave_status\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.911420Z", "completed_at": "2024-04-01T22:52:21.919946Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.921668Z", "completed_at": "2024-04-01T22:52:21.921674Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.013443708419799805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select leave_request_event_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere leave_request_event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.916439Z", "completed_at": "2024-04-01T22:52:21.921383Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.931846Z", "completed_at": "2024-04-01T22:52:21.931853Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.021828889846801758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.923302Z", "completed_at": "2024-04-01T22:52:21.933685Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.939978Z", "completed_at": "2024-04-01T22:52:21.939992Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.020087003707885742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__organization_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), organization_data as (\n\n select * \n from __dbt__cte__stg_workday__organization\n),\n\norganization_role_data as (\n\n select * \n from __dbt__cte__stg_workday__organization_role\n),\n\nworker_position_organization as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_organization\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.935212Z", "completed_at": "2024-04-01T22:52:21.944517Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.946337Z", "completed_at": "2024-04-01T22:52:21.946349Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.014250040054321289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from __dbt__cte__stg_workday__worker_position_organization\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.941401Z", "completed_at": "2024-04-01T22:52:21.946686Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.951908Z", "completed_at": "2024-04-01T22:52:21.951915Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.018082141876220703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.948095Z", "completed_at": "2024-04-01T22:52:21.953223Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.958231Z", "completed_at": "2024-04-01T22:52:21.958237Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013158798217773438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.954121Z", "completed_at": "2024-04-01T22:52:21.970308Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.972817Z", "completed_at": "2024-04-01T22:52:21.972824Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.021552085876464844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.974580Z", "completed_at": "2024-04-01T22:52:21.981028Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:21.989312Z", "completed_at": "2024-04-01T22:52:21.989328Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.017867088317871094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from __dbt__cte__stg_workday__worker_position\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.982315Z", "completed_at": "2024-04-01T22:52:21.991571Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.050581Z", "completed_at": "2024-04-01T22:52:22.050587Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0713491439819336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.986057Z", "completed_at": "2024-04-01T22:52:21.991845Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.050939Z", "completed_at": "2024-04-01T22:52:22.050944Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.07151985168457031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:21.992185Z", "completed_at": "2024-04-01T22:52:22.052594Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.054857Z", "completed_at": "2024-04-01T22:52:22.054862Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.06492733955383301, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__employee_history", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n), worker_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_history\n),\n\nworker_position_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_history\n),\n\npersonal_information_history as (\n\n select *\n from __dbt__cte__stg_workday__personal_information_history\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select md5(cast(coalesce(cast(employee_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.056275Z", "completed_at": "2024-04-01T22:52:22.067834Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.075590Z", "completed_at": "2024-04-01T22:52:22.075599Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.02270221710205078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_history_worker_id__position_id___fivetran_start.2ee9ebc56b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n worker_id, position_id, _fivetran_start\n from __dbt__cte__stg_workday__worker_position_history\n group by worker_id, position_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.061360Z", "completed_at": "2024-04-01T22:52:22.068563Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.075996Z", "completed_at": "2024-04-01T22:52:22.076002Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.022766828536987305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.069208Z", "completed_at": "2024-04-01T22:52:22.077516Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.079533Z", "completed_at": "2024-04-01T22:52:22.079538Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013241052627563477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.080993Z", "completed_at": "2024-04-01T22:52:22.093357Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.094888Z", "completed_at": "2024-04-01T22:52:22.094894Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017184019088745117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.084770Z", "completed_at": "2024-04-01T22:52:22.093706Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.095131Z", "completed_at": "2024-04-01T22:52:22.095135Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.017494916915893555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.089914Z", "completed_at": "2024-04-01T22:52:22.094642Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.096950Z", "completed_at": "2024-04-01T22:52:22.096955Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.009577035903930664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.104574Z", "completed_at": "2024-04-01T22:52:22.112828Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.114750Z", "completed_at": "2024-04-01T22:52:22.114761Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01683807373046875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.101308Z", "completed_at": "2024-04-01T22:52:22.113289Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.115339Z", "completed_at": "2024-04-01T22:52:22.115365Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01788806915283203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.108801Z", "completed_at": "2024-04-01T22:52:22.114389Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.117130Z", "completed_at": "2024-04-01T22:52:22.117134Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.017326831817626953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.120368Z", "completed_at": "2024-04-01T22:52:22.130307Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.131660Z", "completed_at": "2024-04-01T22:52:22.131666Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014331817626953125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.127032Z", "completed_at": "2024-04-01T22:52:22.131152Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.133315Z", "completed_at": "2024-04-01T22:52:22.133319Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.015076875686645508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.123703Z", "completed_at": "2024-04-01T22:52:22.131431Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.133588Z", "completed_at": "2024-04-01T22:52:22.133590Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016781091690063477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.167402Z", "completed_at": "2024-04-01T22:52:22.181975Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.182502Z", "completed_at": "2024-04-01T22:52:22.182509Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01619887351989746, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n), employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from __dbt__cte__int_workday__worker_employee_enhanced \n)\n\nselect * \nfrom employee_surrogate_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.188931Z", "completed_at": "2024-04-01T22:52:22.193441Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.194652Z", "completed_at": "2024-04-01T22:52:22.194658Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.010887861251831055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.185439Z", "completed_at": "2024-04-01T22:52:22.193794Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.194976Z", "completed_at": "2024-04-01T22:52:22.194980Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011782169342041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.197362Z", "completed_at": "2024-04-01T22:52:22.200522Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.200993Z", "completed_at": "2024-04-01T22:52:22.200999Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.004685163497924805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__employee_overview_employee_id.b01e19996c", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is not null\ngroup by employee_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.577581Z", "completed_at": "2024-04-01T22:52:22.586249Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.587496Z", "completed_at": "2024-04-01T22:52:22.587503Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.038244009017944336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_history_worker_id__position_id__organization_id___fivetran_start.f6c4cd1888", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n worker_id, position_id, organization_id, _fivetran_start\n from __dbt__cte__stg_workday__worker_position_organization_history\n group by worker_id, position_id, organization_id, _fivetran_start\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.581784Z", "completed_at": "2024-04-01T22:52:22.586662Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.587818Z", "completed_at": "2024-04-01T22:52:22.587824Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.03736114501953125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.594969Z", "completed_at": "2024-04-01T22:52:22.598327Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.598931Z", "completed_at": "2024-04-01T22:52:22.598937Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.008926868438720703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.591379Z", "completed_at": "2024-04-01T22:52:22.603591Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.604410Z", "completed_at": "2024-04-01T22:52:22.604428Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.015017986297607422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.600554Z", "completed_at": "2024-04-01T22:52:22.605299Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.606715Z", "completed_at": "2024-04-01T22:52:22.606721Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.007369041442871094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.607721Z", "completed_at": "2024-04-01T22:52:22.612876Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:22.613526Z", "completed_at": "2024-04-01T22:52:22.613531Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007750749588012695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.155707Z", "completed_at": "2024-04-01T22:52:23.646430Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:23.647497Z", "completed_at": "2024-04-01T22:52:23.647505Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.6328730583190918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_daily_history", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n\n\n \n \n\n \n \n\n\n\n\n\nwith spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n + \n \n p13.generated_number * power(2, 13)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n cross join \n \n p as p13\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 8492\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2000-12-31' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-01'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:23.791953Z", "completed_at": "2024-04-01T22:52:23.806243Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:23.809027Z", "completed_at": "2024-04-01T22:52:23.809037Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.03551816940307617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:23.779406Z", "completed_at": "2024-04-01T22:52:23.806641Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:23.809519Z", "completed_at": "2024-04-01T22:52:23.809527Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.037644147872924805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__monthly_summary", "compiled": true, "compiled_code": " \n\nwith row_month_partition as (\n\n select *, \n cast(date_trunc('month', date_day) as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n),\n\nend_of_month_history as (\n \n select *,\n now() as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when cast(date_month as date) = cast(date_trunc('month', position_effective_date) as date) then 1 else 0 end) as new_employees,\n sum(case when cast(date_month as date) = cast(date_trunc('month', termination_date) as date) then 1 else 0 end) as churned_employees,\n sum(case when (cast(date_month as date) = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (cast(date_month as date) = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when cast(date_month as date) = cast(date_trunc('month', end_employment_date) as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and (cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:23.801949Z", "completed_at": "2024-04-01T22:52:23.806993Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:23.809984Z", "completed_at": "2024-04-01T22:52:23.809989Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.036161184310913086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is not null\ngroup by employee_day_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:23.816326Z", "completed_at": "2024-04-01T22:52:23.825264Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:23.826694Z", "completed_at": "2024-04-01T22:52:23.826702Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013287067413330078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metrics_month\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:23.820565Z", "completed_at": "2024-04-01T22:52:23.825687Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:23.827067Z", "completed_at": "2024-04-01T22:52:23.827072Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.013338088989257812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab", "compiled": true, "compiled_code": "\n \n \n\nselect\n metrics_month as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is not null\ngroup by metrics_month\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:22.552687Z", "completed_at": "2024-04-01T22:52:24.090418Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:24.091104Z", "completed_at": "2024-04-01T22:52:24.091112Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.6708669662475586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__worker_position_org_daily_history", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n\n\n \n \n\n \n \n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n), spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n + \n \n p13.generated_number * power(2, 13)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n cross join \n \n p as p13\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 8492\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2000-12-31' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-01'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nworker_position_org_history as (\n\n select * \n from __dbt__cte__stg_workday__worker_position_organization_history\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:24.234209Z", "completed_at": "2024-04-01T22:52:24.252414Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:24.253613Z", "completed_at": "2024-04-01T22:52:24.253620Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.030524015426635742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:24.239815Z", "completed_at": "2024-04-01T22:52:24.253138Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:24.256747Z", "completed_at": "2024-04-01T22:52:24.256753Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.031891822814941406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:24.247265Z", "completed_at": "2024-04-01T22:52:24.253993Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:24.257511Z", "completed_at": "2024-04-01T22:52:24.257516Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.030001163482666016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect wpo_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:24.243297Z", "completed_at": "2024-04-01T22:52:24.254311Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:24.257854Z", "completed_at": "2024-04-01T22:52:24.257858Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.032279014587402344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-01T22:52:24.261150Z", "completed_at": "2024-04-01T22:52:24.265569Z"}, {"name": "execute", "started_at": "2024-04-01T22:52:24.266158Z", "completed_at": "2024-04-01T22:52:24.266165Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.007866859436035156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21", "compiled": true, "compiled_code": "\n \n \n\nselect\n wpo_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is not null\ngroup by wpo_day_id\nhaving count(*) > 1\n\n\n", "relation_name": null}], "elapsed_time": 16.182841777801514, "args": {"profiles_dir": "/Users/avinash.kunnath/.dbt", "send_anonymous_usage_stats": true, "target": "postgres", "empty_catalog": false, "populate_cache": true, "static_parser": true, "warn_error_options": {"include": [], "exclude": []}, "use_colors": true, "log_level": "info", "exclude": [], "introspect": true, "indirect_selection": "eager", "log_file_max_bytes": 10485760, "write_json": true, "partial_parse_file_diff": true, "log_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests/logs", "partial_parse": true, "log_format": "default", "vars": {}, "static": false, "invocation_command": "dbt docs generate -t postgres", "strict_mode": false, "enable_legacy_logger": false, "version_check": true, "macro_debugging": false, "favor_state": false, "quiet": false, "log_format_file": "debug", "defer": false, "use_colors_file": true, "print": true, "show_resource_report": false, "printer_width": 80, "compile": true, "select": [], "cache_selected_only": false, "log_level_file": "debug", "which": "generate", "project_dir": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests"}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v5.json", "dbt_version": "1.7.8", "generated_at": "2024-04-02T10:16:00.264093Z", "invocation_id": "2c956fce-7a6c-4f51-b5a5-d975f2021c95", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.607265Z", "completed_at": "2024-04-02T10:15:48.642750Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.645481Z", "completed_at": "2024-04-02T10:15:48.645497Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.04426717758178711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.635812Z", "completed_at": "2024-04-02T10:15:48.643351Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.646162Z", "completed_at": "2024-04-02T10:15:48.646167Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.04413008689880371, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.639186Z", "completed_at": "2024-04-02T10:15:48.643740Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.646497Z", "completed_at": "2024-04-02T10:15:48.646502Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.04420828819274902, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.633101Z", "completed_at": "2024-04-02T10:15:48.644499Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.647637Z", "completed_at": "2024-04-02T10:15:48.647641Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.046555280685424805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.654863Z", "completed_at": "2024-04-02T10:15:48.667544Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.669322Z", "completed_at": "2024-04-02T10:15:48.669329Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0194399356842041, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.658835Z", "completed_at": "2024-04-02T10:15:48.667936Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.670101Z", "completed_at": "2024-04-02T10:15:48.670107Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.019529342651367188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__military_service_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.661552Z", "completed_at": "2024-04-02T10:15:48.668544Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.671036Z", "completed_at": "2024-04-02T10:15:48.671044Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0200040340423584, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.664341Z", "completed_at": "2024-04-02T10:15:48.668809Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.671364Z", "completed_at": "2024-04-02T10:15:48.671367Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.019658565521240234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.676615Z", "completed_at": "2024-04-02T10:15:48.687671Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.689395Z", "completed_at": "2024-04-02T10:15:48.689405Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0164639949798584, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.680653Z", "completed_at": "2024-04-02T10:15:48.687990Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.689622Z", "completed_at": "2024-04-02T10:15:48.689625Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.015976905822753906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.682921Z", "completed_at": "2024-04-02T10:15:48.688944Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.691276Z", "completed_at": "2024-04-02T10:15:48.691279Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01699090003967285, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.685202Z", "completed_at": "2024-04-02T10:15:48.689167Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.691625Z", "completed_at": "2024-04-02T10:15:48.691628Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01703810691833496, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_name_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.695836Z", "completed_at": "2024-04-02T10:15:48.707530Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.708713Z", "completed_at": "2024-04-02T10:15:48.708719Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01660609245300293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.698326Z", "completed_at": "2024-04-02T10:15:48.707839Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.709464Z", "completed_at": "2024-04-02T10:15:48.709469Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017239093780517578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.702240Z", "completed_at": "2024-04-02T10:15:48.708949Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.711595Z", "completed_at": "2024-04-02T10:15:48.711600Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01776909828186035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.704909Z", "completed_at": "2024-04-02T10:15:48.709160Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.711886Z", "completed_at": "2024-04-02T10:15:48.711889Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.017829179763793945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.714973Z", "completed_at": "2024-04-02T10:15:48.726935Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.728383Z", "completed_at": "2024-04-02T10:15:48.728389Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01712799072265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.718268Z", "completed_at": "2024-04-02T10:15:48.727273Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.729071Z", "completed_at": "2024-04-02T10:15:48.729075Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016927003860473633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.721284Z", "completed_at": "2024-04-02T10:15:48.727867Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.730113Z", "completed_at": "2024-04-02T10:15:48.730116Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01405477523803711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_leave_status_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.723584Z", "completed_at": "2024-04-02T10:15:48.728610Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.731186Z", "completed_at": "2024-04-02T10:15:48.731189Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.015025138854980469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.738393Z", "completed_at": "2024-04-02T10:15:48.739559Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.743351Z", "completed_at": "2024-04-02T10:15:48.743357Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.010863780975341797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.740222Z", "completed_at": "2024-04-02T10:15:48.741150Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.743975Z", "completed_at": "2024-04-02T10:15:48.743978Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011005878448486328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.741688Z", "completed_at": "2024-04-02T10:15:48.742614Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.744733Z", "completed_at": "2024-04-02T10:15:48.744738Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.008429765701293945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.734933Z", "completed_at": "2024-04-02T10:15:48.742884Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.744996Z", "completed_at": "2024-04-02T10:15:48.744999Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.014181137084960938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.749377Z", "completed_at": "2024-04-02T10:15:48.750435Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.755759Z", "completed_at": "2024-04-02T10:15:48.755766Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009887933731079102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.751075Z", "completed_at": "2024-04-02T10:15:48.752757Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.756506Z", "completed_at": "2024-04-02T10:15:48.756511Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00990915298461914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.753289Z", "completed_at": "2024-04-02T10:15:48.754198Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.757286Z", "completed_at": "2024-04-02T10:15:48.757289Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.010066032409667969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_military_service_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.754447Z", "completed_at": "2024-04-02T10:15:48.755311Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.757523Z", "completed_at": "2024-04-02T10:15:48.757525Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.010302305221557617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.762300Z", "completed_at": "2024-04-02T10:15:48.763347Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.805066Z", "completed_at": "2024-04-02T10:15:48.805074Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.04643678665161133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.764040Z", "completed_at": "2024-04-02T10:15:48.764974Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.805730Z", "completed_at": "2024-04-02T10:15:48.805733Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.046411752700805664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.765446Z", "completed_at": "2024-04-02T10:15:48.767626Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.806514Z", "completed_at": "2024-04-02T10:15:48.806518Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.04682302474975586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.768029Z", "completed_at": "2024-04-02T10:15:48.804410Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.806758Z", "completed_at": "2024-04-02T10:15:48.806764Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.04712510108947754, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.812116Z", "completed_at": "2024-04-02T10:15:48.813216Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.817694Z", "completed_at": "2024-04-02T10:15:48.817700Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009320974349975586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_name_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.813900Z", "completed_at": "2024-04-02T10:15:48.814803Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.818313Z", "completed_at": "2024-04-02T10:15:48.818316Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009237051010131836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.815269Z", "completed_at": "2024-04-02T10:15:48.816129Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.819018Z", "completed_at": "2024-04-02T10:15:48.819021Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.009345054626464844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.816360Z", "completed_at": "2024-04-02T10:15:48.817203Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.819249Z", "completed_at": "2024-04-02T10:15:48.819252Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.009353160858154297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.823666Z", "completed_at": "2024-04-02T10:15:48.824743Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.830242Z", "completed_at": "2024-04-02T10:15:48.830256Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.010230064392089844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.825378Z", "completed_at": "2024-04-02T10:15:48.826997Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.831053Z", "completed_at": "2024-04-02T10:15:48.831060Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.010289907455444336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.827436Z", "completed_at": "2024-04-02T10:15:48.828305Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.831863Z", "completed_at": "2024-04-02T10:15:48.831866Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01034402847290039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.828607Z", "completed_at": "2024-04-02T10:15:48.829594Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.832105Z", "completed_at": "2024-04-02T10:15:48.832108Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.010436773300170898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.836543Z", "completed_at": "2024-04-02T10:15:48.837491Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.850189Z", "completed_at": "2024-04-02T10:15:48.850196Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01719808578491211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.838309Z", "completed_at": "2024-04-02T10:15:48.839315Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.850822Z", "completed_at": "2024-04-02T10:15:48.850825Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.017229795455932617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.710149Z", "completed_at": "2024-04-02T10:15:56.721796Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.722360Z", "completed_at": "2024-04-02T10:15:56.722367Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.013910770416259766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from __dbt__cte__stg_workday__job_family_job_profile\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.724093Z", "completed_at": "2024-04-02T10:15:56.730541Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.731016Z", "completed_at": "2024-04-02T10:15:56.731021Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007966041564941406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.732631Z", "completed_at": "2024-04-02T10:15:56.736070Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.736569Z", "completed_at": "2024-04-02T10:15:56.736574Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.004988193511962891, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.738082Z", "completed_at": "2024-04-02T10:15:56.742064Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.742542Z", "completed_at": "2024-04-02T10:15:56.742548Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00540471076965332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id\n from __dbt__cte__stg_workday__job_family\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.744017Z", "completed_at": "2024-04-02T10:15:56.747643Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.748099Z", "completed_at": "2024-04-02T10:15:56.748104Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.004996061325073242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.749726Z", "completed_at": "2024-04-02T10:15:56.754536Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.755016Z", "completed_at": "2024-04-02T10:15:56.755022Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.006385087966918945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from __dbt__cte__stg_workday__job_family_job_family_group\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.756653Z", "completed_at": "2024-04-02T10:15:56.761204Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.761711Z", "completed_at": "2024-04-02T10:15:56.761717Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.006094217300415039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.763323Z", "completed_at": "2024-04-02T10:15:56.766827Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.767290Z", "completed_at": "2024-04-02T10:15:56.767294Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.004946231842041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.768840Z", "completed_at": "2024-04-02T10:15:56.772895Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.773363Z", "completed_at": "2024-04-02T10:15:56.773368Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0055391788482666016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_group_id\n from __dbt__cte__stg_workday__job_family_group\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.774950Z", "completed_at": "2024-04-02T10:15:56.778333Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.778806Z", "completed_at": "2024-04-02T10:15:56.778812Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0049169063568115234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_group\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.780363Z", "completed_at": "2024-04-02T10:15:56.797305Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.797849Z", "completed_at": "2024-04-02T10:15:56.797856Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01849508285522461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__job_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), job_profile_data as (\n\n select * \n from __dbt__cte__stg_workday__job_profile\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_profile\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from __dbt__cte__stg_workday__job_family\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_family_group\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from __dbt__cte__stg_workday__job_family_group\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.799623Z", "completed_at": "2024-04-02T10:15:56.803957Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.804438Z", "completed_at": "2024-04-02T10:15:56.804443Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.005816936492919922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id\n from __dbt__cte__stg_workday__job_profile\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.806009Z", "completed_at": "2024-04-02T10:15:56.809936Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.810467Z", "completed_at": "2024-04-02T10:15:56.810472Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.005483150482177734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.812482Z", "completed_at": "2024-04-02T10:15:56.817541Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.818025Z", "completed_at": "2024-04-02T10:15:56.818032Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00666499137878418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from __dbt__cte__stg_workday__organization_job_family\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.819774Z", "completed_at": "2024-04-02T10:15:56.823568Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.824169Z", "completed_at": "2024-04-02T10:15:56.824176Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.005578041076660156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.825924Z", "completed_at": "2024-04-02T10:15:56.830507Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.831025Z", "completed_at": "2024-04-02T10:15:56.831031Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.006153106689453125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.832813Z", "completed_at": "2024-04-02T10:15:56.837630Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.838134Z", "completed_at": "2024-04-02T10:15:56.838140Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.006429910659790039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__military_service\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.839623Z", "completed_at": "2024-04-02T10:15:56.844317Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.846229Z", "completed_at": "2024-04-02T10:15:56.846234Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007946014404296875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__military_service\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.851520Z", "completed_at": "2024-04-02T10:15:56.860571Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.861554Z", "completed_at": "2024-04-02T10:15:56.861560Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016697168350219727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.847361Z", "completed_at": "2024-04-02T10:15:56.860834Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.861820Z", "completed_at": "2024-04-02T10:15:56.861823Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01766681671142578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id\n from __dbt__cte__stg_workday__organization\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.855657Z", "completed_at": "2024-04-02T10:15:56.862034Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.864285Z", "completed_at": "2024-04-02T10:15:56.864289Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.010523796081542969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from __dbt__cte__stg_workday__organization_role\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.869926Z", "completed_at": "2024-04-02T10:15:56.878012Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.879054Z", "completed_at": "2024-04-02T10:15:56.879061Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.014865875244140625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_role_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.866433Z", "completed_at": "2024-04-02T10:15:56.878305Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.879321Z", "completed_at": "2024-04-02T10:15:56.879325Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.015964984893798828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.873921Z", "completed_at": "2024-04-02T10:15:56.880070Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.881877Z", "completed_at": "2024-04-02T10:15:56.881881Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009716987609863281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from __dbt__cte__stg_workday__person_contact_email_address\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.883375Z", "completed_at": "2024-04-02T10:15:56.892019Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.898065Z", "completed_at": "2024-04-02T10:15:56.898073Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.017358064651489258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_contact_email_address_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere person_contact_email_address_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.887041Z", "completed_at": "2024-04-02T10:15:56.892297Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.898352Z", "completed_at": "2024-04-02T10:15:56.898357Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.017290830612182617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.892513Z", "completed_at": "2024-04-02T10:15:56.899713Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.901549Z", "completed_at": "2024-04-02T10:15:56.901558Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.011410951614379883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from __dbt__cte__stg_workday__organization_role_worker\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.907038Z", "completed_at": "2024-04-02T10:15:56.915623Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.916704Z", "completed_at": "2024-04-02T10:15:56.916710Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016471147537231445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_worker_code\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_worker_code is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.903132Z", "completed_at": "2024-04-02T10:15:56.915904Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.917165Z", "completed_at": "2024-04-02T10:15:56.917169Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01753401756286621, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.912119Z", "completed_at": "2024-04-02T10:15:56.916936Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.918877Z", "completed_at": "2024-04-02T10:15:56.918880Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008634090423583984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select role_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.921194Z", "completed_at": "2024-04-02T10:15:56.933837Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.934536Z", "completed_at": "2024-04-02T10:15:56.934543Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01602005958557129, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from __dbt__cte__stg_workday__person_name\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.926949Z", "completed_at": "2024-04-02T10:15:56.934317Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.935734Z", "completed_at": "2024-04-02T10:15:56.935737Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.016505956649780273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_name_type\nfrom __dbt__cte__stg_workday__person_name\nwhere person_name_type is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.930654Z", "completed_at": "2024-04-02T10:15:56.935015Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.937013Z", "completed_at": "2024-04-02T10:15:56.937017Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01146697998046875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_name\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.939173Z", "completed_at": "2024-04-02T10:15:56.947256Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.997359Z", "completed_at": "2024-04-02T10:15:56.997371Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0608210563659668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__personal_information\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.943847Z", "completed_at": "2024-04-02T10:15:56.997056Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.998776Z", "completed_at": "2024-04-02T10:15:56.998780Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.06147599220275879, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.002513Z", "completed_at": "2024-04-02T10:15:57.014762Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.015432Z", "completed_at": "2024-04-02T10:15:57.015440Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.015820026397705078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.011497Z", "completed_at": "2024-04-02T10:15:57.015728Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.017740Z", "completed_at": "2024-04-02T10:15:57.017748Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.017081022262573242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.007930Z", "completed_at": "2024-04-02T10:15:57.016530Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.018541Z", "completed_at": "2024-04-02T10:15:57.018546Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01852703094482422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select ethnicity_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere ethnicity_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.020715Z", "completed_at": "2024-04-02T10:15:57.028153Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.039445Z", "completed_at": "2024-04-02T10:15:57.039457Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.022700071334838867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id\n from __dbt__cte__stg_workday__position\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.029071Z", "completed_at": "2024-04-02T10:15:57.039822Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.042489Z", "completed_at": "2024-04-02T10:15:57.042496Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.016824007034301758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.033984Z", "completed_at": "2024-04-02T10:15:57.042061Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.050176Z", "completed_at": "2024-04-02T10:15:57.050184Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.024737119674682617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.046342Z", "completed_at": "2024-04-02T10:15:57.052014Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.061000Z", "completed_at": "2024-04-02T10:15:57.061009Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.018754005432128906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.052377Z", "completed_at": "2024-04-02T10:15:57.061705Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.068047Z", "completed_at": "2024-04-02T10:15:57.068054Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.02310919761657715, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.062681Z", "completed_at": "2024-04-02T10:15:57.069263Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.075914Z", "completed_at": "2024-04-02T10:15:57.075923Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01643204689025879, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from __dbt__cte__stg_workday__position_organization\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.070703Z", "completed_at": "2024-04-02T10:15:57.081113Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.082884Z", "completed_at": "2024-04-02T10:15:57.082891Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.015654802322387695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.077252Z", "completed_at": "2024-04-02T10:15:57.083185Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.092084Z", "completed_at": "2024-04-02T10:15:57.092092Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0177919864654541, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.084654Z", "completed_at": "2024-04-02T10:15:57.094022Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.099742Z", "completed_at": "2024-04-02T10:15:57.099750Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.02136516571044922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__position_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), position_data as (\n\n select *\n from __dbt__cte__stg_workday__position\n),\n\nposition_job_profile_data as (\n\n select *\n from __dbt__cte__stg_workday__position_job_profile\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.094310Z", "completed_at": "2024-04-02T10:15:57.103287Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.105050Z", "completed_at": "2024-04-02T10:15:57.105054Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013616800308227539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from __dbt__cte__stg_workday__position_job_profile\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.100024Z", "completed_at": "2024-04-02T10:15:57.104795Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.106558Z", "completed_at": "2024-04-02T10:15:57.106562Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.012458086013793945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.107043Z", "completed_at": "2024-04-02T10:15:57.112910Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.119460Z", "completed_at": "2024-04-02T10:15:57.119467Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01488494873046875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.113146Z", "completed_at": "2024-04-02T10:15:57.119762Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.120973Z", "completed_at": "2024-04-02T10:15:57.120976Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.010387897491455078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.116555Z", "completed_at": "2024-04-02T10:15:57.121195Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.122829Z", "completed_at": "2024-04-02T10:15:57.122833Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.014628887176513672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.123059Z", "completed_at": "2024-04-02T10:15:57.133163Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.145410Z", "completed_at": "2024-04-02T10:15:57.145417Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.028396129608154297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.145675Z", "completed_at": "2024-04-02T10:15:57.151127Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.152659Z", "completed_at": "2024-04-02T10:15:57.152664Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.016239166259765625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__worker\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.156402Z", "completed_at": "2024-04-02T10:15:57.162243Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.166373Z", "completed_at": "2024-04-02T10:15:57.166379Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01538705825805664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from __dbt__cte__stg_workday__worker_leave_status\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.152901Z", "completed_at": "2024-04-02T10:15:57.162496Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.166675Z", "completed_at": "2024-04-02T10:15:57.166679Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01617908477783203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.162747Z", "completed_at": "2024-04-02T10:15:57.167821Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.169452Z", "completed_at": "2024-04-02T10:15:57.169456Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.008887052536010742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select leave_request_event_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere leave_request_event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.170780Z", "completed_at": "2024-04-02T10:15:57.189137Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.190074Z", "completed_at": "2024-04-02T10:15:57.190081Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.02234625816345215, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.184892Z", "completed_at": "2024-04-02T10:15:57.191430Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.193448Z", "completed_at": "2024-04-02T10:15:57.193453Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.010038137435913086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from __dbt__cte__stg_workday__worker_position\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.194626Z", "completed_at": "2024-04-02T10:15:57.206319Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.206859Z", "completed_at": "2024-04-02T10:15:57.206868Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.014770984649658203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.198055Z", "completed_at": "2024-04-02T10:15:57.207636Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.209271Z", "completed_at": "2024-04-02T10:15:57.209275Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01721811294555664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.202586Z", "completed_at": "2024-04-02T10:15:57.208221Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.209692Z", "completed_at": "2024-04-02T10:15:57.209695Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.011686086654663086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.210429Z", "completed_at": "2024-04-02T10:15:57.215278Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.278162Z", "completed_at": "2024-04-02T10:15:57.278170Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0701897144317627, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.250365Z", "completed_at": "2024-04-02T10:15:57.280496Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.285053Z", "completed_at": "2024-04-02T10:15:57.285060Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.07107782363891602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.216109Z", "completed_at": "2024-04-02T10:15:57.284238Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.285340Z", "completed_at": "2024-04-02T10:15:57.285344Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0719459056854248, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__employee_history", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n), worker_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_history\n),\n\nworker_position_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_history\n),\n\npersonal_information_history as (\n\n select *\n from __dbt__cte__stg_workday__personal_information_history\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select md5(cast(coalesce(cast(employee_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.280791Z", "completed_at": "2024-04-02T10:15:57.285599Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.287618Z", "completed_at": "2024-04-02T10:15:57.287622Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009095907211303711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.289717Z", "completed_at": "2024-04-02T10:15:57.306596Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.307694Z", "completed_at": "2024-04-02T10:15:57.307701Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.02075791358947754, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.293279Z", "completed_at": "2024-04-02T10:15:57.306857Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.307946Z", "completed_at": "2024-04-02T10:15:57.307949Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.020884037017822266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.298069Z", "completed_at": "2024-04-02T10:15:57.308166Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.310152Z", "completed_at": "2024-04-02T10:15:57.310156Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01396489143371582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__organization_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), organization_data as (\n\n select * \n from __dbt__cte__stg_workday__organization\n),\n\norganization_role_data as (\n\n select * \n from __dbt__cte__stg_workday__organization_role\n),\n\nworker_position_organization as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_organization\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.316598Z", "completed_at": "2024-04-02T10:15:57.324069Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.325333Z", "completed_at": "2024-04-02T10:15:57.325341Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01548910140991211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.312162Z", "completed_at": "2024-04-02T10:15:57.324373Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.325573Z", "completed_at": "2024-04-02T10:15:57.325576Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01653313636779785, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from __dbt__cte__stg_workday__worker_position_organization\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.320648Z", "completed_at": "2024-04-02T10:15:57.325085Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.327248Z", "completed_at": "2024-04-02T10:15:57.327252Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008526802062988281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.330554Z", "completed_at": "2024-04-02T10:15:57.341127Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.341916Z", "completed_at": "2024-04-02T10:15:57.341923Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.014070987701416016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.334111Z", "completed_at": "2024-04-02T10:15:57.341641Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.343369Z", "completed_at": "2024-04-02T10:15:57.343373Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.015202999114990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.337141Z", "completed_at": "2024-04-02T10:15:57.342178Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.343935Z", "completed_at": "2024-04-02T10:15:57.343940Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01496124267578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.371149Z", "completed_at": "2024-04-02T10:15:57.377665Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.379250Z", "completed_at": "2024-04-02T10:15:57.379259Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.023791074752807617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.379576Z", "completed_at": "2024-04-02T10:15:57.384397Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.387856Z", "completed_at": "2024-04-02T10:15:57.387866Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.010310888290405273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.384654Z", "completed_at": "2024-04-02T10:15:57.389001Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.390285Z", "completed_at": "2024-04-02T10:15:57.390293Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.02118086814880371, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.390627Z", "completed_at": "2024-04-02T10:15:57.405603Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.406187Z", "completed_at": "2024-04-02T10:15:57.406192Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.017338037490844727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n), employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from __dbt__cte__int_workday__worker_employee_enhanced \n)\n\nselect * \nfrom employee_surrogate_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.408677Z", "completed_at": "2024-04-02T10:15:57.415807Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.416583Z", "completed_at": "2024-04-02T10:15:57.416588Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009726762771606445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.411710Z", "completed_at": "2024-04-02T10:15:57.416334Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.417584Z", "completed_at": "2024-04-02T10:15:57.417587Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.010279178619384766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.419146Z", "completed_at": "2024-04-02T10:15:57.422168Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.422654Z", "completed_at": "2024-04-02T10:15:57.422660Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.004583120346069336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__employee_overview_employee_id.b01e19996c", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is not null\ngroup by employee_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.067604Z", "completed_at": "2024-04-02T10:15:58.084231Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.085350Z", "completed_at": "2024-04-02T10:15:58.085361Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.02280282974243164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.075564Z", "completed_at": "2024-04-02T10:15:58.085771Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.088298Z", "completed_at": "2024-04-02T10:15:58.088305Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.024255037307739258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.090995Z", "completed_at": "2024-04-02T10:15:58.102487Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.103601Z", "completed_at": "2024-04-02T10:15:58.103612Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.015605926513671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.097492Z", "completed_at": "2024-04-02T10:15:58.104817Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.106629Z", "completed_at": "2024-04-02T10:15:58.106644Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011202096939086914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.108100Z", "completed_at": "2024-04-02T10:15:58.113727Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.114405Z", "completed_at": "2024-04-02T10:15:58.114412Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008980035781860352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.362003Z", "completed_at": "2024-04-02T10:15:58.809676Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.810247Z", "completed_at": "2024-04-02T10:15:58.810256Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.5768733024597168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_daily_history", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n\n\n \n \n\n \n \n\n\n\n\n\nwith spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n + \n \n p13.generated_number * power(2, 13)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n cross join \n \n p as p13\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 8493\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2000-12-31' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-02'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.936182Z", "completed_at": "2024-04-02T10:15:58.965021Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.966241Z", "completed_at": "2024-04-02T10:15:58.966254Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.03783082962036133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__monthly_summary", "compiled": true, "compiled_code": " \n\nwith row_month_partition as (\n\n select *, \n cast(date_trunc('month', date_day) as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n),\n\nend_of_month_history as (\n \n select *,\n now() as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when date_month = cast(date_trunc('month', position_effective_date) as date) then 1 else 0 end) as new_employees,\n sum(case when date_month = cast(date_trunc('month', termination_date) as date) then 1 else 0 end) as churned_employees,\n sum(case when (date_month = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = cast(date_trunc('month', end_employment_date) as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and (cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.960865Z", "completed_at": "2024-04-02T10:15:58.965920Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.968323Z", "completed_at": "2024-04-02T10:15:58.968329Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.03798508644104004, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is not null\ngroup by employee_day_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.956856Z", "completed_at": "2024-04-02T10:15:58.966550Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.969605Z", "completed_at": "2024-04-02T10:15:58.969614Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0407872200012207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.973990Z", "completed_at": "2024-04-02T10:15:58.982269Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.983184Z", "completed_at": "2024-04-02T10:15:58.983193Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.013358831405639648, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metrics_month\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.978383Z", "completed_at": "2024-04-02T10:15:58.982847Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.984735Z", "completed_at": "2024-04-02T10:15:58.984745Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.012235164642333984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab", "compiled": true, "compiled_code": "\n \n \n\nselect\n metrics_month as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is not null\ngroup by metrics_month\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.046582Z", "completed_at": "2024-04-02T10:15:59.973814Z"}, {"name": "execute", "started_at": "2024-04-02T10:16:00.030208Z", "completed_at": "2024-04-02T10:16:00.037272Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 2.1368558406829834, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__worker_position_org_daily_history", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n\n\n \n \n\n \n \n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n), spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n + \n \n p13.generated_number * power(2, 13)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n cross join \n \n p as p13\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 8493\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2000-12-31' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-02'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nworker_position_org_history as (\n\n select * \n from __dbt__cte__stg_workday__worker_position_organization_history\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n _fivetran_start,\n _fivetran_end,\n _fivetran_active,\n _fivetran_date,\n history_unique_key,\n index,\n date_of_pay_group_assignment,\n primary_business_site,\n is_used_in_change_organization_assignments\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:16:00.204380Z", "completed_at": "2024-04-02T10:16:00.235704Z"}, {"name": "execute", "started_at": "2024-04-02T10:16:00.239246Z", "completed_at": "2024-04-02T10:16:00.239256Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.05458402633666992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:16:00.190101Z", "completed_at": "2024-04-02T10:16:00.236606Z"}, {"name": "execute", "started_at": "2024-04-02T10:16:00.240316Z", "completed_at": "2024-04-02T10:16:00.240321Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.057309865951538086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:16:00.214079Z", "completed_at": "2024-04-02T10:16:00.237648Z"}, {"name": "execute", "started_at": "2024-04-02T10:16:00.242040Z", "completed_at": "2024-04-02T10:16:00.242048Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.05629396438598633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect wpo_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:16:00.208639Z", "completed_at": "2024-04-02T10:16:00.238271Z"}, {"name": "execute", "started_at": "2024-04-02T10:16:00.242453Z", "completed_at": "2024-04-02T10:16:00.242458Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.057634830474853516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:16:00.248753Z", "completed_at": "2024-04-02T10:16:00.257473Z"}, {"name": "execute", "started_at": "2024-04-02T10:16:00.259175Z", "completed_at": "2024-04-02T10:16:00.259241Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014747142791748047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21", "compiled": true, "compiled_code": "\n \n \n\nselect\n wpo_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is not null\ngroup by wpo_day_id\nhaving count(*) > 1\n\n\n", "relation_name": null}], "elapsed_time": 15.525320053100586, "args": {"log_format": "default", "send_anonymous_usage_stats": true, "warn_error_options": {"include": [], "exclude": []}, "printer_width": 80, "partial_parse": true, "indirect_selection": "eager", "compile": true, "log_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests/logs", "enable_legacy_logger": false, "show_resource_report": false, "static_parser": true, "target": "postgres", "empty_catalog": false, "profiles_dir": "/Users/avinash.kunnath/.dbt", "cache_selected_only": false, "macro_debugging": false, "defer": false, "quiet": false, "write_json": true, "log_level": "info", "favor_state": false, "log_file_max_bytes": 10485760, "introspect": true, "populate_cache": true, "which": "generate", "strict_mode": false, "exclude": [], "project_dir": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "print": true, "select": [], "log_level_file": "debug", "vars": {}, "version_check": true, "use_colors_file": true, "static": false, "partial_parse_file_diff": true, "invocation_command": "dbt docs generate -t postgres", "log_format_file": "debug", "use_colors": true}} \ No newline at end of file diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 697e3fd..6191f45 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -33,8 +33,6 @@ vars: workday_worker_leave_status_identifier: "workday_worker_leave_status_data" workday_worker_position_organization_history_identifier: "workday_worker_position_organization_history_data" - employee_history_enabled: true - seeds: +quote_columns: "{{ true if target.type in ('redshift', 'postgres') else false }}" +column_types: diff --git a/models/docs.md b/models/docs.md index 7322d16..ddc5b05 100644 --- a/models/docs.md +++ b/models/docs.md @@ -164,7 +164,7 @@ {% docs days_employed %} The number of days the employee held their position. {% enddocs %} -{% docs days_of_employment %} Number of days employed by the worker. {% enddocs %} +{% docs days_as_worker %} Number of days since the worker has been created. {% enddocs %} {% docs days_unemployed %} Number of days the worker has been unemployed. {% enddocs %} diff --git a/models/workday.yml b/models/workday.yml index 95d71cf..1d23c45 100644 --- a/models/workday.yml +++ b/models/workday.yml @@ -42,8 +42,8 @@ models: - name: departure_date description: '{{ doc("departure_date") }}' - - name: days_of_employment - description: '{{ doc("days_of_employment") }}' + - name: days_as_worker + description: '{{ doc("days_as_worker") }}' - name: is_terminated description: '{{ doc("is_terminated") }}' @@ -90,6 +90,15 @@ models: - name: date_of_birth description: '{{ doc("date_of_birth") }}' + - name: days_as_worker + description: '{{ doc("days_as_worker") }}' + + - name: employee_type + description: '{{ doc("employee_type") }}' + + - name: management_level_code + description: '{{ doc("management_level_code") }}' + - name: gender description: '{{ doc("gender") }}' @@ -120,6 +129,18 @@ models: - name: fte_percent description: '{{ doc("fte_percent") }}' + - name: position_start_date + description: '{{ doc("position_start_date") }}' + + - name: position_end_date + description: '{{ doc("position_end_date") }}' + + - name: position_effective_date + description: '{{ doc("position_effective_date") }}' + + - name: position_location + description: '{{ doc("position_location") }}' + - name: days_employed description: '{{ doc("days_employed") }}' diff --git a/models/workday_history/staging/stg_workday__personal_information_history.sql b/models/workday_history/staging/stg_workday__personal_information_history.sql index 2798d45..4bc1bef 100644 --- a/models/workday_history/staging/stg_workday__personal_information_history.sql +++ b/models/workday_history/staging/stg_workday__personal_information_history.sql @@ -31,14 +31,14 @@ fill_columns as ( final as ( - select + select + {{ dbt_utils.generate_surrogate_key(['id', 'source_relation', '_fivetran_start']) }} as history_unique_key, id as worker_id, source_relation, cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, cast(_fivetran_start as date) as _fivetran_date, _fivetran_active, - {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key, additional_nationality, blood_type, citizenship_status, diff --git a/models/workday_history/staging/stg_workday__worker_history.sql b/models/workday_history/staging/stg_workday__worker_history.sql index e51ed01..dd7b11f 100644 --- a/models/workday_history/staging/stg_workday__worker_history.sql +++ b/models/workday_history/staging/stg_workday__worker_history.sql @@ -32,13 +32,13 @@ fill_columns as ( final as ( select + {{ dbt_utils.generate_surrogate_key(['id', 'source_relation', '_fivetran_start']) }} as history_unique_key, id as worker_id, source_relation, cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, cast(_fivetran_start as date) as _fivetran_date, _fivetran_active, - {{ dbt_utils.generate_surrogate_key(['id', '_fivetran_start']) }} as history_unique_key, academic_tenure_date, active as is_active, active_status_date, diff --git a/models/workday_history/staging/stg_workday__worker_position_history.sql b/models/workday_history/staging/stg_workday__worker_position_history.sql index 5a5548f..035bfb8 100644 --- a/models/workday_history/staging/stg_workday__worker_position_history.sql +++ b/models/workday_history/staging/stg_workday__worker_position_history.sql @@ -32,6 +32,7 @@ fill_columns as ( final as ( select + {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'source_relation', '_fivetran_start']) }} as history_unique_key, worker_id, position_id, source_relation, @@ -39,7 +40,6 @@ final as ( cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, cast(_fivetran_start as date) as _fivetran_date, _fivetran_active, - {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', '_fivetran_start']) }} as history_unique_key, business_site_summary_location as position_location, exclude_from_head_count as is_exclude_from_head_count, full_time_equivalent_percentage as fte_percent, diff --git a/models/workday_history/staging/stg_workday__worker_position_organization_history.sql b/models/workday_history/staging/stg_workday__worker_position_organization_history.sql index 148e894..5a046c2 100644 --- a/models/workday_history/staging/stg_workday__worker_position_organization_history.sql +++ b/models/workday_history/staging/stg_workday__worker_position_organization_history.sql @@ -32,6 +32,7 @@ fill_columns as ( final as ( select + {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'organization_id', 'source_relation', '_fivetran_start']) }} as history_unique_key, worker_id, position_id, organization_id, @@ -39,7 +40,7 @@ final as ( cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start, cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end, cast(_fivetran_start as date) as _fivetran_date, - {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'organization_id', 'source_relation', '_fivetran_start']) }} as history_unique_key, + _fivetran_active, index, date_of_pay_group_assignment, primary_business_site, diff --git a/models/workday_history/staging/stg_workday_history.yml b/models/workday_history/staging/stg_workday_history.yml index 6769934..0a757a2 100644 --- a/models/workday_history/staging/stg_workday_history.yml +++ b/models/workday_history/staging/stg_workday_history.yml @@ -3,13 +3,13 @@ version: 2 models: - name: stg_workday__personal_information_history description: Represents historical records of a worker's personal information. - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - worker_id - - _fivetran_start - columns: + - name: history_unique_key + description: Surrogate key hashed on `worker_id`, `source_relation` and `_fivetran_start`. + tests: + - unique + - not_null + - name: worker_id description: '{{ doc("worker_id") }}' tests: @@ -27,12 +27,6 @@ models: - name: _fivetran_date description: '{{ doc("_fivetran_date") }}' - - name: history_unique_key - description: Surrogate key hashed on `worker_id` and `_fivetran_start`. - tests: - - unique - - not_null - - name: _fivetran_active description: '{{ doc("_fivetran_active") }}' @@ -138,13 +132,13 @@ models: - name: stg_workday__worker_history description: Represents historical records of a worker's personal information. - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - worker_id - - _fivetran_start - columns: + - name: history_unique_key + description: Surrogate key hashed on `worker_id`, `source_relation` and `_fivetran_start`. + tests: + - unique + - not_null + - name: worker_id description: '{{ doc("worker_id") }}' tests: @@ -162,12 +156,6 @@ models: - name: _fivetran_date description: '{{ doc("_fivetran_date") }}' - - name: history_unique_key - description: Surrogate key hashed on `worker_id` and `_fivetran_start`. - tests: - - unique - - not_null - - name: _fivetran_active description: '{{ doc("_fivetran_active") }}' @@ -423,14 +411,13 @@ models: - name: stg_workday__worker_position_history description: Represents historical records of a worker's personal information. - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - worker_id - - position_id - - _fivetran_start - columns: + - name: history_unique_key + description: Surrogate key hashed on `position_id`, `worker_id`, `source_relation` and `_fivetran_start` . + tests: + - unique + - not_null + - name: worker_id description: '{{ doc("worker_id") }}' tests: @@ -453,12 +440,6 @@ models: - name: _fivetran_date description: '{{ doc("_fivetran_date") }}' - - name: history_unique_key - description: Surrogate key hashed on `position_id`, `worker_id` and `_fivetran_start` . - tests: - - unique - - not_null - - name: _fivetran_active description: '{{ doc("_fivetran_active") }}' @@ -636,15 +617,13 @@ models: - name: stg_workday__worker_position_organization_history description: Represents historical records of a worker's personal information. - tests: - - dbt_utils.unique_combination_of_columns: - combination_of_columns: - - worker_id - - position_id - - organization_id - - _fivetran_start - columns: + - name: history_unique_key + description: Surrogate key hashed on `worker_id`, `position_id`, `organization_id`, `source_relation`, and `_fivetran_start` . + tests: + - unique + - not_null + - name: worker_id description: '{{ doc("worker_id") }}' tests: @@ -672,12 +651,6 @@ models: - name: _fivetran_date description: '{{ doc("_fivetran_date") }}' - - name: history_unique_key - description: Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, and `_fivetran_start` . - tests: - - unique - - not_null - - name: _fivetran_active description: '{{ doc("_fivetran_active") }}' diff --git a/models/workday_history/workday__monthly_summary.sql b/models/workday_history/workday__monthly_summary.sql index 8552a46..f3b402b 100644 --- a/models/workday_history/workday__monthly_summary.sql +++ b/models/workday_history/workday__monthly_summary.sql @@ -35,11 +35,11 @@ monthly_employee_metrics as ( select date_month, source_relation, - sum(case when cast(date_month as date) = cast({{ dbt.date_trunc("month", "position_effective_date") }} as date) then 1 else 0 end) as new_employees, - sum(case when cast(date_month as date) = cast({{ dbt.date_trunc("month", "termination_date") }} as date) then 1 else 0 end) as churned_employees, - sum(case when (cast(date_month as date) = cast({{ dbt.date_trunc("month", "termination_date") }} as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees, - sum(case when (cast(date_month as date) = cast({{ dbt.date_trunc("month", "termination_date") }} as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees, - sum(case when cast(date_month as date) = cast({{ dbt.date_trunc("month", "end_employment_date") }} as date) then 1 else 0 end) as churned_workers + sum(case when date_month = cast({{ dbt.date_trunc("month", "position_effective_date") }} as date) then 1 else 0 end) as new_employees, + sum(case when date_month = cast({{ dbt.date_trunc("month", "termination_date") }} as date) then 1 else 0 end) as churned_employees, + sum(case when (date_month = cast({{ dbt.date_trunc("month", "termination_date") }} as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees, + sum(case when (date_month = cast({{ dbt.date_trunc("month", "termination_date") }} as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees, + sum(case when date_month = cast({{ dbt.date_trunc("month", "end_employment_date") }} as date) then 1 else 0 end) as churned_workers from months_employed group by 1, 2 ), diff --git a/models/workday_history/workday__worker_position_org_daily_history.sql b/models/workday_history/workday__worker_position_org_daily_history.sql index ee4bbae..5303237 100644 --- a/models/workday_history/workday__worker_position_org_daily_history.sql +++ b/models/workday_history/workday__worker_position_org_daily_history.sql @@ -70,7 +70,19 @@ daily_history as ( 'get_latest_daily_value.history_unique_key']) }} as wpo_day_id, cast(spine.date_day as date) as date_day, - get_latest_daily_value.* + worker_id, + position_id, + organization_id, + source_relation, + _fivetran_start, + _fivetran_end, + _fivetran_active, + _fivetran_date, + history_unique_key, + index, + date_of_pay_group_assignment, + primary_business_site, + is_used_in_change_organization_assignments from get_latest_daily_value join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }}) and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }}) diff --git a/models/workday_history/workday_history.yml b/models/workday_history/workday_history.yml index e2ea483..7360fac 100644 --- a/models/workday_history/workday_history.yml +++ b/models/workday_history/workday_history.yml @@ -5,7 +5,7 @@ models: description: Each record is a daily record in an employee, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to track the daily history of their employees from when they started. columns: - name: employee_day_id - description: Surrogate key hashed on `date_day` and `employee_id` + description: Surrogate key hashed on `date_day` and `history_unique_key` tests: - unique - not_null @@ -316,6 +316,208 @@ models: - name: position_end_date description: '{{ doc("end_date") }}' + - name: position_location + description: '{{ doc("position_location") }}' + + - name: is_exclude_from_head_count + description: '{{ doc("exclude_from_head_count") }}' + + - name: fte_percent + description: '{{ doc("fte_percent") }}' + + - name: is_job_exempt + description: '{{ doc("job_exempt") }}' + + - name: is_specify_paid_fte + description: '{{ doc("specify_paid_fte") }}' + + - name: is_specify_working_fte + description: '{{ doc("specify_working_fte") }}' + + - name: is_work_shift_required + description: '{{ doc("work_shift_required") }}' + + - name: academic_pay_setup_data_annual_work_period_end_date + description: '{{ doc("academic_pay_setup_data_annual_work_period_end_date") }}' + + - name: academic_pay_setup_data_annual_work_period_start_date + description: '{{ doc("academic_pay_setup_data_annual_work_period_start_date") }}' + + - name: academic_pay_setup_data_annual_work_period_work_percent_of_year + description: '{{ doc("academic_pay_setup_data_annual_work_period_work_percent_of_year") }}' + + - name: academic_pay_setup_data_disbursement_plan_period_end_date + description: '{{ doc("academic_pay_setup_data_disbursement_plan_period_end_date") }}' + + - name: academic_pay_setup_data_disbursement_plan_period_start_date + description: '{{ doc("academic_pay_setup_data_disbursement_plan_period_start_date") }}' + + - name: business_site_summary_display_language + description: '{{ doc("business_site_summary_display_language") }}' + + - name: business_site_summary_local + description: '{{ doc("business_site_summary_local") }}' + + - name: business_site_summary_location_type + description: '{{ doc("business_site_summary_location_type") }}' + + - name: business_site_summary_name + description: '{{ doc("business_site_summary_name") }}' + + - name: business_site_summary_scheduled_weekly_hours + description: '{{ doc("business_site_summary_scheduled_weekly_hours") }}' + + - name: business_site_summary_time_profile + description: '{{ doc("business_site_summary_time_profile") }}' + + - name: business_title + description: '{{ doc("business_title") }}' + + - name: is_critical_job + description: '{{ doc("critical_job") }}' + + - name: default_weekly_hours + description: '{{ doc("default_weekly_hours") }}' + + - name: difficulty_to_fill + description: '{{ doc("difficulty_to_fill") }}' + + - name: position_effective_date + description: '{{ doc("position_effective_date") }}' + + - name: employee_type + description: '{{ doc("employee_type") }}' + + - name: expected_assignment_end_date + description: '{{ doc("expected_assignment_end_date") }}' + + - name: external_employee + description: '{{ doc("external_employee") }}' + + - name: federal_withholding_fein + description: '{{ doc("federal_withholding_fein") }}' + + - name: frequency + description: '{{ doc("frequency") }}' + + - name: headcount_restriction_code + description: '{{ doc("headcount_restriction_code") }}' + + - name: host_country + description: '{{ doc("host_country") }}' + + - name: international_assignment_type + description: '{{ doc("international_assignment_type") }}' + + - name: is_primary_job + description: '{{ doc("is_primary_job") }}' + + - name: job_profile_id + description: '{{ doc("job_profile_id") }}' + + - name: management_level_code + description: '{{ doc("management_level_code") }}' + + - name: paid_fte + description: '{{ doc("paid_fte") }}' + + - name: pay_group + description: '{{ doc("pay_group") }}' + + - name: pay_rate + description: '{{ doc("pay_rate") }}' + + - name: pay_rate_type + description: '{{ doc("pay_rate_type") }}' + + - name: payroll_entity + description: '{{ doc("payroll_entity") }}' + + - name: payroll_file_number + description: '{{ doc("payroll_file_number") }}' + + - name: regular_paid_equivalent_hours + description: '{{ doc("regular_paid_equivalent_hours") }}' + + - name: scheduled_weekly_hours + description: '{{ doc("scheduled_weekly_hours") }}' + + - name: start_international_assignment_reason + description: '{{ doc("start_international_assignment_reason") }}' + + - name: work_hours_profile + description: '{{ doc("work_hours_profile") }}' + + - name: work_shift + description: '{{ doc("work_shift") }}' + + - name: work_space + description: '{{ doc("work_space") }}' + + - name: worker_hours_profile_classification + description: '{{ doc("worker_hours_profile_classification") }}' + + - name: working_fte + description: '{{ doc("working_fte") }}' + + - name: working_time_frequency + description: '{{ doc("working_time_frequency") }}' + + - name: working_time_unit + description: '{{ doc("working_time_unit") }}' + + - name: working_time_value + description: '{{ doc("working_time_value") }}' + + - name: additional_nationality + description: '{{ doc("additional_nationality") }}' + + - name: blood_type + description: '{{ doc("blood_type") }}' + + - name: citizenship_status + description: '{{ doc("citizenship_status") }}' + + - name: city_of_birth + description: '{{ doc("city_of_birth") }}' + + - name: city_of_birth_code + description: '{{ doc("city_of_birth_code") }}' + + - name: country_of_birth + description: '{{ doc("country_of_birth") }}' + + - name: date_of_birth + description: '{{ doc("date_of_birth") }}' + + - name: date_of_death + description: '{{ doc("date_of_death") }}' + + - name: gender + description: '{{ doc("gender") }}' + + - name: is_hispanic_or_latino + description: '{{ doc("hispanic_or_latino") }}' + + - name: hukou_locality + description: '{{ doc("hukou_locality") }}' + + - name: hukou_postal_code + description: '{{ doc("hukou_postal_code") }}' + + - name: hukou_region + description: '{{ doc("hukou_region") }}' + + - name: hukou_subregion + description: '{{ doc("hukou_subregion") }}' + + - name: hukou_type + description: '{{ doc("hukou_type") }}' + + - name: row_num + description: This is the row number filter designed to grab the most recent daily record for an employee. This value should always be 1 in this model. + + - name: workday__monthly_summary description: Each record is a month, aggregated from the last day of each month of the employee daily history. This captures monthly metrics of workers, such as average salary, churned and retained employees, etc. columns: From 9631d508632eb75e6916e63c2735582309ad5bf9 Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Tue, 2 Apr 2024 04:43:20 -0700 Subject: [PATCH 18/20] changelog --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 216698e..88b2017 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,7 +14,7 @@ - `workday_worker_position_org_daily_history`: Each record is a daily record for a worker/position/organization combination, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to tie in organizations to employees via other organization models (such as `workday__organization_overview`) more easily in their warehouses. -- We have added staging history mode models in the [`models/staging/stg_workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/staging/stg_workday_history) folder. This allows customers to utilize the Fivetran history mode feature, which records every version of each record in the source table from the moment this mode is activated in the equivalent tables. +- We have added staging history mode models in the [`models/workday_history/staging`](https://github.com/fivetran/dbt_workday/tree/main/models/workday_history/staging) folder. This allows customers to utilize the Fivetran history mode feature, which records every version of each record in the source table from the moment this mode is activated in the equivalent tables. - These staging models include: @@ -23,7 +23,7 @@ - `stg_workday__worker_position_history`: Containing historical records of a worker's position history. - `stg_workday__worker_position_organization_history`: Containing historical records of a worker's position and organization history. -- We have then utilized the `workday__employee_daily_history` model in the [`models/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/workday_history) folder [based off of Fivetran's history mode feature](https://fivetran.com/docs/core-concepts/sync-modes/history-mode), pulling from Workday HCM source models you can view in the [`models/staging/stg_workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/staging/stg_workday_history) folder. +- We have then utilized the `workday__employee_daily_history` model in the [`models/workday_history`](https://github.com/fivetran/dbt_workday/tree/main/models/workday_history) folder [based off of Fivetran's history mode feature](https://fivetran.com/docs/core-concepts/sync-modes/history-mode), pulling from Workday HCM source models you can view in the [`models/workday_history/staging`](https://github.com/fivetran/dbt_workday/tree/main/models/workday_history/staging) folder. - We have kept the `stg_workday__worker_position_organization_history` model separate, as organizational data is too flexible in Workday to effectively join in the majority of data. We leave it to the customer to use their best judgement in joining this data into other end models in their own warehouse. [See the DECISIONLOG for more details](https://github.com/fivetran/dbt_workday/blob/main/DECISIONLOG.md). From db43f0e590c8ec7f702d8d636f6d1ceb8b5b4b84 Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Tue, 2 Apr 2024 16:47:07 -0700 Subject: [PATCH 19/20] PR re-review --- .buildkite/scripts/run_models.sh | 2 -- README.md | 32 +++++++------------ docs/catalog.json | 2 +- docs/manifest.json | 2 +- docs/run_results.json | 2 +- .../workday__employee_daily_history.sql | 2 +- ...day__worker_position_org_daily_history.sql | 2 +- 7 files changed, 17 insertions(+), 27 deletions(-) diff --git a/.buildkite/scripts/run_models.sh b/.buildkite/scripts/run_models.sh index 1001f6b..c7a0aa3 100644 --- a/.buildkite/scripts/run_models.sh +++ b/.buildkite/scripts/run_models.sh @@ -18,8 +18,6 @@ cd integration_tests dbt deps dbt seed --target "$db" --full-refresh dbt run --target "$db" --full-refresh -dbt test --target "$db" -dbt run --vars '{employee_history_enabled: true}' --target "$db" --full-refresh dbt test --target "$db" dbt run --vars '{employee_history_enabled: true}' --target "$db" dbt test --target "$db" diff --git a/README.md b/README.md index 599884f..cf913e5 100644 --- a/README.md +++ b/README.md @@ -34,15 +34,15 @@ This package generates a comprehensive data dictionary of your Workday HCM data The following table provides a detailed list of all models materialized within this package by default. > TIP: See more details about these models in the package's [dbt docs site](https://fivetran.github.io/dbt_workday/#!/overview/workday). -| **model** | **description** +| **model** | **description** | Available in Quickstart? | ------------------------- | ------------------------------------------------------------------------------------------------------------------|------------------------------ -| [workday__employee_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__employee_overview) | Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees. -| [workday__job_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__job_overview) | Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings. -| [workday__organization_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__organization_overview) | Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures. -| [workday__position_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__position_overview) | Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts. -| [workday__employee_daily_history](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__employee_daily_history) | Each record represents a daily record for an employee, employee position, and employee personal information within Workday HCM, to help customers gather the most historically accurate data regarding their employees. -| [workday__monthly_summary](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__monthly_summary) | Each record is a month, aggregated from the last day of each month of the employee daily history. This captures monthly aggregated metrics to track trends like employee additions and churns, salary movements, demographic changes, etc. -| [workday__worker_position_org_daily](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__worker_position_org_daily) | Each record is a daily record for a worker/position/organization combination, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to tie in organizations to employees via other organization models (such as `workday__organization_overview`) more easily in their warehouses. +| [workday__employee_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__employee_overview) | Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees. | Yes +[workday__job_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__job_overview) | Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings. | Yes +| [workday__organization_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__organization_overview) | Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures. | Yes +| [workday__position_overview](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__position_overview) | Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts. | Yes +| [workday__employee_daily_history](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__employee_daily_history) | Each record represents a daily record for an employee, employee position, and employee personal information within Workday HCM, to help customers gather the most historically accurate data regarding their employees. | No +| [workday__monthly_summary](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__monthly_summary) | Each record is a month, aggregated from the last day of each month of the employee daily history. This captures monthly aggregated metrics to track trends like employee additions and churns, salary movements, demographic changes, etc. | No +| [workday__worker_position_org_daily_history](https://fivetran.github.io/dbt_workday/#!/model/model.workday.workday__worker_position_org_daily_history) | Each record is a daily record for a worker/position/organization combination, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to tie in organizations to employees via other organization models (such as `workday__organization_overview`) more easily in their warehouses. | No @@ -99,16 +99,7 @@ To connect your multiple schema/database sources to the package models, follow t ## (Optional) Step 4: Utilizing Workday HCM History Mode -If you have History Mode enabled for your Workday HCM connector, we now include support for the worker, worker position, worker position organization, and personal information tables directly. You can view these files in the [`staging/stg_workday_history`](https://github.com/fivetran/dbt_workday/blob/main/models/staging/stg_workday_history) folder. This staging data then flows into the employee daily history model, which in turn populates the monthly summary model. This will allow you access to your historical data for these tables for the most accurate record of your data over time. - -### IMPORTANT: How To Update Your History Models -To ensure maximum value for these history mode models and avoid messy historical data that could come with picking and choosing which fields you bring in, **all fields in your Workday HCM history mode connector are being synced into the workday history staging models**. - -To update the history mode models, you must follow these steps: -1) Go to your Fivetran Workday HCM History Mode connector page. -2) Update the fields that you are bringing into the model. - -We are aware that bringing in additional fields will be very process-heavy, so we do emphasize caution in making changes to your history mode connector. It would be best to batch as many field changes as possible before executing a `--full-refresh` to save on processing. +If you have History Mode enabled for your Workday HCM connector, we now include support for the worker, worker position, worker position organization, and personal information tables directly. You can view these files in the [`staging/stg_workday_history`](https://github.com/fivetran/dbt_workday/blob/main/models/workday_history/staging) folder. This staging data then flows into the employee daily history model, which in turn populates the monthly summary model. This will allow you access to your historical data for these tables for the most accurate record of your data over time. ### Enabling Workday HCM History Mode Models The History Mode models can get quite expansive since it will take in **ALL** historical records, so we've disabled them by default. You can enable the history models you'd like to utilize by adding the below variable configurations within your `dbt_project.yml` file for the equivalent models. @@ -131,8 +122,9 @@ vars: employee_history_start_date: 'YYYY-MM-DD' # The first `_fivetran_start` date you'd like to filter data on in all your history models. ``` +The default date value in our models is set at `2005-03-01` (the month Workday was founded), designed for if you want to capture all available data by default. If you choose to set a custom date value as outlined above, these models will take the greater of either this value or the minimum `_fivetran_start` date in the source data. They will then be used for creating the first dates available with historical data in your daily history models. -## (Optional) Step 4: Additional configurations +## (Optional) Step 5: Additional configurations ### Changing the Build Schema By default this package will build the Workday HCM staging models within a schema titled ( + `_stg_workday`) and the Workday HCM final models within a schema titled ( + `_workday`) in your target database. If this is not where you would like your modeled Workday HCM data to be written to, add the following configuration to your `dbt_project.yml` file: @@ -161,7 +153,7 @@ vars: -## (Optional) Step 5: Orchestrate your models with Fivetran Transformations for dbt Core™ +## (Optional) Step 6: Orchestrate your models with Fivetran Transformations for dbt Core™
Expand for details
diff --git a/docs/catalog.json b/docs/catalog.json index 34da240..b8683df 100644 --- a/docs/catalog.json +++ b/docs/catalog.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.7.8", "generated_at": "2024-04-02T10:16:02.867368Z", "invocation_id": "2c956fce-7a6c-4f51-b5a5-d975f2021c95", "env": {}}, "nodes": {"seed.workday_integration_tests.workday_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_data"}, "seed.workday_integration_tests.workday_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data"}, "seed.workday_integration_tests.workday_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_profile_data"}, "seed.workday_integration_tests.workday_military_service_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_military_service_data"}, "seed.workday_integration_tests.workday_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_data"}, "seed.workday_integration_tests.workday_organization_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data"}, "seed.workday_integration_tests.workday_organization_role_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_data"}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data"}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data"}, "seed.workday_integration_tests.workday_person_name_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_name_data"}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data"}, "seed.workday_integration_tests.workday_personal_information_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data"}, "seed.workday_integration_tests.workday_position_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_data"}, "seed.workday_integration_tests.workday_position_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data"}, "seed.workday_integration_tests.workday_position_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_organization_data"}, "seed.workday_integration_tests.workday_worker_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_history_data"}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data"}, "seed.workday_integration_tests.workday_worker_position_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data"}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data"}, "model.workday.stg_workday__job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_base"}, "model.workday.stg_workday__job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_group_base"}, "model.workday.stg_workday__job_family_job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base"}, "model.workday.stg_workday__job_family_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_profile_base"}, "model.workday.stg_workday__job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_profile_base"}, "model.workday.stg_workday__military_service_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__military_service_base"}, "model.workday.stg_workday__organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_base"}, "model.workday.stg_workday__organization_job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_job_family_base"}, "model.workday.stg_workday__organization_role_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_base"}, "model.workday.stg_workday__organization_role_worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_worker_base"}, "model.workday.stg_workday__person_contact_email_address_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_contact_email_address_base"}, "model.workday.stg_workday__person_name_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_name_base"}, "model.workday.stg_workday__personal_information_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_base"}, "model.workday.stg_workday__personal_information_ethnicity_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base"}, "model.workday.stg_workday__position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_base"}, "model.workday.stg_workday__position_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_job_profile_base"}, "model.workday.stg_workday__position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_organization_base"}, "model.workday.stg_workday__worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_base"}, "model.workday.stg_workday__worker_leave_status_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_leave_status_base"}, "model.workday.stg_workday__worker_position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_base"}, "model.workday.stg_workday__worker_position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_organization_base"}, "model.workday.int_workday__employee_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"history_unique_key": {"type": "text", "index": 1, "name": "history_unique_key", "comment": null}, "employee_id": {"type": "text", "index": 2, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 3, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 6, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_end", "comment": null}, "is_wh_fivetran_active": {"type": "boolean", "index": 9, "name": "is_wh_fivetran_active", "comment": null}, "is_wph_fivetran_active": {"type": "boolean", "index": 10, "name": "is_wph_fivetran_active", "comment": null}, "is_pih_fivetran_active": {"type": "boolean", "index": 11, "name": "is_pih_fivetran_active", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 12, "name": "academic_tenure_date", "comment": null}, "is_active": {"type": "boolean", "index": 13, "name": "is_active", "comment": null}, "active_status_date": {"type": "date", "index": 14, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 15, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 16, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 17, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 19, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 20, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 21, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 23, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 24, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 25, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 26, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 27, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 28, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 29, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 30, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 31, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 32, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 33, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 34, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 35, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 36, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 37, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 38, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 39, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 40, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 41, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 42, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 43, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 44, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 45, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 46, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 47, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 48, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 49, "name": "first_day_of_work", "comment": null}, "is_has_international_assignment": {"type": "boolean", "index": 50, "name": "is_has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 51, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 52, "name": "hire_reason", "comment": null}, "is_hire_rescinded": {"type": "boolean", "index": 53, "name": "is_hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 54, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 55, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 56, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 57, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 58, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 59, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 60, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 61, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 62, "name": "months_continuous_prior_employment", "comment": null}, "is_not_returning": {"type": "boolean", "index": 63, "name": "is_not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 64, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 65, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 66, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 67, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 68, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 69, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 70, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 71, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 72, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 73, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 74, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 75, "name": "reason_reference_id", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 76, "name": "is_regrettable_termination", "comment": null}, "is_rehire": {"type": "boolean", "index": 77, "name": "is_rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 78, "name": "resignation_date", "comment": null}, "is_retired": {"type": "boolean", "index": 79, "name": "is_retired", "comment": null}, "retirement_date": {"type": "integer", "index": 80, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 81, "name": "retirement_eligibility_date", "comment": null}, "is_return_unknown": {"type": "boolean", "index": 82, "name": "is_return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 83, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 84, "name": "severance_date", "comment": null}, "is_terminated": {"type": "boolean", "index": 85, "name": "is_terminated", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 86, "name": "termination_date", "comment": null}, "is_termination_involuntary": {"type": "boolean", "index": 87, "name": "is_termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 88, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 89, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 90, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 91, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 92, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 93, "name": "worker_code", "comment": null}, "position_location": {"type": "text", "index": 94, "name": "position_location", "comment": null}, "is_exclude_from_head_count": {"type": "boolean", "index": 95, "name": "is_exclude_from_head_count", "comment": null}, "fte_percent": {"type": "integer", "index": 96, "name": "fte_percent", "comment": null}, "is_job_exempt": {"type": "boolean", "index": 97, "name": "is_job_exempt", "comment": null}, "is_specify_paid_fte": {"type": "boolean", "index": 98, "name": "is_specify_paid_fte", "comment": null}, "is_specify_working_fte": {"type": "boolean", "index": 99, "name": "is_specify_working_fte", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 100, "name": "is_work_shift_required", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 101, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 102, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 103, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 104, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 105, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 106, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 107, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 108, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 109, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 110, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 111, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 112, "name": "business_title", "comment": null}, "is_critical_job": {"type": "boolean", "index": 113, "name": "is_critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 114, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 115, "name": "difficulty_to_fill", "comment": null}, "position_effective_date": {"type": "timestamp without time zone", "index": 116, "name": "position_effective_date", "comment": null}, "employee_type": {"type": "text", "index": 117, "name": "employee_type", "comment": null}, "position_end_date": {"type": "timestamp without time zone", "index": 118, "name": "position_end_date", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 119, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 120, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 121, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 122, "name": "frequency", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 123, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 124, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 125, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 126, "name": "is_primary_job", "comment": null}, "job_profile_id": {"type": "text", "index": 127, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 128, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 129, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 130, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 131, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 132, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 133, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 134, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 135, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 136, "name": "scheduled_weekly_hours", "comment": null}, "position_start_date": {"type": "timestamp without time zone", "index": 137, "name": "position_start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 138, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 139, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 140, "name": "work_shift", "comment": null}, "work_space": {"type": "integer", "index": 141, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 142, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 143, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 144, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 145, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 146, "name": "working_time_value", "comment": null}, "additional_nationality": {"type": "integer", "index": 147, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 148, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 149, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 150, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 151, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 152, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 153, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 154, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 155, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 156, "name": "is_hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 157, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 158, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 159, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 160, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 161, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 162, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 163, "name": "last_medical_exam_valid_to", "comment": null}, "is_local_hukou": {"type": "integer", "index": 164, "name": "is_local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 165, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 166, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 167, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 168, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 169, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 170, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 171, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 172, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 173, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 174, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 175, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 176, "name": "social_benefit", "comment": null}, "is_tobacco_use": {"type": "boolean", "index": 177, "name": "is_tobacco_use", "comment": null}, "type": {"type": "text", "index": 178, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__employee_history"}, "model.workday.workday__employee_daily_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_day_id": {"type": "text", "index": 1, "name": "employee_day_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "history_unique_key": {"type": "text", "index": 3, "name": "history_unique_key", "comment": null}, "employee_id": {"type": "text", "index": 4, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 5, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 6, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 8, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_end", "comment": null}, "is_wh_fivetran_active": {"type": "boolean", "index": 11, "name": "is_wh_fivetran_active", "comment": null}, "is_wph_fivetran_active": {"type": "boolean", "index": 12, "name": "is_wph_fivetran_active", "comment": null}, "is_pih_fivetran_active": {"type": "boolean", "index": 13, "name": "is_pih_fivetran_active", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 14, "name": "academic_tenure_date", "comment": null}, "is_active": {"type": "boolean", "index": 15, "name": "is_active", "comment": null}, "active_status_date": {"type": "date", "index": 16, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 17, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 18, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 19, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 20, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 22, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 23, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 24, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 25, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 26, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 27, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 28, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 29, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 30, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 31, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 32, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 33, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 34, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 35, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 36, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 37, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 38, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 39, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 40, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 41, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 42, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 43, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 44, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 45, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 46, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 47, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 48, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 49, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 50, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 51, "name": "first_day_of_work", "comment": null}, "is_has_international_assignment": {"type": "boolean", "index": 52, "name": "is_has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 53, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 54, "name": "hire_reason", "comment": null}, "is_hire_rescinded": {"type": "boolean", "index": 55, "name": "is_hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 56, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 57, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 58, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 59, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 60, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 61, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 62, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 63, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 64, "name": "months_continuous_prior_employment", "comment": null}, "is_not_returning": {"type": "boolean", "index": 65, "name": "is_not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 66, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 67, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 68, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 69, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 70, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 71, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 72, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 73, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 74, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 75, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 76, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 77, "name": "reason_reference_id", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 78, "name": "is_regrettable_termination", "comment": null}, "is_rehire": {"type": "boolean", "index": 79, "name": "is_rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 80, "name": "resignation_date", "comment": null}, "is_retired": {"type": "boolean", "index": 81, "name": "is_retired", "comment": null}, "retirement_date": {"type": "integer", "index": 82, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 83, "name": "retirement_eligibility_date", "comment": null}, "is_return_unknown": {"type": "boolean", "index": 84, "name": "is_return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 85, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 86, "name": "severance_date", "comment": null}, "is_terminated": {"type": "boolean", "index": 87, "name": "is_terminated", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 88, "name": "termination_date", "comment": null}, "is_termination_involuntary": {"type": "boolean", "index": 89, "name": "is_termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 90, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 91, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 92, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 93, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 94, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 95, "name": "worker_code", "comment": null}, "position_location": {"type": "text", "index": 96, "name": "position_location", "comment": null}, "is_exclude_from_head_count": {"type": "boolean", "index": 97, "name": "is_exclude_from_head_count", "comment": null}, "fte_percent": {"type": "integer", "index": 98, "name": "fte_percent", "comment": null}, "is_job_exempt": {"type": "boolean", "index": 99, "name": "is_job_exempt", "comment": null}, "is_specify_paid_fte": {"type": "boolean", "index": 100, "name": "is_specify_paid_fte", "comment": null}, "is_specify_working_fte": {"type": "boolean", "index": 101, "name": "is_specify_working_fte", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 102, "name": "is_work_shift_required", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 103, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 104, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 105, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 106, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 107, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 108, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 109, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 110, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 111, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 112, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 113, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 114, "name": "business_title", "comment": null}, "is_critical_job": {"type": "boolean", "index": 115, "name": "is_critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 116, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 117, "name": "difficulty_to_fill", "comment": null}, "position_effective_date": {"type": "timestamp without time zone", "index": 118, "name": "position_effective_date", "comment": null}, "employee_type": {"type": "text", "index": 119, "name": "employee_type", "comment": null}, "position_end_date": {"type": "timestamp without time zone", "index": 120, "name": "position_end_date", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 121, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 122, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 123, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 124, "name": "frequency", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 125, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 126, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 127, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 128, "name": "is_primary_job", "comment": null}, "job_profile_id": {"type": "text", "index": 129, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 130, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 131, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 132, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 133, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 134, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 135, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 136, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 137, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 138, "name": "scheduled_weekly_hours", "comment": null}, "position_start_date": {"type": "timestamp without time zone", "index": 139, "name": "position_start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 140, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 141, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 142, "name": "work_shift", "comment": null}, "work_space": {"type": "integer", "index": 143, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 144, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 145, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 146, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 147, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 148, "name": "working_time_value", "comment": null}, "additional_nationality": {"type": "integer", "index": 149, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 150, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 151, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 152, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 153, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 154, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 155, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 156, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 157, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 158, "name": "is_hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 159, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 160, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 161, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 162, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 163, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 164, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 165, "name": "last_medical_exam_valid_to", "comment": null}, "is_local_hukou": {"type": "integer", "index": 166, "name": "is_local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 167, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 168, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 169, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 170, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 171, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 172, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 173, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 174, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 175, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 176, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 177, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 178, "name": "social_benefit", "comment": null}, "is_tobacco_use": {"type": "boolean", "index": 179, "name": "is_tobacco_use", "comment": null}, "type": {"type": "text", "index": 180, "name": "type", "comment": null}, "row_num": {"type": "bigint", "index": 181, "name": "row_num", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_daily_history"}, "model.workday.workday__employee_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_id": {"type": "text", "index": 1, "name": "employee_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "position_start_date": {"type": "date", "index": 5, "name": "position_start_date", "comment": null}, "worker_code": {"type": "integer", "index": 6, "name": "worker_code", "comment": null}, "user_id": {"type": "text", "index": 7, "name": "user_id", "comment": null}, "universal_id": {"type": "integer", "index": 8, "name": "universal_id", "comment": null}, "is_user_active": {"type": "boolean", "index": 9, "name": "is_user_active", "comment": null}, "is_employed": {"type": "boolean", "index": 10, "name": "is_employed", "comment": null}, "hire_date": {"type": "date", "index": 11, "name": "hire_date", "comment": null}, "departure_date": {"type": "date", "index": 12, "name": "departure_date", "comment": null}, "days_as_worker": {"type": "integer", "index": 13, "name": "days_as_worker", "comment": null}, "is_terminated": {"type": "boolean", "index": 14, "name": "is_terminated", "comment": null}, "primary_termination_category": {"type": "text", "index": 15, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 16, "name": "primary_termination_reason", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 17, "name": "is_regrettable_termination", "comment": null}, "compensation_effective_date": {"type": "date", "index": 18, "name": "compensation_effective_date", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 19, "name": "employee_compensation_frequency", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 20, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_summary_currency": {"type": "text", "index": 23, "name": "annual_summary_currency", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 24, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 25, "name": "annual_summary_primary_compensation_basis", "comment": null}, "compensation_grade_id": {"type": "text", "index": 26, "name": "compensation_grade_id", "comment": null}, "first_name": {"type": "text", "index": 27, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 28, "name": "last_name", "comment": null}, "date_of_birth": {"type": "date", "index": 29, "name": "date_of_birth", "comment": null}, "gender": {"type": "text", "index": 30, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 31, "name": "is_hispanic_or_latino", "comment": null}, "email_address": {"type": "text", "index": 32, "name": "email_address", "comment": null}, "ethnicity_codes": {"type": "text", "index": 33, "name": "ethnicity_codes", "comment": null}, "military_status": {"type": "text", "index": 34, "name": "military_status", "comment": null}, "business_title": {"type": "text", "index": 35, "name": "business_title", "comment": null}, "job_profile_id": {"type": "text", "index": 36, "name": "job_profile_id", "comment": null}, "employee_type": {"type": "text", "index": 37, "name": "employee_type", "comment": null}, "position_location": {"type": "text", "index": 38, "name": "position_location", "comment": null}, "management_level_code": {"type": "text", "index": 39, "name": "management_level_code", "comment": null}, "fte_percent": {"type": "integer", "index": 40, "name": "fte_percent", "comment": null}, "position_end_date": {"type": "date", "index": 41, "name": "position_end_date", "comment": null}, "position_effective_date": {"type": "date", "index": 42, "name": "position_effective_date", "comment": null}, "days_employed": {"type": "integer", "index": 43, "name": "days_employed", "comment": null}, "is_employed_one_year": {"type": "boolean", "index": 44, "name": "is_employed_one_year", "comment": null}, "is_employed_five_years": {"type": "boolean", "index": 45, "name": "is_employed_five_years", "comment": null}, "is_employed_ten_years": {"type": "boolean", "index": 46, "name": "is_employed_ten_years", "comment": null}, "is_employed_twenty_years": {"type": "boolean", "index": 47, "name": "is_employed_twenty_years", "comment": null}, "is_employed_thirty_years": {"type": "boolean", "index": 48, "name": "is_employed_thirty_years", "comment": null}, "is_current_employee_one_year": {"type": "boolean", "index": 49, "name": "is_current_employee_one_year", "comment": null}, "is_current_employee_five_years": {"type": "boolean", "index": 50, "name": "is_current_employee_five_years", "comment": null}, "is_current_employee_ten_years": {"type": "boolean", "index": 51, "name": "is_current_employee_ten_years", "comment": null}, "is_current_employee_twenty_years": {"type": "boolean", "index": 52, "name": "is_current_employee_twenty_years", "comment": null}, "is_current_employee_thirty_years": {"type": "boolean", "index": 53, "name": "is_current_employee_thirty_years", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_overview"}, "model.workday.workday__job_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "job_profile_code": {"type": "text", "index": 3, "name": "job_profile_code", "comment": null}, "job_title": {"type": "text", "index": 4, "name": "job_title", "comment": null}, "private_title": {"type": "integer", "index": 5, "name": "private_title", "comment": null}, "job_summary": {"type": "text", "index": 6, "name": "job_summary", "comment": null}, "job_description": {"type": "text", "index": 7, "name": "job_description", "comment": null}, "job_family_codes": {"type": "text", "index": 8, "name": "job_family_codes", "comment": null}, "job_family_summaries": {"type": "text", "index": 9, "name": "job_family_summaries", "comment": null}, "job_family_group_codes": {"type": "text", "index": 10, "name": "job_family_group_codes", "comment": null}, "job_family_group_summaries": {"type": "text", "index": 11, "name": "job_family_group_summaries", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__job_overview"}, "model.workday.workday__monthly_summary": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"metrics_month": {"type": "date", "index": 1, "name": "metrics_month", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "new_employees": {"type": "bigint", "index": 3, "name": "new_employees", "comment": null}, "churned_employees": {"type": "bigint", "index": 4, "name": "churned_employees", "comment": null}, "churned_voluntary_employees": {"type": "bigint", "index": 5, "name": "churned_voluntary_employees", "comment": null}, "churned_involuntary_employees": {"type": "bigint", "index": 6, "name": "churned_involuntary_employees", "comment": null}, "churned_workers": {"type": "bigint", "index": 7, "name": "churned_workers", "comment": null}, "active_employees": {"type": "bigint", "index": 8, "name": "active_employees", "comment": null}, "active_male_employees": {"type": "bigint", "index": 9, "name": "active_male_employees", "comment": null}, "active_female_employees": {"type": "bigint", "index": 10, "name": "active_female_employees", "comment": null}, "active_workers": {"type": "bigint", "index": 11, "name": "active_workers", "comment": null}, "active_known_gender_employees": {"type": "bigint", "index": 12, "name": "active_known_gender_employees", "comment": null}, "avg_employee_primary_compensation": {"type": "double precision", "index": 13, "name": "avg_employee_primary_compensation", "comment": null}, "avg_employee_base_pay": {"type": "double precision", "index": 14, "name": "avg_employee_base_pay", "comment": null}, "avg_employee_salary_and_allowances": {"type": "double precision", "index": 15, "name": "avg_employee_salary_and_allowances", "comment": null}, "avg_days_as_employee": {"type": "numeric", "index": 16, "name": "avg_days_as_employee", "comment": null}, "avg_worker_primary_compensation": {"type": "double precision", "index": 17, "name": "avg_worker_primary_compensation", "comment": null}, "avg_worker_base_pay": {"type": "double precision", "index": 18, "name": "avg_worker_base_pay", "comment": null}, "avg_worker_salary_and_allowances": {"type": "double precision", "index": 19, "name": "avg_worker_salary_and_allowances", "comment": null}, "avg_days_as_worker": {"type": "numeric", "index": 20, "name": "avg_days_as_worker", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__monthly_summary"}, "model.workday.workday__organization_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "organization_role_id": {"type": "text", "index": 2, "name": "organization_role_id", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "organization_code": {"type": "text", "index": 6, "name": "organization_code", "comment": null}, "organization_name": {"type": "text", "index": 7, "name": "organization_name", "comment": null}, "organization_type": {"type": "text", "index": 8, "name": "organization_type", "comment": null}, "organization_sub_type": {"type": "text", "index": 9, "name": "organization_sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 10, "name": "superior_organization_id", "comment": null}, "top_level_organization_id": {"type": "text", "index": 11, "name": "top_level_organization_id", "comment": null}, "manager_id": {"type": "text", "index": 12, "name": "manager_id", "comment": null}, "organization_role_code": {"type": "text", "index": 13, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__organization_overview"}, "model.workday.workday__position_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "position_code": {"type": "text", "index": 3, "name": "position_code", "comment": null}, "job_posting_title": {"type": "text", "index": 4, "name": "job_posting_title", "comment": null}, "effective_date": {"type": "date", "index": 5, "name": "effective_date", "comment": null}, "is_closed": {"type": "boolean", "index": 6, "name": "is_closed", "comment": null}, "is_hiring_freeze": {"type": "boolean", "index": 7, "name": "is_hiring_freeze", "comment": null}, "is_available_for_hire": {"type": "boolean", "index": 8, "name": "is_available_for_hire", "comment": null}, "availability_date": {"type": "date", "index": 9, "name": "availability_date", "comment": null}, "is_available_for_recruiting": {"type": "boolean", "index": 10, "name": "is_available_for_recruiting", "comment": null}, "earliest_hire_date": {"type": "date", "index": 11, "name": "earliest_hire_date", "comment": null}, "is_available_for_overlap": {"type": "boolean", "index": 12, "name": "is_available_for_overlap", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 13, "name": "earliest_overlap_date", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 14, "name": "worker_for_filled_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 15, "name": "worker_type_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 16, "name": "position_time_type_code", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 17, "name": "supervisory_organization_id", "comment": null}, "job_profile_id": {"type": "text", "index": 18, "name": "job_profile_id", "comment": null}, "compensation_package_code": {"type": "integer", "index": 19, "name": "compensation_package_code", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 20, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 21, "name": "compensation_grade_profile_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__position_overview"}, "model.workday.workday__worker_position_org_daily_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__worker_position_org_daily_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"wpo_day_id": {"type": "text", "index": 1, "name": "wpo_day_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "organization_id": {"type": "text", "index": 5, "name": "organization_id", "comment": null}, "source_relation": {"type": "text", "index": 6, "name": "source_relation", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_end", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 9, "name": "_fivetran_active", "comment": null}, "_fivetran_date": {"type": "date", "index": 10, "name": "_fivetran_date", "comment": null}, "history_unique_key": {"type": "text", "index": 11, "name": "history_unique_key", "comment": null}, "index": {"type": "integer", "index": 12, "name": "index", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 13, "name": "date_of_pay_group_assignment", "comment": null}, "primary_business_site": {"type": "integer", "index": 14, "name": "primary_business_site", "comment": null}, "is_used_in_change_organization_assignments": {"type": "boolean", "index": 15, "name": "is_used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__worker_position_org_daily_history"}}, "sources": {"source.workday.workday.job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family"}, "source.workday.workday.job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_group"}, "source.workday.workday.job_family_job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_family_group"}, "source.workday.workday.job_family_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_profile"}, "source.workday.workday.job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_profile"}, "source.workday.workday.military_service": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.military_service"}, "source.workday.workday.organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization"}, "source.workday.workday.organization_job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_job_family"}, "source.workday.workday.organization_role": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role"}, "source.workday.workday.organization_role_worker": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role_worker"}, "source.workday.workday.person_contact_email_address": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_contact_email_address"}, "source.workday.workday.person_name": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_name"}, "source.workday.workday.personal_information_ethnicity": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_ethnicity"}, "source.workday.workday.personal_information_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_history"}, "source.workday.workday.position": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position"}, "source.workday.workday.position_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_job_profile"}, "source.workday.workday.position_organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_organization"}, "source.workday.workday.worker_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_history"}, "source.workday.workday.worker_leave_status": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_leave_status"}, "source.workday.workday.worker_position_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_history"}, "source.workday.workday.worker_position_organization_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_organization_history"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.7.8", "generated_at": "2024-04-02T23:44:59.861111Z", "invocation_id": "cc500e2b-b7c4-44e8-b9fd-9ae8c4aa2439", "env": {}}, "nodes": {"seed.workday_integration_tests.workday_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_data"}, "seed.workday_integration_tests.workday_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data"}, "seed.workday_integration_tests.workday_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_profile_data"}, "seed.workday_integration_tests.workday_military_service_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_military_service_data"}, "seed.workday_integration_tests.workday_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_data"}, "seed.workday_integration_tests.workday_organization_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data"}, "seed.workday_integration_tests.workday_organization_role_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_data"}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data"}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data"}, "seed.workday_integration_tests.workday_person_name_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_name_data"}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data"}, "seed.workday_integration_tests.workday_personal_information_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data"}, "seed.workday_integration_tests.workday_position_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_data"}, "seed.workday_integration_tests.workday_position_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data"}, "seed.workday_integration_tests.workday_position_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_organization_data"}, "seed.workday_integration_tests.workday_worker_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_history_data"}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data"}, "seed.workday_integration_tests.workday_worker_position_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data"}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data"}, "model.workday.stg_workday__job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_base"}, "model.workday.stg_workday__job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_group_base"}, "model.workday.stg_workday__job_family_job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base"}, "model.workday.stg_workday__job_family_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_profile_base"}, "model.workday.stg_workday__job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_profile_base"}, "model.workday.stg_workday__military_service_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__military_service_base"}, "model.workday.stg_workday__organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_base"}, "model.workday.stg_workday__organization_job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_job_family_base"}, "model.workday.stg_workday__organization_role_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_base"}, "model.workday.stg_workday__organization_role_worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_worker_base"}, "model.workday.stg_workday__person_contact_email_address_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_contact_email_address_base"}, "model.workday.stg_workday__person_name_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_name_base"}, "model.workday.stg_workday__personal_information_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_base"}, "model.workday.stg_workday__personal_information_ethnicity_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base"}, "model.workday.stg_workday__position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_base"}, "model.workday.stg_workday__position_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_job_profile_base"}, "model.workday.stg_workday__position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_organization_base"}, "model.workday.stg_workday__worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_base"}, "model.workday.stg_workday__worker_leave_status_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_leave_status_base"}, "model.workday.stg_workday__worker_position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_base"}, "model.workday.stg_workday__worker_position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_organization_base"}, "model.workday.int_workday__employee_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"history_unique_key": {"type": "text", "index": 1, "name": "history_unique_key", "comment": null}, "employee_id": {"type": "text", "index": 2, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 3, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 6, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_end", "comment": null}, "is_wh_fivetran_active": {"type": "boolean", "index": 9, "name": "is_wh_fivetran_active", "comment": null}, "is_wph_fivetran_active": {"type": "boolean", "index": 10, "name": "is_wph_fivetran_active", "comment": null}, "is_pih_fivetran_active": {"type": "boolean", "index": 11, "name": "is_pih_fivetran_active", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 12, "name": "academic_tenure_date", "comment": null}, "is_active": {"type": "boolean", "index": 13, "name": "is_active", "comment": null}, "active_status_date": {"type": "date", "index": 14, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 15, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 16, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 17, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 19, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 20, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 21, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 23, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 24, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 25, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 26, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 27, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 28, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 29, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 30, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 31, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 32, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 33, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 34, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 35, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 36, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 37, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 38, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 39, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 40, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 41, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 42, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 43, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 44, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 45, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 46, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 47, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 48, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 49, "name": "first_day_of_work", "comment": null}, "is_has_international_assignment": {"type": "boolean", "index": 50, "name": "is_has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 51, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 52, "name": "hire_reason", "comment": null}, "is_hire_rescinded": {"type": "boolean", "index": 53, "name": "is_hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 54, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 55, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 56, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 57, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 58, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 59, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 60, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 61, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 62, "name": "months_continuous_prior_employment", "comment": null}, "is_not_returning": {"type": "boolean", "index": 63, "name": "is_not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 64, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 65, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 66, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 67, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 68, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 69, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 70, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 71, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 72, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 73, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 74, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 75, "name": "reason_reference_id", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 76, "name": "is_regrettable_termination", "comment": null}, "is_rehire": {"type": "boolean", "index": 77, "name": "is_rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 78, "name": "resignation_date", "comment": null}, "is_retired": {"type": "boolean", "index": 79, "name": "is_retired", "comment": null}, "retirement_date": {"type": "integer", "index": 80, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 81, "name": "retirement_eligibility_date", "comment": null}, "is_return_unknown": {"type": "boolean", "index": 82, "name": "is_return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 83, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 84, "name": "severance_date", "comment": null}, "is_terminated": {"type": "boolean", "index": 85, "name": "is_terminated", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 86, "name": "termination_date", "comment": null}, "is_termination_involuntary": {"type": "boolean", "index": 87, "name": "is_termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 88, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 89, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 90, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 91, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 92, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 93, "name": "worker_code", "comment": null}, "position_location": {"type": "text", "index": 94, "name": "position_location", "comment": null}, "is_exclude_from_head_count": {"type": "boolean", "index": 95, "name": "is_exclude_from_head_count", "comment": null}, "fte_percent": {"type": "integer", "index": 96, "name": "fte_percent", "comment": null}, "is_job_exempt": {"type": "boolean", "index": 97, "name": "is_job_exempt", "comment": null}, "is_specify_paid_fte": {"type": "boolean", "index": 98, "name": "is_specify_paid_fte", "comment": null}, "is_specify_working_fte": {"type": "boolean", "index": 99, "name": "is_specify_working_fte", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 100, "name": "is_work_shift_required", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 101, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 102, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 103, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 104, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 105, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 106, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 107, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 108, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 109, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 110, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 111, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 112, "name": "business_title", "comment": null}, "is_critical_job": {"type": "boolean", "index": 113, "name": "is_critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 114, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 115, "name": "difficulty_to_fill", "comment": null}, "position_effective_date": {"type": "timestamp without time zone", "index": 116, "name": "position_effective_date", "comment": null}, "employee_type": {"type": "text", "index": 117, "name": "employee_type", "comment": null}, "position_end_date": {"type": "timestamp without time zone", "index": 118, "name": "position_end_date", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 119, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 120, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 121, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 122, "name": "frequency", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 123, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 124, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 125, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 126, "name": "is_primary_job", "comment": null}, "job_profile_id": {"type": "text", "index": 127, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 128, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 129, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 130, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 131, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 132, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 133, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 134, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 135, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 136, "name": "scheduled_weekly_hours", "comment": null}, "position_start_date": {"type": "timestamp without time zone", "index": 137, "name": "position_start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 138, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 139, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 140, "name": "work_shift", "comment": null}, "work_space": {"type": "integer", "index": 141, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 142, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 143, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 144, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 145, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 146, "name": "working_time_value", "comment": null}, "additional_nationality": {"type": "integer", "index": 147, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 148, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 149, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 150, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 151, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 152, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 153, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 154, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 155, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 156, "name": "is_hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 157, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 158, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 159, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 160, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 161, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 162, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 163, "name": "last_medical_exam_valid_to", "comment": null}, "is_local_hukou": {"type": "integer", "index": 164, "name": "is_local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 165, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 166, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 167, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 168, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 169, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 170, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 171, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 172, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 173, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 174, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 175, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 176, "name": "social_benefit", "comment": null}, "is_tobacco_use": {"type": "boolean", "index": 177, "name": "is_tobacco_use", "comment": null}, "type": {"type": "text", "index": 178, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__employee_history"}, "model.workday.workday__employee_daily_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_day_id": {"type": "text", "index": 1, "name": "employee_day_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "history_unique_key": {"type": "text", "index": 3, "name": "history_unique_key", "comment": null}, "employee_id": {"type": "text", "index": 4, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 5, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 6, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 8, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_end", "comment": null}, "is_wh_fivetran_active": {"type": "boolean", "index": 11, "name": "is_wh_fivetran_active", "comment": null}, "is_wph_fivetran_active": {"type": "boolean", "index": 12, "name": "is_wph_fivetran_active", "comment": null}, "is_pih_fivetran_active": {"type": "boolean", "index": 13, "name": "is_pih_fivetran_active", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 14, "name": "academic_tenure_date", "comment": null}, "is_active": {"type": "boolean", "index": 15, "name": "is_active", "comment": null}, "active_status_date": {"type": "date", "index": 16, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 17, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 18, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 19, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 20, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 22, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 23, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 24, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 25, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 26, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 27, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 28, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 29, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 30, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 31, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 32, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 33, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 34, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 35, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 36, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 37, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 38, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 39, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 40, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 41, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 42, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 43, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 44, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 45, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 46, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 47, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 48, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 49, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 50, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 51, "name": "first_day_of_work", "comment": null}, "is_has_international_assignment": {"type": "boolean", "index": 52, "name": "is_has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 53, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 54, "name": "hire_reason", "comment": null}, "is_hire_rescinded": {"type": "boolean", "index": 55, "name": "is_hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 56, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 57, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 58, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 59, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 60, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 61, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 62, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 63, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 64, "name": "months_continuous_prior_employment", "comment": null}, "is_not_returning": {"type": "boolean", "index": 65, "name": "is_not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 66, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 67, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 68, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 69, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 70, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 71, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 72, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 73, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 74, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 75, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 76, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 77, "name": "reason_reference_id", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 78, "name": "is_regrettable_termination", "comment": null}, "is_rehire": {"type": "boolean", "index": 79, "name": "is_rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 80, "name": "resignation_date", "comment": null}, "is_retired": {"type": "boolean", "index": 81, "name": "is_retired", "comment": null}, "retirement_date": {"type": "integer", "index": 82, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 83, "name": "retirement_eligibility_date", "comment": null}, "is_return_unknown": {"type": "boolean", "index": 84, "name": "is_return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 85, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 86, "name": "severance_date", "comment": null}, "is_terminated": {"type": "boolean", "index": 87, "name": "is_terminated", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 88, "name": "termination_date", "comment": null}, "is_termination_involuntary": {"type": "boolean", "index": 89, "name": "is_termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 90, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 91, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 92, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 93, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 94, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 95, "name": "worker_code", "comment": null}, "position_location": {"type": "text", "index": 96, "name": "position_location", "comment": null}, "is_exclude_from_head_count": {"type": "boolean", "index": 97, "name": "is_exclude_from_head_count", "comment": null}, "fte_percent": {"type": "integer", "index": 98, "name": "fte_percent", "comment": null}, "is_job_exempt": {"type": "boolean", "index": 99, "name": "is_job_exempt", "comment": null}, "is_specify_paid_fte": {"type": "boolean", "index": 100, "name": "is_specify_paid_fte", "comment": null}, "is_specify_working_fte": {"type": "boolean", "index": 101, "name": "is_specify_working_fte", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 102, "name": "is_work_shift_required", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 103, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 104, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 105, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 106, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 107, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 108, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 109, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 110, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 111, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 112, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 113, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 114, "name": "business_title", "comment": null}, "is_critical_job": {"type": "boolean", "index": 115, "name": "is_critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 116, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 117, "name": "difficulty_to_fill", "comment": null}, "position_effective_date": {"type": "timestamp without time zone", "index": 118, "name": "position_effective_date", "comment": null}, "employee_type": {"type": "text", "index": 119, "name": "employee_type", "comment": null}, "position_end_date": {"type": "timestamp without time zone", "index": 120, "name": "position_end_date", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 121, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 122, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 123, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 124, "name": "frequency", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 125, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 126, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 127, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 128, "name": "is_primary_job", "comment": null}, "job_profile_id": {"type": "text", "index": 129, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 130, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 131, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 132, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 133, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 134, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 135, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 136, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 137, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 138, "name": "scheduled_weekly_hours", "comment": null}, "position_start_date": {"type": "timestamp without time zone", "index": 139, "name": "position_start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 140, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 141, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 142, "name": "work_shift", "comment": null}, "work_space": {"type": "integer", "index": 143, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 144, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 145, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 146, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 147, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 148, "name": "working_time_value", "comment": null}, "additional_nationality": {"type": "integer", "index": 149, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 150, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 151, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 152, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 153, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 154, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 155, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 156, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 157, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 158, "name": "is_hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 159, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 160, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 161, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 162, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 163, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 164, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 165, "name": "last_medical_exam_valid_to", "comment": null}, "is_local_hukou": {"type": "integer", "index": 166, "name": "is_local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 167, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 168, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 169, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 170, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 171, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 172, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 173, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 174, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 175, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 176, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 177, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 178, "name": "social_benefit", "comment": null}, "is_tobacco_use": {"type": "boolean", "index": 179, "name": "is_tobacco_use", "comment": null}, "type": {"type": "text", "index": 180, "name": "type", "comment": null}, "row_num": {"type": "bigint", "index": 181, "name": "row_num", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_daily_history"}, "model.workday.workday__employee_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_id": {"type": "text", "index": 1, "name": "employee_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "position_start_date": {"type": "date", "index": 5, "name": "position_start_date", "comment": null}, "worker_code": {"type": "integer", "index": 6, "name": "worker_code", "comment": null}, "user_id": {"type": "text", "index": 7, "name": "user_id", "comment": null}, "universal_id": {"type": "integer", "index": 8, "name": "universal_id", "comment": null}, "is_user_active": {"type": "boolean", "index": 9, "name": "is_user_active", "comment": null}, "is_employed": {"type": "boolean", "index": 10, "name": "is_employed", "comment": null}, "hire_date": {"type": "date", "index": 11, "name": "hire_date", "comment": null}, "departure_date": {"type": "date", "index": 12, "name": "departure_date", "comment": null}, "days_as_worker": {"type": "integer", "index": 13, "name": "days_as_worker", "comment": null}, "is_terminated": {"type": "boolean", "index": 14, "name": "is_terminated", "comment": null}, "primary_termination_category": {"type": "text", "index": 15, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 16, "name": "primary_termination_reason", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 17, "name": "is_regrettable_termination", "comment": null}, "compensation_effective_date": {"type": "date", "index": 18, "name": "compensation_effective_date", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 19, "name": "employee_compensation_frequency", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 20, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_summary_currency": {"type": "text", "index": 23, "name": "annual_summary_currency", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 24, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 25, "name": "annual_summary_primary_compensation_basis", "comment": null}, "compensation_grade_id": {"type": "text", "index": 26, "name": "compensation_grade_id", "comment": null}, "first_name": {"type": "text", "index": 27, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 28, "name": "last_name", "comment": null}, "date_of_birth": {"type": "date", "index": 29, "name": "date_of_birth", "comment": null}, "gender": {"type": "text", "index": 30, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 31, "name": "is_hispanic_or_latino", "comment": null}, "email_address": {"type": "text", "index": 32, "name": "email_address", "comment": null}, "ethnicity_codes": {"type": "text", "index": 33, "name": "ethnicity_codes", "comment": null}, "military_status": {"type": "text", "index": 34, "name": "military_status", "comment": null}, "business_title": {"type": "text", "index": 35, "name": "business_title", "comment": null}, "job_profile_id": {"type": "text", "index": 36, "name": "job_profile_id", "comment": null}, "employee_type": {"type": "text", "index": 37, "name": "employee_type", "comment": null}, "position_location": {"type": "text", "index": 38, "name": "position_location", "comment": null}, "management_level_code": {"type": "text", "index": 39, "name": "management_level_code", "comment": null}, "fte_percent": {"type": "integer", "index": 40, "name": "fte_percent", "comment": null}, "position_end_date": {"type": "date", "index": 41, "name": "position_end_date", "comment": null}, "position_effective_date": {"type": "date", "index": 42, "name": "position_effective_date", "comment": null}, "days_employed": {"type": "integer", "index": 43, "name": "days_employed", "comment": null}, "is_employed_one_year": {"type": "boolean", "index": 44, "name": "is_employed_one_year", "comment": null}, "is_employed_five_years": {"type": "boolean", "index": 45, "name": "is_employed_five_years", "comment": null}, "is_employed_ten_years": {"type": "boolean", "index": 46, "name": "is_employed_ten_years", "comment": null}, "is_employed_twenty_years": {"type": "boolean", "index": 47, "name": "is_employed_twenty_years", "comment": null}, "is_employed_thirty_years": {"type": "boolean", "index": 48, "name": "is_employed_thirty_years", "comment": null}, "is_current_employee_one_year": {"type": "boolean", "index": 49, "name": "is_current_employee_one_year", "comment": null}, "is_current_employee_five_years": {"type": "boolean", "index": 50, "name": "is_current_employee_five_years", "comment": null}, "is_current_employee_ten_years": {"type": "boolean", "index": 51, "name": "is_current_employee_ten_years", "comment": null}, "is_current_employee_twenty_years": {"type": "boolean", "index": 52, "name": "is_current_employee_twenty_years", "comment": null}, "is_current_employee_thirty_years": {"type": "boolean", "index": 53, "name": "is_current_employee_thirty_years", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_overview"}, "model.workday.workday__job_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "job_profile_code": {"type": "text", "index": 3, "name": "job_profile_code", "comment": null}, "job_title": {"type": "text", "index": 4, "name": "job_title", "comment": null}, "private_title": {"type": "integer", "index": 5, "name": "private_title", "comment": null}, "job_summary": {"type": "text", "index": 6, "name": "job_summary", "comment": null}, "job_description": {"type": "text", "index": 7, "name": "job_description", "comment": null}, "job_family_codes": {"type": "text", "index": 8, "name": "job_family_codes", "comment": null}, "job_family_summaries": {"type": "text", "index": 9, "name": "job_family_summaries", "comment": null}, "job_family_group_codes": {"type": "text", "index": 10, "name": "job_family_group_codes", "comment": null}, "job_family_group_summaries": {"type": "text", "index": 11, "name": "job_family_group_summaries", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__job_overview"}, "model.workday.workday__monthly_summary": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"metrics_month": {"type": "date", "index": 1, "name": "metrics_month", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "new_employees": {"type": "bigint", "index": 3, "name": "new_employees", "comment": null}, "churned_employees": {"type": "bigint", "index": 4, "name": "churned_employees", "comment": null}, "churned_voluntary_employees": {"type": "bigint", "index": 5, "name": "churned_voluntary_employees", "comment": null}, "churned_involuntary_employees": {"type": "bigint", "index": 6, "name": "churned_involuntary_employees", "comment": null}, "churned_workers": {"type": "bigint", "index": 7, "name": "churned_workers", "comment": null}, "active_employees": {"type": "bigint", "index": 8, "name": "active_employees", "comment": null}, "active_male_employees": {"type": "bigint", "index": 9, "name": "active_male_employees", "comment": null}, "active_female_employees": {"type": "bigint", "index": 10, "name": "active_female_employees", "comment": null}, "active_workers": {"type": "bigint", "index": 11, "name": "active_workers", "comment": null}, "active_known_gender_employees": {"type": "bigint", "index": 12, "name": "active_known_gender_employees", "comment": null}, "avg_employee_primary_compensation": {"type": "double precision", "index": 13, "name": "avg_employee_primary_compensation", "comment": null}, "avg_employee_base_pay": {"type": "double precision", "index": 14, "name": "avg_employee_base_pay", "comment": null}, "avg_employee_salary_and_allowances": {"type": "double precision", "index": 15, "name": "avg_employee_salary_and_allowances", "comment": null}, "avg_days_as_employee": {"type": "numeric", "index": 16, "name": "avg_days_as_employee", "comment": null}, "avg_worker_primary_compensation": {"type": "double precision", "index": 17, "name": "avg_worker_primary_compensation", "comment": null}, "avg_worker_base_pay": {"type": "double precision", "index": 18, "name": "avg_worker_base_pay", "comment": null}, "avg_worker_salary_and_allowances": {"type": "double precision", "index": 19, "name": "avg_worker_salary_and_allowances", "comment": null}, "avg_days_as_worker": {"type": "numeric", "index": 20, "name": "avg_days_as_worker", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__monthly_summary"}, "model.workday.workday__organization_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "organization_role_id": {"type": "text", "index": 2, "name": "organization_role_id", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "organization_code": {"type": "text", "index": 6, "name": "organization_code", "comment": null}, "organization_name": {"type": "text", "index": 7, "name": "organization_name", "comment": null}, "organization_type": {"type": "text", "index": 8, "name": "organization_type", "comment": null}, "organization_sub_type": {"type": "text", "index": 9, "name": "organization_sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 10, "name": "superior_organization_id", "comment": null}, "top_level_organization_id": {"type": "text", "index": 11, "name": "top_level_organization_id", "comment": null}, "manager_id": {"type": "text", "index": 12, "name": "manager_id", "comment": null}, "organization_role_code": {"type": "text", "index": 13, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__organization_overview"}, "model.workday.workday__position_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "position_code": {"type": "text", "index": 3, "name": "position_code", "comment": null}, "job_posting_title": {"type": "text", "index": 4, "name": "job_posting_title", "comment": null}, "effective_date": {"type": "date", "index": 5, "name": "effective_date", "comment": null}, "is_closed": {"type": "boolean", "index": 6, "name": "is_closed", "comment": null}, "is_hiring_freeze": {"type": "boolean", "index": 7, "name": "is_hiring_freeze", "comment": null}, "is_available_for_hire": {"type": "boolean", "index": 8, "name": "is_available_for_hire", "comment": null}, "availability_date": {"type": "date", "index": 9, "name": "availability_date", "comment": null}, "is_available_for_recruiting": {"type": "boolean", "index": 10, "name": "is_available_for_recruiting", "comment": null}, "earliest_hire_date": {"type": "date", "index": 11, "name": "earliest_hire_date", "comment": null}, "is_available_for_overlap": {"type": "boolean", "index": 12, "name": "is_available_for_overlap", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 13, "name": "earliest_overlap_date", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 14, "name": "worker_for_filled_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 15, "name": "worker_type_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 16, "name": "position_time_type_code", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 17, "name": "supervisory_organization_id", "comment": null}, "job_profile_id": {"type": "text", "index": 18, "name": "job_profile_id", "comment": null}, "compensation_package_code": {"type": "integer", "index": 19, "name": "compensation_package_code", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 20, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 21, "name": "compensation_grade_profile_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__position_overview"}, "model.workday.workday__worker_position_org_daily_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__worker_position_org_daily_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"wpo_day_id": {"type": "text", "index": 1, "name": "wpo_day_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "organization_id": {"type": "text", "index": 5, "name": "organization_id", "comment": null}, "source_relation": {"type": "text", "index": 6, "name": "source_relation", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_end", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 9, "name": "_fivetran_active", "comment": null}, "_fivetran_date": {"type": "date", "index": 10, "name": "_fivetran_date", "comment": null}, "history_unique_key": {"type": "text", "index": 11, "name": "history_unique_key", "comment": null}, "index": {"type": "integer", "index": 12, "name": "index", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 13, "name": "date_of_pay_group_assignment", "comment": null}, "primary_business_site": {"type": "integer", "index": 14, "name": "primary_business_site", "comment": null}, "is_used_in_change_organization_assignments": {"type": "boolean", "index": 15, "name": "is_used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__worker_position_org_daily_history"}}, "sources": {"source.workday.workday.job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family"}, "source.workday.workday.job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_group"}, "source.workday.workday.job_family_job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_family_group"}, "source.workday.workday.job_family_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_profile"}, "source.workday.workday.job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_profile"}, "source.workday.workday.military_service": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.military_service"}, "source.workday.workday.organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization"}, "source.workday.workday.organization_job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_job_family"}, "source.workday.workday.organization_role": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role"}, "source.workday.workday.organization_role_worker": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role_worker"}, "source.workday.workday.person_contact_email_address": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_contact_email_address"}, "source.workday.workday.person_name": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_name"}, "source.workday.workday.personal_information_ethnicity": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_ethnicity"}, "source.workday.workday.personal_information_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_history"}, "source.workday.workday.position": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position"}, "source.workday.workday.position_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_job_profile"}, "source.workday.workday.position_organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_organization"}, "source.workday.workday.worker_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_history"}, "source.workday.workday.worker_leave_status": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_leave_status"}, "source.workday.workday.worker_position_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_history"}, "source.workday.workday.worker_position_organization_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_organization_history"}}, "errors": null} \ No newline at end of file diff --git a/docs/manifest.json b/docs/manifest.json index c9dbdf9..12686c5 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v11.json", "dbt_version": "1.7.8", "generated_at": "2024-04-02T10:15:44.650404Z", "invocation_id": "2c956fce-7a6c-4f51-b5a5-d975f2021c95", "env": {}, "project_name": "workday_integration_tests", "project_id": "457920b1e5594993369a050db836d437", "user_id": "81581f81-d5af-4143-8fbf-c2f0001e4f56", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_job_family_group_data"], "alias": "workday_job_family_job_family_group_data", "checksum": {"name": "sha256", "checksum": "a4c9b0101811381ac698bec0ba8dd2474fa563f2d2dc6bdf1e072bd3f890313f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.831813, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_history_data.csv", "original_file_path": "seeds/workday_personal_information_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "fqn": ["workday_integration_tests", "workday_personal_information_history_data"], "alias": "workday_personal_information_history_data", "checksum": {"name": "sha256", "checksum": "2810574ec93fc886e6f1faa097951c8d7c96336fbd1a03b75a22b5a7bb85d13a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.8401651, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_ethnicity_data.csv", "original_file_path": "seeds/workday_personal_information_ethnicity_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "fqn": ["workday_integration_tests", "workday_personal_information_ethnicity_data"], "alias": "workday_personal_information_ethnicity_data", "checksum": {"name": "sha256", "checksum": "986222e9224bcca39693358ca9829277b4f6a2c56111ba9aa2db56734d128e9a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.8414981, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_group_data"], "alias": "workday_job_family_group_data", "checksum": {"name": "sha256", "checksum": "394c43d528af65ce740ba8ebd24d6d14e6ea99f5d57abcdd2690070f408378f9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.842734, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_history_data.csv", "original_file_path": "seeds/workday_worker_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "fqn": ["workday_integration_tests", "workday_worker_history_data"], "alias": "workday_worker_history_data", "checksum": {"name": "sha256", "checksum": "b3b80c42d748789791fca4630504aafa22afd1dca315e0d63bc0f9f9fe33a68d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "annual_currency_summary_primary_compensation_basis": "float", "annual_currency_summary_total_base_pay": "float", "annual_currency_summary_total_salary_and_allowances": "float", "annual_summary_primary_compensation_basis": "float", "annual_summary_total_base_pay": "float", "annual_summary_total_salary_and_allowances": "float", "contract_pay_rate": "float", "days_unemployed": "float", "employee_compensation_primary_compensation_basis": "float", "employee_compensation_total_base_pay": "float", "employee_compensation_total_salary_and_allowances": "float", "hourly_frequency_primary_compensation_basis": "float", "hourly_frequency_total_base_pay": "float", "hourly_frequency_total_salary_and_allowances": "float", "months_continuous_prior_employment": "float", "pay_group_frequency_primary_compensation_basis": "float", "pay_group_frequency_total_base_pay": "float", "pay_group_frequency_total_salary_and_allowances": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "annual_currency_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "contract_pay_rate": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "days_unemployed": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "months_continuous_prior_employment": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712052882.844159, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_leave_status_data.csv", "original_file_path": "seeds/workday_worker_leave_status_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "fqn": ["workday_integration_tests", "workday_worker_leave_status_data"], "alias": "workday_worker_leave_status_data", "checksum": {"name": "sha256", "checksum": "bec6fe9af70bc7bebcfebbd12d41d1674fa78fc88497783bf7be995f1290b901"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "age_of_dependent": "float", "leave_entitlement_override": "float", "leave_percentage": "float", "number_of_babies_adopted_children": "float", "number_of_child_dependents": "float", "number_of_previous_births": "float", "number_of_previous_maternity_leaves": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "age_of_dependent": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_entitlement_override": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_percentage": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_babies_adopted_children": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_child_dependents": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_births": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_maternity_leaves": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712052882.84544, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_organization_history_data.csv", "original_file_path": "seeds/workday_worker_position_organization_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_organization_history_data"], "alias": "workday_worker_position_organization_history_data", "checksum": {"name": "sha256", "checksum": "79d43cf1c2b3425d03d23b014705613022d55eb282108d972cbeb58bf55ed0d3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.8466098, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_data.csv", "original_file_path": "seeds/workday_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_data", "fqn": ["workday_integration_tests", "workday_job_family_data"], "alias": "workday_job_family_data", "checksum": {"name": "sha256", "checksum": "727b3c01934259786bd85a1bed73ac70611363839a611bdea640bf9bd95cba2d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.8478222, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_history_data.csv", "original_file_path": "seeds/workday_worker_position_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_history_data"], "alias": "workday_worker_position_history_data", "checksum": {"name": "sha256", "checksum": "434f6ed5606c6606bbbf41d1427584a275a825ae285f88c1b12d2c3d7da3c07d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "float", "business_site_summary_scheduled_weekly_hours": "float", "default_weekly_hours": "float", "start_date": "timestamp", "end_date": "timestamp"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "business_site_summary_scheduled_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "default_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "start_date": "timestamp", "end_date": "timestamp"}, "created_at": 1712052882.849225, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_name_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_name_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_name_data.csv", "original_file_path": "seeds/workday_person_name_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_name_data", "fqn": ["workday_integration_tests", "workday_person_name_data"], "alias": "workday_person_name_data", "checksum": {"name": "sha256", "checksum": "104b5d938091b1587548c91aa46a0e5b38ebccec81cbc569993b8a971b116881"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.850626, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_data.csv", "original_file_path": "seeds/workday_organization_role_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "fqn": ["workday_integration_tests", "workday_organization_role_data"], "alias": "workday_organization_role_data", "checksum": {"name": "sha256", "checksum": "b3e1187179e8afc95fbf180efac810d5a8f4f57e118393c60fca2c2c7f09e024"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.851776, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_military_service_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_military_service_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_military_service_data.csv", "original_file_path": "seeds/workday_military_service_data.csv", "unique_id": "seed.workday_integration_tests.workday_military_service_data", "fqn": ["workday_integration_tests", "workday_military_service_data"], "alias": "workday_military_service_data", "checksum": {"name": "sha256", "checksum": "f3d25deafee7b4188b4bdfe815b40397bdd80cd135db866b9ddf2b3a0b346b07"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.853112, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_data.csv", "original_file_path": "seeds/workday_position_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_data", "fqn": ["workday_integration_tests", "workday_position_data"], "alias": "workday_position_data", "checksum": {"name": "sha256", "checksum": "f31ec8364b56eb931ab406b25be5cfc0301bba65908bc448aeb170ed79805894"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "primary_compensation_basis": "float", "primary_compensation_basis_amount_change": "float", "primary_compensation_basis_percent_change": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_amount_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_percent_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712052882.8543239, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_data.csv", "original_file_path": "seeds/workday_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_data", "fqn": ["workday_integration_tests", "workday_organization_data"], "alias": "workday_organization_data", "checksum": {"name": "sha256", "checksum": "e0ece91ba5a270a01be9bbe91ea46b49c9e5c3c56e7234b5a597c9d81f63b4cc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.855556, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_organization_data.csv", "original_file_path": "seeds/workday_position_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "fqn": ["workday_integration_tests", "workday_position_organization_data"], "alias": "workday_position_organization_data", "checksum": {"name": "sha256", "checksum": "c0cd526bcf4b91f1842484875ce4fe803d510862d4d4ddba72c6d1724c8e9ea8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.857141, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_profile_data.csv", "original_file_path": "seeds/workday_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_profile_data"], "alias": "workday_job_profile_data", "checksum": {"name": "sha256", "checksum": "677a184272cdd2e0d746d5616d33ad4ce394c74e759f73bf0e51f8dda5cc96e4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.8585558, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_contact_email_address_data.csv", "original_file_path": "seeds/workday_person_contact_email_address_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "fqn": ["workday_integration_tests", "workday_person_contact_email_address_data"], "alias": "workday_person_contact_email_address_data", "checksum": {"name": "sha256", "checksum": "4641c91d789ed134081a55cf0aaafc5a61a7ea075904691a353389552038dbe9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.8599281, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_job_family_data.csv", "original_file_path": "seeds/workday_organization_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "fqn": ["workday_integration_tests", "workday_organization_job_family_data"], "alias": "workday_organization_job_family_data", "checksum": {"name": "sha256", "checksum": "2db2016b7eea202409836faff94ba2f168ce13dfd9e00ee1d1591eb85315cd47"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.861192, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_profile_data.csv", "original_file_path": "seeds/workday_job_family_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_family_job_profile_data"], "alias": "workday_job_family_job_profile_data", "checksum": {"name": "sha256", "checksum": "bc99975db9382af8f66fd46976db4cca2a987b1e9de24d17ceeb1ebf6e5ecb68"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.862769, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_job_profile_data.csv", "original_file_path": "seeds/workday_position_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "fqn": ["workday_integration_tests", "workday_position_job_profile_data"], "alias": "workday_position_job_profile_data", "checksum": {"name": "sha256", "checksum": "e5d675b82b521d6856d8f516209642745a595a31d88d147f6561bcbc970433b3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.8639958, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_worker_data.csv", "original_file_path": "seeds/workday_organization_role_worker_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "fqn": ["workday_integration_tests", "workday_organization_role_worker_data"], "alias": "workday_organization_role_worker_data", "checksum": {"name": "sha256", "checksum": "e24079f7ed64c407174d546132b71c69a9b1eaa9951b5a91772a3da7b3ff95f8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712052882.865373, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "model.workday.workday__employee_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "resource_type": "model", "package_name": "workday", "path": "workday__employee_overview.sql", "original_file_path": "models/workday__employee_overview.sql", "unique_id": "model.workday.workday__employee_overview", "fqn": ["workday", "workday__employee_overview"], "alias": "workday__employee_overview", "checksum": {"name": "sha256", "checksum": "b6fe9afa14aa393b3c40d1a669d182f20e556adacaa1ec46b05ad800bd4141a7"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees.", "columns": {"employee_id": {"name": "employee_id", "description": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_user_active": {"name": "is_user_active", "description": "Is the user currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed": {"name": "is_employed", "description": "Is the worker currently employed?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "departure_date": {"name": "departure_date", "description": "The departure date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_as_worker": {"name": "days_as_worker", "description": "Number of days since the worker has been created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Has the worker been regrettably terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_codes": {"name": "ethnicity_codes", "description": "String aggregation of all ethnicity codes associated with an individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The military status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The position start date for this employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The position end date for this employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "The position effective date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The position location of the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_employed": {"name": "days_employed", "description": "The number of days the employee held their position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_one_year": {"name": "is_employed_one_year", "description": "Tracks whether a worker was employed at least one year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_five_years": {"name": "is_employed_five_years", "description": "Tracks whether a worker was employed at least five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_ten_years": {"name": "is_employed_ten_years", "description": "Tracks whether a worker was employed at least ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_twenty_years": {"name": "is_employed_twenty_years", "description": "Tracks whether a worker was employed at least twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_thirty_years": {"name": "is_employed_thirty_years", "description": "Tracks whether a worker was employed at least thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_one_year": {"name": "is_current_employee_one_year", "description": "Tracks whether a worker is active for more than a year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_five_years": {"name": "is_current_employee_five_years", "description": "Tracks whether a worker is active for more than five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "description": "Tracks whether a worker is active for more than ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "description": "Tracks whether a worker is active for more than twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "description": "Tracks whether a worker is active for more than thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712052884.2743528, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"", "raw_code": "with employee_surrogate_key as (\n \n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'source_relation', 'position_id', 'position_start_date']) }} as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from {{ ref('int_workday__worker_employee_enhanced') }} \n)\n\nselect * \nfrom employee_surrogate_key", "language": "sql", "refs": [{"name": "int_workday__worker_employee_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.int_workday__worker_employee_enhanced"]}, "compiled_path": "target/compiled/workday/models/workday__employee_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n), employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from __dbt__cte__int_workday__worker_employee_enhanced \n)\n\nselect * \nfrom employee_surrogate_key", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_details", "sql": " __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n)"}, {"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__personal_details", "sql": " __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n)"}, {"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_position_enriched", "sql": " __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n)"}, {"id": "model.workday.int_workday__worker_employee_enhanced", "sql": " __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__job_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "resource_type": "model", "package_name": "workday", "path": "workday__job_overview.sql", "original_file_path": "models/workday__job_overview.sql", "unique_id": "model.workday.workday__job_overview", "fqn": ["workday", "workday__job_overview"], "alias": "workday__job_overview", "checksum": {"name": "sha256", "checksum": "b50072f5be5632d10a64a1e777aa62ae6f2283f22244bd033fea5fc20ce66165"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "The private title associated with the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "The summary of the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_codes": {"name": "job_family_codes", "description": "String array of all job family codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summaries": {"name": "job_family_summaries", "description": "String array of all job family summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_codes": {"name": "job_family_group_codes", "description": "String array of all job family group codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summaries": {"name": "job_family_group_summaries", "description": "String array of all job family group summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712052884.280128, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"", "raw_code": "with job_profile_data as (\n\n select * \n from {{ ref('stg_workday__job_profile') }}\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_profile') }}\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from {{ ref('stg_workday__job_family') }}\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_family_group') }}\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from {{ ref('stg_workday__job_family_group') }}\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_code', \"', '\" ) }} as job_family_codes,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_summary', \"', '\" ) }} as job_family_summaries, \n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_code', \"', '\" ) }} as job_family_group_codes,\n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_summary', \"', '\" ) }} as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom job_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}, {"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg", "macro.dbt_utils.group_by"], "nodes": ["model.workday.stg_workday__job_profile", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/workday__job_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), job_profile_data as (\n\n select * \n from __dbt__cte__stg_workday__job_profile\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_profile\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from __dbt__cte__stg_workday__job_family\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_family_group\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from __dbt__cte__stg_workday__job_family_group\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__position_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "resource_type": "model", "package_name": "workday", "path": "workday__position_overview.sql", "original_file_path": "models/workday__position_overview.sql", "unique_id": "model.workday.workday__position_overview", "fqn": ["workday", "workday__position_overview"], "alias": "workday__position_overview", "checksum": {"name": "sha256", "checksum": "567db8a61cd72c8faec1aac1963cbf05b776d0fe170a7f8c0ae8ea3d076464d3"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts.", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712052884.2831511, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"", "raw_code": "with position_data as (\n\n select *\n from {{ ref('stg_workday__position') }}\n),\n\nposition_job_profile_data as (\n\n select *\n from {{ ref('stg_workday__position_job_profile') }}\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}, {"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/workday__position_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), position_data as (\n\n select *\n from __dbt__cte__stg_workday__position\n),\n\nposition_job_profile_data as (\n\n select *\n from __dbt__cte__stg_workday__position_job_profile\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__organization_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "resource_type": "model", "package_name": "workday", "path": "workday__organization_overview.sql", "original_file_path": "models/workday__organization_overview.sql", "unique_id": "model.workday.workday__organization_overview", "fqn": ["workday", "workday__organization_overview"], "alias": "workday__organization_overview", "checksum": {"name": "sha256", "checksum": "0df19685be8a2ffee5d5e16069cbc9771cc639372004929a73f500f9d7c59798"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712052884.285163, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"", "raw_code": "with organization_data as (\n\n select * \n from {{ ref('stg_workday__organization') }}\n),\n\norganization_role_data as (\n\n select * \n from {{ ref('stg_workday__organization_role') }}\n),\n\nworker_position_organization as (\n\n select *\n from {{ ref('stg_workday__worker_position_organization') }}\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}, {"name": "stg_workday__organization_role", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/workday__organization_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), organization_data as (\n\n select * \n from __dbt__cte__stg_workday__organization\n),\n\norganization_role_data as (\n\n select * \n from __dbt__cte__stg_workday__organization_role\n),\n\nworker_position_organization as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_organization\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position.sql", "original_file_path": "models/staging/stg_workday__position.sql", "unique_id": "model.workday.stg_workday__position", "fqn": ["workday", "staging", "stg_workday__position"], "alias": "stg_workday__position", "checksum": {"name": "sha256", "checksum": "a8eea235110df116f941d206b25f965ace56ec776662153af05d70a2bdf1cd4b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_academic_tenure_eligible": {"name": "is_academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.527124, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_base')),\n staging_columns=get_position_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_base", "package": null, "version": null}, {"name": "stg_workday__position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_group"], "alias": "stg_workday__job_family_group", "checksum": {"name": "sha256", "checksum": "91495541dd20c1e46fd9fc7074605bd8d766196513173eb2e6d6d2abd779474a"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summary": {"name": "job_family_group_summary", "description": "The summary of the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.5221388, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_group_base')),\n staging_columns=get_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_profile.sql", "original_file_path": "models/staging/stg_workday__job_family_job_profile.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile", "fqn": ["workday", "staging", "stg_workday__job_family_job_profile"], "alias": "stg_workday__job_family_job_profile", "checksum": {"name": "sha256", "checksum": "22f926dc89704581204ef1db5906e7fc184c404d53dc5141b47056de357d6066"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.520638, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_profile_base')),\n staging_columns=get_job_family_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role_worker.sql", "original_file_path": "models/staging/stg_workday__organization_role_worker.sql", "unique_id": "model.workday.stg_workday__organization_role_worker", "fqn": ["workday", "staging", "stg_workday__organization_role_worker"], "alias": "stg_workday__organization_role_worker", "checksum": {"name": "sha256", "checksum": "6cbf3f20ac378d061a6c9034bd75c08e7cf7079ac12c8b167c31e6e1c0e54fa6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_worker_code": {"name": "organization_worker_code", "description": "The worker code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.523408, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_worker_base')),\n staging_columns=get_organization_role_worker_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_worker_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role_worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role.sql", "original_file_path": "models/staging/stg_workday__organization_role.sql", "unique_id": "model.workday.stg_workday__organization_role", "fqn": ["workday", "staging", "stg_workday__organization_role"], "alias": "stg_workday__organization_role", "checksum": {"name": "sha256", "checksum": "d20118b8c8234cda8e96b2df978fdce2aa46bbdb356ebac5b29680663d105e05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.522731, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_base')),\n staging_columns=get_organization_role_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position.sql", "original_file_path": "models/staging/stg_workday__worker_position.sql", "unique_id": "model.workday.stg_workday__worker_position", "fqn": ["workday", "staging", "stg_workday__worker_position"], "alias": "stg_workday__worker_position", "checksum": {"name": "sha256", "checksum": "f812d4b0a33146284f402362816bc05ca7a5e85fa228207ea0df356396906025"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the positions held by workers in the Workday system", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.536212, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_base')),\n staging_columns=get_worker_position_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_contact_email_address.sql", "original_file_path": "models/staging/stg_workday__person_contact_email_address.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address", "fqn": ["workday", "staging", "stg_workday__person_contact_email_address"], "alias": "stg_workday__person_contact_email_address", "checksum": {"name": "sha256", "checksum": "fc93cd7747b3087ad994ab34f0feec9a8293e02f719a8ddb64bf652d786f50e5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_contact_email_address_id": {"name": "person_contact_email_address_id", "description": "The identifier of the personal contact email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.5340219, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_contact_email_address_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_contact_email_address_base')),\n staging_columns=get_person_contact_email_address_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_contact_email_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_contact_email_address_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_contact_email_address.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_job_profile.sql", "original_file_path": "models/staging/stg_workday__position_job_profile.sql", "unique_id": "model.workday.stg_workday__position_job_profile", "fqn": ["workday", "staging", "stg_workday__position_job_profile"], "alias": "stg_workday__position_job_profile", "checksum": {"name": "sha256", "checksum": "1bd56f05d8c66dff4d5741a2ca3963cd4859341229686f1e9155289aa86ca3f3"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_job_profile_name": {"name": "position_job_profile_name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.527661, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_job_profile_base')),\n staging_columns=get_position_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__position_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position_organization.sql", "original_file_path": "models/staging/stg_workday__worker_position_organization.sql", "unique_id": "model.workday.stg_workday__worker_position_organization", "fqn": ["workday", "staging", "stg_workday__worker_position_organization"], "alias": "stg_workday__worker_position_organization", "checksum": {"name": "sha256", "checksum": "c06c632d0c5bc211074ad78e1d36ea19e68ad03423068316bd207e3978472684"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.539503, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_organization_base')),\n staging_columns=get_worker_position_organization_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_profile.sql", "original_file_path": "models/staging/stg_workday__job_profile.sql", "unique_id": "model.workday.stg_workday__job_profile", "fqn": ["workday", "staging", "stg_workday__job_profile"], "alias": "stg_workday__job_profile", "checksum": {"name": "sha256", "checksum": "c58fefde4e2bab4dfcc7d23f270ba41e4b3a785de9c0f221854b44ce088753d6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_job_code_in_name": {"name": "is_include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_public_job": {"name": "is_public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.5202858, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_profile_base')),\n staging_columns=get_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_organization.sql", "original_file_path": "models/staging/stg_workday__position_organization.sql", "unique_id": "model.workday.stg_workday__position_organization", "fqn": ["workday", "staging", "stg_workday__position_organization"], "alias": "stg_workday__position_organization", "checksum": {"name": "sha256", "checksum": "3e066e026cb6c5a57a3780d60185e331275a40666ec842bd51a9f5214c8106f0"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.5256488, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_organization_base')),\n staging_columns=get_position_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_organization_base", "package": null, "version": null}, {"name": "stg_workday__position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_leave_status.sql", "original_file_path": "models/staging/stg_workday__worker_leave_status.sql", "unique_id": "model.workday.stg_workday__worker_leave_status", "fqn": ["workday", "staging", "stg_workday__worker_leave_status"], "alias": "stg_workday__worker_leave_status", "checksum": {"name": "sha256", "checksum": "7a780769764a426e346115891309d38326b383297d43976f5b368feefe555e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the leave status of workers in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_benefits_effect": {"name": "is_benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_caesarean_section_birth": {"name": "is_caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_continuous_service_accrual_effect": {"name": "is_continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_multiple_child_indicator": {"name": "is_multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_on_leave": {"name": "is_on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_paid_time_off_accrual_effect": {"name": "is_paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_payroll_effect": {"name": "is_payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_single_parent_indicator": {"name": "is_single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_stock_vesting_effect": {"name": "is_stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_related": {"name": "is_work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.539029, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_leave_status_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_leave_status_base')),\n staging_columns=get_worker_leave_status_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}, {"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_leave_status_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__worker_leave_status_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_leave_status.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_name.sql", "original_file_path": "models/staging/stg_workday__person_name.sql", "unique_id": "model.workday.stg_workday__person_name", "fqn": ["workday", "staging", "stg_workday__person_name"], "alias": "stg_workday__person_name", "checksum": {"name": "sha256", "checksum": "da74b8517c3659e32fa4600075b2c78fd9edf3b9d67b062a39aceeb7007a8106"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the name information for an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_name_type": {"name": "person_name_type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.5323389, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_name_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_name_base')),\n staging_columns=get_person_name_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_name_base", "package": null, "version": null}, {"name": "stg_workday__person_name_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_name_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_name_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_name.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information_ethnicity.sql", "original_file_path": "models/staging/stg_workday__personal_information_ethnicity.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity", "fqn": ["workday", "staging", "stg_workday__personal_information_ethnicity"], "alias": "stg_workday__personal_information_ethnicity", "checksum": {"name": "sha256", "checksum": "1cddb347cc063152fdf7519ab20008979c18819cf57eda40f40b5c0ae4df795c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.5327182, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_ethnicity_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_ethnicity_base')),\n staging_columns=get_personal_information_ethnicity_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_ethnicity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information_ethnicity.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_job_family.sql", "original_file_path": "models/staging/stg_workday__organization_job_family.sql", "unique_id": "model.workday.stg_workday__organization_job_family", "fqn": ["workday", "staging", "stg_workday__organization_job_family"], "alias": "stg_workday__organization_job_family", "checksum": {"name": "sha256", "checksum": "25a30264c730bb3d4ed427d08d7262415aa13c72bda44f292aef305dabadb4dc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.5240471, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_job_family_base')),\n staging_columns=get_organization_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family_base", "package": null, "version": null}, {"name": "stg_workday__organization_job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family.sql", "original_file_path": "models/staging/stg_workday__job_family.sql", "unique_id": "model.workday.stg_workday__job_family", "fqn": ["workday", "staging", "stg_workday__job_family"], "alias": "stg_workday__job_family", "checksum": {"name": "sha256", "checksum": "2b55aade2b7c5f3aaa66b8689637aecadf3960de67f0df66ecd9d511ec3f4a2c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summary": {"name": "job_family_summary", "description": "The summary of the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.5212002, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_base')),\n staging_columns=get_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_base", "package": null, "version": null}, {"name": "stg_workday__job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__military_service.sql", "original_file_path": "models/staging/stg_workday__military_service.sql", "unique_id": "model.workday.stg_workday__military_service", "fqn": ["workday", "staging", "stg_workday__military_service"], "alias": "stg_workday__military_service", "checksum": {"name": "sha256", "checksum": "2723e93ad3a6b887aa7d9b8c5d97bee2714a4b0d8ff0c80decb8be429e77b709"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about an individual's military service in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.533133, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__military_service_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__military_service_base')),\n staging_columns=get_military_service_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__military_service_base", "package": null, "version": null}, {"name": "stg_workday__military_service_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_military_service_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__military_service_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__military_service.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information.sql", "original_file_path": "models/staging/stg_workday__personal_information.sql", "unique_id": "model.workday.stg_workday__personal_information", "fqn": ["workday", "staging", "stg_workday__personal_information"], "alias": "stg_workday__personal_information", "checksum": {"name": "sha256", "checksum": "99c2547b9cba3b9798c54da22173f0f4e2d0db3f9623673fc37f0c6f081646bd"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "The personal information associated with each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.531379, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_base')),\n staging_columns=get_personal_information_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__personal_information_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_job_family_group"], "alias": "stg_workday__job_family_job_family_group", "checksum": {"name": "sha256", "checksum": "6fd4740d69f85753d0bf54a02768c8d9b8887e6e58481511bb3067f6dbe9b7eb"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.5215218, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_family_group_base')),\n staging_columns=get_job_family_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker.sql", "original_file_path": "models/staging/stg_workday__worker.sql", "unique_id": "model.workday.stg_workday__worker", "fqn": ["workday", "staging", "stg_workday__worker"], "alias": "stg_workday__worker", "checksum": {"name": "sha256", "checksum": "eabb44e7218212b2cfa0ed153715acd2cd920d91f48a20884f237d3307a8d88d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.53029, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_base')),\n staging_columns=get_worker_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization.sql", "original_file_path": "models/staging/stg_workday__organization.sql", "unique_id": "model.workday.stg_workday__organization", "fqn": ["workday", "staging", "stg_workday__organization"], "alias": "stg_workday__organization", "checksum": {"name": "sha256", "checksum": "ddc0897b633fd79f01412ef8b78788ca8168409bbdd6a076e7ae77eae46e5b4c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Identifier for the organization.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_description": {"name": "organization_description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_manager_in_name": {"name": "is_include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_organization_code_in_name": {"name": "is_include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_location": {"name": "organization_location", "description": "The location of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712052884.5252988, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_base')),\n staging_columns=get_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_base", "package": null, "version": null}, {"name": "stg_workday__organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_family_group_base"], "alias": "stg_workday__job_family_job_family_group_base", "checksum": {"name": "sha256", "checksum": "e2032528b0352adb9b447a62934a158666a681a00bfd8821c454342850710217"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.258977, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_family_group"], ["workday", "job_family_job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_ethnicity_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_ethnicity_base"], "alias": "stg_workday__personal_information_ethnicity_base", "checksum": {"name": "sha256", "checksum": "83d4f52d542558f35ac9c4bca924abf5d50bd6d060b57de257d9b3a8011375bc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.276758, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_ethnicity', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_ethnicity',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_ethnicity"], ["workday", "personal_information_ethnicity"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_group_base"], "alias": "stg_workday__job_family_group_base", "checksum": {"name": "sha256", "checksum": "bea26ff96c14d3e08fd64f97fbc8fbefc3cc6cc6726f7eb27132f966e3ace85d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.280705, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_group"], ["workday", "job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_organization_base.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_organization_base"], "alias": "stg_workday__worker_position_organization_base", "checksum": {"name": "sha256", "checksum": "42729b33f262620d892e95707fef1e711b95c66a4df3fb612d1eb73d024a7e38"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.285463, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_organization_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_organization_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_organization_history"], ["workday", "worker_position_organization_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_base.sql", "original_file_path": "models/staging/base/stg_workday__position_base.sql", "unique_id": "model.workday.stg_workday__position_base", "fqn": ["workday", "staging", "base", "stg_workday__position_base"], "alias": "stg_workday__position_base", "checksum": {"name": "sha256", "checksum": "4ccfff02ed1a6e0e94868985aa08ad5eaac5c78e608ae24eb36ebeb3da3b1443"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.2892742, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position"], ["workday", "position"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_contact_email_address_base.sql", "original_file_path": "models/staging/base/stg_workday__person_contact_email_address_base.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "fqn": ["workday", "staging", "base", "stg_workday__person_contact_email_address_base"], "alias": "stg_workday__person_contact_email_address_base", "checksum": {"name": "sha256", "checksum": "2bfb4c913c999795db2691f4b3bc115fbae9bbad6e4eb59ad305bc057e7e0e5b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.293539, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_contact_email_address', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_contact_email_address',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_contact_email_address"], ["workday", "person_contact_email_address"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_contact_email_address_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_job_family_base.sql", "unique_id": "model.workday.stg_workday__organization_job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_job_family_base"], "alias": "stg_workday__organization_job_family_base", "checksum": {"name": "sha256", "checksum": "8a999ebe4367e8c4e6994124834c09f9d1eeb411d6e00353c9995bc0900ee1ea"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.298037, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_job_family"], ["workday", "organization_job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_profile_base"], "alias": "stg_workday__job_family_job_profile_base", "checksum": {"name": "sha256", "checksum": "61149fbd447008acfc11c0cce919a3dcdfc878b1e43f1a904bed99cd0e12e934"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.301793, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_profile"], ["workday", "job_family_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__position_organization_base.sql", "unique_id": "model.workday.stg_workday__position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__position_organization_base"], "alias": "stg_workday__position_organization_base", "checksum": {"name": "sha256", "checksum": "e9e1144f5ba976bda0612b7899e5c418c8f2880a69bb98c7bd61826b438cf705"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.307219, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_organization"], ["workday", "position_organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_base.sql", "unique_id": "model.workday.stg_workday__organization_role_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_base"], "alias": "stg_workday__organization_role_base", "checksum": {"name": "sha256", "checksum": "7da1ae4c5e420c6a429f6082802496377da44449aefb62728c64e31c64923832"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.3112059, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role"], ["workday", "organization_role"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_leave_status_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_leave_status_base.sql", "unique_id": "model.workday.stg_workday__worker_leave_status_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_leave_status_base"], "alias": "stg_workday__worker_leave_status_base", "checksum": {"name": "sha256", "checksum": "25de6c8505c09d17787931dd2ad7fb497ee4fcc6ad9c076417ac327d38b2cee5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.3153, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_leave_status', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_leave_status',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_leave_status"], ["workday", "worker_leave_status"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_leave_status_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_base.sql", "unique_id": "model.workday.stg_workday__job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_base"], "alias": "stg_workday__job_family_base", "checksum": {"name": "sha256", "checksum": "a6d51501e8a9f185408e2c8c963b04ed89e1f87260216f3e994f324119a0f804"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.319455, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family"], ["workday", "job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_profile_base"], "alias": "stg_workday__job_profile_base", "checksum": {"name": "sha256", "checksum": "ddeb40a89a0b03a8748dae6a224bade7705498441a9f295682bd24ef643fc563"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.3230028, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_profile"], ["workday", "job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_base.sql", "unique_id": "model.workday.stg_workday__organization_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_base"], "alias": "stg_workday__organization_base", "checksum": {"name": "sha256", "checksum": "ee0cb72047f2c7760251317c86318a9f46c5a8be9113fcb7d81b269e1b4b4e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.328475, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization"], ["workday", "organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_worker_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_worker_base.sql", "unique_id": "model.workday.stg_workday__organization_role_worker_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_worker_base"], "alias": "stg_workday__organization_role_worker_base", "checksum": {"name": "sha256", "checksum": "74e858892ef8851aec9a06e4e05dbca91361b09939c257c69db38356d59acf05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.332772, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role_worker', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role_worker',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role_worker"], ["workday", "organization_role_worker"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_base.sql", "unique_id": "model.workday.stg_workday__worker_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_base"], "alias": "stg_workday__worker_base", "checksum": {"name": "sha256", "checksum": "5f0f82a654f8f22d1e129cebdf87aa064125f5deeeca51c50d53f249dd0d96e1"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.3369222, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_history"], ["workday", "worker_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__position_job_profile_base.sql", "unique_id": "model.workday.stg_workday__position_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__position_job_profile_base"], "alias": "stg_workday__position_job_profile_base", "checksum": {"name": "sha256", "checksum": "7a2843eac9ceff71866501a413274121b15a2e8d1337b83962e0045cb1b403c5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.341221, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_job_profile"], ["workday", "position_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_base.sql", "unique_id": "model.workday.stg_workday__worker_position_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_base"], "alias": "stg_workday__worker_position_base", "checksum": {"name": "sha256", "checksum": "8a8431d94738ad8c342bba23f86ace1e658cf63ac9254481bf8463622129514e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.3451588, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_history"], ["workday", "worker_position_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_name_base.sql", "original_file_path": "models/staging/base/stg_workday__person_name_base.sql", "unique_id": "model.workday.stg_workday__person_name_base", "fqn": ["workday", "staging", "base", "stg_workday__person_name_base"], "alias": "stg_workday__person_name_base", "checksum": {"name": "sha256", "checksum": "85c57cfa1fe54db08605b75e32060e1bd488a4f71eae27b2cb8a2805ac4ac655"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.3503501, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_name', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_name',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_name"], ["workday", "person_name"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_name"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_name_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__military_service_base.sql", "original_file_path": "models/staging/base/stg_workday__military_service_base.sql", "unique_id": "model.workday.stg_workday__military_service_base", "fqn": ["workday", "staging", "base", "stg_workday__military_service_base"], "alias": "stg_workday__military_service_base", "checksum": {"name": "sha256", "checksum": "9478cb8eea5671a0261ed280e3723a9ad826ee22b77b9dfe709be5fc85fd295e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.3542342, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='military_service', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='military_service',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "military_service"], ["workday", "military_service"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.military_service"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__military_service_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_base.sql", "unique_id": "model.workday.stg_workday__personal_information_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_base"], "alias": "stg_workday__personal_information_base", "checksum": {"name": "sha256", "checksum": "0767af75bcb79f32dd324d8bf4e57ffc0d0014bda0609b426df78cdc17566e96"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712052883.358171, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_history"], ["workday", "personal_information_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__monthly_summary": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__monthly_summary.sql", "original_file_path": "models/workday_history/workday__monthly_summary.sql", "unique_id": "model.workday.workday__monthly_summary", "fqn": ["workday", "workday_history", "workday__monthly_summary"], "alias": "workday__monthly_summary", "checksum": {"name": "sha256", "checksum": "c2c7661c8324a927d8bf739bdcc37d21d650b2aa0ca769ee77205b47dc81e804"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a month, aggregated from the last day of each month of the employee daily history. This captures monthly metrics of workers, such as average salary, churned and retained employees, etc.", "columns": {"metrics_month": {"name": "metrics_month", "description": "Month in which metrics are being aggregated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_employees": {"name": "new_employees", "description": "New employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_employees": {"name": "churned_employees", "description": "Churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_voluntary_employees": {"name": "churned_voluntary_employees", "description": "Voluntary churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_involuntary_employees": {"name": "churned_involuntary_employees", "description": "Involuntary churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_workers": {"name": "churned_workers", "description": "Churned workers that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_employees": {"name": "active_employees", "description": "Employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_male_employees": {"name": "active_male_employees", "description": "Male employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_female_employees": {"name": "active_female_employees", "description": "Female employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_workers": {"name": "active_workers", "description": "Workers considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_known_gender_employees": {"name": "active_known_gender_employees", "description": "Known gender employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_primary_compensation": {"name": "avg_employee_primary_compensation", "description": "Average primary compensation salary of employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_base_pay": {"name": "avg_employee_base_pay", "description": "Average base pay of the employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_salary_and_allowances": {"name": "avg_employee_salary_and_allowances", "description": "Average salary and allowances of the employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_days_as_employee": {"name": "avg_days_as_employee", "description": "Average days employee has been active month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_primary_compensation": {"name": "avg_worker_primary_compensation", "description": "Average primary compensation for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_base_pay": {"name": "avg_worker_base_pay", "description": "Average base pay for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_salary_and_allowances": {"name": "avg_worker_salary_and_allowances", "description": "Average salary plus allowances for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_days_as_worker": {"name": "avg_days_as_worker", "description": "Average days as a worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712052884.661385, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }} \n\nwith row_month_partition as (\n\n select *, \n cast({{ dbt.date_trunc(\"month\", \"date_day\") }} as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from {{ ref('workday__employee_daily_history') }}\n),\n\nend_of_month_history as (\n \n select *,\n {{ dbt.current_timestamp() }} as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then {{ dbt.datediff(\"hire_date\", \"current_date\", \"day\") }}\n else {{ dbt.datediff(\"hire_date\", \"termination_date\", \"day\") }}\n end as days_as_worker,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when date_month = cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date) then 1 else 0 end) as new_employees,\n sum(case when date_month = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) then 1 else 0 end) as churned_employees,\n sum(case when (date_month = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date)\n and (cast(date_month as date) <= cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date)\n and cast(date_month as date) <= cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__monthly_summary.sql", "compiled": true, "compiled_code": " \n\nwith row_month_partition as (\n\n select *, \n cast(date_trunc('month', date_day) as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n),\n\nend_of_month_history as (\n \n select *,\n now() as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when date_month = cast(date_trunc('month', position_effective_date) as date) then 1 else 0 end) as new_employees,\n sum(case when date_month = cast(date_trunc('month', termination_date) as date) then 1 else 0 end) as churned_employees,\n sum(case when (date_month = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = cast(date_trunc('month', end_employment_date) as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and (cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__employee_daily_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__employee_daily_history.sql", "original_file_path": "models/workday_history/workday__employee_daily_history.sql", "unique_id": "model.workday.workday__employee_daily_history", "fqn": ["workday", "workday_history", "workday__employee_daily_history"], "alias": "workday__employee_daily_history", "checksum": {"name": "sha256", "checksum": "4c14b35e16add086112f1162036ec382847846ca5f62b7ba617c1b812b7978dd"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a daily record in an employee, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to track the daily history of their employees from when they started.", "columns": {"employee_day_id": {"name": "employee_day_id", "description": "Surrogate key hashed on `date_day` and `history_unique_key`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date on which the account had these field values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on 'employee_id' and '_fivetran_date'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_id": {"name": "employee_id", "description": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_wh_fivetran_active": {"name": "is_wh_fivetran_active", "description": "Is the worker history record the most recent fivetran active record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_wph_fivetran_active": {"name": "is_wph_fivetran_active", "description": "Is the worker position history record the most recent fivetranactive record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_pih_fivetran_active": {"name": "is_pih_fivetran_active", "description": "Is the personal information history record the most recent fivetran active record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wh_end_employment_date": {"name": "wh_end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wph_end_employment_date": {"name": "wph_end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wh_pay_through_date": {"name": "wh_pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wph_pay_through_date": {"name": "wph_pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The position location of the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "The position effective date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "row_num": {"name": "row_num", "description": "This is the row number filter designed to grab the most recent daily record for an employee. This value should always be 1 in this model.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712052884.6578372, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"", "raw_code": "-- depends_on: {{ ref('int_workday__employee_history') }}\n{{ config(enabled=var('employee_history_enabled', False)) }}\n\n{% if execute %} \n {% set first_last_date_query %}\n with min_max_values as (\n\n select \n min(_fivetran_start) as min_start,\n max(_fivetran_start) as max_start \n from {{ ref('int_workday__employee_history') }}\n )\n\n select \n min_start,\n case when max_start >= {{ dbt.current_timestamp() }}\n then max_start\n else {{ dbt.date_trunc('day', dbt.current_timestamp()) }} \n end as max_start\n from min_max_values\n \n {% endset %}\n\n {% set start_date = run_query(first_last_date_query).columns[0][0]|string %}\n {% set last_date = run_query(first_last_date_query).columns[1][0]|string %}\n\n{# If only compiling, creates range going back 1 year #}\n{% else %} \n {% set start_date = dbt.dateadd(\"year\", \"-2\", \"current_date\") %} -- Arbitrarily picked. Choose a more appropriate default if necessary.\n {% set last_date = dbt.dateadd(\"year\", \"-1\", \"current_date\") %}\n{% endif %}\n\n\nwith spine as (\n {# Prioritizes variables over calculated dates #}\n {# Arbitrarily picked employee_history_start_date variable value. Choose a more appropriate default if necessary. #}\n {{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date = \"greatest(cast('\" ~ start_date[0:10] ~ \"' as date), cast('\" ~ var('employee_history_start_date','2000-12-31') ~ \"' as date))\", \n end_date = \"cast('\" ~ last_date[0:10] ~ \"'as date)\"\n )\n }}\n),\n\nemployee_history as (\n\n select * \n from {{ ref('int_workday__employee_history') }}\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['spine.date_day','get_latest_daily_value.history_unique_key']) }} as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }})\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }})\n)\n\nselect * \nfrom daily_history", "language": "sql", "refs": [{"name": "int_workday__employee_history", "package": null, "version": null}, {"name": "int_workday__employee_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp", "macro.dbt.current_timestamp", "macro.dbt.date_trunc", "macro.dbt.run_query"], "nodes": ["model.workday.int_workday__employee_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__employee_daily_history.sql", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n\n\n \n \n\n \n \n\n\n\n\n\nwith spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n + \n \n p13.generated_number * power(2, 13)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n cross join \n \n p as p13\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 8493\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2000-12-31' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-02'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__worker_position_org_daily_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__worker_position_org_daily_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__worker_position_org_daily_history.sql", "original_file_path": "models/workday_history/workday__worker_position_org_daily_history.sql", "unique_id": "model.workday.workday__worker_position_org_daily_history", "fqn": ["workday", "workday_history", "workday__worker_position_org_daily_history"], "alias": "workday__worker_position_org_daily_history", "checksum": {"name": "sha256", "checksum": "c1c36a835209fef8128f0be01c63b79d2ee2f6fcdde4326f542dcc4b32bff610"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a daily record for a worker/position/organization combination, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to tie in organizations to employees via other organization models (such as `workday__organization_overview`) more easily in their warehouses.", "columns": {"wpo_day_id": {"name": "wpo_day_id", "description": "Surrogate key hashed on `date_day` and `history_unique_key`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date on which the account had these field values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, `source_relation`, and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712052884.662327, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"", "raw_code": "-- depends_on: {{ ref('stg_workday__worker_position_organization_base') }}\n{{ config(enabled=var('employee_history_enabled', False)) }}\n\n{% if execute %} \n {% set first_last_date_query %}\n with min_max_values as (\n select \n min(_fivetran_start) as min_start,\n max(_fivetran_start) as max_start \n from {{ ref('stg_workday__worker_position_organization_base') }}\n )\n\n select \n min_start,\n case when max_start >= {{ dbt.current_timestamp() }}\n then max_start\n else {{ dbt.date_trunc('day', dbt.current_timestamp()) }} \n end as max_date\n from min_max_values\n\n {% endset %}\n\n {% set start_date = run_query(first_last_date_query).columns[0][0]|string %}\n {% set last_date = run_query(first_last_date_query).columns[1][0]|string %}\n\n{# If only compiling, creates range going back 1 year #}\n{% else %} \n {% set start_date = dbt.dateadd(\"year\", \"-2\", \"current_date\") %} -- Arbitrarily picked. Choose a more appropriate default if necessary.\n {% set last_date = dbt.dateadd(\"year\", \"-1\", \"current_date\") %}\n{% endif %}\n\nwith spine as (\n {# Prioritizes variables over calculated dates #}\n {# Arbitrarily picked employee_history_start_date variable value. Choose a more appropriate default if necessary. #}\n {{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date = \"greatest(cast('\" ~ start_date[0:10] ~ \"' as date), cast('\" ~ var('employee_history_start_date','2000-12-31') ~ \"' as date))\",\n end_date = \"cast('\" ~ last_date[0:10] ~ \"'as date)\"\n )\n }}\n),\n\nworker_position_org_history as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_history') }}\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['spine.date_day',\n 'get_latest_daily_value.history_unique_key']) }} \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n _fivetran_start,\n _fivetran_end,\n _fivetran_active,\n _fivetran_date,\n history_unique_key,\n index,\n date_of_pay_group_assignment,\n primary_business_site,\n is_used_in_change_organization_assignments\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }})\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }})\n)\n\nselect * \nfrom daily_history", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp", "macro.dbt.current_timestamp", "macro.dbt.date_trunc", "macro.dbt.run_query"], "nodes": ["model.workday.stg_workday__worker_position_organization_base", "model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__worker_position_org_daily_history.sql", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n\n\n \n \n\n \n \n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n), spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n + \n \n p13.generated_number * power(2, 13)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n cross join \n \n p as p13\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 8493\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2000-12-31' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-02'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nworker_position_org_history as (\n\n select * \n from __dbt__cte__stg_workday__worker_position_organization_history\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n _fivetran_start,\n _fivetran_end,\n _fivetran_active,\n _fivetran_date,\n history_unique_key,\n index,\n date_of_pay_group_assignment,\n primary_business_site,\n is_used_in_change_organization_assignments\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_position_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_position_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_position_history.sql", "unique_id": "model.workday.stg_workday__worker_position_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_position_history"], "alias": "stg_workday__worker_position_history", "checksum": {"name": "sha256", "checksum": "bc97bcda48a57bad3149f45aae7b36daf46dc32061c7bcaa281fbbbcab8375c8"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id`, `source_relation` and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712052884.6801338, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_position_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %}\n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_base')),\n staging_columns=get_worker_position_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as {{ dbt.type_timestamp() }}) as position_effective_date,\n employee_type,\n cast(end_date as {{ dbt.type_timestamp() }}) as position_end_date,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as {{ dbt.type_timestamp() }}) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_position_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_history.sql", "unique_id": "model.workday.stg_workday__worker_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_history"], "alias": "stg_workday__worker_history", "checksum": {"name": "sha256", "checksum": "d53da2e60d3a239d9d0a6c3cf1b733df3ef3c1671f6432a0c7bad7017eb6ef5c"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id`, `source_relation` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712052884.678474, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_base')),\n staging_columns=get_worker_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as {{ dbt.type_timestamp() }}) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "nodes": ["model.workday.stg_workday__worker_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__personal_information_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__personal_information_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__personal_information_history.sql", "unique_id": "model.workday.stg_workday__personal_information_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__personal_information_history"], "alias": "stg_workday__personal_information_history", "checksum": {"name": "sha256", "checksum": "f5f3d7da4818c5381dfcd37b1ae3896f7a3b4c4f963aeb8035eb2866579c982e"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id`, `source_relation` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712052884.675947, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__personal_information_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_base')),\n staging_columns=get_personal_information_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "nodes": ["model.workday.stg_workday__personal_information_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__personal_information_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_position_organization_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_position_organization_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_position_organization_history.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_position_organization_history"], "alias": "stg_workday__worker_position_organization_history", "checksum": {"name": "sha256", "checksum": "bafdee6a223a9eb9a1c8d8272ff66de3a7c34d74682ef3613569c9b80a297f6c"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id`, `position_id`, `organization_id`, `source_relation`, and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712052884.680804, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_organization_base')),\n staging_columns=get_worker_position_organization_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'organization_id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_organization_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_position_organization_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__employee_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/intermediate/int_workday__employee_history.sql", "original_file_path": "models/workday_history/intermediate/int_workday__employee_history.sql", "unique_id": "model.workday.int_workday__employee_history", "fqn": ["workday", "workday_history", "intermediate", "int_workday__employee_history"], "alias": "int_workday__employee_history", "checksum": {"name": "sha256", "checksum": "5c18f885ead273db1df9a2203e804797db6e3cfcb3f0e3554b6f6309ef440998"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "view", "enabled": true}, "created_at": 1712052883.464845, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith worker_history as (\n\n select *\n from {{ ref('stg_workday__worker_history') }}\n),\n\nworker_position_history as (\n\n select *\n from {{ ref('stg_workday__worker_position_history') }}\n),\n\npersonal_information_history as (\n\n select *\n from {{ ref('stg_workday__personal_information_history') }}\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead({{ dbt.dateadd('microsecond', -1, '_fivetran_start') }} ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as {{ dbt.type_timestamp() }}),\n cast('9999-12-31 23:59:59.999000' as {{ dbt.type_timestamp() }})) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select {{ dbt_utils.generate_surrogate_key(['worker_id', 'source_relation', 'position_id', 'position_start_date']) }} as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select {{ dbt_utils.generate_surrogate_key(['employee_id', '_fivetran_date']) }} as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}, {"name": "stg_workday__worker_position_history", "package": null, "version": null}, {"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history", "model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/intermediate/int_workday__employee_history.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n), worker_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_history\n),\n\nworker_position_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_history\n),\n\npersonal_information_history as (\n\n select *\n from __dbt__cte__stg_workday__personal_information_history\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select md5(cast(coalesce(cast(employee_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_position_enriched": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_position_enriched", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_position_enriched.sql", "original_file_path": "models/intermediate/int_workday__worker_position_enriched.sql", "unique_id": "model.workday.int_workday__worker_position_enriched", "fqn": ["workday", "intermediate", "int_workday__worker_position_enriched"], "alias": "int_workday__worker_position_enriched", "checksum": {"name": "sha256", "checksum": "0bcb8eaaab77feebef76105a810b2f955a424dab91401003170763a691f1bc6d"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712052883.471843, "relation_name": null, "raw_code": "with worker_position_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker_position') }}\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_position_enriched.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__personal_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__personal_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__personal_details.sql", "original_file_path": "models/intermediate/int_workday__personal_details.sql", "unique_id": "model.workday.int_workday__personal_details", "fqn": ["workday", "intermediate", "int_workday__personal_details"], "alias": "int_workday__personal_details", "checksum": {"name": "sha256", "checksum": "594516db9541d923dcc1958d6ed5747fb91aee48aaa01e0acf8fcbd2fb1a8950"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712052883.47624, "relation_name": null, "raw_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from {{ ref('stg_workday__personal_information') }}\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from {{ ref('stg_workday__person_name') }}\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from {{ ref('stg_workday__person_contact_email_address') }}\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n {{ fivetran_utils.string_agg('distinct ethnicity_code', \"', '\" ) }} as ethnicity_codes\n from {{ ref('stg_workday__personal_information_ethnicity') }}\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from {{ ref('stg_workday__military_service') }}\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}, {"name": "stg_workday__person_name", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}, {"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.workday.stg_workday__personal_information", "model.workday.stg_workday__person_name", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__personal_information_ethnicity", "model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__personal_details.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_details.sql", "original_file_path": "models/intermediate/int_workday__worker_details.sql", "unique_id": "model.workday.int_workday__worker_details", "fqn": ["workday", "intermediate", "int_workday__worker_details"], "alias": "int_workday__worker_details", "checksum": {"name": "sha256", "checksum": "6004df52c6e8acb2f9eb07f0e02e5fb9f694a9f8c3cb3d129916e686039ffd7a"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712052883.480088, "relation_name": null, "raw_code": "with worker_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker') }}\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then {{ dbt.datediff('hire_date', 'current_date', 'day') }}\n else {{ dbt.datediff('hire_date', 'termination_date', 'day') }}\n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_details.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_employee_enhanced": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_employee_enhanced", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_employee_enhanced.sql", "original_file_path": "models/intermediate/int_workday__worker_employee_enhanced.sql", "unique_id": "model.workday.int_workday__worker_employee_enhanced", "fqn": ["workday", "intermediate", "int_workday__worker_employee_enhanced"], "alias": "int_workday__worker_employee_enhanced", "checksum": {"name": "sha256", "checksum": "b304988457480f06f3bbc052fb27d7d6af37592d243606c4acf783558786aa1d"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712052883.4844449, "relation_name": null, "raw_code": "with int_worker_base as (\n\n select * \n from {{ ref('int_workday__worker_details') }} \n),\n\nint_worker_personal_details as (\n\n select * \n from {{ ref('int_workday__personal_details') }} \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from {{ ref('int_workday__worker_position_enriched') }} \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "language": "sql", "refs": [{"name": "int_workday__worker_details", "package": null, "version": null}, {"name": "int_workday__personal_details", "package": null, "version": null}, {"name": "int_workday__worker_position_enriched", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.int_workday__worker_details", "model.workday.int_workday__personal_details", "model.workday.int_workday__worker_position_enriched"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_employee_enhanced.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_details", "sql": " __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n)"}, {"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__personal_details", "sql": " __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n)"}, {"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_position_enriched", "sql": " __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "employee_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__employee_overview_employee_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__employee_overview_employee_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.unique_workday__employee_overview_employee_id.b01e19996c", "fqn": ["workday", "unique_workday__employee_overview_employee_id"], "alias": "unique_workday__employee_overview_employee_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.356127, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/unique_workday__employee_overview_employee_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is not null\ngroup by employee_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "employee_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_overview_employee_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_overview_employee_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "fqn": ["workday", "not_null_workday__employee_overview_employee_id"], "alias": "not_null_workday__employee_overview_employee_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.35758, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__employee_overview_employee_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_overview_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_overview_worker_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "fqn": ["workday", "not_null_workday__employee_overview_worker_id"], "alias": "not_null_workday__employee_overview_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.358596, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__employee_overview_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__job_overview_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__job_overview_job_profile_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "fqn": ["workday", "not_null_workday__job_overview_job_profile_id"], "alias": "not_null_workday__job_overview_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.359797, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__job_overview_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656"}, "created_at": 1712052884.3607838, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656\") }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.not_null_workday__position_overview_position_id.603beb3f22": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__position_overview_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__position_overview_position_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "fqn": ["workday", "not_null_workday__position_overview_position_id"], "alias": "not_null_workday__position_overview_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.369046, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__position_overview_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e"}, "created_at": 1712052884.371072, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e\") }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "fqn": ["workday", "not_null_workday__organization_overview_organization_id"], "alias": "not_null_workday__organization_overview_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.374027, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_role_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "fqn": ["workday", "not_null_workday__organization_overview_organization_role_id"], "alias": "not_null_workday__organization_overview_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.3753788, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1"}, "created_at": 1712052884.376631, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1\") }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "fqn": ["workday", "staging", "not_null_stg_workday__job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.540131, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1"}, "created_at": 1712052884.5414422, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id\n from __dbt__cte__stg_workday__job_profile\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_family_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.5446131, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.545612, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id"], "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378"}, "created_at": 1712052884.546679, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from __dbt__cte__stg_workday__job_family_job_profile\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.5496309, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id"], "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd"}, "created_at": 1712052884.5507011, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id\n from __dbt__cte__stg_workday__job_family\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_group_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.5535932, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af"}, "created_at": 1712052884.554666, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4"}, "created_at": 1712052884.555867, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from __dbt__cte__stg_workday__job_family_job_family_group\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_group_job_family_group_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_family_group_job_family_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.559603, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_group_job_family_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_group\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5"}, "created_at": 1712052884.560756, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_group_id\n from __dbt__cte__stg_workday__job_family_group\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_id"], "alias": "not_null_stg_workday__organization_role_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.5639732, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_role_id"], "alias": "not_null_stg_workday__organization_role_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.5650702, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_role_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id"], "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908"}, "created_at": 1712052884.566216, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from __dbt__cte__stg_workday__organization_role\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_worker_code", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_worker_code", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_worker_code"], "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda"}, "created_at": 1712052884.568921, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_worker_code\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_worker_code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_worker_code", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_id"], "alias": "not_null_stg_workday__organization_role_worker_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.569878, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_role_id"], "alias": "not_null_stg_workday__organization_role_worker_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.570816, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select role_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "role_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_worker_code", "organization_id", "role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id"], "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a"}, "created_at": 1712052884.571948, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from __dbt__cte__stg_workday__organization_role_worker\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_job_family_id"], "alias": "not_null_stg_workday__organization_job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.5744379, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_organization_id"], "alias": "not_null_stg_workday__organization_job_family_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.575379, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id"], "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456"}, "created_at": 1712052884.57679, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from __dbt__cte__stg_workday__organization_job_family\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_organization_id"], "alias": "not_null_stg_workday__organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.579913, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id"], "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5"}, "created_at": 1712052884.581078, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id\n from __dbt__cte__stg_workday__organization\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_organization_id"], "alias": "not_null_stg_workday__position_organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.583554, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_position_id"], "alias": "not_null_stg_workday__position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.584756, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id"], "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc"}, "created_at": 1712052884.585693, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from __dbt__cte__stg_workday__position_organization\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "fqn": ["workday", "staging", "not_null_stg_workday__position_position_id"], "alias": "not_null_stg_workday__position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.58898, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32"}, "created_at": 1712052884.5900958, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32\") }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id\n from __dbt__cte__stg_workday__position\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_job_profile_id"], "alias": "not_null_stg_workday__position_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.592927, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_position_id"], "alias": "not_null_stg_workday__position_job_profile_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.5941162, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id"], "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62"}, "created_at": 1712052884.595105, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from __dbt__cte__stg_workday__position_job_profile\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "fqn": ["workday", "staging", "not_null_stg_workday__worker_worker_id"], "alias": "not_null_stg_workday__worker_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.598243, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33"}, "created_at": 1712052884.599212, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__worker\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_worker_id"], "alias": "not_null_stg_workday__personal_information_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.6018372, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13"}, "created_at": 1712052884.60284, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__personal_information\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_worker_id"], "alias": "not_null_stg_workday__person_name_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.605418, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_name\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_name_type", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_person_name_type", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_person_name_type.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_person_name_type"], "alias": "not_null_stg_workday__person_name_person_name_type", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.606425, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_person_name_type.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_name_type\nfrom __dbt__cte__stg_workday__person_name\nwhere person_name_type is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_name_type", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_name_type"], "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type"], "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574"}, "created_at": 1712052884.6077929, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from __dbt__cte__stg_workday__person_name\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_worker_id"], "alias": "not_null_stg_workday__personal_information_ethnicity_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.611412, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ethnicity_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_ethnicity_id"], "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5"}, "created_at": 1712052884.612482, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select ethnicity_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere ethnicity_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ethnicity_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "ethnicity_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id"], "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5"}, "created_at": 1712052884.6136472, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__military_service_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__military_service_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "fqn": ["workday", "staging", "not_null_stg_workday__military_service_worker_id"], "alias": "not_null_stg_workday__military_service_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.617713, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__military_service_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__military_service\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9"}, "created_at": 1712052884.618965, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9\") }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__military_service\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_contact_email_address_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id"], "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08"}, "created_at": 1712052884.624084, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_contact_email_address_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere person_contact_email_address_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_contact_email_address_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_contact_email_address_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_worker_id"], "alias": "not_null_stg_workday__person_contact_email_address_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.626574, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_contact_email_address_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_contact_email_address_id"], "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id"], "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb"}, "created_at": 1712052884.628292, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from __dbt__cte__stg_workday__person_contact_email_address\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_position_id"], "alias": "not_null_stg_workday__worker_position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.632622, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_worker_id"], "alias": "not_null_stg_workday__worker_position_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.633754, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7"}, "created_at": 1712052884.635325, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from __dbt__cte__stg_workday__worker_position\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "leave_request_event_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_leave_request_event_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_leave_request_event_id"], "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308"}, "created_at": 1712052884.639499, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select leave_request_event_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere leave_request_event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "leave_request_event_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_leave_status_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_worker_id"], "alias": "not_null_stg_workday__worker_leave_status_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.640613, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_leave_status_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "leave_request_event_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id"], "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f"}, "created_at": 1712052884.6416159, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from __dbt__cte__stg_workday__worker_leave_status\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_position_id"], "alias": "not_null_stg_workday__worker_position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.6451461, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_worker_id"], "alias": "not_null_stg_workday__worker_position_organization_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.6464121, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_organization_id"], "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23"}, "created_at": 1712052884.647498, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "position_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id"], "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926"}, "created_at": 1712052884.648679, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from __dbt__cte__stg_workday__worker_position_organization\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "employee_day_id", "model": "{{ get_where_subquery(ref('workday__employee_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__employee_daily_history_employee_day_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__employee_daily_history_employee_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269", "fqn": ["workday", "workday_history", "unique_workday__employee_daily_history_employee_day_id"], "alias": "unique_workday__employee_daily_history_employee_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.662912, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__employee_daily_history_employee_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is not null\ngroup by employee_day_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_day_id", "file_key_name": "models.workday__employee_daily_history", "attached_node": "model.workday.workday__employee_daily_history"}, "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "employee_day_id", "model": "{{ get_where_subquery(ref('workday__employee_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_daily_history_employee_day_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_daily_history_employee_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "fqn": ["workday", "workday_history", "not_null_workday__employee_daily_history_employee_day_id"], "alias": "not_null_workday__employee_daily_history_employee_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.665602, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__employee_daily_history_employee_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_day_id", "file_key_name": "models.workday__employee_daily_history", "attached_node": "model.workday.workday__employee_daily_history"}, "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__monthly_summary_metrics_month", "resource_type": "test", "package_name": "workday", "path": "unique_workday__monthly_summary_metrics_month.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab", "fqn": ["workday", "workday_history", "unique_workday__monthly_summary_metrics_month"], "alias": "unique_workday__monthly_summary_metrics_month", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.666923, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__monthly_summary"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__monthly_summary_metrics_month.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n metrics_month as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is not null\ngroup by metrics_month\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metrics_month", "file_key_name": "models.workday__monthly_summary", "attached_node": "model.workday.workday__monthly_summary"}, "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__monthly_summary_metrics_month", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__monthly_summary_metrics_month.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "fqn": ["workday", "workday_history", "not_null_workday__monthly_summary_metrics_month"], "alias": "not_null_workday__monthly_summary_metrics_month", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.668053, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__monthly_summary"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__monthly_summary_metrics_month.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metrics_month\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metrics_month", "file_key_name": "models.workday__monthly_summary", "attached_node": "model.workday.workday__monthly_summary"}, "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "wpo_day_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__worker_position_org_daily_history_wpo_day_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__worker_position_org_daily_history_wpo_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21", "fqn": ["workday", "workday_history", "unique_workday__worker_position_org_daily_history_wpo_day_id"], "alias": "unique_workday__worker_position_org_daily_history_wpo_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.669326, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__worker_position_org_daily_history_wpo_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n wpo_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is not null\ngroup by wpo_day_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "wpo_day_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "wpo_day_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_wpo_day_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_wpo_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_wpo_day_id"], "alias": "not_null_workday__worker_position_org_daily_history_wpo_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.6703591, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_wpo_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect wpo_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "wpo_day_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_worker_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_worker_id"], "alias": "not_null_workday__worker_position_org_daily_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.6716301, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_position_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_position_id"], "alias": "not_null_workday__worker_position_org_daily_history_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.672597, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_organization_id"], "alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632"}, "created_at": 1712052884.673752, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632\") }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__personal_information_history_history_unique_key"], "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2"}, "created_at": 1712052884.681522, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__personal_information_history_history_unique_key"], "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3"}, "created_at": 1712052884.6829271, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__personal_information_history_worker_id"], "alias": "not_null_stg_workday__personal_information_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.683976, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__personal_information_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_history_history_unique_key"], "alias": "unique_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.684948, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_history_history_unique_key"], "alias": "not_null_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.686103, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_history_worker_id"], "alias": "not_null_stg_workday__worker_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.6873221, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_position_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_position_history_history_unique_key"], "alias": "unique_stg_workday__worker_position_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.688384, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_position_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9"}, "created_at": 1712052884.689348, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_worker_id"], "alias": "not_null_stg_workday__worker_position_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.6904461, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_position_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_position_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_position_id"], "alias": "not_null_stg_workday__worker_position_history_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712052884.6917188, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_position_history_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22"}, "created_at": 1712052884.6926742, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6"}, "created_at": 1712052884.693603, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_worker_id"], "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a"}, "created_at": 1712052884.694519, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_position_id"], "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441"}, "created_at": 1712052884.69539, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_organization_id"], "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0"}, "created_at": 1712052884.6964211, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}}, "sources": {"source.workday.workday.job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_profile", "fqn": ["workday", "staging", "workday", "job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"id": {"name": "id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_job_code_in_name": {"name": "include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "public_job": {"name": "public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "title": {"name": "title", "description": "Title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "created_at": 1712052884.69876}, "source.workday.workday.job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_profile", "fqn": ["workday", "staging", "workday", "job_family_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "created_at": 1712052884.698892}, "source.workday.workday.job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family", "fqn": ["workday", "staging", "workday", "job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "created_at": 1712052884.698986}, "source.workday.workday.job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_family_group", "fqn": ["workday", "staging", "workday", "job_family_job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "created_at": 1712052884.699065}, "source.workday.workday.job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_group", "fqn": ["workday", "staging", "workday", "job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"id": {"name": "id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "created_at": 1712052884.6991491}, "source.workday.workday.organization_role": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role", "fqn": ["workday", "staging", "workday", "organization_role"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "created_at": 1712052884.699231}, "source.workday.workday.organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role_worker", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role_worker", "fqn": ["workday", "staging", "workday", "organization_role_worker"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_worker_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"associated_worker_id": {"name": "associated_worker_id", "description": "Identifier for the worker associated with the organization role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "created_at": 1712052884.69931}, "source.workday.workday.organization_job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_job_family", "fqn": ["workday", "staging", "workday", "organization_job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "created_at": 1712052884.6993878}, "source.workday.workday.organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization", "fqn": ["workday", "staging", "workday", "organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Identifier for the organization.", "columns": {"id": {"name": "id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_manager_in_name": {"name": "include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_organization_code_in_name": {"name": "include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location": {"name": "location", "description": "Location associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sub_type": {"name": "sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "created_at": 1712052884.6995049}, "source.workday.workday.position_organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_organization", "fqn": ["workday", "staging", "workday", "position_organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "created_at": 1712052884.699583}, "source.workday.workday.position": {"database": "postgres", "schema": "workday_integration_tests", "name": "position", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position", "fqn": ["workday", "staging", "workday", "position"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_eligible": {"name": "academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_overlap": {"name": "available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_recruiting": {"name": "available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "created_at": 1712052884.699698}, "source.workday.workday.position_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_job_profile", "fqn": ["workday", "staging", "workday", "position_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "created_at": 1712052884.699919}, "source.workday.workday.worker_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_history", "fqn": ["workday", "staging", "workday", "worker_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"id": {"name": "id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "has_international_assignment": {"name": "has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_rescinded": {"name": "hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "not_returning": {"name": "not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regrettable_termination": {"name": "regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rehire": {"name": "rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retired": {"name": "retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "return_unknown": {"name": "return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "terminated": {"name": "terminated", "description": "Flag indicating whether the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_involuntary": {"name": "termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "created_at": 1712052884.700096}, "source.workday.workday.personal_information_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_history", "fqn": ["workday", "staging", "workday", "personal_information_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The personal information associated with each worker.", "columns": {"id": {"name": "id", "description": "The identifier for each personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hispanic_or_latino": {"name": "hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_hukou": {"name": "local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tobacco_use": {"name": "tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "created_at": 1712052884.700211}, "source.workday.workday.person_name": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_name", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_name", "fqn": ["workday", "staging", "workday", "person_name"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_name_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the name information for an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "created_at": 1712052884.700325}, "source.workday.workday.personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_ethnicity", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_ethnicity", "fqn": ["workday", "staging", "workday", "personal_information_ethnicity"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_ethnicity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "created_at": 1712052884.7004008}, "source.workday.workday.military_service": {"database": "postgres", "schema": "workday_integration_tests", "name": "military_service", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.military_service", "fqn": ["workday", "staging", "workday", "military_service"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_military_service_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about an individual's military service in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "created_at": 1712052884.70051}, "source.workday.workday.person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_contact_email_address", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_contact_email_address", "fqn": ["workday", "staging", "workday", "person_contact_email_address"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_contact_email_address_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "created_at": 1712052884.700595}, "source.workday.workday.worker_position_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_history", "fqn": ["workday", "staging", "workday", "worker_position_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the positions held by workers in the Workday system", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location": {"name": "business_site_summary_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "exclude_from_head_count": {"name": "exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_exempt": {"name": "job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_paid_fte": {"name": "specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_working_fte": {"name": "specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "created_at": 1712052884.700741}, "source.workday.workday.worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_leave_status", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_leave_status", "fqn": ["workday", "staging", "workday", "worker_leave_status"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_leave_status_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the leave status of workers in the Workday system.", "columns": {"leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_effect": {"name": "benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caesarean_section_birth": {"name": "caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "multiple_child_indicator": {"name": "multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_leave": {"name": "on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_effect": {"name": "payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "single_parent_indicator": {"name": "single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stock_vesting_effect": {"name": "stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_related": {"name": "work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "created_at": 1712052884.700865}, "source.workday.workday.worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_organization_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_organization_history", "fqn": ["workday", "staging", "workday", "worker_position_organization_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_organization_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "created_at": 1712052884.700948}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.109657, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1098921, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1100001, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.110102, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1102028, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n when 'm' then 'MATERIALIZED VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1116438, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.112082, "supported_languages": null}, "macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1127622, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.11292, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.120942, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.121574, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.121921, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.12223, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1226728, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1231549, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.123327, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.123643, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.123994, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.124875, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1251042, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1254249, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1256802, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.12607, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.126274, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1268091, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.127, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1271, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1272728, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.127397, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.127753, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.128505, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.128672, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.129123, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.129287, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.129451, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.13039, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }};\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.130857, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1311328, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.131495, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.131625, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.132417, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1325839, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1327128, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.133219, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1333811, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.133575, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.134113, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.137005, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.137152, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1376069, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1379662, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.138911, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.139086, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.139213, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1393359, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.139466, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.139919, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.14024, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.140712, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.141122, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1413739, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1444108, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.144565, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.144774, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1455529, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.145762, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.146004, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.147441, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1753879, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.178955, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.179234, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.179397, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.179481, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.179617, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.179724, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1799092, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.180743, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.180921, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.181157, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.181622, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.187168, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1895602, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1899688, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1902452, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.190571, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.190909, "supported_languages": null}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.195659, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.196088, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1963289, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.1974988, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.197718, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.198314, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2009559, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.203804, "supported_languages": ["sql"]}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2052631, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.205767, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.206368, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2065852, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2072499, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.212914, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.214388, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.214635, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2155552, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.215801, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2164102, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.217016, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.218017, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.218247, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.218421, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.218703, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.218977, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.219253, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.219425, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2196648, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.219838, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.219975, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.220242, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.224994, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2300942, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.231248, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.232573, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2335749, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.233991, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.234158, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2344708, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation }} clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2346072, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {% if target_relation and defer_relation and target_relation == defer_relation %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation) }}\n {% else %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endif %}\n\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.239532, "supported_languages": ["sql"]}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2428522, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2476318, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.24855, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.248815, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.249469, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.249841, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.250008, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.250155, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.25027, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.250428, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.250544, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.250992, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2511842, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.252405, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.252904, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.253344, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.253885, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.254136, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.254406, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.254782, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.255018, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2556648, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.256006, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.256178, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.256361, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.256541, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.257298, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation_type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.258501, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2588742, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.259111, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.259403, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.259595, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.260226, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.260624, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2608151, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.261077, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.261395, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.261645, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.262086, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2625148, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.262836, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.263105, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{ return(adapter.dispatch('drop_materialized_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.26337, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.263486, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.263751, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.263894, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.264181, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.264408, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.264659, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.264794, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.265367, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2655418, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.265811, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.265949, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.266212, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2663438, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.267262, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.267373, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.267853, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.268, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.268116, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.269322, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2696629, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2699788, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{ return(adapter.dispatch('drop_table', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.270227, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2703218, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.270562, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.270692, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2709298, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.271062, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2718048, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.27197, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.272345, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2729511, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2735832, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.273843, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.274027, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{ return(adapter.dispatch('drop_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.274276, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2743711, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.275119, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.275251, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2763278, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.27651, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2767081, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.276951, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2770822, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.277442, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.277587, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2777479, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2781298, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2784462, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.278705, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.278922, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.279423, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.280718, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.281237, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.281493, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.283202, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.284618, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.285362, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.285592, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.285839, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.285912, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.286581, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.287136, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.287359, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.287725, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.288039, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.288186, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.288416, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.288594, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.289553, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.289956, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2901309, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.290584, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.290821, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.290915, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.291216, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2913668, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2915661, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.291948, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.292181, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.292307, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2925599, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.292681, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.293386, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2938461, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.294208, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.29437, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.294677, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.294819, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.295063, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.295228, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.295462, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.295638, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.295905, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2960372, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.296353, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.296504, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.296742, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.296931, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.297778, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2979252, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.298073, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.298215, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.298369, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.298508, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2986581, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.298831, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.298978, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.299117, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2992709, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.2994401, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.299602, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.299735, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.299995, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.300119, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.30034, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.300438, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.300828, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.301072, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.301209, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.301674, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.301824, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.302022, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.302273, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.302392, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.302735, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.302957, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.303211, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.303336, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3036659, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.303831, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.30398, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.304136, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.304563, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.304696, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3048189, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.304908, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.30512, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3051898, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.305341, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3054872, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.306218, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.306347, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.306491, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.306859, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3070312, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.307154, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3074, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.307573, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.309489, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.309651, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3098528, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.310123, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3103402, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3106189, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3107798, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3110201, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3112419, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.311729, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.311935, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3120608, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.312439, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.312802, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.313055, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3132532, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.31475, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3148532, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.315007, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.315178, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.315574, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3157701, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.315872, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.31609, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.316287, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.316493, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.316751, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.316959, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.317715, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3179572, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3182201, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.318443, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3195992, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header -%}\n {{ sql_header }}\n {%- endif -%}\n {%- if limit is not none -%}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n {%- else -%}\n {{ compiled_code }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3201191, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "{% macro get_limit_subquery_sql(sql, limit) %}\n {{ adapter.dispatch('get_limit_subquery_sql', 'dbt')(sql, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3203032, "supported_languages": null}, "macro.dbt.default__get_limit_subquery_sql": {"name": "default__get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_subquery_sql", "macro_sql": "{% macro default__get_limit_subquery_sql(sql, limit) %}\n select *\n from (\n {{ sql }}\n ) as model_limit_subq\n limit {{ limit }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.320431, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.321032, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.321205, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3213902, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.321544, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.321794, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.322285, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.324775, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.325043, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.325252, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.325632, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.325844, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.325997, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.326161, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.326383, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.326574, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.326856, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3270311, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.327181, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.327331, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.327578, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3278248, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.328001, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.330055, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.330209, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.330494, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.330692, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3308768, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3310442, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n cast(null as {{ col['data_type'] }}) as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3323011, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.332696, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3329, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3332381, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.333457, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.334013, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3342552, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.33497, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3364758, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.336616, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.337355, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.337717, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.338235, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3386612, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.338728, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.339185, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.339408, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.339692, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3399749, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3403509, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3409479, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.341404, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3421052, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.342431, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.34273, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.343682, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3445919, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3453598, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.346307, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.346904, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3472042, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.347834, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.348587, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.349, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.349567, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3503098, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.350776, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.351271, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.351739, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.352341, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n where {{ column_name }} is not null\n limit 1\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3530838, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.353635, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.354211, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.354719, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3550248, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.355561, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.355936, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.356609, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.357424, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3582761, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.359092, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3598819, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.360747, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.361231, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3615181, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.364703, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.366318, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.366616, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3667681, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3671849, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.367436, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3676128, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.367841, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.367993, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3685691, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3693051, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.369916, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.370446, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.370649, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.370966, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.371305, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.371844, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3721988, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.372546, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.373204, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.374107, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3748999, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3752692, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.375436, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.375903, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.376483, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3772328, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.377592, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.37785, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3789282, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3804579, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3816042, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3830569, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.383338, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.38346, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.386105, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.389347, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.389632, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3898602, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.390563, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.390768, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.390955, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.391128, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3912802, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3914418, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.391806, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.392034, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3923829, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.392879, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.393182, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.393475, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.394909, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.395241, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.396008, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.3965209, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.397578, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.399155, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.400128, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4008808, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4013, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.401946, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.402617, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.403024, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.40319, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.403529, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.404053, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.404476, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.405051, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.405503, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.405626, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4057522, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.405874, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.406313, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.407069, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.408032, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.408409, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.409002, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4097369, "supported_languages": null}, "macro.workday.get_person_contact_email_address_columns": {"name": "get_person_contact_email_address_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_contact_email_address_columns.sql", "original_file_path": "macros/get_person_contact_email_address_columns.sql", "unique_id": "macro.workday.get_person_contact_email_address_columns", "macro_sql": "{% macro get_person_contact_email_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_address\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_comment\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4105852, "supported_languages": null}, "macro.workday.get_military_service_columns": {"name": "get_military_service_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_military_service_columns.sql", "original_file_path": "macros/get_military_service_columns.sql", "unique_id": "macro.workday.get_military_service_columns", "macro_sql": "{% macro get_military_service_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"discharge_date\", \"datatype\": \"date\"},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"rank\", \"datatype\": dbt.type_string()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status_begin_date\", \"datatype\": \"date\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4118469, "supported_languages": null}, "macro.workday.get_position_job_profile_columns": {"name": "get_position_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_job_profile_columns.sql", "original_file_path": "macros/get_position_job_profile_columns.sql", "unique_id": "macro.workday.get_position_job_profile_columns", "macro_sql": "{% macro get_position_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4129589, "supported_languages": null}, "macro.workday.get_job_family_job_family_group_columns": {"name": "get_job_family_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_job_family_group_columns", "macro_sql": "{% macro get_job_family_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.413492, "supported_languages": null}, "macro.workday.get_worker_history_columns": {"name": "get_worker_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_history_columns.sql", "original_file_path": "macros/get_worker_history_columns.sql", "unique_id": "macro.workday.get_worker_history_columns", "macro_sql": "{% macro get_worker_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_date\", \"datatype\": \"date\"},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"active_status_date\", \"datatype\": \"date\"},\n {\"name\": \"annual_currency_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_service_date\", \"datatype\": \"date\"},\n {\"name\": \"company_service_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_effective_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"continuous_service_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_assignment_details\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_end_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_frequency_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_pay_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"contract_vendor_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_entered_workforce\", \"datatype\": \"date\"},\n {\"name\": \"days_unemployed\", \"datatype\": dbt.type_float()},\n {\"name\": \"eligible_for_hire\", \"datatype\": dbt.type_string()},\n {\"name\": \"eligible_for_rehire_on_latest_termination\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_date_of_return\", \"datatype\": \"date\"},\n {\"name\": \"expected_retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"has_international_assignment\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hire_date\", \"datatype\": \"date\"},\n {\"name\": \"hire_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"hire_rescinded\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_datefor_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"local_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"months_continuous_prior_employment\", \"datatype\": dbt.type_float()},\n {\"name\": \"not_returning\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"original_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"pay_group_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"primary_termination_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"probation_end_date\", \"datatype\": \"date\"},\n {\"name\": \"probation_start_date\", \"datatype\": \"date\"},\n {\"name\": \"reason_reference_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regrettable_termination\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"rehire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"resignation_date\", \"datatype\": \"date\"},\n {\"name\": \"retired\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"retirement_eligibility_date\", \"datatype\": \"date\"},\n {\"name\": \"return_unknown\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"seniority_date\", \"datatype\": \"date\"},\n {\"name\": \"severance_date\", \"datatype\": \"date\"},\n {\"name\": \"terminated\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_date\", \"datatype\": \"date\"},\n {\"name\": \"termination_involuntary\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"time_off_service_date\", \"datatype\": \"date\"},\n {\"name\": \"universal_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vesting_date\", \"datatype\": \"date\"},\n {\"name\": \"worker_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.425184, "supported_languages": null}, "macro.workday.get_job_family_group_columns": {"name": "get_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_group_columns", "macro_sql": "{% macro get_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_group_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.426071, "supported_languages": null}, "macro.workday.get_worker_leave_status_columns": {"name": "get_worker_leave_status_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_leave_status_columns.sql", "original_file_path": "macros/get_worker_leave_status_columns.sql", "unique_id": "macro.workday.get_worker_leave_status_columns", "macro_sql": "{% macro get_worker_leave_status_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"adoption_notification_date\", \"datatype\": \"date\"},\n {\"name\": \"adoption_placement_date\", \"datatype\": \"date\"},\n {\"name\": \"age_of_dependent\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"caesarean_section_birth\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"child_birth_date\", \"datatype\": \"date\"},\n {\"name\": \"child_sdate_of_death\", \"datatype\": \"date\"},\n {\"name\": \"continuous_service_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"date_baby_arrived_home_from_hospital\", \"datatype\": \"date\"},\n {\"name\": \"date_child_entered_country\", \"datatype\": \"date\"},\n {\"name\": \"date_of_recall\", \"datatype\": \"date\"},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimated_leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_due_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"last_date_for_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_entitlement_override\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"leave_of_absence_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_request_event_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_return_event\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_start_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_status_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_type_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_during_leave\", \"datatype\": dbt.type_string()},\n {\"name\": \"multiple_child_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"number_of_babies_adopted_children\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_child_dependents\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_births\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_maternity_leaves\", \"datatype\": dbt.type_float()},\n {\"name\": \"on_leave\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"paid_time_off_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"payroll_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"single_parent_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"social_security_disability_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"stock_vesting_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"stop_payment_date\", \"datatype\": \"date\"},\n {\"name\": \"week_of_confinement\", \"datatype\": \"date\"},\n {\"name\": \"work_related\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.431276, "supported_languages": null}, "macro.workday.get_organization_role_worker_columns": {"name": "get_organization_role_worker_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_worker_columns.sql", "original_file_path": "macros/get_organization_role_worker_columns.sql", "unique_id": "macro.workday.get_organization_role_worker_columns", "macro_sql": "{% macro get_organization_role_worker_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"associated_worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.431947, "supported_languages": null}, "macro.workday.get_job_profile_columns": {"name": "get_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_profile_columns.sql", "original_file_path": "macros/get_job_profile_columns.sql", "unique_id": "macro.workday.get_job_profile_columns", "macro_sql": "{% macro get_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_job_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"public_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"referral_payment_plan\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_membership_requirement\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_study_award_source_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_study_requirement_option_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4345589, "supported_languages": null}, "macro.workday.get_organization_role_columns": {"name": "get_organization_role_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_columns.sql", "original_file_path": "macros/get_organization_role_columns.sql", "unique_id": "macro.workday.get_organization_role_columns", "macro_sql": "{% macro get_organization_role_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_role_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.435304, "supported_languages": null}, "macro.workday.get_person_name_columns": {"name": "get_person_name_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_name_columns.sql", "original_file_path": "macros/get_person_name_columns.sql", "unique_id": "macro.workday.get_person_name_columns", "macro_sql": "{% macro get_person_name_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"additional_name_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name_singapore_malaysia\", \"datatype\": dbt.type_string()},\n {\"name\": \"hereditary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"honorary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_salutation\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"professional_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"religious_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"royal_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tertiary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4389188, "supported_languages": null}, "macro.workday.get_job_family_job_profile_columns": {"name": "get_job_family_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_profile_columns.sql", "original_file_path": "macros/get_job_family_job_profile_columns.sql", "unique_id": "macro.workday.get_job_family_job_profile_columns", "macro_sql": "{% macro get_job_family_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.43952, "supported_languages": null}, "macro.workday.get_worker_position_history_columns": {"name": "get_worker_position_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_history_columns.sql", "original_file_path": "macros/get_worker_position_history_columns.sql", "unique_id": "macro.workday.get_worker_position_history_columns", "macro_sql": "{% macro get_worker_position_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_pay_setup_data_annual_work_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_work_percent_of_year\", \"datatype\": dbt.type_float()},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"business_site_summary_display_language\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_local\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"business_site_summary_time_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"default_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"employee_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"exclude_from_head_count\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"expected_assignment_end_date\", \"datatype\": \"date\"},\n {\"name\": \"external_employee\", \"datatype\": dbt.type_string()},\n {\"name\": \"federal_withholding_fein\", \"datatype\": dbt.type_string()},\n {\"name\": \"frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_time_equivalent_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"headcount_restriction_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"host_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"international_assignment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_primary_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"paid_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"payroll_entity\", \"datatype\": dbt.type_string()},\n {\"name\": \"payroll_file_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regular_paid_equivalent_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"specify_paid_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"specify_working_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"start_international_assignment_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_hours_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_space\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_hours_profile_classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"working_time_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.446857, "supported_languages": null}, "macro.workday.get_personal_information_ethnicity_columns": {"name": "get_personal_information_ethnicity_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_ethnicity_columns.sql", "original_file_path": "macros/get_personal_information_ethnicity_columns.sql", "unique_id": "macro.workday.get_personal_information_ethnicity_columns", "macro_sql": "{% macro get_personal_information_ethnicity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ethnicity_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"ethnicity_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.447586, "supported_languages": null}, "macro.workday.get_personal_information_history_columns": {"name": "get_personal_information_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_history_columns.sql", "original_file_path": "macros/get_personal_information_history_columns.sql", "unique_id": "macro.workday.get_personal_information_history_columns", "macro_sql": "{% macro get_personal_information_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"blood_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"citizenship_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_birth\", \"datatype\": \"date\"},\n {\"name\": \"date_of_death\", \"datatype\": \"date\"},\n {\"name\": \"gender\", \"datatype\": dbt.type_string()},\n {\"name\": \"hispanic_or_latino\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hukou_locality\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_subregion\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_medical_exam_date\", \"datatype\": \"date\"},\n {\"name\": \"last_medical_exam_valid_to\", \"datatype\": \"date\"},\n {\"name\": \"local_hukou\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"marital_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"marital_status_date\", \"datatype\": \"date\"},\n {\"name\": \"medical_exam_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"personnel_file_agency\", \"datatype\": dbt.type_string()},\n {\"name\": \"political_affiliation\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"religion\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_benefit\", \"datatype\": dbt.type_string()},\n {\"name\": \"tobacco_use\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4515882, "supported_languages": null}, "macro.workday.get_worker_position_organization_history_columns": {"name": "get_worker_position_organization_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_organization_history_columns.sql", "original_file_path": "macros/get_worker_position_organization_history_columns.sql", "unique_id": "macro.workday.get_worker_position_organization_history_columns", "macro_sql": "{% macro get_worker_position_organization_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_pay_group_assignment\", \"datatype\": \"date\"},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_business_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"used_in_change_organization_assignments\", \"datatype\": dbt.type_boolean()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.452783, "supported_languages": null}, "macro.workday.get_organization_job_family_columns": {"name": "get_organization_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_job_family_columns.sql", "original_file_path": "macros/get_organization_job_family_columns.sql", "unique_id": "macro.workday.get_organization_job_family_columns", "macro_sql": "{% macro get_organization_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.453426, "supported_languages": null}, "macro.workday.get_job_family_columns": {"name": "get_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_columns.sql", "original_file_path": "macros/get_job_family_columns.sql", "unique_id": "macro.workday.get_job_family_columns", "macro_sql": "{% macro get_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4541929, "supported_languages": null}, "macro.workday.get_organization_columns": {"name": "get_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_columns.sql", "original_file_path": "macros/get_organization_columns.sql", "unique_id": "macro.workday.get_organization_columns", "macro_sql": "{% macro get_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"availability_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"external_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"inactive_date\", \"datatype\": \"date\"},\n {\"name\": \"include_manager_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_organization_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"last_updated_date_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"location\", \"datatype\": dbt.type_string()},\n {\"name\": \"manager_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_owner_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"staffing_model\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"superior_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_availability_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_time_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_worker_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"top_level_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"visibility\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.457201, "supported_languages": null}, "macro.workday.get_position_organization_columns": {"name": "get_position_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_organization_columns.sql", "original_file_path": "macros/get_position_organization_columns.sql", "unique_id": "macro.workday.get_position_organization_columns", "macro_sql": "{% macro get_position_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4578922, "supported_languages": null}, "macro.workday.get_position_columns": {"name": "get_position_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_columns.sql", "original_file_path": "macros/get_position_columns.sql", "unique_id": "macro.workday.get_position_columns", "macro_sql": "{% macro get_position_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_eligible\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"availability_date\", \"datatype\": \"date\"},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_overlap\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_recruiting\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"closed\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"compensation_grade_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_package_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_step_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"earliest_overlap_date\", \"datatype\": \"date\"},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_posting_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_time_type_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_amount_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_percent_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"supervisory_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_for_filled_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_type_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.461468, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4619362, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4628549, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4630132, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.463178, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.463329, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4634612, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4636118, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4643579, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.464957, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.466356, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.466608, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.466847, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.467079, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.467312, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4675689, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4678242, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.468141, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.468461, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.468558, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.468651, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.468746, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.469089, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.46985, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.470828, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.471406, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4721699, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4726799, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.472811, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4729338, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.473058, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.473189, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.477002, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.477174, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4773262, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.47747, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4792252, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.480096, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.480233, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4804852, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.48075, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.480872, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4809868, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.481101, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.481216, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.481675, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.482219, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.482688, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.482929, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.48319, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.483467, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.484579, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.488183, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.488657, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.489169, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.490676, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4912481, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4918091, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.491958, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4921, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.492258, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.492407, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4925451, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4932969, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.494528, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.495282, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.495465, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.49561, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.495755, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.495894, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.496054, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.496298, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4963882, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.496475, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4970381, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4981601, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.498325, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.4990962, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.502199, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.506788, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.508199, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.508545, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.508694, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.508887, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.509208, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.509312, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.5094159, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.509512, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.50961, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.50986, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.509957, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.510051, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.5104299, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712052882.5107799, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.workday._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_deleted", "block_contents": "Indicates if the record was soft-deleted by Fivetran."}, "doc.workday._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_synced", "block_contents": "Timestamp the record was synced by Fivetran."}, "doc.workday._fivetran_start": {"name": "_fivetran_start", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_start", "block_contents": "Timestamp when the record was first created or modified in the source."}, "doc.workday._fivetran_end": {"name": "_fivetran_end", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_end", "block_contents": "Timestamp marking the end of a record being active."}, "doc.workday._fivetran_date": {"name": "_fivetran_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_date", "block_contents": "Date when the record was first created or modified in the source."}, "doc.workday._fivetran_active": {"name": "_fivetran_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_active", "block_contents": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE."}, "doc.workday.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.source_relation", "block_contents": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "doc.workday.academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_end_date", "block_contents": "The end date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_start_date", "block_contents": "The start date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year", "block_contents": "The work percentage of the year in the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date", "block_contents": "The end date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date", "block_contents": "The start date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_suffix": {"name": "academic_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_suffix", "block_contents": "The academic suffix, if applicable (e.g., PhD, MD)."}, "doc.workday.academic_tenure_date": {"name": "academic_tenure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_date", "block_contents": "Date when academic tenure is achieved."}, "doc.workday.academic_tenure_eligible": {"name": "academic_tenure_eligible", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_eligible", "block_contents": "Flag indicating whether the position is eligible for academic tenure."}, "doc.workday.active": {"name": "active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active", "block_contents": "Flag indicating the current active status of the worker."}, "doc.workday.active_status_date": {"name": "active_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active_status_date", "block_contents": "Date when the active status was last updated."}, "doc.workday.additional_job_description": {"name": "additional_job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_job_description", "block_contents": "Additional details or information about the job."}, "doc.workday.additional_name_type": {"name": "additional_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_name_type", "block_contents": "Additional type or category for the person name."}, "doc.workday.additional_nationality": {"name": "additional_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_nationality", "block_contents": "Additional nationality associated with the individual."}, "doc.workday.adoption_notification_date": {"name": "adoption_notification_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_notification_date", "block_contents": "The date of adoption notification."}, "doc.workday.adoption_placement_date": {"name": "adoption_placement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_placement_date", "block_contents": "The date of adoption placement."}, "doc.workday.age_of_dependent": {"name": "age_of_dependent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.age_of_dependent", "block_contents": "The age of the dependent associated with the leave status."}, "doc.workday.annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_currency", "block_contents": "Currency used for annual compensation summaries."}, "doc.workday.annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_frequency", "block_contents": "Frequency of currency for annual compensation summaries."}, "doc.workday.annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual compensation summaries."}, "doc.workday.annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.annual_summary_currency": {"name": "annual_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_currency", "block_contents": "Currency used for annual summaries."}, "doc.workday.annual_summary_frequency": {"name": "annual_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_frequency", "block_contents": "Frequency of currency for annual summaries."}, "doc.workday.annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual summaries."}, "doc.workday.annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.associated_worker_id": {"name": "associated_worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.associated_worker_id", "block_contents": "Identifier for the worker associated with the organization role."}, "doc.workday.availability_date": {"name": "availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.availability_date", "block_contents": "Date when the organization becomes available."}, "doc.workday.available_for_hire": {"name": "available_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_hire", "block_contents": "Flag indicating whether the organization is available for hiring."}, "doc.workday.available_for_overlap": {"name": "available_for_overlap", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_overlap", "block_contents": "Flag indicating whether the position is available for overlap with other positions."}, "doc.workday.available_for_recruiting": {"name": "available_for_recruiting", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_recruiting", "block_contents": "Flag indicating whether the position is available for recruiting."}, "doc.workday.benefits_effect": {"name": "benefits_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_effect", "block_contents": "The effect of leave on benefits."}, "doc.workday.benefits_service_date": {"name": "benefits_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_service_date", "block_contents": "Date when the worker's benefits service starts."}, "doc.workday.blood_type": {"name": "blood_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.blood_type", "block_contents": "The blood type of the individual."}, "doc.workday.business_site_summary_display_language": {"name": "business_site_summary_display_language", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_display_language", "block_contents": "The display language of the business site summary."}, "doc.workday.business_site_summary_local": {"name": "business_site_summary_local", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_local", "block_contents": "Local information related to the business site summary."}, "doc.workday.business_site_summary_location": {"name": "business_site_summary_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location", "block_contents": "The location of the business site summary."}, "doc.workday.business_site_summary_location_type": {"name": "business_site_summary_location_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location_type", "block_contents": "The type of location for the business site summary."}, "doc.workday.business_site_summary_name": {"name": "business_site_summary_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_name", "block_contents": "The name associated with the business site summary."}, "doc.workday.business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the business site summary."}, "doc.workday.business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_time_profile", "block_contents": "The time profile associated with the business site summary."}, "doc.workday.business_title": {"name": "business_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_title", "block_contents": "The business title associated with the worker position."}, "doc.workday.caesarean_section_birth": {"name": "caesarean_section_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.caesarean_section_birth", "block_contents": "Indicator for Caesarean section birth."}, "doc.workday.child_birth_date": {"name": "child_birth_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_birth_date", "block_contents": "The date of child birth."}, "doc.workday.child_sdate_of_death": {"name": "child_sdate_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_sdate_of_death", "block_contents": "The start date of child death.>"}, "doc.workday.citizenship_status": {"name": "citizenship_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.citizenship_status", "block_contents": "The citizenship status of the individual."}, "doc.workday.city_of_birth": {"name": "city_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth", "block_contents": "The city of birth of the individual."}, "doc.workday.city_of_birth_code": {"name": "city_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth_code", "block_contents": "The city of birth code of the individual."}, "doc.workday.closed": {"name": "closed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.closed", "block_contents": "Flag indicating whether the position is closed."}, "doc.workday.code": {"name": "code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.code", "block_contents": "Code assigned to the organization for reference and categorization."}, "doc.workday.company_service_date": {"name": "company_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.company_service_date", "block_contents": "Date when the worker's service with the company started."}, "doc.workday.compensation_effective_date": {"name": "compensation_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_effective_date", "block_contents": "Effective date when changes to the worker's compensation take effect."}, "doc.workday.compensation_grade_code": {"name": "compensation_grade_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_code", "block_contents": "Code associated with the compensation grade of the position."}, "doc.workday.compensation_grade_id": {"name": "compensation_grade_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_id", "block_contents": "Identifier for the compensation grade."}, "doc.workday.compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_code", "block_contents": "Code associated with the compensation grade profile of the position."}, "doc.workday.compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_id", "block_contents": "Unique identifier for the compensation grade profile associated with the worker."}, "doc.workday.compensation_package_code": {"name": "compensation_package_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_package_code", "block_contents": "Code associated with the compensation package of the position."}, "doc.workday.compensation_step_code": {"name": "compensation_step_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_step_code", "block_contents": "Code associated with the compensation step of the position."}, "doc.workday.continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_accrual_effect", "block_contents": "The effect of leave on continuous service accrual."}, "doc.workday.continuous_service_date": {"name": "continuous_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_date", "block_contents": "Date when the worker's continuous service with the organization started."}, "doc.workday.contract_assignment_details": {"name": "contract_assignment_details", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_assignment_details", "block_contents": "Details of the worker's contract assignment."}, "doc.workday.contract_currency_code": {"name": "contract_currency_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_currency_code", "block_contents": "Currency code used for the worker's contract."}, "doc.workday.contract_end_date": {"name": "contract_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_end_date", "block_contents": "Date when the worker's contract is scheduled to end."}, "doc.workday.contract_frequency_name": {"name": "contract_frequency_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_frequency_name", "block_contents": "Frequency of payment for the worker's contract."}, "doc.workday.contract_pay_rate": {"name": "contract_pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_pay_rate", "block_contents": "Pay rate associated with the worker's contract."}, "doc.workday.contract_vendor_name": {"name": "contract_vendor_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_vendor_name", "block_contents": "Name of the vendor associated with the worker's contract."}, "doc.workday.country": {"name": "country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country", "block_contents": "The country associated with the person name."}, "doc.workday.country_of_birth": {"name": "country_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country_of_birth", "block_contents": "The country of birth of the individual."}, "doc.workday.critical_job": {"name": "critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.critical_job", "block_contents": "Flag indicating whether the job is critical."}, "doc.workday.date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_baby_arrived_home_from_hospital", "block_contents": "The date when the baby arrived home from the hospital."}, "doc.workday.date_child_entered_country": {"name": "date_child_entered_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_child_entered_country", "block_contents": "The date when the child entered the country."}, "doc.workday.date_entered_workforce": {"name": "date_entered_workforce", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_entered_workforce", "block_contents": "Date when the worker entered the workforce."}, "doc.workday.date_of_birth": {"name": "date_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_birth", "block_contents": "The date of birth of the individual."}, "doc.workday.date_of_death": {"name": "date_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_death", "block_contents": "The date of death of the individual."}, "doc.workday.date_of_recall": {"name": "date_of_recall", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_recall", "block_contents": "The date of recall."}, "doc.workday.days_employed": {"name": "days_employed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_employed", "block_contents": "The number of days the employee held their position."}, "doc.workday.days_as_worker": {"name": "days_as_worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_as_worker", "block_contents": "Number of days since the worker has been created."}, "doc.workday.days_unemployed": {"name": "days_unemployed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_unemployed", "block_contents": "Number of days the worker has been unemployed."}, "doc.workday.default_weekly_hours": {"name": "default_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.default_weekly_hours", "block_contents": "The default weekly hours associated with the worker position."}, "doc.workday.departure_date": {"name": "departure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.departure_date", "block_contents": "The departure date for the employee."}, "doc.workday.difficulty_to_fill": {"name": "difficulty_to_fill", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill", "block_contents": "Indication of the difficulty level in filling the job."}, "doc.workday.difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill_code", "block_contents": "Code indicating the difficulty level in filling the position."}, "doc.workday.discharge_date": {"name": "discharge_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.discharge_date", "block_contents": "The date on which the individual was discharged from military service."}, "doc.workday.earliest_hire_date": {"name": "earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_hire_date", "block_contents": "Earliest date when the position can be filled."}, "doc.workday.earliest_overlap_date": {"name": "earliest_overlap_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_overlap_date", "block_contents": "Earliest date when the position can overlap with other positions."}, "doc.workday.effective_date": {"name": "effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.effective_date", "block_contents": "Date when the job profile becomes effective."}, "doc.workday.eligible_for_hire": {"name": "eligible_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_hire", "block_contents": "Flag indicating whether the worker is eligible for hire."}, "doc.workday.eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_rehire_on_latest_termination", "block_contents": "Flag indicating whether the worker is eligible for rehire based on the latest termination."}, "doc.workday.email_address": {"name": "email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_address", "block_contents": "The actual email address of the person."}, "doc.workday.email_code": {"name": "email_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_code", "block_contents": "A code or label associated with the type or purpose of the email address."}, "doc.workday.email_comment": {"name": "email_comment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_comment", "block_contents": "Any additional comments or notes related to the email address."}, "doc.workday.employee_id": {"name": "employee_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_id", "block_contents": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee."}, "doc.workday.employed_five_years": {"name": "employed_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_five_years", "block_contents": "Tracks whether a worker was employed at least five years."}, "doc.workday.employed_one_year": {"name": "employed_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_one_year", "block_contents": "Tracks whether a worker was employed at least one year."}, "doc.workday.employed_ten_years": {"name": "employed_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_ten_years", "block_contents": "Tracks whether a worker was employed at least ten years."}, "doc.workday.employed_thirty_years": {"name": "employed_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_thirty_years", "block_contents": "Tracks whether a worker was employed at least thirty years."}, "doc.workday.employed_twenty_years": {"name": "employed_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_twenty_years", "block_contents": "Tracks whether a worker was employed at least twenty years."}, "doc.workday.employee_compensation_currency": {"name": "employee_compensation_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_currency", "block_contents": "Currency code used for the worker's employee compensation."}, "doc.workday.employee_compensation_frequency": {"name": "employee_compensation_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_frequency", "block_contents": "Frequency of payment for the worker's employee compensation."}, "doc.workday.employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's employee compensation."}, "doc.workday.employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_base_pay", "block_contents": "Total base pay for the worker's employee compensation."}, "doc.workday.employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's employee compensation."}, "doc.workday.employee_type": {"name": "employee_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_type", "block_contents": "The type of employee associated with the worker position."}, "doc.workday.end_date": {"name": "end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_date", "block_contents": "The end date of the worker position."}, "doc.workday.end_employment_date": {"name": "end_employment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_employment_date", "block_contents": "Date when the worker's employment is scheduled to end."}, "doc.workday.estimated_leave_end_date": {"name": "estimated_leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.estimated_leave_end_date", "block_contents": "The estimated end date of the leave."}, "doc.workday.ethnicity_code": {"name": "ethnicity_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_code", "block_contents": "The code representing the ethnicity of the individual."}, "doc.workday.ethnicity_codes": {"name": "ethnicity_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_codes", "block_contents": "String aggregation of all ethnicity codes associated with an individual."}, "doc.workday.ethnicity_id": {"name": "ethnicity_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_id", "block_contents": "The identifier associated with the ethnicity."}, "doc.workday.exclude_from_head_count": {"name": "exclude_from_head_count", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.exclude_from_head_count", "block_contents": "Flag indicating whether the position is excluded from headcount."}, "doc.workday.expected_assignment_end_date": {"name": "expected_assignment_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_assignment_end_date", "block_contents": "The expected end date of the assignment associated with the worker position."}, "doc.workday.expected_date_of_return": {"name": "expected_date_of_return", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_date_of_return", "block_contents": "Expected date of the worker's return."}, "doc.workday.expected_due_date": {"name": "expected_due_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_due_date", "block_contents": "The expected due date."}, "doc.workday.expected_retirement_date": {"name": "expected_retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_retirement_date", "block_contents": "Expected date of the worker's retirement."}, "doc.workday.external_employee": {"name": "external_employee", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_employee", "block_contents": "Flag indicating whether the worker is an external employee."}, "doc.workday.external_url": {"name": "external_url", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_url", "block_contents": "External URL associated with the organization."}, "doc.workday.federal_withholding_fein": {"name": "federal_withholding_fein", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.federal_withholding_fein", "block_contents": "The Federal Employer Identification Number (FEIN) for federal withholding."}, "doc.workday.first_day_of_work": {"name": "first_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_day_of_work", "block_contents": "The date when the worker started their first day of work."}, "doc.workday.first_name": {"name": "first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_name", "block_contents": "The first name of the individual."}, "doc.workday.frequency": {"name": "frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.frequency", "block_contents": "The frequency associated with the worker position."}, "doc.workday.fte_percent": {"name": "fte_percent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.fte_percent", "block_contents": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek"}, "doc.workday.full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_name_singapore_malaysia", "block_contents": "The full name as used in Singapore and Malaysia."}, "doc.workday.full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_time_equivalent_percentage", "block_contents": "The full-time equivalent (FTE) percentage associated with the worker position."}, "doc.workday.gender": {"name": "gender", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.gender", "block_contents": "The gender of the individual."}, "doc.workday.has_international_assignment": {"name": "has_international_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.has_international_assignment", "block_contents": "Flag indicating whether the worker has an international assignment."}, "doc.workday.headcount_restriction_code": {"name": "headcount_restriction_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.headcount_restriction_code", "block_contents": "The code associated with headcount restriction for the worker position."}, "doc.workday.hereditary_suffix": {"name": "hereditary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hereditary_suffix", "block_contents": "The hereditary suffix, if applicable (e.g., Jr, Sr)."}, "doc.workday.hire_date": {"name": "hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_date", "block_contents": "The date when the worker was hired."}, "doc.workday.hire_reason": {"name": "hire_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_reason", "block_contents": "The reason for hiring the worker."}, "doc.workday.hire_rescinded": {"name": "hire_rescinded", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_rescinded", "block_contents": "Flag indicating whether the worker's hire was rescinded."}, "doc.workday.hiring_freeze": {"name": "hiring_freeze", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hiring_freeze", "block_contents": "Flag indicating whether the organization is under a hiring freeze."}, "doc.workday.hispanic_or_latino": {"name": "hispanic_or_latino", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hispanic_or_latino", "block_contents": "lag indicating whether the individual is Hispanic or Latino."}, "doc.workday.home_country": {"name": "home_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.home_country", "block_contents": "The home country of the worker."}, "doc.workday.honorary_suffix": {"name": "honorary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.honorary_suffix", "block_contents": "The honorary suffix, if applicable."}, "doc.workday.host_country": {"name": "host_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.host_country", "block_contents": "The host country associated with the worker."}, "doc.workday.hourly_frequency_currency": {"name": "hourly_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_currency", "block_contents": "Currency code used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_frequency", "block_contents": "Frequency of payment for the worker's hourly compensation."}, "doc.workday.hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_base_pay", "block_contents": "Total base pay for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's hourly compensation."}, "doc.workday.hukou_locality": {"name": "hukou_locality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_locality", "block_contents": "The locality associated with the Hukou."}, "doc.workday.hukou_postal_code": {"name": "hukou_postal_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_postal_code", "block_contents": "The postal code associated with the Hukou."}, "doc.workday.hukou_region": {"name": "hukou_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_region", "block_contents": "The region associated with the Hukou."}, "doc.workday.hukou_subregion": {"name": "hukou_subregion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_subregion", "block_contents": "The subregion associated with the Hukou."}, "doc.workday.hukou_type": {"name": "hukou_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_type", "block_contents": "The type of Hukou."}, "doc.workday.id": {"name": "id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.id", "block_contents": "Unique identifier."}, "doc.workday.inactive": {"name": "inactive", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive", "block_contents": "Flag indicating whether this is inactive."}, "doc.workday.inactive_date": {"name": "inactive_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive_date", "block_contents": "Date when the organization becomes inactive"}, "doc.workday.include_job_code_in_name": {"name": "include_job_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_job_code_in_name", "block_contents": "Flag indicating whether to include the job code in the job profile name."}, "doc.workday.include_manager_in_name": {"name": "include_manager_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_manager_in_name", "block_contents": "Flag indicating whether to include the manager in the organization name."}, "doc.workday.include_organization_code_in_name": {"name": "include_organization_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_organization_code_in_name", "block_contents": "Flag indicating whether to include the organization code in the name."}, "doc.workday.index": {"name": "index", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.index", "block_contents": "An index for a particular identifier."}, "doc.workday.international_assignment_type": {"name": "international_assignment_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.international_assignment_type", "block_contents": "The type of international assignment associated with the worker position."}, "doc.workday.is_critical_job": {"name": "is_critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_critical_job", "block_contents": "Flag indicating whether the position is considered critical based on the job profile."}, "doc.workday.is_current_employee_five_years": {"name": "is_current_employee_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_five_years", "block_contents": "Tracks whether a worker is active for more than five years."}, "doc.workday.is_current_employee_one_year": {"name": "is_current_employee_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_one_year", "block_contents": "Tracks whether a worker is active for more than a year."}, "doc.workday.is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_ten_years", "block_contents": "Tracks whether a worker is active for more than ten years."}, "doc.workday.is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_thirty_years", "block_contents": "Tracks whether a worker is active for more than thirty years."}, "doc.workday.is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_twenty_years", "block_contents": "Tracks whether a worker is active for more than twenty years."}, "doc.workday.is_employed": {"name": "is_employed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_employed", "block_contents": "Is the worker currently employed?"}, "doc.workday.is_military_service": {"name": "is_military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_military_service", "block_contents": "Whether the employee served in the military."}, "doc.workday.is_primary_job": {"name": "is_primary_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_primary_job", "block_contents": "Flag indicating whether the job is the primary job for the worker."}, "doc.workday.is_regrettable_termination": {"name": "is_regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_regrettable_termination", "block_contents": "Has the worker been regrettably terminated?"}, "doc.workday.is_terminated": {"name": "is_terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_terminated", "block_contents": "Has the worker been terminated?"}, "doc.workday.is_user_active": {"name": "is_user_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_user_active", "block_contents": "Is the user currently active."}, "doc.workday.job_category_code": {"name": "job_category_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_code", "block_contents": "Code indicating the category of the job profile associated with the position."}, "doc.workday.job_category_id": {"name": "job_category_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_id", "block_contents": "Identifier for the job category."}, "doc.workday.job_description": {"name": "job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description", "block_contents": "Detailed description of the job associated with the position."}, "doc.workday.job_description_summary": {"name": "job_description_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description_summary", "block_contents": "Summary or overview of the job description for the position."}, "doc.workday.job_exempt": {"name": "job_exempt", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_exempt", "block_contents": "Indicates whether the job is exempt from certain regulations."}, "doc.workday.job_family": {"name": "job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family", "block_contents": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles."}, "doc.workday.job_family_code": {"name": "job_family_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_code", "block_contents": "Code assigned to the job family"}, "doc.workday.job_family_codes": {"name": "job_family_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_codes", "block_contents": "String array of all job family codes assigned to a job profile."}, "doc.workday.job_family_group": {"name": "job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group", "block_contents": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics."}, "doc.workday.job_family_group_code": {"name": "job_family_group_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_code", "block_contents": "Code assigned to the job family group for reference and categorization."}, "doc.workday.job_family_group_codes": {"name": "job_family_group_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_codes", "block_contents": "String array of all job family group codes assigned to a job profile."}, "doc.workday.job_family_group_id": {"name": "job_family_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_id", "block_contents": "Identifier for the job family group."}, "doc.workday.job_family_group_summary": {"name": "job_family_group_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summary", "block_contents": "The summary of the job family group."}, "doc.workday.job_family_group_summaries": {"name": "job_family_group_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summaries", "block_contents": "String array of all job family group summaries assigned to a job profile."}, "doc.workday.job_family_id": {"name": "job_family_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_id", "block_contents": "Identifier for the job family."}, "doc.workday.job_family_job_family_group": {"name": "job_family_job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_family_group", "block_contents": "Represents the relationship between job families and job family groups in the Workday dataset."}, "doc.workday.job_family_job_profile": {"name": "job_family_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_profile", "block_contents": "Represents the relationship between job families and job profiles in the Workday dataset."}, "doc.workday.job_family_summary": {"name": "job_family_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summary", "block_contents": "The summary of the job family."}, "doc.workday.job_family_summaries": {"name": "job_family_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summaries", "block_contents": "String array of all job family summaries assigned to a job profile."}, "doc.workday.job_group_id": {"name": "job_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_group_id", "block_contents": "The unique identifier for the job group."}, "doc.workday.job_posting_title": {"name": "job_posting_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_posting_title", "block_contents": "Title used for job postings associated with the position."}, "doc.workday.job_private_title": {"name": "job_private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_private_title", "block_contents": "The private title associated with the job."}, "doc.workday.job_profile": {"name": "job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile", "block_contents": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes."}, "doc.workday.job_profile_code": {"name": "job_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_code", "block_contents": "Code assigned to the job profile."}, "doc.workday.job_profile_description": {"name": "job_profile_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_description", "block_contents": "Brief description of the job profile."}, "doc.workday.job_profile_id": {"name": "job_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_id", "block_contents": "Identifier for the job profile."}, "doc.workday.job_summary": {"name": "job_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_summary", "block_contents": "The summary of the job."}, "doc.workday.job_title": {"name": "job_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_title", "block_contents": "The title of the job for the worker."}, "doc.workday.last_date_for_which_paid": {"name": "last_date_for_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_date_for_which_paid", "block_contents": "The last date being paid before leave."}, "doc.workday.last_datefor_which_paid": {"name": "last_datefor_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_datefor_which_paid", "block_contents": "Last date for which the worker was paid."}, "doc.workday.last_medical_exam_date": {"name": "last_medical_exam_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_date", "block_contents": "The date of the last medical exam."}, "doc.workday.last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_valid_to", "block_contents": "The validity date of the last medical exam."}, "doc.workday.last_name": {"name": "last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_name", "block_contents": "The last name or surname of the individual."}, "doc.workday.last_updated_date_time": {"name": "last_updated_date_time", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_updated_date_time", "block_contents": "Date and time when the organization record was last updated."}, "doc.workday.leave_description": {"name": "leave_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_description", "block_contents": "Description of the type of leave"}, "doc.workday.leave_end_date": {"name": "leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_end_date", "block_contents": "The end date of the leave."}, "doc.workday.leave_entitlement_override": {"name": "leave_entitlement_override", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_entitlement_override", "block_contents": "Override for leave entitlement."}, "doc.workday.leave_last_day_of_work": {"name": "leave_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_last_day_of_work", "block_contents": "The last day of work associated with the leave status."}, "doc.workday.leave_of_absence_type": {"name": "leave_of_absence_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_of_absence_type", "block_contents": "The type of leave of absence."}, "doc.workday.leave_percentage": {"name": "leave_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_percentage", "block_contents": "The percentage of leave."}, "doc.workday.leave_request_event_id": {"name": "leave_request_event_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_request_event_id", "block_contents": "The unique identifier for the leave request event."}, "doc.workday.leave_return_event": {"name": "leave_return_event", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_return_event", "block_contents": "The event associated with the return from leave."}, "doc.workday.leave_start_date": {"name": "leave_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_start_date", "block_contents": "The start date of the leave."}, "doc.workday.leave_status_code": {"name": "leave_status_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_status_code", "block_contents": "The code indicating the status of the leave."}, "doc.workday.leave_type_reason": {"name": "leave_type_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_type_reason", "block_contents": "The reason for the leave type."}, "doc.workday.level": {"name": "level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.level", "block_contents": "Level associated with the job profile."}, "doc.workday.local_first_name": {"name": "local_first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name", "block_contents": "The local or native first name of the individual."}, "doc.workday.local_first_name_2": {"name": "local_first_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name_2", "block_contents": "Additional local or native first name, if applicable."}, "doc.workday.local_hukou": {"name": "local_hukou", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_hukou", "block_contents": "Flag indicating whether the Hukou is local."}, "doc.workday.local_last_name": {"name": "local_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name", "block_contents": "The local or native last name of the individual."}, "doc.workday.local_last_name_2": {"name": "local_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name_2", "block_contents": "Additional local or native last name, if applicable."}, "doc.workday.local_middle_name": {"name": "local_middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name", "block_contents": "The local or native middle name of the individual."}, "doc.workday.local_middle_name_2": {"name": "local_middle_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name_2", "block_contents": "Additional local or native middle name, if applicable."}, "doc.workday.local_secondary_last_name": {"name": "local_secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name", "block_contents": "Secondary local or native last name or surname, if applicable."}, "doc.workday.local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name_2", "block_contents": "Additional secondary local or native last name, if applicable."}, "doc.workday.local_termination_reason": {"name": "local_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_termination_reason", "block_contents": "The reason for local termination of the worker."}, "doc.workday.location": {"name": "location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location", "block_contents": "Location associated with the organization."}, "doc.workday.location_during_leave": {"name": "location_during_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location_during_leave", "block_contents": "The location during the leave."}, "doc.workday.management_level": {"name": "management_level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level", "block_contents": "Management level associated with the job profile."}, "doc.workday.management_level_code": {"name": "management_level_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level_code", "block_contents": "Code indicating the management level associated with the job profile."}, "doc.workday.manager_id": {"name": "manager_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.manager_id", "block_contents": "Identifier for the manager associated with the organization."}, "doc.workday.marital_status": {"name": "marital_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status", "block_contents": "The marital status of the individual."}, "doc.workday.marital_status_date": {"name": "marital_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status_date", "block_contents": "The date of the marital status."}, "doc.workday.medical_exam_notes": {"name": "medical_exam_notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.medical_exam_notes", "block_contents": "Notes from the medical exam."}, "doc.workday.middle_name": {"name": "middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.middle_name", "block_contents": "The middle name of the individual."}, "doc.workday.military_service": {"name": "military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_service", "block_contents": "Represents information about an individual's military service in the Workday system."}, "doc.workday.military_status": {"name": "military_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_status", "block_contents": "The military status of the worker."}, "doc.workday.months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.months_continuous_prior_employment", "block_contents": "Number of months of continuous prior employment."}, "doc.workday.position_location": {"name": "position_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_location", "block_contents": "The position location of the employee."}, "doc.workday.position_effective_date": {"name": "position_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_effective_date", "block_contents": "The position effective date for the employee."}, "doc.workday.position_end_date": {"name": "position_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_end_date", "block_contents": "The position end date for this employee."}, "doc.workday.position_start_date": {"name": "position_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_start_date", "block_contents": "The position start date for this employee."}, "doc.workday.multiple_child_indicator": {"name": "multiple_child_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.multiple_child_indicator", "block_contents": "Indicator for multiple children."}, "doc.workday.native_region": {"name": "native_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region", "block_contents": "The native region of the individual."}, "doc.workday.native_region_code": {"name": "native_region_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region_code", "block_contents": "The code of the native region."}, "doc.workday.not_returning": {"name": "not_returning", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.not_returning", "block_contents": "Flag indicating whether the worker is not returning."}, "doc.workday.notes": {"name": "notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.notes", "block_contents": "Additional notes or comments related to the military service record."}, "doc.workday.number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_babies_adopted_children", "block_contents": "The number of babies adopted by the worker."}, "doc.workday.number_of_child_dependents": {"name": "number_of_child_dependents", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_child_dependents", "block_contents": "The number of child dependents."}, "doc.workday.number_of_previous_births": {"name": "number_of_previous_births", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_births", "block_contents": "The number of previous births."}, "doc.workday.number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_maternity_leaves", "block_contents": "The number of previous maternity leaves."}, "doc.workday.on_leave": {"name": "on_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.on_leave", "block_contents": "Indicator for whether the worker is on leave."}, "doc.workday.organization": {"name": "organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization", "block_contents": "Identifier for the organization."}, "doc.workday.organization_code": {"name": "organization_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_code", "block_contents": "Code associated with the organization."}, "doc.workday.organization_description": {"name": "organization_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_description", "block_contents": "The description of the organization."}, "doc.workday.organization_id": {"name": "organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_id", "block_contents": "Identifier for the organization."}, "doc.workday.organization_job_family": {"name": "organization_job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_job_family", "block_contents": "Captures the associations between different organizational entities and the job families they are linked to."}, "doc.workday.organization_location": {"name": "organization_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_location", "block_contents": "The location of the organization."}, "doc.workday.organization_name": {"name": "organization_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_name", "block_contents": "Name of the organization."}, "doc.workday.organization_owner_id": {"name": "organization_owner_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_owner_id", "block_contents": "Identifier for the owner of the organization."}, "doc.workday.organization_role": {"name": "organization_role", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role", "block_contents": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities."}, "doc.workday.organization_role_code": {"name": "organization_role_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_code", "block_contents": "Code assigned to the organization role for reference and categorization."}, "doc.workday.organization_role_id": {"name": "organization_role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_id", "block_contents": "The role id associated with the organization."}, "doc.workday.organization_role_worker": {"name": "organization_role_worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_worker", "block_contents": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill."}, "doc.workday.organization_sub_type": {"name": "organization_sub_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_sub_type", "block_contents": "Subtype or classification of the organization."}, "doc.workday.organization_type": {"name": "organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_type", "block_contents": "Type or category of the organization."}, "doc.workday.organization_worker_code": {"name": "organization_worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_worker_code", "block_contents": "The worker code associated with the organization."}, "doc.workday.original_hire_date": {"name": "original_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.original_hire_date", "block_contents": "The original date when the worker was hired."}, "doc.workday.paid_fte": {"name": "paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_fte", "block_contents": "The paid full-time equivalent (FTE) associated with the worker position."}, "doc.workday.paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_time_off_accrual_effect", "block_contents": "The effect of leave on paid time off accrual."}, "doc.workday.pay_group": {"name": "pay_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group", "block_contents": "The pay group associated with the worker position."}, "doc.workday.pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_currency", "block_contents": "Currency code used for the worker's pay group frequency."}, "doc.workday.pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_frequency", "block_contents": "Frequency of payment for the worker's pay group."}, "doc.workday.pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's pay group."}, "doc.workday.pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_base_pay", "block_contents": "Total base pay for the worker's pay group."}, "doc.workday.pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's pay group."}, "doc.workday.pay_rate": {"name": "pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate", "block_contents": "The pay rate associated with the worker position."}, "doc.workday.pay_rate_type": {"name": "pay_rate_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate_type", "block_contents": "The type of pay rate associated with the worker position."}, "doc.workday.pay_through_date": {"name": "pay_through_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_through_date", "block_contents": "The date through which the worker is paid."}, "doc.workday.payroll_effect": {"name": "payroll_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_effect", "block_contents": "The effect of leave on payroll."}, "doc.workday.payroll_entity": {"name": "payroll_entity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_entity", "block_contents": "The payroll entity associated with the worker position."}, "doc.workday.payroll_file_number": {"name": "payroll_file_number", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_file_number", "block_contents": "The file number associated with payroll for the worker position."}, "doc.workday.person_contact_email_address": {"name": "person_contact_email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address", "block_contents": "Represents the email addresses associated with a person in the Workday system."}, "doc.workday.person_contact_email_address_id": {"name": "person_contact_email_address_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address_id", "block_contents": "The identifier of the personal contact email address."}, "doc.workday.person_name": {"name": "person_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name", "block_contents": "Represents the name information for an individual in the Workday system."}, "doc.workday.person_name_type": {"name": "person_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name_type", "block_contents": "The type or category of the person name (e.g., legal name, preferred name)."}, "doc.workday.personal_info_system_id": {"name": "personal_info_system_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_info_system_id", "block_contents": "The system ID associated with the personal information of the individual."}, "doc.workday.personal_information": {"name": "personal_information", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information", "block_contents": "The personal information associated with each worker."}, "doc.workday.personal_information_ethnicity": {"name": "personal_information_ethnicity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_ethnicity", "block_contents": "Represents information about the ethnicity of an individual in the Workday system."}, "doc.workday.personal_information_id": {"name": "personal_information_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_id", "block_contents": "The identifier for each personal information record."}, "doc.workday.personal_information_type": {"name": "personal_information_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_type", "block_contents": "The type of personal information record."}, "doc.workday.personnel_file_agency": {"name": "personnel_file_agency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personnel_file_agency", "block_contents": "The agency associated with the personnel file."}, "doc.workday.political_affiliation": {"name": "political_affiliation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.political_affiliation", "block_contents": "The political affiliation of the individual."}, "doc.workday.position": {"name": "position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position", "block_contents": "Resource for understanding the details and attributes associated with each position."}, "doc.workday.position_code": {"name": "position_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_code", "block_contents": "Code associated with the position for reference and categorization."}, "doc.workday.position_days": {"name": "position_days", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_days", "block_contents": "The days the worker held positions at the company."}, "doc.workday.position_id": {"name": "position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_id", "block_contents": "Identifier for the specific position."}, "doc.workday.position_job_profile": {"name": "position_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile", "block_contents": "Captures the associations between specific positions and the job profiles they are linked to."}, "doc.workday.position_job_profile_name": {"name": "position_job_profile_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile_name", "block_contents": "Name associated with the job profile linked to the position."}, "doc.workday.position_organization": {"name": "position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization", "block_contents": "Captures the associations between specific positions and the organizations to which they belong."}, "doc.workday.position_organization_type": {"name": "position_organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization_type", "block_contents": "Type or category of the position within the organization."}, "doc.workday.position_time_type_code": {"name": "position_time_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_time_type_code", "block_contents": "Code indicating the time type associated with the position."}, "doc.workday.prefix_salutation": {"name": "prefix_salutation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_salutation", "block_contents": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.)."}, "doc.workday.prefix_title": {"name": "prefix_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title", "block_contents": "The prefix or title associated with the name (e.g., Professor)."}, "doc.workday.prefix_title_code": {"name": "prefix_title_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title_code", "block_contents": "The code associated with the prefix or title."}, "doc.workday.primary_compensation_basis": {"name": "primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis", "block_contents": "Primary basis of compensation for the position."}, "doc.workday.primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_amount_change", "block_contents": "Change in the amount of the primary compensation basis."}, "doc.workday.primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_percent_change", "block_contents": "Change in the percentage of the primary compensation basis."}, "doc.workday.primary_nationality": {"name": "primary_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_nationality", "block_contents": "The primary nationality of the individual."}, "doc.workday.primary_termination_category": {"name": "primary_termination_category", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_category", "block_contents": "The primary termination category for the worker."}, "doc.workday.primary_termination_reason": {"name": "primary_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_reason", "block_contents": "The primary termination reason for the worker."}, "doc.workday.private_title": {"name": "private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.private_title", "block_contents": "Private title associated with the job profile."}, "doc.workday.probation_end_date": {"name": "probation_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_end_date", "block_contents": "The date when the worker's probation ends."}, "doc.workday.probation_start_date": {"name": "probation_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_start_date", "block_contents": "The date when the worker's probation starts."}, "doc.workday.professional_suffix": {"name": "professional_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.professional_suffix", "block_contents": "The professional suffix, if applicable (e.g., Esq., CPA)."}, "doc.workday.public_job": {"name": "public_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.public_job", "block_contents": "Flag indicating whether the job is public."}, "doc.workday.rank": {"name": "rank", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rank", "block_contents": "The rank achieved by the individual during military service."}, "doc.workday.reason_reference_id": {"name": "reason_reference_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.reason_reference_id", "block_contents": "The reference ID for the termination reason."}, "doc.workday.referral_payment_plan": {"name": "referral_payment_plan", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.referral_payment_plan", "block_contents": "Referral payment plan associated with the job profile."}, "doc.workday.region_of_birth": {"name": "region_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth", "block_contents": "The region of birth of the individual."}, "doc.workday.region_of_birth_code": {"name": "region_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth_code", "block_contents": "The code of the region of birth."}, "doc.workday.regrettable_termination": {"name": "regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regrettable_termination", "block_contents": "Flag indicating whether the worker's termination is regrettable."}, "doc.workday.regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regular_paid_equivalent_hours", "block_contents": "The regular paid equivalent hours associated with the worker position."}, "doc.workday.rehire": {"name": "rehire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rehire", "block_contents": "Flag indicating whether the worker is eligible for rehire."}, "doc.workday.religion": {"name": "religion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religion", "block_contents": "The religion of the individual."}, "doc.workday.religious_suffix": {"name": "religious_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religious_suffix", "block_contents": "The religious suffix, if applicable."}, "doc.workday.resignation_date": {"name": "resignation_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.resignation_date", "block_contents": "The date when the worker resigned."}, "doc.workday.retired": {"name": "retired", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retired", "block_contents": "Flag indicating whether the worker is retired."}, "doc.workday.retirement_date": {"name": "retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_date", "block_contents": "The date when the worker retired."}, "doc.workday.retirement_eligibility_date": {"name": "retirement_eligibility_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_eligibility_date", "block_contents": "The date when the worker becomes eligible for retirement."}, "doc.workday.return_unknown": {"name": "return_unknown", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.return_unknown", "block_contents": "Flag indicating whether the worker's return status is unknown."}, "doc.workday.role_id": {"name": "role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.role_id", "block_contents": "Identifier for the specific role."}, "doc.workday.royal_suffix": {"name": "royal_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.royal_suffix", "block_contents": "The royal suffix, if applicable."}, "doc.workday.scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the worker position."}, "doc.workday.secondary_last_name": {"name": "secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.secondary_last_name", "block_contents": "Secondary last name or surname, if applicable."}, "doc.workday.seniority_date": {"name": "seniority_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.seniority_date", "block_contents": "The date when the worker's seniority is recorded."}, "doc.workday.service": {"name": "service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service", "block_contents": "The specific military service branch in which the individual served."}, "doc.workday.service_type": {"name": "service_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service_type", "block_contents": "The type or category of military service (e.g., active duty, reserve, etc.)."}, "doc.workday.severance_date": {"name": "severance_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.severance_date", "block_contents": "The date when the worker's severance is recorded."}, "doc.workday.single_parent_indicator": {"name": "single_parent_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.single_parent_indicator", "block_contents": "Indicator for a single parent."}, "doc.workday.social_benefit": {"name": "social_benefit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_benefit", "block_contents": "The social benefit associated with the individual."}, "doc.workday.social_security_disability_code": {"name": "social_security_disability_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_security_disability_code", "block_contents": "The code indicating social security disability."}, "doc.workday.social_suffix": {"name": "social_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix", "block_contents": "The social suffix, if applicable."}, "doc.workday.social_suffix_id": {"name": "social_suffix_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix_id", "block_contents": "The identifier for the social suffix."}, "doc.workday.specify_paid_fte": {"name": "specify_paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_paid_fte", "block_contents": "Flag indicating whether to specify paid FTE for the worker position."}, "doc.workday.specify_working_fte": {"name": "specify_working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_working_fte", "block_contents": "Flag indicating whether to specify working FTE for the worker position."}, "doc.workday.staffing_model": {"name": "staffing_model", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.staffing_model", "block_contents": "Staffing model associated with the organization"}, "doc.workday.start_date": {"name": "start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_date", "block_contents": "The start date of the worker position."}, "doc.workday.start_international_assignment_reason": {"name": "start_international_assignment_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_international_assignment_reason", "block_contents": "The reason for starting an international assignment associated with the worker position."}, "doc.workday.status": {"name": "status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status", "block_contents": "The status of the individual's military service (e.g., active, inactive, retired)."}, "doc.workday.status_begin_date": {"name": "status_begin_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status_begin_date", "block_contents": "The date on which the current military service status began."}, "doc.workday.stock_vesting_effect": {"name": "stock_vesting_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stock_vesting_effect", "block_contents": "The effect of leave on stock vesting."}, "doc.workday.stop_payment_date": {"name": "stop_payment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stop_payment_date", "block_contents": "The date when stop payment occurs."}, "doc.workday.summary": {"name": "summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.summary", "block_contents": "Summary or overview of the job profile."}, "doc.workday.superior_organization_id": {"name": "superior_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.superior_organization_id", "block_contents": "Identifier for the superior organization, if applicable."}, "doc.workday.supervisory_organization_id": {"name": "supervisory_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_organization_id", "block_contents": "Identifier for the supervisory organization associated with the position."}, "doc.workday.supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_availability_date", "block_contents": "Availability date for supervisory positions within the organization."}, "doc.workday.supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_earliest_hire_date", "block_contents": "Earliest hire date for supervisory positions within the organization."}, "doc.workday.supervisory_position_time_type": {"name": "supervisory_position_time_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_time_type", "block_contents": "Time type associated with supervisory positions."}, "doc.workday.supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_worker_type", "block_contents": "Worker type associated with supervisory positions."}, "doc.workday.terminated": {"name": "terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.terminated", "block_contents": "Flag indicating whether the worker is terminated."}, "doc.workday.termination_date": {"name": "termination_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_date", "block_contents": "The date when the worker is terminated."}, "doc.workday.termination_involuntary": {"name": "termination_involuntary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_involuntary", "block_contents": "Flag indicating whether the termination is involuntary."}, "doc.workday.termination_last_day_of_work": {"name": "termination_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_last_day_of_work", "block_contents": "The last day of work for the worker during termination."}, "doc.workday.tertiary_last_name": {"name": "tertiary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tertiary_last_name", "block_contents": "Tertiary last name or surname, if applicable."}, "doc.workday.time_off_service_date": {"name": "time_off_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.time_off_service_date", "block_contents": "The date when the worker's time-off service starts."}, "doc.workday.title": {"name": "title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.title", "block_contents": "Title associated with the job profile."}, "doc.workday.tobacco_use": {"name": "tobacco_use", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tobacco_use", "block_contents": "Flag indicating whether the individual uses tobacco."}, "doc.workday.top_level_organization_id": {"name": "top_level_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.top_level_organization_id", "block_contents": "Identifier for the top-level organization, if applicable."}, "doc.workday.union_code": {"name": "union_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_code", "block_contents": "Code associated with the union related to the job profile."}, "doc.workday.union_membership_requirement": {"name": "union_membership_requirement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_membership_requirement", "block_contents": "Flag indicating whether union membership is a requirement for the job profile."}, "doc.workday.universal_id": {"name": "universal_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.universal_id", "block_contents": "The universal ID associated with the worker."}, "doc.workday.user_id": {"name": "user_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.user_id", "block_contents": "The identifier for the user associated with the worker."}, "doc.workday.vesting_date": {"name": "vesting_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.vesting_date", "block_contents": "The date when the worker's vesting starts."}, "doc.workday.visibility": {"name": "visibility", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.visibility", "block_contents": "Visibility level of the organization."}, "doc.workday.week_of_confinement": {"name": "week_of_confinement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.week_of_confinement", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_hours_profile": {"name": "work_hours_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_hours_profile", "block_contents": "The work hours profile associated with the worker position."}, "doc.workday.work_related": {"name": "work_related", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_related", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_shift": {"name": "work_shift", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift", "block_contents": "The work shift associated with the worker position."}, "doc.workday.work_shift_required": {"name": "work_shift_required", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift_required", "block_contents": "Flag indicating whether a work shift is required."}, "doc.workday.work_space": {"name": "work_space", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_space", "block_contents": "The work space associated with the worker position."}, "doc.workday.work_study_award_source_code": {"name": "work_study_award_source_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_award_source_code", "block_contents": "Code associated with the source of work study awards."}, "doc.workday.work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_requirement_option_code", "block_contents": "Code associated with work study requirement options."}, "doc.workday.workday__employee_overview": {"name": "workday__employee_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__employee_overview", "block_contents": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees."}, "doc.workday.workday__job_overview": {"name": "workday__job_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__job_overview", "block_contents": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings."}, "doc.workday.workday__role_overview": {"name": "workday__role_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__role_overview", "block_contents": "Each record represents a role in an organization, enhanced with additional organizational details."}, "doc.workday.workday__organization_overview": {"name": "workday__organization_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__organization_overview", "block_contents": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures."}, "doc.workday.workday__position_overview": {"name": "workday__position_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__position_overview", "block_contents": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts."}, "doc.workday.worker": {"name": "worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker", "block_contents": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker."}, "doc.workday.worker_code": {"name": "worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_code", "block_contents": "The code associated with the worker."}, "doc.workday.worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_for_filled_position_id", "block_contents": "Identifier for the worker filling the position, if applicable."}, "doc.workday.worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_hours_profile_classification", "block_contents": "The classification of worker hours profile associated with the worker position."}, "doc.workday.worker_id": {"name": "worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_id", "block_contents": "Unique identifier for the worker."}, "doc.workday.worker_leave_status": {"name": "worker_leave_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_leave_status", "block_contents": "Represents the leave status of workers in the Workday system."}, "doc.workday.worker_levels": {"name": "worker_levels", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_levels", "block_contents": "The number of levels the worker has worked at."}, "doc.workday.worker_position": {"name": "worker_position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position", "block_contents": "Represents the positions held by workers in the Workday system"}, "doc.workday.worker_position_organization": {"name": "worker_position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_organization", "block_contents": "Ties together workers to the positions and organizations they hold in the Workday system."}, "doc.workday.worker_position_id": {"name": "worker_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_id", "block_contents": "Identifier for the worker associated with the position."}, "doc.workday.worker_positions": {"name": "worker_positions", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_positions", "block_contents": "The number of positions the worker has held"}, "doc.workday.worker_type_code": {"name": "worker_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_type_code", "block_contents": "Code indicating the type of worker associated with the position."}, "doc.workday.working_fte": {"name": "working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_fte", "block_contents": "The working full-time equivalent (FTE) associated with the worker position."}, "doc.workday.working_time_frequency": {"name": "working_time_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_frequency", "block_contents": "The frequency of working time associated with the worker position."}, "doc.workday.working_time_unit": {"name": "working_time_unit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_unit", "block_contents": "The unit of working time associated with the worker position."}, "doc.workday.working_time_value": {"name": "working_time_value", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_value", "block_contents": "The value of working time associated with the worker position."}, "doc.workday.date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_pay_group_assignment", "block_contents": "Date a group's pay is assigned to be processed."}, "doc.workday.primary_business_site": {"name": "primary_business_site", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_business_site", "block_contents": "Primary location a worker's business is situated."}, "doc.workday.used_in_change_organization_assignments": {"name": "used_in_change_organization_assignments", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.used_in_change_organization_assignments", "block_contents": "If a worker has opted to change these organization assignments."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {}, "parent_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.workday__job_overview": ["model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_group", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_profile"], "model.workday.workday__position_overview": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"], "model.workday.workday__organization_overview": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"], "model.workday.stg_workday__position": ["model.workday.stg_workday__position_base"], "model.workday.stg_workday__job_family_group": ["model.workday.stg_workday__job_family_group_base"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "model.workday.stg_workday__organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "model.workday.stg_workday__organization_role": ["model.workday.stg_workday__organization_role_base"], "model.workday.stg_workday__worker_position": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "model.workday.stg_workday__position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "model.workday.stg_workday__worker_position_organization": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.stg_workday__job_profile": ["model.workday.stg_workday__job_profile_base"], "model.workday.stg_workday__position_organization": ["model.workday.stg_workday__position_organization_base"], "model.workday.stg_workday__worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "model.workday.stg_workday__person_name": ["model.workday.stg_workday__person_name_base"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "model.workday.stg_workday__organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "model.workday.stg_workday__job_family": ["model.workday.stg_workday__job_family_base"], "model.workday.stg_workday__military_service": ["model.workday.stg_workday__military_service_base"], "model.workday.stg_workday__personal_information": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "model.workday.stg_workday__worker": ["model.workday.stg_workday__worker_base"], "model.workday.stg_workday__organization": ["model.workday.stg_workday__organization_base"], "model.workday.stg_workday__job_family_job_family_group_base": ["source.workday.workday.job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["source.workday.workday.personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["source.workday.workday.job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["source.workday.workday.worker_position_organization_history"], "model.workday.stg_workday__position_base": ["source.workday.workday.position"], "model.workday.stg_workday__person_contact_email_address_base": ["source.workday.workday.person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["source.workday.workday.organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["source.workday.workday.job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["source.workday.workday.position_organization"], "model.workday.stg_workday__organization_role_base": ["source.workday.workday.organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["source.workday.workday.worker_leave_status"], "model.workday.stg_workday__job_family_base": ["source.workday.workday.job_family"], "model.workday.stg_workday__job_profile_base": ["source.workday.workday.job_profile"], "model.workday.stg_workday__organization_base": ["source.workday.workday.organization"], "model.workday.stg_workday__organization_role_worker_base": ["source.workday.workday.organization_role_worker"], "model.workday.stg_workday__worker_base": ["source.workday.workday.worker_history"], "model.workday.stg_workday__position_job_profile_base": ["source.workday.workday.position_job_profile"], "model.workday.stg_workday__worker_position_base": ["source.workday.workday.worker_position_history"], "model.workday.stg_workday__person_name_base": ["source.workday.workday.person_name"], "model.workday.stg_workday__military_service_base": ["source.workday.workday.military_service"], "model.workday.stg_workday__personal_information_base": ["source.workday.workday.personal_information_history"], "model.workday.workday__monthly_summary": ["model.workday.workday__employee_daily_history"], "model.workday.workday__employee_daily_history": ["model.workday.int_workday__employee_history"], "model.workday.workday__worker_position_org_daily_history": ["model.workday.stg_workday__worker_position_organization_base", "model.workday.stg_workday__worker_position_organization_history"], "model.workday.stg_workday__worker_position_history": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__worker_history": ["model.workday.stg_workday__worker_base"], "model.workday.stg_workday__personal_information_history": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.int_workday__employee_history": ["model.workday.stg_workday__personal_information_history", "model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history"], "model.workday.int_workday__worker_position_enriched": ["model.workday.stg_workday__worker_position"], "model.workday.int_workday__personal_details": ["model.workday.stg_workday__military_service", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__person_name", "model.workday.stg_workday__personal_information", "model.workday.stg_workday__personal_information_ethnicity"], "model.workday.int_workday__worker_details": ["model.workday.stg_workday__worker"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.int_workday__personal_details", "model.workday.int_workday__worker_details", "model.workday.int_workday__worker_position_enriched"], "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": ["model.workday.workday__job_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": ["model.workday.workday__job_overview"], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": ["model.workday.workday__position_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": ["model.workday.workday__position_overview"], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": ["model.workday.workday__organization_overview"], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": ["model.workday.workday__organization_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": ["model.workday.workday__organization_overview"], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": ["model.workday.stg_workday__job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": ["model.workday.stg_workday__job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": ["model.workday.stg_workday__job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": ["model.workday.stg_workday__job_family"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": ["model.workday.stg_workday__job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": ["model.workday.stg_workday__job_family_group"], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": ["model.workday.stg_workday__organization_role"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": ["model.workday.stg_workday__organization_role_worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": ["model.workday.stg_workday__organization_job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": ["model.workday.stg_workday__organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": ["model.workday.stg_workday__organization"], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": ["model.workday.stg_workday__position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": ["model.workday.stg_workday__position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": ["model.workday.stg_workday__position"], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": ["model.workday.stg_workday__position_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": ["model.workday.stg_workday__worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": ["model.workday.stg_workday__worker"], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": ["model.workday.stg_workday__personal_information"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": ["model.workday.stg_workday__personal_information"], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": ["model.workday.stg_workday__person_name"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": ["model.workday.stg_workday__military_service"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": ["model.workday.stg_workday__military_service"], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": ["model.workday.stg_workday__worker_position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": ["model.workday.stg_workday__worker_leave_status"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": ["model.workday.stg_workday__worker_position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": ["model.workday.stg_workday__worker_position_organization"], "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": ["model.workday.workday__employee_daily_history"], "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": ["model.workday.workday__employee_daily_history"], "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": ["model.workday.workday__monthly_summary"], "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": ["model.workday.workday__monthly_summary"], "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": ["model.workday.stg_workday__personal_information_history"], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": ["model.workday.stg_workday__worker_history"], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": ["model.workday.stg_workday__worker_position_history"], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": ["model.workday.stg_workday__worker_position_organization_history"], "source.workday.workday.job_profile": [], "source.workday.workday.job_family_job_profile": [], "source.workday.workday.job_family": [], "source.workday.workday.job_family_job_family_group": [], "source.workday.workday.job_family_group": [], "source.workday.workday.organization_role": [], "source.workday.workday.organization_role_worker": [], "source.workday.workday.organization_job_family": [], "source.workday.workday.organization": [], "source.workday.workday.position_organization": [], "source.workday.workday.position": [], "source.workday.workday.position_job_profile": [], "source.workday.workday.worker_history": [], "source.workday.workday.personal_information_history": [], "source.workday.workday.person_name": [], "source.workday.workday.personal_information_ethnicity": [], "source.workday.workday.military_service": [], "source.workday.workday.person_contact_email_address": [], "source.workday.workday.worker_position_history": [], "source.workday.workday.worker_leave_status": [], "source.workday.workday.worker_position_organization_history": []}, "child_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "test.workday.unique_workday__employee_overview_employee_id.b01e19996c"], "model.workday.workday__job_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857"], "model.workday.workday__position_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "test.workday.not_null_workday__position_overview_position_id.603beb3f22"], "model.workday.workday__organization_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412"], "model.workday.stg_workday__position": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e"], "model.workday.stg_workday__job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c"], "model.workday.stg_workday__organization_role_worker": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72"], "model.workday.stg_workday__organization_role": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f"], "model.workday.stg_workday__worker_position": ["model.workday.int_workday__worker_position_enriched", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755"], "model.workday.stg_workday__position_job_profile": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7"], "model.workday.stg_workday__worker_position_organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b"], "model.workday.stg_workday__job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa"], "model.workday.stg_workday__position_organization": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7"], "model.workday.stg_workday__worker_leave_status": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61"], "model.workday.stg_workday__person_name": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd"], "model.workday.stg_workday__organization_job_family": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e"], "model.workday.stg_workday__job_family": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f"], "model.workday.stg_workday__military_service": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38"], "model.workday.stg_workday__personal_information": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b"], "model.workday.stg_workday__worker": ["model.workday.int_workday__worker_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "test.workday.not_null_stg_workday__worker_worker_id.8dae310560"], "model.workday.stg_workday__organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7"], "model.workday.stg_workday__job_family_job_family_group_base": ["model.workday.stg_workday__job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["model.workday.stg_workday__personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["model.workday.stg_workday__job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["model.workday.stg_workday__worker_position_organization", "model.workday.stg_workday__worker_position_organization_history", "model.workday.workday__worker_position_org_daily_history"], "model.workday.stg_workday__position_base": ["model.workday.stg_workday__position"], "model.workday.stg_workday__person_contact_email_address_base": ["model.workday.stg_workday__person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["model.workday.stg_workday__organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["model.workday.stg_workday__job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["model.workday.stg_workday__position_organization"], "model.workday.stg_workday__organization_role_base": ["model.workday.stg_workday__organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["model.workday.stg_workday__worker_leave_status"], "model.workday.stg_workday__job_family_base": ["model.workday.stg_workday__job_family"], "model.workday.stg_workday__job_profile_base": ["model.workday.stg_workday__job_profile"], "model.workday.stg_workday__organization_base": ["model.workday.stg_workday__organization"], "model.workday.stg_workday__organization_role_worker_base": ["model.workday.stg_workday__organization_role_worker"], "model.workday.stg_workday__worker_base": ["model.workday.stg_workday__worker", "model.workday.stg_workday__worker_history"], "model.workday.stg_workday__position_job_profile_base": ["model.workday.stg_workday__position_job_profile"], "model.workday.stg_workday__worker_position_base": ["model.workday.stg_workday__worker_position", "model.workday.stg_workday__worker_position_history"], "model.workday.stg_workday__person_name_base": ["model.workday.stg_workday__person_name"], "model.workday.stg_workday__military_service_base": ["model.workday.stg_workday__military_service"], "model.workday.stg_workday__personal_information_base": ["model.workday.stg_workday__personal_information", "model.workday.stg_workday__personal_information_history"], "model.workday.workday__monthly_summary": ["test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab"], "model.workday.workday__employee_daily_history": ["model.workday.workday__monthly_summary", "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269"], "model.workday.workday__worker_position_org_daily_history": ["test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21"], "model.workday.stg_workday__worker_position_history": ["model.workday.int_workday__employee_history", "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879"], "model.workday.stg_workday__worker_history": ["model.workday.int_workday__employee_history", "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72"], "model.workday.stg_workday__personal_information_history": ["model.workday.int_workday__employee_history", "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc"], "model.workday.stg_workday__worker_position_organization_history": ["model.workday.workday__worker_position_org_daily_history", "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398"], "model.workday.int_workday__employee_history": ["model.workday.workday__employee_daily_history"], "model.workday.int_workday__worker_position_enriched": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__personal_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.workday__employee_overview"], "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": [], "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": [], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": [], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": [], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": [], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": [], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": [], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": [], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": [], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": [], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": [], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": [], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": [], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": [], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": [], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": [], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": [], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": [], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": [], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": [], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": [], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": [], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": [], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": [], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": [], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": [], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": [], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": [], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": [], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": [], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": [], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": [], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": [], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": [], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": [], "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": [], "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": [], "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": [], "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": [], "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": [], "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": [], "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": [], "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": [], "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": [], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": [], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": [], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": [], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": [], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": [], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": [], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": [], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": [], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": [], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": [], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": [], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": [], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": [], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": [], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": [], "source.workday.workday.job_profile": ["model.workday.stg_workday__job_profile_base"], "source.workday.workday.job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "source.workday.workday.job_family": ["model.workday.stg_workday__job_family_base"], "source.workday.workday.job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "source.workday.workday.job_family_group": ["model.workday.stg_workday__job_family_group_base"], "source.workday.workday.organization_role": ["model.workday.stg_workday__organization_role_base"], "source.workday.workday.organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "source.workday.workday.organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "source.workday.workday.organization": ["model.workday.stg_workday__organization_base"], "source.workday.workday.position_organization": ["model.workday.stg_workday__position_organization_base"], "source.workday.workday.position": ["model.workday.stg_workday__position_base"], "source.workday.workday.position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "source.workday.workday.worker_history": ["model.workday.stg_workday__worker_base"], "source.workday.workday.personal_information_history": ["model.workday.stg_workday__personal_information_base"], "source.workday.workday.person_name": ["model.workday.stg_workday__person_name_base"], "source.workday.workday.personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "source.workday.workday.military_service": ["model.workday.stg_workday__military_service_base"], "source.workday.workday.person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "source.workday.workday.worker_position_history": ["model.workday.stg_workday__worker_position_base"], "source.workday.workday.worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "source.workday.workday.worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v11.json", "dbt_version": "1.7.8", "generated_at": "2024-04-02T23:44:45.176218Z", "invocation_id": "cc500e2b-b7c4-44e8-b9fd-9ae8c4aa2439", "env": {}, "project_name": "workday_integration_tests", "project_id": "457920b1e5594993369a050db836d437", "user_id": "81581f81-d5af-4143-8fbf-c2f0001e4f56", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_job_family_group_data"], "alias": "workday_job_family_job_family_group_data", "checksum": {"name": "sha256", "checksum": "a4c9b0101811381ac698bec0ba8dd2474fa563f2d2dc6bdf1e072bd3f890313f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.8557298, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_history_data.csv", "original_file_path": "seeds/workday_personal_information_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "fqn": ["workday_integration_tests", "workday_personal_information_history_data"], "alias": "workday_personal_information_history_data", "checksum": {"name": "sha256", "checksum": "2810574ec93fc886e6f1faa097951c8d7c96336fbd1a03b75a22b5a7bb85d13a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.863468, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_ethnicity_data.csv", "original_file_path": "seeds/workday_personal_information_ethnicity_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "fqn": ["workday_integration_tests", "workday_personal_information_ethnicity_data"], "alias": "workday_personal_information_ethnicity_data", "checksum": {"name": "sha256", "checksum": "986222e9224bcca39693358ca9829277b4f6a2c56111ba9aa2db56734d128e9a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.8646882, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_group_data"], "alias": "workday_job_family_group_data", "checksum": {"name": "sha256", "checksum": "394c43d528af65ce740ba8ebd24d6d14e6ea99f5d57abcdd2690070f408378f9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.866107, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_history_data.csv", "original_file_path": "seeds/workday_worker_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "fqn": ["workday_integration_tests", "workday_worker_history_data"], "alias": "workday_worker_history_data", "checksum": {"name": "sha256", "checksum": "b3b80c42d748789791fca4630504aafa22afd1dca315e0d63bc0f9f9fe33a68d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "annual_currency_summary_primary_compensation_basis": "float", "annual_currency_summary_total_base_pay": "float", "annual_currency_summary_total_salary_and_allowances": "float", "annual_summary_primary_compensation_basis": "float", "annual_summary_total_base_pay": "float", "annual_summary_total_salary_and_allowances": "float", "contract_pay_rate": "float", "days_unemployed": "float", "employee_compensation_primary_compensation_basis": "float", "employee_compensation_total_base_pay": "float", "employee_compensation_total_salary_and_allowances": "float", "hourly_frequency_primary_compensation_basis": "float", "hourly_frequency_total_base_pay": "float", "hourly_frequency_total_salary_and_allowances": "float", "months_continuous_prior_employment": "float", "pay_group_frequency_primary_compensation_basis": "float", "pay_group_frequency_total_base_pay": "float", "pay_group_frequency_total_salary_and_allowances": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "annual_currency_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "contract_pay_rate": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "days_unemployed": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "months_continuous_prior_employment": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712101391.867906, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_leave_status_data.csv", "original_file_path": "seeds/workday_worker_leave_status_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "fqn": ["workday_integration_tests", "workday_worker_leave_status_data"], "alias": "workday_worker_leave_status_data", "checksum": {"name": "sha256", "checksum": "bec6fe9af70bc7bebcfebbd12d41d1674fa78fc88497783bf7be995f1290b901"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "age_of_dependent": "float", "leave_entitlement_override": "float", "leave_percentage": "float", "number_of_babies_adopted_children": "float", "number_of_child_dependents": "float", "number_of_previous_births": "float", "number_of_previous_maternity_leaves": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "age_of_dependent": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_entitlement_override": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_percentage": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_babies_adopted_children": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_child_dependents": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_births": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_maternity_leaves": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712101391.8695092, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_organization_history_data.csv", "original_file_path": "seeds/workday_worker_position_organization_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_organization_history_data"], "alias": "workday_worker_position_organization_history_data", "checksum": {"name": "sha256", "checksum": "79d43cf1c2b3425d03d23b014705613022d55eb282108d972cbeb58bf55ed0d3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.8709362, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_data.csv", "original_file_path": "seeds/workday_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_data", "fqn": ["workday_integration_tests", "workday_job_family_data"], "alias": "workday_job_family_data", "checksum": {"name": "sha256", "checksum": "727b3c01934259786bd85a1bed73ac70611363839a611bdea640bf9bd95cba2d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.872223, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_history_data.csv", "original_file_path": "seeds/workday_worker_position_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_history_data"], "alias": "workday_worker_position_history_data", "checksum": {"name": "sha256", "checksum": "434f6ed5606c6606bbbf41d1427584a275a825ae285f88c1b12d2c3d7da3c07d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "float", "business_site_summary_scheduled_weekly_hours": "float", "default_weekly_hours": "float", "start_date": "timestamp", "end_date": "timestamp"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "business_site_summary_scheduled_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "default_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "start_date": "timestamp", "end_date": "timestamp"}, "created_at": 1712101391.873491, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_name_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_name_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_name_data.csv", "original_file_path": "seeds/workday_person_name_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_name_data", "fqn": ["workday_integration_tests", "workday_person_name_data"], "alias": "workday_person_name_data", "checksum": {"name": "sha256", "checksum": "104b5d938091b1587548c91aa46a0e5b38ebccec81cbc569993b8a971b116881"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.8749352, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_data.csv", "original_file_path": "seeds/workday_organization_role_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "fqn": ["workday_integration_tests", "workday_organization_role_data"], "alias": "workday_organization_role_data", "checksum": {"name": "sha256", "checksum": "b3e1187179e8afc95fbf180efac810d5a8f4f57e118393c60fca2c2c7f09e024"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.876232, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_military_service_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_military_service_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_military_service_data.csv", "original_file_path": "seeds/workday_military_service_data.csv", "unique_id": "seed.workday_integration_tests.workday_military_service_data", "fqn": ["workday_integration_tests", "workday_military_service_data"], "alias": "workday_military_service_data", "checksum": {"name": "sha256", "checksum": "f3d25deafee7b4188b4bdfe815b40397bdd80cd135db866b9ddf2b3a0b346b07"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.877653, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_data.csv", "original_file_path": "seeds/workday_position_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_data", "fqn": ["workday_integration_tests", "workday_position_data"], "alias": "workday_position_data", "checksum": {"name": "sha256", "checksum": "f31ec8364b56eb931ab406b25be5cfc0301bba65908bc448aeb170ed79805894"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "primary_compensation_basis": "float", "primary_compensation_basis_amount_change": "float", "primary_compensation_basis_percent_change": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_amount_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_percent_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712101391.8789608, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_data.csv", "original_file_path": "seeds/workday_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_data", "fqn": ["workday_integration_tests", "workday_organization_data"], "alias": "workday_organization_data", "checksum": {"name": "sha256", "checksum": "e0ece91ba5a270a01be9bbe91ea46b49c9e5c3c56e7234b5a597c9d81f63b4cc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.880388, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_organization_data.csv", "original_file_path": "seeds/workday_position_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "fqn": ["workday_integration_tests", "workday_position_organization_data"], "alias": "workday_position_organization_data", "checksum": {"name": "sha256", "checksum": "c0cd526bcf4b91f1842484875ce4fe803d510862d4d4ddba72c6d1724c8e9ea8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.8816, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_profile_data.csv", "original_file_path": "seeds/workday_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_profile_data"], "alias": "workday_job_profile_data", "checksum": {"name": "sha256", "checksum": "677a184272cdd2e0d746d5616d33ad4ce394c74e759f73bf0e51f8dda5cc96e4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.883074, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_contact_email_address_data.csv", "original_file_path": "seeds/workday_person_contact_email_address_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "fqn": ["workday_integration_tests", "workday_person_contact_email_address_data"], "alias": "workday_person_contact_email_address_data", "checksum": {"name": "sha256", "checksum": "4641c91d789ed134081a55cf0aaafc5a61a7ea075904691a353389552038dbe9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.8842711, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_job_family_data.csv", "original_file_path": "seeds/workday_organization_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "fqn": ["workday_integration_tests", "workday_organization_job_family_data"], "alias": "workday_organization_job_family_data", "checksum": {"name": "sha256", "checksum": "2db2016b7eea202409836faff94ba2f168ce13dfd9e00ee1d1591eb85315cd47"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.885411, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_profile_data.csv", "original_file_path": "seeds/workday_job_family_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_family_job_profile_data"], "alias": "workday_job_family_job_profile_data", "checksum": {"name": "sha256", "checksum": "bc99975db9382af8f66fd46976db4cca2a987b1e9de24d17ceeb1ebf6e5ecb68"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.8870342, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_job_profile_data.csv", "original_file_path": "seeds/workday_position_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "fqn": ["workday_integration_tests", "workday_position_job_profile_data"], "alias": "workday_position_job_profile_data", "checksum": {"name": "sha256", "checksum": "e5d675b82b521d6856d8f516209642745a595a31d88d147f6561bcbc970433b3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.888336, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_worker_data.csv", "original_file_path": "seeds/workday_organization_role_worker_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "fqn": ["workday_integration_tests", "workday_organization_role_worker_data"], "alias": "workday_organization_role_worker_data", "checksum": {"name": "sha256", "checksum": "e24079f7ed64c407174d546132b71c69a9b1eaa9951b5a91772a3da7b3ff95f8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.8895721, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "model.workday.workday__employee_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "resource_type": "model", "package_name": "workday", "path": "workday__employee_overview.sql", "original_file_path": "models/workday__employee_overview.sql", "unique_id": "model.workday.workday__employee_overview", "fqn": ["workday", "workday__employee_overview"], "alias": "workday__employee_overview", "checksum": {"name": "sha256", "checksum": "b6fe9afa14aa393b3c40d1a669d182f20e556adacaa1ec46b05ad800bd4141a7"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees.", "columns": {"employee_id": {"name": "employee_id", "description": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_user_active": {"name": "is_user_active", "description": "Is the user currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed": {"name": "is_employed", "description": "Is the worker currently employed?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "departure_date": {"name": "departure_date", "description": "The departure date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_as_worker": {"name": "days_as_worker", "description": "Number of days since the worker has been created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Has the worker been regrettably terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_codes": {"name": "ethnicity_codes", "description": "String aggregation of all ethnicity codes associated with an individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The military status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The position start date for this employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The position end date for this employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "The position effective date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The position location of the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_employed": {"name": "days_employed", "description": "The number of days the employee held their position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_one_year": {"name": "is_employed_one_year", "description": "Tracks whether a worker was employed at least one year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_five_years": {"name": "is_employed_five_years", "description": "Tracks whether a worker was employed at least five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_ten_years": {"name": "is_employed_ten_years", "description": "Tracks whether a worker was employed at least ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_twenty_years": {"name": "is_employed_twenty_years", "description": "Tracks whether a worker was employed at least twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_thirty_years": {"name": "is_employed_thirty_years", "description": "Tracks whether a worker was employed at least thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_one_year": {"name": "is_current_employee_one_year", "description": "Tracks whether a worker is active for more than a year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_five_years": {"name": "is_current_employee_five_years", "description": "Tracks whether a worker is active for more than five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "description": "Tracks whether a worker is active for more than ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "description": "Tracks whether a worker is active for more than twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "description": "Tracks whether a worker is active for more than thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712101392.855912, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"", "raw_code": "with employee_surrogate_key as (\n \n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'source_relation', 'position_id', 'position_start_date']) }} as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from {{ ref('int_workday__worker_employee_enhanced') }} \n)\n\nselect * \nfrom employee_surrogate_key", "language": "sql", "refs": [{"name": "int_workday__worker_employee_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.int_workday__worker_employee_enhanced"]}, "compiled_path": "target/compiled/workday/models/workday__employee_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n), employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from __dbt__cte__int_workday__worker_employee_enhanced \n)\n\nselect * \nfrom employee_surrogate_key", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_details", "sql": " __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n)"}, {"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__personal_details", "sql": " __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n)"}, {"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_position_enriched", "sql": " __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n)"}, {"id": "model.workday.int_workday__worker_employee_enhanced", "sql": " __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__job_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "resource_type": "model", "package_name": "workday", "path": "workday__job_overview.sql", "original_file_path": "models/workday__job_overview.sql", "unique_id": "model.workday.workday__job_overview", "fqn": ["workday", "workday__job_overview"], "alias": "workday__job_overview", "checksum": {"name": "sha256", "checksum": "b50072f5be5632d10a64a1e777aa62ae6f2283f22244bd033fea5fc20ce66165"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "The private title associated with the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "The summary of the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_codes": {"name": "job_family_codes", "description": "String array of all job family codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summaries": {"name": "job_family_summaries", "description": "String array of all job family summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_codes": {"name": "job_family_group_codes", "description": "String array of all job family group codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summaries": {"name": "job_family_group_summaries", "description": "String array of all job family group summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712101392.857625, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"", "raw_code": "with job_profile_data as (\n\n select * \n from {{ ref('stg_workday__job_profile') }}\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_profile') }}\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from {{ ref('stg_workday__job_family') }}\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_family_group') }}\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from {{ ref('stg_workday__job_family_group') }}\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_code', \"', '\" ) }} as job_family_codes,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_summary', \"', '\" ) }} as job_family_summaries, \n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_code', \"', '\" ) }} as job_family_group_codes,\n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_summary', \"', '\" ) }} as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom job_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}, {"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg", "macro.dbt_utils.group_by"], "nodes": ["model.workday.stg_workday__job_profile", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/workday__job_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), job_profile_data as (\n\n select * \n from __dbt__cte__stg_workday__job_profile\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_profile\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from __dbt__cte__stg_workday__job_family\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_family_group\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from __dbt__cte__stg_workday__job_family_group\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__position_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "resource_type": "model", "package_name": "workday", "path": "workday__position_overview.sql", "original_file_path": "models/workday__position_overview.sql", "unique_id": "model.workday.workday__position_overview", "fqn": ["workday", "workday__position_overview"], "alias": "workday__position_overview", "checksum": {"name": "sha256", "checksum": "567db8a61cd72c8faec1aac1963cbf05b776d0fe170a7f8c0ae8ea3d076464d3"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts.", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712101392.8609989, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"", "raw_code": "with position_data as (\n\n select *\n from {{ ref('stg_workday__position') }}\n),\n\nposition_job_profile_data as (\n\n select *\n from {{ ref('stg_workday__position_job_profile') }}\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}, {"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/workday__position_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), position_data as (\n\n select *\n from __dbt__cte__stg_workday__position\n),\n\nposition_job_profile_data as (\n\n select *\n from __dbt__cte__stg_workday__position_job_profile\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__organization_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "resource_type": "model", "package_name": "workday", "path": "workday__organization_overview.sql", "original_file_path": "models/workday__organization_overview.sql", "unique_id": "model.workday.workday__organization_overview", "fqn": ["workday", "workday__organization_overview"], "alias": "workday__organization_overview", "checksum": {"name": "sha256", "checksum": "0df19685be8a2ffee5d5e16069cbc9771cc639372004929a73f500f9d7c59798"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712101392.8629382, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"", "raw_code": "with organization_data as (\n\n select * \n from {{ ref('stg_workday__organization') }}\n),\n\norganization_role_data as (\n\n select * \n from {{ ref('stg_workday__organization_role') }}\n),\n\nworker_position_organization as (\n\n select *\n from {{ ref('stg_workday__worker_position_organization') }}\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}, {"name": "stg_workday__organization_role", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/workday__organization_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), organization_data as (\n\n select * \n from __dbt__cte__stg_workday__organization\n),\n\norganization_role_data as (\n\n select * \n from __dbt__cte__stg_workday__organization_role\n),\n\nworker_position_organization as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_organization\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position.sql", "original_file_path": "models/staging/stg_workday__position.sql", "unique_id": "model.workday.stg_workday__position", "fqn": ["workday", "staging", "stg_workday__position"], "alias": "stg_workday__position", "checksum": {"name": "sha256", "checksum": "a8eea235110df116f941d206b25f965ace56ec776662153af05d70a2bdf1cd4b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_academic_tenure_eligible": {"name": "is_academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.023948, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_base')),\n staging_columns=get_position_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_base", "package": null, "version": null}, {"name": "stg_workday__position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_group"], "alias": "stg_workday__job_family_group", "checksum": {"name": "sha256", "checksum": "91495541dd20c1e46fd9fc7074605bd8d766196513173eb2e6d6d2abd779474a"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summary": {"name": "job_family_group_summary", "description": "The summary of the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.019827, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_group_base')),\n staging_columns=get_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_profile.sql", "original_file_path": "models/staging/stg_workday__job_family_job_profile.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile", "fqn": ["workday", "staging", "stg_workday__job_family_job_profile"], "alias": "stg_workday__job_family_job_profile", "checksum": {"name": "sha256", "checksum": "22f926dc89704581204ef1db5906e7fc184c404d53dc5141b47056de357d6066"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.018506, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_profile_base')),\n staging_columns=get_job_family_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role_worker.sql", "original_file_path": "models/staging/stg_workday__organization_role_worker.sql", "unique_id": "model.workday.stg_workday__organization_role_worker", "fqn": ["workday", "staging", "stg_workday__organization_role_worker"], "alias": "stg_workday__organization_role_worker", "checksum": {"name": "sha256", "checksum": "6cbf3f20ac378d061a6c9034bd75c08e7cf7079ac12c8b167c31e6e1c0e54fa6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_worker_code": {"name": "organization_worker_code", "description": "The worker code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.020619, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_worker_base')),\n staging_columns=get_organization_role_worker_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_worker_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role_worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role.sql", "original_file_path": "models/staging/stg_workday__organization_role.sql", "unique_id": "model.workday.stg_workday__organization_role", "fqn": ["workday", "staging", "stg_workday__organization_role"], "alias": "stg_workday__organization_role", "checksum": {"name": "sha256", "checksum": "d20118b8c8234cda8e96b2df978fdce2aa46bbdb356ebac5b29680663d105e05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.020158, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_base')),\n staging_columns=get_organization_role_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position.sql", "original_file_path": "models/staging/stg_workday__worker_position.sql", "unique_id": "model.workday.stg_workday__worker_position", "fqn": ["workday", "staging", "stg_workday__worker_position"], "alias": "stg_workday__worker_position", "checksum": {"name": "sha256", "checksum": "f812d4b0a33146284f402362816bc05ca7a5e85fa228207ea0df356396906025"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the positions held by workers in the Workday system", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.032806, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_base')),\n staging_columns=get_worker_position_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_contact_email_address.sql", "original_file_path": "models/staging/stg_workday__person_contact_email_address.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address", "fqn": ["workday", "staging", "stg_workday__person_contact_email_address"], "alias": "stg_workday__person_contact_email_address", "checksum": {"name": "sha256", "checksum": "fc93cd7747b3087ad994ab34f0feec9a8293e02f719a8ddb64bf652d786f50e5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_contact_email_address_id": {"name": "person_contact_email_address_id", "description": "The identifier of the personal contact email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.0310988, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_contact_email_address_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_contact_email_address_base')),\n staging_columns=get_person_contact_email_address_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_contact_email_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_contact_email_address_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_contact_email_address.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_job_profile.sql", "original_file_path": "models/staging/stg_workday__position_job_profile.sql", "unique_id": "model.workday.stg_workday__position_job_profile", "fqn": ["workday", "staging", "stg_workday__position_job_profile"], "alias": "stg_workday__position_job_profile", "checksum": {"name": "sha256", "checksum": "1bd56f05d8c66dff4d5741a2ca3963cd4859341229686f1e9155289aa86ca3f3"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_job_profile_name": {"name": "position_job_profile_name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.024777, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_job_profile_base')),\n staging_columns=get_position_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__position_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position_organization.sql", "original_file_path": "models/staging/stg_workday__worker_position_organization.sql", "unique_id": "model.workday.stg_workday__worker_position_organization", "fqn": ["workday", "staging", "stg_workday__worker_position_organization"], "alias": "stg_workday__worker_position_organization", "checksum": {"name": "sha256", "checksum": "c06c632d0c5bc211074ad78e1d36ea19e68ad03423068316bd207e3978472684"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.035869, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_organization_base')),\n staging_columns=get_worker_position_organization_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_profile.sql", "original_file_path": "models/staging/stg_workday__job_profile.sql", "unique_id": "model.workday.stg_workday__job_profile", "fqn": ["workday", "staging", "stg_workday__job_profile"], "alias": "stg_workday__job_profile", "checksum": {"name": "sha256", "checksum": "c58fefde4e2bab4dfcc7d23f270ba41e4b3a785de9c0f221854b44ce088753d6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_job_code_in_name": {"name": "is_include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_public_job": {"name": "is_public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.018173, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_profile_base')),\n staging_columns=get_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_organization.sql", "original_file_path": "models/staging/stg_workday__position_organization.sql", "unique_id": "model.workday.stg_workday__position_organization", "fqn": ["workday", "staging", "stg_workday__position_organization"], "alias": "stg_workday__position_organization", "checksum": {"name": "sha256", "checksum": "3e066e026cb6c5a57a3780d60185e331275a40666ec842bd51a9f5214c8106f0"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.022847, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_organization_base')),\n staging_columns=get_position_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_organization_base", "package": null, "version": null}, {"name": "stg_workday__position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_leave_status.sql", "original_file_path": "models/staging/stg_workday__worker_leave_status.sql", "unique_id": "model.workday.stg_workday__worker_leave_status", "fqn": ["workday", "staging", "stg_workday__worker_leave_status"], "alias": "stg_workday__worker_leave_status", "checksum": {"name": "sha256", "checksum": "7a780769764a426e346115891309d38326b383297d43976f5b368feefe555e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the leave status of workers in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_benefits_effect": {"name": "is_benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_caesarean_section_birth": {"name": "is_caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_continuous_service_accrual_effect": {"name": "is_continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_multiple_child_indicator": {"name": "is_multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_on_leave": {"name": "is_on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_paid_time_off_accrual_effect": {"name": "is_paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_payroll_effect": {"name": "is_payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_single_parent_indicator": {"name": "is_single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_stock_vesting_effect": {"name": "is_stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_related": {"name": "is_work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.035386, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_leave_status_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_leave_status_base')),\n staging_columns=get_worker_leave_status_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}, {"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_leave_status_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__worker_leave_status_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_leave_status.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_name.sql", "original_file_path": "models/staging/stg_workday__person_name.sql", "unique_id": "model.workday.stg_workday__person_name", "fqn": ["workday", "staging", "stg_workday__person_name"], "alias": "stg_workday__person_name", "checksum": {"name": "sha256", "checksum": "da74b8517c3659e32fa4600075b2c78fd9edf3b9d67b062a39aceeb7007a8106"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the name information for an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_name_type": {"name": "person_name_type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.0298932, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_name_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_name_base')),\n staging_columns=get_person_name_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_name_base", "package": null, "version": null}, {"name": "stg_workday__person_name_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_name_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_name_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_name.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information_ethnicity.sql", "original_file_path": "models/staging/stg_workday__personal_information_ethnicity.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity", "fqn": ["workday", "staging", "stg_workday__personal_information_ethnicity"], "alias": "stg_workday__personal_information_ethnicity", "checksum": {"name": "sha256", "checksum": "1cddb347cc063152fdf7519ab20008979c18819cf57eda40f40b5c0ae4df795c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.0302348, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_ethnicity_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_ethnicity_base')),\n staging_columns=get_personal_information_ethnicity_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_ethnicity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information_ethnicity.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_job_family.sql", "original_file_path": "models/staging/stg_workday__organization_job_family.sql", "unique_id": "model.workday.stg_workday__organization_job_family", "fqn": ["workday", "staging", "stg_workday__organization_job_family"], "alias": "stg_workday__organization_job_family", "checksum": {"name": "sha256", "checksum": "25a30264c730bb3d4ed427d08d7262415aa13c72bda44f292aef305dabadb4dc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.0209439, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_job_family_base')),\n staging_columns=get_organization_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family_base", "package": null, "version": null}, {"name": "stg_workday__organization_job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family.sql", "original_file_path": "models/staging/stg_workday__job_family.sql", "unique_id": "model.workday.stg_workday__job_family", "fqn": ["workday", "staging", "stg_workday__job_family"], "alias": "stg_workday__job_family", "checksum": {"name": "sha256", "checksum": "2b55aade2b7c5f3aaa66b8689637aecadf3960de67f0df66ecd9d511ec3f4a2c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summary": {"name": "job_family_summary", "description": "The summary of the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.019048, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_base')),\n staging_columns=get_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_base", "package": null, "version": null}, {"name": "stg_workday__job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__military_service.sql", "original_file_path": "models/staging/stg_workday__military_service.sql", "unique_id": "model.workday.stg_workday__military_service", "fqn": ["workday", "staging", "stg_workday__military_service"], "alias": "stg_workday__military_service", "checksum": {"name": "sha256", "checksum": "2723e93ad3a6b887aa7d9b8c5d97bee2714a4b0d8ff0c80decb8be429e77b709"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about an individual's military service in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.0306282, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__military_service_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__military_service_base')),\n staging_columns=get_military_service_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__military_service_base", "package": null, "version": null}, {"name": "stg_workday__military_service_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_military_service_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__military_service_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__military_service.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information.sql", "original_file_path": "models/staging/stg_workday__personal_information.sql", "unique_id": "model.workday.stg_workday__personal_information", "fqn": ["workday", "staging", "stg_workday__personal_information"], "alias": "stg_workday__personal_information", "checksum": {"name": "sha256", "checksum": "99c2547b9cba3b9798c54da22173f0f4e2d0db3f9623673fc37f0c6f081646bd"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "The personal information associated with each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.028927, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_base')),\n staging_columns=get_personal_information_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__personal_information_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_job_family_group"], "alias": "stg_workday__job_family_job_family_group", "checksum": {"name": "sha256", "checksum": "6fd4740d69f85753d0bf54a02768c8d9b8887e6e58481511bb3067f6dbe9b7eb"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.0193632, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_family_group_base')),\n staging_columns=get_job_family_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker.sql", "original_file_path": "models/staging/stg_workday__worker.sql", "unique_id": "model.workday.stg_workday__worker", "fqn": ["workday", "staging", "stg_workday__worker"], "alias": "stg_workday__worker", "checksum": {"name": "sha256", "checksum": "eabb44e7218212b2cfa0ed153715acd2cd920d91f48a20884f237d3307a8d88d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.0276842, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_base')),\n staging_columns=get_worker_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization.sql", "original_file_path": "models/staging/stg_workday__organization.sql", "unique_id": "model.workday.stg_workday__organization", "fqn": ["workday", "staging", "stg_workday__organization"], "alias": "stg_workday__organization", "checksum": {"name": "sha256", "checksum": "ddc0897b633fd79f01412ef8b78788ca8168409bbdd6a076e7ae77eae46e5b4c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Identifier for the organization.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_description": {"name": "organization_description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_manager_in_name": {"name": "is_include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_organization_code_in_name": {"name": "is_include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_location": {"name": "organization_location", "description": "The location of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.02252, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_base')),\n staging_columns=get_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_base", "package": null, "version": null}, {"name": "stg_workday__organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_family_group_base"], "alias": "stg_workday__job_family_job_family_group_base", "checksum": {"name": "sha256", "checksum": "e2032528b0352adb9b447a62934a158666a681a00bfd8821c454342850710217"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.251905, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_family_group"], ["workday", "job_family_job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_ethnicity_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_ethnicity_base"], "alias": "stg_workday__personal_information_ethnicity_base", "checksum": {"name": "sha256", "checksum": "83d4f52d542558f35ac9c4bca924abf5d50bd6d060b57de257d9b3a8011375bc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.269129, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_ethnicity', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_ethnicity',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_ethnicity"], ["workday", "personal_information_ethnicity"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_group_base"], "alias": "stg_workday__job_family_group_base", "checksum": {"name": "sha256", "checksum": "bea26ff96c14d3e08fd64f97fbc8fbefc3cc6cc6726f7eb27132f966e3ace85d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.273083, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_group"], ["workday", "job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_organization_base.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_organization_base"], "alias": "stg_workday__worker_position_organization_base", "checksum": {"name": "sha256", "checksum": "42729b33f262620d892e95707fef1e711b95c66a4df3fb612d1eb73d024a7e38"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.277426, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_organization_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_organization_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_organization_history"], ["workday", "worker_position_organization_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_base.sql", "original_file_path": "models/staging/base/stg_workday__position_base.sql", "unique_id": "model.workday.stg_workday__position_base", "fqn": ["workday", "staging", "base", "stg_workday__position_base"], "alias": "stg_workday__position_base", "checksum": {"name": "sha256", "checksum": "4ccfff02ed1a6e0e94868985aa08ad5eaac5c78e608ae24eb36ebeb3da3b1443"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.281013, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position"], ["workday", "position"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_contact_email_address_base.sql", "original_file_path": "models/staging/base/stg_workday__person_contact_email_address_base.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "fqn": ["workday", "staging", "base", "stg_workday__person_contact_email_address_base"], "alias": "stg_workday__person_contact_email_address_base", "checksum": {"name": "sha256", "checksum": "2bfb4c913c999795db2691f4b3bc115fbae9bbad6e4eb59ad305bc057e7e0e5b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.284479, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_contact_email_address', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_contact_email_address',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_contact_email_address"], ["workday", "person_contact_email_address"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_contact_email_address_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_job_family_base.sql", "unique_id": "model.workday.stg_workday__organization_job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_job_family_base"], "alias": "stg_workday__organization_job_family_base", "checksum": {"name": "sha256", "checksum": "8a999ebe4367e8c4e6994124834c09f9d1eeb411d6e00353c9995bc0900ee1ea"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.287861, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_job_family"], ["workday", "organization_job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_profile_base"], "alias": "stg_workday__job_family_job_profile_base", "checksum": {"name": "sha256", "checksum": "61149fbd447008acfc11c0cce919a3dcdfc878b1e43f1a904bed99cd0e12e934"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.291552, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_profile"], ["workday", "job_family_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__position_organization_base.sql", "unique_id": "model.workday.stg_workday__position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__position_organization_base"], "alias": "stg_workday__position_organization_base", "checksum": {"name": "sha256", "checksum": "e9e1144f5ba976bda0612b7899e5c418c8f2880a69bb98c7bd61826b438cf705"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.295786, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_organization"], ["workday", "position_organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_base.sql", "unique_id": "model.workday.stg_workday__organization_role_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_base"], "alias": "stg_workday__organization_role_base", "checksum": {"name": "sha256", "checksum": "7da1ae4c5e420c6a429f6082802496377da44449aefb62728c64e31c64923832"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.29934, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role"], ["workday", "organization_role"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_leave_status_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_leave_status_base.sql", "unique_id": "model.workday.stg_workday__worker_leave_status_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_leave_status_base"], "alias": "stg_workday__worker_leave_status_base", "checksum": {"name": "sha256", "checksum": "25de6c8505c09d17787931dd2ad7fb497ee4fcc6ad9c076417ac327d38b2cee5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.3034701, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_leave_status', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_leave_status',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_leave_status"], ["workday", "worker_leave_status"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_leave_status_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_base.sql", "unique_id": "model.workday.stg_workday__job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_base"], "alias": "stg_workday__job_family_base", "checksum": {"name": "sha256", "checksum": "a6d51501e8a9f185408e2c8c963b04ed89e1f87260216f3e994f324119a0f804"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.307363, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family"], ["workday", "job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_profile_base"], "alias": "stg_workday__job_profile_base", "checksum": {"name": "sha256", "checksum": "ddeb40a89a0b03a8748dae6a224bade7705498441a9f295682bd24ef643fc563"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.3113348, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_profile"], ["workday", "job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_base.sql", "unique_id": "model.workday.stg_workday__organization_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_base"], "alias": "stg_workday__organization_base", "checksum": {"name": "sha256", "checksum": "ee0cb72047f2c7760251317c86318a9f46c5a8be9113fcb7d81b269e1b4b4e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.315708, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization"], ["workday", "organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_worker_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_worker_base.sql", "unique_id": "model.workday.stg_workday__organization_role_worker_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_worker_base"], "alias": "stg_workday__organization_role_worker_base", "checksum": {"name": "sha256", "checksum": "74e858892ef8851aec9a06e4e05dbca91361b09939c257c69db38356d59acf05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.31919, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role_worker', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role_worker',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role_worker"], ["workday", "organization_role_worker"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_base.sql", "unique_id": "model.workday.stg_workday__worker_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_base"], "alias": "stg_workday__worker_base", "checksum": {"name": "sha256", "checksum": "5f0f82a654f8f22d1e129cebdf87aa064125f5deeeca51c50d53f249dd0d96e1"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.323391, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_history"], ["workday", "worker_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__position_job_profile_base.sql", "unique_id": "model.workday.stg_workday__position_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__position_job_profile_base"], "alias": "stg_workday__position_job_profile_base", "checksum": {"name": "sha256", "checksum": "7a2843eac9ceff71866501a413274121b15a2e8d1337b83962e0045cb1b403c5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.327331, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_job_profile"], ["workday", "position_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_base.sql", "unique_id": "model.workday.stg_workday__worker_position_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_base"], "alias": "stg_workday__worker_position_base", "checksum": {"name": "sha256", "checksum": "8a8431d94738ad8c342bba23f86ace1e658cf63ac9254481bf8463622129514e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.3312268, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_history"], ["workday", "worker_position_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_name_base.sql", "original_file_path": "models/staging/base/stg_workday__person_name_base.sql", "unique_id": "model.workday.stg_workday__person_name_base", "fqn": ["workday", "staging", "base", "stg_workday__person_name_base"], "alias": "stg_workday__person_name_base", "checksum": {"name": "sha256", "checksum": "85c57cfa1fe54db08605b75e32060e1bd488a4f71eae27b2cb8a2805ac4ac655"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.335579, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_name', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_name',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_name"], ["workday", "person_name"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_name"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_name_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__military_service_base.sql", "original_file_path": "models/staging/base/stg_workday__military_service_base.sql", "unique_id": "model.workday.stg_workday__military_service_base", "fqn": ["workday", "staging", "base", "stg_workday__military_service_base"], "alias": "stg_workday__military_service_base", "checksum": {"name": "sha256", "checksum": "9478cb8eea5671a0261ed280e3723a9ad826ee22b77b9dfe709be5fc85fd295e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.339026, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='military_service', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='military_service',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "military_service"], ["workday", "military_service"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.military_service"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__military_service_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_base.sql", "unique_id": "model.workday.stg_workday__personal_information_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_base"], "alias": "stg_workday__personal_information_base", "checksum": {"name": "sha256", "checksum": "0767af75bcb79f32dd324d8bf4e57ffc0d0014bda0609b426df78cdc17566e96"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.343195, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_history"], ["workday", "personal_information_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__monthly_summary": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__monthly_summary.sql", "original_file_path": "models/workday_history/workday__monthly_summary.sql", "unique_id": "model.workday.workday__monthly_summary", "fqn": ["workday", "workday_history", "workday__monthly_summary"], "alias": "workday__monthly_summary", "checksum": {"name": "sha256", "checksum": "c2c7661c8324a927d8bf739bdcc37d21d650b2aa0ca769ee77205b47dc81e804"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a month, aggregated from the last day of each month of the employee daily history. This captures monthly metrics of workers, such as average salary, churned and retained employees, etc.", "columns": {"metrics_month": {"name": "metrics_month", "description": "Month in which metrics are being aggregated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_employees": {"name": "new_employees", "description": "New employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_employees": {"name": "churned_employees", "description": "Churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_voluntary_employees": {"name": "churned_voluntary_employees", "description": "Voluntary churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_involuntary_employees": {"name": "churned_involuntary_employees", "description": "Involuntary churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_workers": {"name": "churned_workers", "description": "Churned workers that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_employees": {"name": "active_employees", "description": "Employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_male_employees": {"name": "active_male_employees", "description": "Male employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_female_employees": {"name": "active_female_employees", "description": "Female employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_workers": {"name": "active_workers", "description": "Workers considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_known_gender_employees": {"name": "active_known_gender_employees", "description": "Known gender employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_primary_compensation": {"name": "avg_employee_primary_compensation", "description": "Average primary compensation salary of employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_base_pay": {"name": "avg_employee_base_pay", "description": "Average base pay of the employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_salary_and_allowances": {"name": "avg_employee_salary_and_allowances", "description": "Average salary and allowances of the employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_days_as_employee": {"name": "avg_days_as_employee", "description": "Average days employee has been active month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_primary_compensation": {"name": "avg_worker_primary_compensation", "description": "Average primary compensation for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_base_pay": {"name": "avg_worker_base_pay", "description": "Average base pay for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_salary_and_allowances": {"name": "avg_worker_salary_and_allowances", "description": "Average salary plus allowances for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_days_as_worker": {"name": "avg_days_as_worker", "description": "Average days as a worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712101393.135306, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }} \n\nwith row_month_partition as (\n\n select *, \n cast({{ dbt.date_trunc(\"month\", \"date_day\") }} as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from {{ ref('workday__employee_daily_history') }}\n),\n\nend_of_month_history as (\n \n select *,\n {{ dbt.current_timestamp() }} as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then {{ dbt.datediff(\"hire_date\", \"current_date\", \"day\") }}\n else {{ dbt.datediff(\"hire_date\", \"termination_date\", \"day\") }}\n end as days_as_worker,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when date_month = cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date) then 1 else 0 end) as new_employees,\n sum(case when date_month = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) then 1 else 0 end) as churned_employees,\n sum(case when (date_month = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date)\n and (cast(date_month as date) <= cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date)\n and cast(date_month as date) <= cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__monthly_summary.sql", "compiled": true, "compiled_code": " \n\nwith row_month_partition as (\n\n select *, \n cast(date_trunc('month', date_day) as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n),\n\nend_of_month_history as (\n \n select *,\n now() as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when date_month = cast(date_trunc('month', position_effective_date) as date) then 1 else 0 end) as new_employees,\n sum(case when date_month = cast(date_trunc('month', termination_date) as date) then 1 else 0 end) as churned_employees,\n sum(case when (date_month = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = cast(date_trunc('month', end_employment_date) as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and (cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__employee_daily_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__employee_daily_history.sql", "original_file_path": "models/workday_history/workday__employee_daily_history.sql", "unique_id": "model.workday.workday__employee_daily_history", "fqn": ["workday", "workday_history", "workday__employee_daily_history"], "alias": "workday__employee_daily_history", "checksum": {"name": "sha256", "checksum": "47b8cd821865a578f389213983200d86a810622aab8770174b4145c10aa916b3"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a daily record in an employee, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to track the daily history of their employees from when they started.", "columns": {"employee_day_id": {"name": "employee_day_id", "description": "Surrogate key hashed on `date_day` and `history_unique_key`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date on which the account had these field values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on 'employee_id' and '_fivetran_date'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_id": {"name": "employee_id", "description": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_wh_fivetran_active": {"name": "is_wh_fivetran_active", "description": "Is the worker history record the most recent fivetran active record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_wph_fivetran_active": {"name": "is_wph_fivetran_active", "description": "Is the worker position history record the most recent fivetranactive record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_pih_fivetran_active": {"name": "is_pih_fivetran_active", "description": "Is the personal information history record the most recent fivetran active record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wh_end_employment_date": {"name": "wh_end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wph_end_employment_date": {"name": "wph_end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wh_pay_through_date": {"name": "wh_pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wph_pay_through_date": {"name": "wph_pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The position location of the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "The position effective date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "row_num": {"name": "row_num", "description": "This is the row number filter designed to grab the most recent daily record for an employee. This value should always be 1 in this model.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712101393.131665, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"", "raw_code": "-- depends_on: {{ ref('int_workday__employee_history') }}\n{{ config(enabled=var('employee_history_enabled', False)) }}\n\n{% if execute %} \n {% set first_last_date_query %}\n with min_max_values as (\n\n select \n min(_fivetran_start) as min_start,\n max(_fivetran_start) as max_start \n from {{ ref('int_workday__employee_history') }}\n )\n\n select \n min_start,\n case when max_start >= {{ dbt.current_timestamp() }}\n then max_start\n else {{ dbt.date_trunc('day', dbt.current_timestamp()) }} \n end as max_start\n from min_max_values\n \n {% endset %}\n\n {% set start_date = run_query(first_last_date_query).columns[0][0]|string %}\n {% set last_date = run_query(first_last_date_query).columns[1][0]|string %}\n\n{# If only compiling, creates range going back 1 year #}\n{% else %} \n {% set start_date = dbt.dateadd(\"year\", \"-2\", \"current_date\") %} -- Arbitrarily picked. Choose a more appropriate default if necessary.\n {% set last_date = dbt.dateadd(\"year\", \"-1\", \"current_date\") %}\n{% endif %}\n\n\nwith spine as (\n {# Prioritizes variables over calculated dates #}\n {# Arbitrarily picked employee_history_start_date variable value. Choose a more appropriate default if necessary. #}\n {{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date = \"greatest(cast('\" ~ start_date[0:10] ~ \"' as date), cast('\" ~ var('employee_history_start_date','2005-03-01') ~ \"' as date))\", \n end_date = \"cast('\" ~ last_date[0:10] ~ \"'as date)\"\n )\n }}\n),\n\nemployee_history as (\n\n select * \n from {{ ref('int_workday__employee_history') }}\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['spine.date_day','get_latest_daily_value.history_unique_key']) }} as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }})\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }})\n)\n\nselect * \nfrom daily_history", "language": "sql", "refs": [{"name": "int_workday__employee_history", "package": null, "version": null}, {"name": "int_workday__employee_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp", "macro.dbt.current_timestamp", "macro.dbt.date_trunc", "macro.dbt.run_query"], "nodes": ["model.workday.int_workday__employee_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__employee_daily_history.sql", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n\n\n \n \n\n \n \n\n\n\n\n\nwith spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 6972\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2005-03-01' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-02'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__worker_position_org_daily_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__worker_position_org_daily_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__worker_position_org_daily_history.sql", "original_file_path": "models/workday_history/workday__worker_position_org_daily_history.sql", "unique_id": "model.workday.workday__worker_position_org_daily_history", "fqn": ["workday", "workday_history", "workday__worker_position_org_daily_history"], "alias": "workday__worker_position_org_daily_history", "checksum": {"name": "sha256", "checksum": "ad5b7e21ed08bdb7f2ba61ea8f25949b07c83ce0e0036857c1467564cc4f40a0"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a daily record for a worker/position/organization combination, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to tie in organizations to employees via other organization models (such as `workday__organization_overview`) more easily in their warehouses.", "columns": {"wpo_day_id": {"name": "wpo_day_id", "description": "Surrogate key hashed on `date_day` and `history_unique_key`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date on which the account had these field values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, `source_relation`, and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712101393.1361852, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"", "raw_code": "-- depends_on: {{ ref('stg_workday__worker_position_organization_base') }}\n{{ config(enabled=var('employee_history_enabled', False)) }}\n\n{% if execute %} \n {% set first_last_date_query %}\n with min_max_values as (\n select \n min(_fivetran_start) as min_start,\n max(_fivetran_start) as max_start \n from {{ ref('stg_workday__worker_position_organization_base') }}\n )\n\n select \n min_start,\n case when max_start >= {{ dbt.current_timestamp() }}\n then max_start\n else {{ dbt.date_trunc('day', dbt.current_timestamp()) }} \n end as max_date\n from min_max_values\n\n {% endset %}\n\n {% set start_date = run_query(first_last_date_query).columns[0][0]|string %}\n {% set last_date = run_query(first_last_date_query).columns[1][0]|string %}\n\n{# If only compiling, creates range going back 1 year #}\n{% else %} \n {% set start_date = dbt.dateadd(\"year\", \"-2\", \"current_date\") %} -- Arbitrarily picked. Choose a more appropriate default if necessary.\n {% set last_date = dbt.dateadd(\"year\", \"-1\", \"current_date\") %}\n{% endif %}\n\nwith spine as (\n {# Prioritizes variables over calculated dates #}\n {# Arbitrarily picked employee_history_start_date variable value. Choose a more appropriate default if necessary. #}\n {{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date = \"greatest(cast('\" ~ start_date[0:10] ~ \"' as date), cast('\" ~ var('employee_history_start_date','2005-03-01') ~ \"' as date))\",\n end_date = \"cast('\" ~ last_date[0:10] ~ \"'as date)\"\n )\n }}\n),\n\nworker_position_org_history as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_history') }}\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['spine.date_day',\n 'get_latest_daily_value.history_unique_key']) }} \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n _fivetran_start,\n _fivetran_end,\n _fivetran_active,\n _fivetran_date,\n history_unique_key,\n index,\n date_of_pay_group_assignment,\n primary_business_site,\n is_used_in_change_organization_assignments\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }})\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }})\n)\n\nselect * \nfrom daily_history", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp", "macro.dbt.current_timestamp", "macro.dbt.date_trunc", "macro.dbt.run_query"], "nodes": ["model.workday.stg_workday__worker_position_organization_base", "model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__worker_position_org_daily_history.sql", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n\n\n \n \n\n \n \n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n), spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 6972\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2005-03-01' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-02'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nworker_position_org_history as (\n\n select * \n from __dbt__cte__stg_workday__worker_position_organization_history\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n _fivetran_start,\n _fivetran_end,\n _fivetran_active,\n _fivetran_date,\n history_unique_key,\n index,\n date_of_pay_group_assignment,\n primary_business_site,\n is_used_in_change_organization_assignments\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_position_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_position_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_position_history.sql", "unique_id": "model.workday.stg_workday__worker_position_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_position_history"], "alias": "stg_workday__worker_position_history", "checksum": {"name": "sha256", "checksum": "bc97bcda48a57bad3149f45aae7b36daf46dc32061c7bcaa281fbbbcab8375c8"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id`, `source_relation` and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712101393.185612, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_position_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %}\n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_base')),\n staging_columns=get_worker_position_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as {{ dbt.type_timestamp() }}) as position_effective_date,\n employee_type,\n cast(end_date as {{ dbt.type_timestamp() }}) as position_end_date,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as {{ dbt.type_timestamp() }}) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_position_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_history.sql", "unique_id": "model.workday.stg_workday__worker_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_history"], "alias": "stg_workday__worker_history", "checksum": {"name": "sha256", "checksum": "d53da2e60d3a239d9d0a6c3cf1b733df3ef3c1671f6432a0c7bad7017eb6ef5c"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id`, `source_relation` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712101393.184255, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_base')),\n staging_columns=get_worker_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as {{ dbt.type_timestamp() }}) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "nodes": ["model.workday.stg_workday__worker_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__personal_information_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__personal_information_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__personal_information_history.sql", "unique_id": "model.workday.stg_workday__personal_information_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__personal_information_history"], "alias": "stg_workday__personal_information_history", "checksum": {"name": "sha256", "checksum": "f5f3d7da4818c5381dfcd37b1ae3896f7a3b4c4f963aeb8035eb2866579c982e"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id`, `source_relation` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712101393.1822531, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__personal_information_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_base')),\n staging_columns=get_personal_information_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "nodes": ["model.workday.stg_workday__personal_information_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__personal_information_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_position_organization_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_position_organization_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_position_organization_history.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_position_organization_history"], "alias": "stg_workday__worker_position_organization_history", "checksum": {"name": "sha256", "checksum": "bafdee6a223a9eb9a1c8d8272ff66de3a7c34d74682ef3613569c9b80a297f6c"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id`, `position_id`, `organization_id`, `source_relation`, and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712101393.186144, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_organization_base')),\n staging_columns=get_worker_position_organization_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'organization_id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_organization_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_position_organization_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__employee_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/intermediate/int_workday__employee_history.sql", "original_file_path": "models/workday_history/intermediate/int_workday__employee_history.sql", "unique_id": "model.workday.int_workday__employee_history", "fqn": ["workday", "workday_history", "intermediate", "int_workday__employee_history"], "alias": "int_workday__employee_history", "checksum": {"name": "sha256", "checksum": "5c18f885ead273db1df9a2203e804797db6e3cfcb3f0e3554b6f6309ef440998"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "view", "enabled": true}, "created_at": 1712101392.481384, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith worker_history as (\n\n select *\n from {{ ref('stg_workday__worker_history') }}\n),\n\nworker_position_history as (\n\n select *\n from {{ ref('stg_workday__worker_position_history') }}\n),\n\npersonal_information_history as (\n\n select *\n from {{ ref('stg_workday__personal_information_history') }}\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead({{ dbt.dateadd('microsecond', -1, '_fivetran_start') }} ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as {{ dbt.type_timestamp() }}),\n cast('9999-12-31 23:59:59.999000' as {{ dbt.type_timestamp() }})) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select {{ dbt_utils.generate_surrogate_key(['worker_id', 'source_relation', 'position_id', 'position_start_date']) }} as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select {{ dbt_utils.generate_surrogate_key(['employee_id', '_fivetran_date']) }} as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}, {"name": "stg_workday__worker_position_history", "package": null, "version": null}, {"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history", "model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/intermediate/int_workday__employee_history.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n), worker_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_history\n),\n\nworker_position_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_history\n),\n\npersonal_information_history as (\n\n select *\n from __dbt__cte__stg_workday__personal_information_history\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select md5(cast(coalesce(cast(employee_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_position_enriched": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_position_enriched", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_position_enriched.sql", "original_file_path": "models/intermediate/int_workday__worker_position_enriched.sql", "unique_id": "model.workday.int_workday__worker_position_enriched", "fqn": ["workday", "intermediate", "int_workday__worker_position_enriched"], "alias": "int_workday__worker_position_enriched", "checksum": {"name": "sha256", "checksum": "0bcb8eaaab77feebef76105a810b2f955a424dab91401003170763a691f1bc6d"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712101392.489185, "relation_name": null, "raw_code": "with worker_position_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker_position') }}\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_position_enriched.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__personal_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__personal_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__personal_details.sql", "original_file_path": "models/intermediate/int_workday__personal_details.sql", "unique_id": "model.workday.int_workday__personal_details", "fqn": ["workday", "intermediate", "int_workday__personal_details"], "alias": "int_workday__personal_details", "checksum": {"name": "sha256", "checksum": "594516db9541d923dcc1958d6ed5747fb91aee48aaa01e0acf8fcbd2fb1a8950"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712101392.4944499, "relation_name": null, "raw_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from {{ ref('stg_workday__personal_information') }}\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from {{ ref('stg_workday__person_name') }}\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from {{ ref('stg_workday__person_contact_email_address') }}\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n {{ fivetran_utils.string_agg('distinct ethnicity_code', \"', '\" ) }} as ethnicity_codes\n from {{ ref('stg_workday__personal_information_ethnicity') }}\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from {{ ref('stg_workday__military_service') }}\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}, {"name": "stg_workday__person_name", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}, {"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.workday.stg_workday__personal_information", "model.workday.stg_workday__person_name", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__personal_information_ethnicity", "model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__personal_details.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_details.sql", "original_file_path": "models/intermediate/int_workday__worker_details.sql", "unique_id": "model.workday.int_workday__worker_details", "fqn": ["workday", "intermediate", "int_workday__worker_details"], "alias": "int_workday__worker_details", "checksum": {"name": "sha256", "checksum": "6004df52c6e8acb2f9eb07f0e02e5fb9f694a9f8c3cb3d129916e686039ffd7a"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712101392.498257, "relation_name": null, "raw_code": "with worker_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker') }}\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then {{ dbt.datediff('hire_date', 'current_date', 'day') }}\n else {{ dbt.datediff('hire_date', 'termination_date', 'day') }}\n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_details.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_employee_enhanced": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_employee_enhanced", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_employee_enhanced.sql", "original_file_path": "models/intermediate/int_workday__worker_employee_enhanced.sql", "unique_id": "model.workday.int_workday__worker_employee_enhanced", "fqn": ["workday", "intermediate", "int_workday__worker_employee_enhanced"], "alias": "int_workday__worker_employee_enhanced", "checksum": {"name": "sha256", "checksum": "b304988457480f06f3bbc052fb27d7d6af37592d243606c4acf783558786aa1d"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712101392.501843, "relation_name": null, "raw_code": "with int_worker_base as (\n\n select * \n from {{ ref('int_workday__worker_details') }} \n),\n\nint_worker_personal_details as (\n\n select * \n from {{ ref('int_workday__personal_details') }} \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from {{ ref('int_workday__worker_position_enriched') }} \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "language": "sql", "refs": [{"name": "int_workday__worker_details", "package": null, "version": null}, {"name": "int_workday__personal_details", "package": null, "version": null}, {"name": "int_workday__worker_position_enriched", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.int_workday__worker_details", "model.workday.int_workday__personal_details", "model.workday.int_workday__worker_position_enriched"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_employee_enhanced.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_details", "sql": " __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n)"}, {"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__personal_details", "sql": " __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n)"}, {"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_position_enriched", "sql": " __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "employee_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__employee_overview_employee_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__employee_overview_employee_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.unique_workday__employee_overview_employee_id.b01e19996c", "fqn": ["workday", "unique_workday__employee_overview_employee_id"], "alias": "unique_workday__employee_overview_employee_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101392.907291, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/unique_workday__employee_overview_employee_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is not null\ngroup by employee_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "employee_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_overview_employee_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_overview_employee_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "fqn": ["workday", "not_null_workday__employee_overview_employee_id"], "alias": "not_null_workday__employee_overview_employee_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101392.908441, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__employee_overview_employee_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_overview_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_overview_worker_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "fqn": ["workday", "not_null_workday__employee_overview_worker_id"], "alias": "not_null_workday__employee_overview_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101392.909355, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__employee_overview_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__job_overview_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__job_overview_job_profile_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "fqn": ["workday", "not_null_workday__job_overview_job_profile_id"], "alias": "not_null_workday__job_overview_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101392.9104111, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__job_overview_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656"}, "created_at": 1712101392.9114811, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656\") }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.not_null_workday__position_overview_position_id.603beb3f22": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__position_overview_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__position_overview_position_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "fqn": ["workday", "not_null_workday__position_overview_position_id"], "alias": "not_null_workday__position_overview_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101392.9184651, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__position_overview_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e"}, "created_at": 1712101392.919374, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e\") }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "fqn": ["workday", "not_null_workday__organization_overview_organization_id"], "alias": "not_null_workday__organization_overview_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101392.92214, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_role_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "fqn": ["workday", "not_null_workday__organization_overview_organization_role_id"], "alias": "not_null_workday__organization_overview_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101392.9232152, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1"}, "created_at": 1712101392.924219, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1\") }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "fqn": ["workday", "staging", "not_null_stg_workday__job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.036512, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1"}, "created_at": 1712101393.0377622, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id\n from __dbt__cte__stg_workday__job_profile\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_family_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.0402539, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.041163, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id"], "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378"}, "created_at": 1712101393.042062, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from __dbt__cte__stg_workday__job_family_job_profile\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.044495, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id"], "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd"}, "created_at": 1712101393.045407, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id\n from __dbt__cte__stg_workday__job_family\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_group_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.04796, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af"}, "created_at": 1712101393.048873, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4"}, "created_at": 1712101393.049784, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from __dbt__cte__stg_workday__job_family_job_family_group\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_group_job_family_group_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_family_group_job_family_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.052115, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_group_job_family_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_group\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5"}, "created_at": 1712101393.0530298, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_group_id\n from __dbt__cte__stg_workday__job_family_group\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_id"], "alias": "not_null_stg_workday__organization_role_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.0560331, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_role_id"], "alias": "not_null_stg_workday__organization_role_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.056948, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_role_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id"], "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908"}, "created_at": 1712101393.0578408, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from __dbt__cte__stg_workday__organization_role\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_worker_code", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_worker_code", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_worker_code"], "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda"}, "created_at": 1712101393.060225, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_worker_code\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_worker_code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_worker_code", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_id"], "alias": "not_null_stg_workday__organization_role_worker_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.061126, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_role_id"], "alias": "not_null_stg_workday__organization_role_worker_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.062037, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select role_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "role_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_worker_code", "organization_id", "role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id"], "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a"}, "created_at": 1712101393.06312, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from __dbt__cte__stg_workday__organization_role_worker\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_job_family_id"], "alias": "not_null_stg_workday__organization_job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.065946, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_organization_id"], "alias": "not_null_stg_workday__organization_job_family_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.0669272, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id"], "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456"}, "created_at": 1712101393.0680609, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from __dbt__cte__stg_workday__organization_job_family\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_organization_id"], "alias": "not_null_stg_workday__organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.070622, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id"], "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5"}, "created_at": 1712101393.0716941, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id\n from __dbt__cte__stg_workday__organization\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_organization_id"], "alias": "not_null_stg_workday__position_organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.0739388, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_position_id"], "alias": "not_null_stg_workday__position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.075414, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id"], "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc"}, "created_at": 1712101393.0765078, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from __dbt__cte__stg_workday__position_organization\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "fqn": ["workday", "staging", "not_null_stg_workday__position_position_id"], "alias": "not_null_stg_workday__position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.07884, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32"}, "created_at": 1712101393.079762, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32\") }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id\n from __dbt__cte__stg_workday__position\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_job_profile_id"], "alias": "not_null_stg_workday__position_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.0819032, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_position_id"], "alias": "not_null_stg_workday__position_job_profile_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.082976, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id"], "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62"}, "created_at": 1712101393.083998, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from __dbt__cte__stg_workday__position_job_profile\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "fqn": ["workday", "staging", "not_null_stg_workday__worker_worker_id"], "alias": "not_null_stg_workday__worker_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.087203, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33"}, "created_at": 1712101393.088319, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__worker\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_worker_id"], "alias": "not_null_stg_workday__personal_information_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.090904, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13"}, "created_at": 1712101393.0920682, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__personal_information\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_worker_id"], "alias": "not_null_stg_workday__person_name_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.0953119, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_name\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_name_type", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_person_name_type", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_person_name_type.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_person_name_type"], "alias": "not_null_stg_workday__person_name_person_name_type", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.096253, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_person_name_type.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_name_type\nfrom __dbt__cte__stg_workday__person_name\nwhere person_name_type is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_name_type", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_name_type"], "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type"], "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574"}, "created_at": 1712101393.097153, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from __dbt__cte__stg_workday__person_name\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_worker_id"], "alias": "not_null_stg_workday__personal_information_ethnicity_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.099632, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ethnicity_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_ethnicity_id"], "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5"}, "created_at": 1712101393.100553, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select ethnicity_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere ethnicity_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ethnicity_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "ethnicity_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id"], "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5"}, "created_at": 1712101393.1014552, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__military_service_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__military_service_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "fqn": ["workday", "staging", "not_null_stg_workday__military_service_worker_id"], "alias": "not_null_stg_workday__military_service_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.103832, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__military_service_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__military_service\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9"}, "created_at": 1712101393.1052642, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9\") }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__military_service\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_contact_email_address_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id"], "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08"}, "created_at": 1712101393.1078532, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_contact_email_address_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere person_contact_email_address_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_contact_email_address_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_contact_email_address_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_worker_id"], "alias": "not_null_stg_workday__person_contact_email_address_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.108767, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_contact_email_address_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_contact_email_address_id"], "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id"], "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb"}, "created_at": 1712101393.109665, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from __dbt__cte__stg_workday__person_contact_email_address\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_position_id"], "alias": "not_null_stg_workday__worker_position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.112054, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_worker_id"], "alias": "not_null_stg_workday__worker_position_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.112957, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7"}, "created_at": 1712101393.1138592, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from __dbt__cte__stg_workday__worker_position\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "leave_request_event_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_leave_request_event_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_leave_request_event_id"], "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308"}, "created_at": 1712101393.116662, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select leave_request_event_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere leave_request_event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "leave_request_event_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_leave_status_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_worker_id"], "alias": "not_null_stg_workday__worker_leave_status_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.117568, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_leave_status_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "leave_request_event_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id"], "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f"}, "created_at": 1712101393.118468, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from __dbt__cte__stg_workday__worker_leave_status\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_position_id"], "alias": "not_null_stg_workday__worker_position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.120797, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_worker_id"], "alias": "not_null_stg_workday__worker_position_organization_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.121691, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_organization_id"], "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23"}, "created_at": 1712101393.122561, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "position_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id"], "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926"}, "created_at": 1712101393.1236029, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from __dbt__cte__stg_workday__worker_position_organization\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "employee_day_id", "model": "{{ get_where_subquery(ref('workday__employee_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__employee_daily_history_employee_day_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__employee_daily_history_employee_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269", "fqn": ["workday", "workday_history", "unique_workday__employee_daily_history_employee_day_id"], "alias": "unique_workday__employee_daily_history_employee_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.136657, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__employee_daily_history_employee_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is not null\ngroup by employee_day_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_day_id", "file_key_name": "models.workday__employee_daily_history", "attached_node": "model.workday.workday__employee_daily_history"}, "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "employee_day_id", "model": "{{ get_where_subquery(ref('workday__employee_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_daily_history_employee_day_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_daily_history_employee_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "fqn": ["workday", "workday_history", "not_null_workday__employee_daily_history_employee_day_id"], "alias": "not_null_workday__employee_daily_history_employee_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.137674, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__employee_daily_history_employee_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_day_id", "file_key_name": "models.workday__employee_daily_history", "attached_node": "model.workday.workday__employee_daily_history"}, "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__monthly_summary_metrics_month", "resource_type": "test", "package_name": "workday", "path": "unique_workday__monthly_summary_metrics_month.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab", "fqn": ["workday", "workday_history", "unique_workday__monthly_summary_metrics_month"], "alias": "unique_workday__monthly_summary_metrics_month", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.1742709, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__monthly_summary"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__monthly_summary_metrics_month.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n metrics_month as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is not null\ngroup by metrics_month\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metrics_month", "file_key_name": "models.workday__monthly_summary", "attached_node": "model.workday.workday__monthly_summary"}, "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__monthly_summary_metrics_month", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__monthly_summary_metrics_month.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "fqn": ["workday", "workday_history", "not_null_workday__monthly_summary_metrics_month"], "alias": "not_null_workday__monthly_summary_metrics_month", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.175191, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__monthly_summary"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__monthly_summary_metrics_month.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metrics_month\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metrics_month", "file_key_name": "models.workday__monthly_summary", "attached_node": "model.workday.workday__monthly_summary"}, "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "wpo_day_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__worker_position_org_daily_history_wpo_day_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__worker_position_org_daily_history_wpo_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21", "fqn": ["workday", "workday_history", "unique_workday__worker_position_org_daily_history_wpo_day_id"], "alias": "unique_workday__worker_position_org_daily_history_wpo_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.1760871, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__worker_position_org_daily_history_wpo_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n wpo_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is not null\ngroup by wpo_day_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "wpo_day_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "wpo_day_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_wpo_day_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_wpo_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_wpo_day_id"], "alias": "not_null_workday__worker_position_org_daily_history_wpo_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.177108, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_wpo_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect wpo_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "wpo_day_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_worker_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_worker_id"], "alias": "not_null_workday__worker_position_org_daily_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.177988, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_position_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_position_id"], "alias": "not_null_workday__worker_position_org_daily_history_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.1793652, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_organization_id"], "alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632"}, "created_at": 1712101393.180387, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632\") }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__personal_information_history_history_unique_key"], "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2"}, "created_at": 1712101393.1865861, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__personal_information_history_history_unique_key"], "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3"}, "created_at": 1712101393.1875799, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__personal_information_history_worker_id"], "alias": "not_null_stg_workday__personal_information_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.188839, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__personal_information_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_history_history_unique_key"], "alias": "unique_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.190059, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_history_history_unique_key"], "alias": "not_null_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.191222, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_history_worker_id"], "alias": "not_null_stg_workday__worker_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.1921642, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_position_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_position_history_history_unique_key"], "alias": "unique_stg_workday__worker_position_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.193129, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_position_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9"}, "created_at": 1712101393.194192, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_worker_id"], "alias": "not_null_stg_workday__worker_position_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.195124, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_position_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_position_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_position_id"], "alias": "not_null_stg_workday__worker_position_history_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.196183, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_position_history_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22"}, "created_at": 1712101393.197071, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6"}, "created_at": 1712101393.197945, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_worker_id"], "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a"}, "created_at": 1712101393.199209, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_position_id"], "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441"}, "created_at": 1712101393.2004852, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_organization_id"], "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0"}, "created_at": 1712101393.2014499, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}}, "sources": {"source.workday.workday.job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_profile", "fqn": ["workday", "staging", "workday", "job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"id": {"name": "id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_job_code_in_name": {"name": "include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "public_job": {"name": "public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "title": {"name": "title", "description": "Title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "created_at": 1712101393.2035682}, "source.workday.workday.job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_profile", "fqn": ["workday", "staging", "workday", "job_family_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "created_at": 1712101393.203776}, "source.workday.workday.job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family", "fqn": ["workday", "staging", "workday", "job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "created_at": 1712101393.2038798}, "source.workday.workday.job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_family_group", "fqn": ["workday", "staging", "workday", "job_family_job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "created_at": 1712101393.2039602}, "source.workday.workday.job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_group", "fqn": ["workday", "staging", "workday", "job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"id": {"name": "id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "created_at": 1712101393.204042}, "source.workday.workday.organization_role": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role", "fqn": ["workday", "staging", "workday", "organization_role"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "created_at": 1712101393.204117}, "source.workday.workday.organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role_worker", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role_worker", "fqn": ["workday", "staging", "workday", "organization_role_worker"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_worker_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"associated_worker_id": {"name": "associated_worker_id", "description": "Identifier for the worker associated with the organization role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "created_at": 1712101393.204193}, "source.workday.workday.organization_job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_job_family", "fqn": ["workday", "staging", "workday", "organization_job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "created_at": 1712101393.2042692}, "source.workday.workday.organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization", "fqn": ["workday", "staging", "workday", "organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Identifier for the organization.", "columns": {"id": {"name": "id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_manager_in_name": {"name": "include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_organization_code_in_name": {"name": "include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location": {"name": "location", "description": "Location associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sub_type": {"name": "sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "created_at": 1712101393.2043798}, "source.workday.workday.position_organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_organization", "fqn": ["workday", "staging", "workday", "position_organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "created_at": 1712101393.2044559}, "source.workday.workday.position": {"database": "postgres", "schema": "workday_integration_tests", "name": "position", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position", "fqn": ["workday", "staging", "workday", "position"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_eligible": {"name": "academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_overlap": {"name": "available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_recruiting": {"name": "available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "created_at": 1712101393.204562}, "source.workday.workday.position_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_job_profile", "fqn": ["workday", "staging", "workday", "position_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "created_at": 1712101393.204802}, "source.workday.workday.worker_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_history", "fqn": ["workday", "staging", "workday", "worker_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"id": {"name": "id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "has_international_assignment": {"name": "has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_rescinded": {"name": "hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "not_returning": {"name": "not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regrettable_termination": {"name": "regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rehire": {"name": "rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retired": {"name": "retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "return_unknown": {"name": "return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "terminated": {"name": "terminated", "description": "Flag indicating whether the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_involuntary": {"name": "termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "created_at": 1712101393.204967}, "source.workday.workday.personal_information_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_history", "fqn": ["workday", "staging", "workday", "personal_information_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The personal information associated with each worker.", "columns": {"id": {"name": "id", "description": "The identifier for each personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hispanic_or_latino": {"name": "hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_hukou": {"name": "local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tobacco_use": {"name": "tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "created_at": 1712101393.2050781}, "source.workday.workday.person_name": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_name", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_name", "fqn": ["workday", "staging", "workday", "person_name"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_name_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the name information for an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "created_at": 1712101393.20518}, "source.workday.workday.personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_ethnicity", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_ethnicity", "fqn": ["workday", "staging", "workday", "personal_information_ethnicity"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_ethnicity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "created_at": 1712101393.2052548}, "source.workday.workday.military_service": {"database": "postgres", "schema": "workday_integration_tests", "name": "military_service", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.military_service", "fqn": ["workday", "staging", "workday", "military_service"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_military_service_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about an individual's military service in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "created_at": 1712101393.205361}, "source.workday.workday.person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_contact_email_address", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_contact_email_address", "fqn": ["workday", "staging", "workday", "person_contact_email_address"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_contact_email_address_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "created_at": 1712101393.205438}, "source.workday.workday.worker_position_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_history", "fqn": ["workday", "staging", "workday", "worker_position_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the positions held by workers in the Workday system", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location": {"name": "business_site_summary_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "exclude_from_head_count": {"name": "exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_exempt": {"name": "job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_paid_fte": {"name": "specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_working_fte": {"name": "specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "created_at": 1712101393.2055738}, "source.workday.workday.worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_leave_status", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_leave_status", "fqn": ["workday", "staging", "workday", "worker_leave_status"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_leave_status_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the leave status of workers in the Workday system.", "columns": {"leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_effect": {"name": "benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caesarean_section_birth": {"name": "caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "multiple_child_indicator": {"name": "multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_leave": {"name": "on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_effect": {"name": "payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "single_parent_indicator": {"name": "single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stock_vesting_effect": {"name": "stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_related": {"name": "work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "created_at": 1712101393.2056892}, "source.workday.workday.worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_organization_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_organization_history", "fqn": ["workday", "staging", "workday", "worker_position_organization_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_organization_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "created_at": 1712101393.205769}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.136162, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.136389, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.136495, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.136597, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1367, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n when 'm' then 'MATERIALIZED VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1381068, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.138531, "supported_languages": null}, "macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1391602, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.139288, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1475468, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.148043, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.148368, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.148736, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1492, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.149611, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.149782, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1501088, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1506078, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.151488, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.151681, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.151981, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.152236, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.15263, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.152839, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1533859, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1535769, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.153684, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.153847, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.153973, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1543481, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.155013, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.155148, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.155536, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1557708, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.156012, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.156802, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }};\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.157247, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.157516, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.157851, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1579862, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.158697, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1588538, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.158974, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1594722, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1596239, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.159817, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.160356, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.163197, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.163338, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1637828, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.164147, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.165102, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.165278, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.165411, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.165697, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1658518, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.166187, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1664598, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1667998, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.167191, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.167438, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.170509, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.170665, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.170861, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.171519, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.171672, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.17183, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.173095, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1744041, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.178037, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.178308, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.178466, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1785479, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.178685, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1787891, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.178978, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.179801, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.179976, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.180214, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.180605, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.186141, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.189047, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1895292, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.189824, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.190182, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1905391, "supported_languages": null}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.194863, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.195337, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.195675, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.197068, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.197315, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.197933, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2007098, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.203459, "supported_languages": ["sql"]}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.204865, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2053509, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.206157, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.20645, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2071638, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2127411, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.214218, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.214466, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.215538, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2158232, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.216435, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.217057, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2179031, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.218137, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.218317, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.218591, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.218872, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2191591, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2193432, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2195961, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.219775, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.219924, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.220258, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.224702, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.229404, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.230779, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2321239, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.232957, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.233275, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.233391, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.233699, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation }} clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.233841, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {% if target_relation and defer_relation and target_relation == defer_relation %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation) }}\n {% else %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endif %}\n\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.237602, "supported_languages": ["sql"]}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.24082, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.245049, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.245871, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.24609, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.246521, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.246701, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2468228, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2469518, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.247058, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.247203, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2473102, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.247734, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2479072, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.249095, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.249525, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.250025, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.250905, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.251724, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2523808, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.253624, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.254007, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2548301, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.255381, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2556832, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2558668, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.256045, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.256781, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation_type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.257935, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.258282, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.258508, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.258799, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.258987, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.259597, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.259978, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.260174, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.260437, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2607539, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.261004, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.26143, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.261844, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2621481, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.262346, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{ return(adapter.dispatch('drop_materialized_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.262605, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.262708, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2629619, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.263103, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.26338, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.263584, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.26383, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.263967, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.264522, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.26469, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.26495, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2650828, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.265326, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.265461, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2663429, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.266453, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2669282, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.267078, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.267204, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.268395, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.268739, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2690508, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{ return(adapter.dispatch('drop_table', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.269292, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.269386, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2696269, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.269757, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.269993, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.270124, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.270875, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.271042, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.271424, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.272279, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.272793, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.273, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.273173, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{ return(adapter.dispatch('drop_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.273463, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.273559, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.27441, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.274579, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2757812, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.275977, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.276211, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2764769, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.276611, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.277021, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2772758, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.277466, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2778602, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.278199, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.278473, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.278705, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.279202, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.280499, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.28101, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.281277, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.283059, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.284354, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.285066, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.28529, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.285526, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.285604, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.286301, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.286931, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.287167, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2875268, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2878451, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.288003, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.288235, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.288362, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.289121, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.289522, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2897, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.290176, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2904162, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.290514, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.290825, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.29098, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.291183, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2915132, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.291755, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2918851, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.292196, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.292331, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.292916, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2932868, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2935941, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.293799, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.294089, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.294218, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.294453, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.294594, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.294812, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.294954, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.295177, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.295273, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2955258, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.295649, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.295865, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.296028, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2968462, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.29698, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.297127, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2972631, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2974038, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.297536, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2976792, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.297837, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.297977, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.298112, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.298256, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2983859, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.298529, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2986581, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2989068, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.299026, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.299242, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.299337, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.299691, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.299932, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.300063, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3005178, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.300663, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.300861, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.301126, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.301246, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.301582, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.301803, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.302253, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3024452, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.30289, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.303095, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.303293, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.303503, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3040059, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.304163, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.304299, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.304404, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3046799, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3047628, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.304925, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.305106, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.305943, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.306081, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3062332, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.306622, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.306797, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.306925, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3070688, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3071842, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.309013, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3091662, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.309361, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3096251, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.309844, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.310122, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.310287, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.310507, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.310724, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3112168, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.31142, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.311549, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3119192, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.312447, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.312785, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.313007, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.31465, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3147662, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.314929, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.315041, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.315376, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.315562, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.31567, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.315882, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3161411, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3163872, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.31668, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3169122, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.317559, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.317744, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.317983, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3182132, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3193002, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header -%}\n {{ sql_header }}\n {%- endif -%}\n {%- if limit is not none -%}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n {%- else -%}\n {{ compiled_code }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.319851, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "{% macro get_limit_subquery_sql(sql, limit) %}\n {{ adapter.dispatch('get_limit_subquery_sql', 'dbt')(sql, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.32003, "supported_languages": null}, "macro.dbt.default__get_limit_subquery_sql": {"name": "default__get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_subquery_sql", "macro_sql": "{% macro default__get_limit_subquery_sql(sql, limit) %}\n select *\n from (\n {{ sql }}\n ) as model_limit_subq\n limit {{ limit }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3201642, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3207822, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.32094, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.321124, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3212779, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.321526, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.322059, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.324685, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.324917, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3251, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3254259, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.325592, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.325727, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.325887, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.326103, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.326286, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.326553, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3267221, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.326869, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3270159, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.327164, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.327362, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.327513, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3294442, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.329588, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.329858, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3300521, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3302321, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.330396, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n cast(null as {{ col['data_type'] }}) as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.33148, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3317811, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.331946, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.332257, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.332465, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.332999, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.333236, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.334156, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3357701, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.335927, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3367648, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.337173, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.337733, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.33818, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.338251, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.338736, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.338961, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.339233, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3394911, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.339828, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.340289, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.340726, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3414469, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.341739, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.342036, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.343028, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3439848, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3447978, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.34578, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3463979, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.346713, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.347449, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.348277, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.348822, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.34923, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.349771, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.350188, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.350662, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.351, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3515809, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n where {{ column_name }} is not null\n limit 1\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.352355, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3529038, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3534698, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.353974, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.354282, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.354635, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.354955, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.355527, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3562582, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.357067, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3581061, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3588638, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.359692, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.360167, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.360447, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.363486, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.364916, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.36516, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3653069, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.365699, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.365941, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.366118, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.366346, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3665001, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.367056, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.368, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.368741, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.369334, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3695831, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.369996, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3704162, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.370971, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3712919, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.371629, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.372331, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.37318, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.373919, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.374283, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3744519, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.374908, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3754911, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.376234, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.376592, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.376842, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.378101, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.379798, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3810408, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.382582, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3829079, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.383041, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3858528, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.38929, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.389623, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.389858, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3905752, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3907871, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.390975, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.391155, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.391305, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.391472, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.391833, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.392062, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3924181, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.392927, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3932512, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.393559, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.395097, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.39545, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3962398, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3967848, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.397877, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.399362, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.400362, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4011478, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4015942, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.402475, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.403178, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.403597, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.403766, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.404114, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4046469, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.40505, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.405607, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.406055, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.406181, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.406302, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.406422, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4068632, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4076002, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.408553, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.408798, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.409302, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4100149, "supported_languages": null}, "macro.workday.get_person_contact_email_address_columns": {"name": "get_person_contact_email_address_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_contact_email_address_columns.sql", "original_file_path": "macros/get_person_contact_email_address_columns.sql", "unique_id": "macro.workday.get_person_contact_email_address_columns", "macro_sql": "{% macro get_person_contact_email_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_address\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_comment\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4108229, "supported_languages": null}, "macro.workday.get_military_service_columns": {"name": "get_military_service_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_military_service_columns.sql", "original_file_path": "macros/get_military_service_columns.sql", "unique_id": "macro.workday.get_military_service_columns", "macro_sql": "{% macro get_military_service_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"discharge_date\", \"datatype\": \"date\"},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"rank\", \"datatype\": dbt.type_string()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status_begin_date\", \"datatype\": \"date\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.412159, "supported_languages": null}, "macro.workday.get_position_job_profile_columns": {"name": "get_position_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_job_profile_columns.sql", "original_file_path": "macros/get_position_job_profile_columns.sql", "unique_id": "macro.workday.get_position_job_profile_columns", "macro_sql": "{% macro get_position_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.413356, "supported_languages": null}, "macro.workday.get_job_family_job_family_group_columns": {"name": "get_job_family_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_job_family_group_columns", "macro_sql": "{% macro get_job_family_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.413932, "supported_languages": null}, "macro.workday.get_worker_history_columns": {"name": "get_worker_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_history_columns.sql", "original_file_path": "macros/get_worker_history_columns.sql", "unique_id": "macro.workday.get_worker_history_columns", "macro_sql": "{% macro get_worker_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_date\", \"datatype\": \"date\"},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"active_status_date\", \"datatype\": \"date\"},\n {\"name\": \"annual_currency_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_service_date\", \"datatype\": \"date\"},\n {\"name\": \"company_service_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_effective_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"continuous_service_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_assignment_details\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_end_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_frequency_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_pay_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"contract_vendor_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_entered_workforce\", \"datatype\": \"date\"},\n {\"name\": \"days_unemployed\", \"datatype\": dbt.type_float()},\n {\"name\": \"eligible_for_hire\", \"datatype\": dbt.type_string()},\n {\"name\": \"eligible_for_rehire_on_latest_termination\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_date_of_return\", \"datatype\": \"date\"},\n {\"name\": \"expected_retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"has_international_assignment\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hire_date\", \"datatype\": \"date\"},\n {\"name\": \"hire_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"hire_rescinded\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_datefor_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"local_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"months_continuous_prior_employment\", \"datatype\": dbt.type_float()},\n {\"name\": \"not_returning\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"original_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"pay_group_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"primary_termination_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"probation_end_date\", \"datatype\": \"date\"},\n {\"name\": \"probation_start_date\", \"datatype\": \"date\"},\n {\"name\": \"reason_reference_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regrettable_termination\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"rehire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"resignation_date\", \"datatype\": \"date\"},\n {\"name\": \"retired\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"retirement_eligibility_date\", \"datatype\": \"date\"},\n {\"name\": \"return_unknown\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"seniority_date\", \"datatype\": \"date\"},\n {\"name\": \"severance_date\", \"datatype\": \"date\"},\n {\"name\": \"terminated\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_date\", \"datatype\": \"date\"},\n {\"name\": \"termination_involuntary\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"time_off_service_date\", \"datatype\": \"date\"},\n {\"name\": \"universal_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vesting_date\", \"datatype\": \"date\"},\n {\"name\": \"worker_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.425676, "supported_languages": null}, "macro.workday.get_job_family_group_columns": {"name": "get_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_group_columns", "macro_sql": "{% macro get_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_group_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.426538, "supported_languages": null}, "macro.workday.get_worker_leave_status_columns": {"name": "get_worker_leave_status_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_leave_status_columns.sql", "original_file_path": "macros/get_worker_leave_status_columns.sql", "unique_id": "macro.workday.get_worker_leave_status_columns", "macro_sql": "{% macro get_worker_leave_status_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"adoption_notification_date\", \"datatype\": \"date\"},\n {\"name\": \"adoption_placement_date\", \"datatype\": \"date\"},\n {\"name\": \"age_of_dependent\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"caesarean_section_birth\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"child_birth_date\", \"datatype\": \"date\"},\n {\"name\": \"child_sdate_of_death\", \"datatype\": \"date\"},\n {\"name\": \"continuous_service_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"date_baby_arrived_home_from_hospital\", \"datatype\": \"date\"},\n {\"name\": \"date_child_entered_country\", \"datatype\": \"date\"},\n {\"name\": \"date_of_recall\", \"datatype\": \"date\"},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimated_leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_due_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"last_date_for_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_entitlement_override\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"leave_of_absence_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_request_event_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_return_event\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_start_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_status_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_type_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_during_leave\", \"datatype\": dbt.type_string()},\n {\"name\": \"multiple_child_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"number_of_babies_adopted_children\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_child_dependents\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_births\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_maternity_leaves\", \"datatype\": dbt.type_float()},\n {\"name\": \"on_leave\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"paid_time_off_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"payroll_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"single_parent_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"social_security_disability_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"stock_vesting_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"stop_payment_date\", \"datatype\": \"date\"},\n {\"name\": \"week_of_confinement\", \"datatype\": \"date\"},\n {\"name\": \"work_related\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4313679, "supported_languages": null}, "macro.workday.get_organization_role_worker_columns": {"name": "get_organization_role_worker_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_worker_columns.sql", "original_file_path": "macros/get_organization_role_worker_columns.sql", "unique_id": "macro.workday.get_organization_role_worker_columns", "macro_sql": "{% macro get_organization_role_worker_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"associated_worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.432147, "supported_languages": null}, "macro.workday.get_job_profile_columns": {"name": "get_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_profile_columns.sql", "original_file_path": "macros/get_job_profile_columns.sql", "unique_id": "macro.workday.get_job_profile_columns", "macro_sql": "{% macro get_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_job_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"public_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"referral_payment_plan\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_membership_requirement\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_study_award_source_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_study_requirement_option_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.435029, "supported_languages": null}, "macro.workday.get_organization_role_columns": {"name": "get_organization_role_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_columns.sql", "original_file_path": "macros/get_organization_role_columns.sql", "unique_id": "macro.workday.get_organization_role_columns", "macro_sql": "{% macro get_organization_role_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_role_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.435724, "supported_languages": null}, "macro.workday.get_person_name_columns": {"name": "get_person_name_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_name_columns.sql", "original_file_path": "macros/get_person_name_columns.sql", "unique_id": "macro.workday.get_person_name_columns", "macro_sql": "{% macro get_person_name_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"additional_name_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name_singapore_malaysia\", \"datatype\": dbt.type_string()},\n {\"name\": \"hereditary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"honorary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_salutation\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"professional_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"religious_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"royal_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tertiary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4393039, "supported_languages": null}, "macro.workday.get_job_family_job_profile_columns": {"name": "get_job_family_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_profile_columns.sql", "original_file_path": "macros/get_job_family_job_profile_columns.sql", "unique_id": "macro.workday.get_job_family_job_profile_columns", "macro_sql": "{% macro get_job_family_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4398668, "supported_languages": null}, "macro.workday.get_worker_position_history_columns": {"name": "get_worker_position_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_history_columns.sql", "original_file_path": "macros/get_worker_position_history_columns.sql", "unique_id": "macro.workday.get_worker_position_history_columns", "macro_sql": "{% macro get_worker_position_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_pay_setup_data_annual_work_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_work_percent_of_year\", \"datatype\": dbt.type_float()},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"business_site_summary_display_language\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_local\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"business_site_summary_time_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"default_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"employee_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"exclude_from_head_count\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"expected_assignment_end_date\", \"datatype\": \"date\"},\n {\"name\": \"external_employee\", \"datatype\": dbt.type_string()},\n {\"name\": \"federal_withholding_fein\", \"datatype\": dbt.type_string()},\n {\"name\": \"frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_time_equivalent_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"headcount_restriction_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"host_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"international_assignment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_primary_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"paid_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"payroll_entity\", \"datatype\": dbt.type_string()},\n {\"name\": \"payroll_file_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regular_paid_equivalent_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"specify_paid_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"specify_working_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"start_international_assignment_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_hours_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_space\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_hours_profile_classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"working_time_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.44768, "supported_languages": null}, "macro.workday.get_personal_information_ethnicity_columns": {"name": "get_personal_information_ethnicity_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_ethnicity_columns.sql", "original_file_path": "macros/get_personal_information_ethnicity_columns.sql", "unique_id": "macro.workday.get_personal_information_ethnicity_columns", "macro_sql": "{% macro get_personal_information_ethnicity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ethnicity_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"ethnicity_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.448499, "supported_languages": null}, "macro.workday.get_personal_information_history_columns": {"name": "get_personal_information_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_history_columns.sql", "original_file_path": "macros/get_personal_information_history_columns.sql", "unique_id": "macro.workday.get_personal_information_history_columns", "macro_sql": "{% macro get_personal_information_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"blood_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"citizenship_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_birth\", \"datatype\": \"date\"},\n {\"name\": \"date_of_death\", \"datatype\": \"date\"},\n {\"name\": \"gender\", \"datatype\": dbt.type_string()},\n {\"name\": \"hispanic_or_latino\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hukou_locality\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_subregion\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_medical_exam_date\", \"datatype\": \"date\"},\n {\"name\": \"last_medical_exam_valid_to\", \"datatype\": \"date\"},\n {\"name\": \"local_hukou\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"marital_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"marital_status_date\", \"datatype\": \"date\"},\n {\"name\": \"medical_exam_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"personnel_file_agency\", \"datatype\": dbt.type_string()},\n {\"name\": \"political_affiliation\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"religion\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_benefit\", \"datatype\": dbt.type_string()},\n {\"name\": \"tobacco_use\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.452705, "supported_languages": null}, "macro.workday.get_worker_position_organization_history_columns": {"name": "get_worker_position_organization_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_organization_history_columns.sql", "original_file_path": "macros/get_worker_position_organization_history_columns.sql", "unique_id": "macro.workday.get_worker_position_organization_history_columns", "macro_sql": "{% macro get_worker_position_organization_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_pay_group_assignment\", \"datatype\": \"date\"},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_business_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"used_in_change_organization_assignments\", \"datatype\": dbt.type_boolean()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.453876, "supported_languages": null}, "macro.workday.get_organization_job_family_columns": {"name": "get_organization_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_job_family_columns.sql", "original_file_path": "macros/get_organization_job_family_columns.sql", "unique_id": "macro.workday.get_organization_job_family_columns", "macro_sql": "{% macro get_organization_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.454485, "supported_languages": null}, "macro.workday.get_job_family_columns": {"name": "get_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_columns.sql", "original_file_path": "macros/get_job_family_columns.sql", "unique_id": "macro.workday.get_job_family_columns", "macro_sql": "{% macro get_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.45525, "supported_languages": null}, "macro.workday.get_organization_columns": {"name": "get_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_columns.sql", "original_file_path": "macros/get_organization_columns.sql", "unique_id": "macro.workday.get_organization_columns", "macro_sql": "{% macro get_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"availability_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"external_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"inactive_date\", \"datatype\": \"date\"},\n {\"name\": \"include_manager_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_organization_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"last_updated_date_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"location\", \"datatype\": dbt.type_string()},\n {\"name\": \"manager_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_owner_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"staffing_model\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"superior_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_availability_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_time_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_worker_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"top_level_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"visibility\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4581828, "supported_languages": null}, "macro.workday.get_position_organization_columns": {"name": "get_position_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_organization_columns.sql", "original_file_path": "macros/get_position_organization_columns.sql", "unique_id": "macro.workday.get_position_organization_columns", "macro_sql": "{% macro get_position_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4587982, "supported_languages": null}, "macro.workday.get_position_columns": {"name": "get_position_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_columns.sql", "original_file_path": "macros/get_position_columns.sql", "unique_id": "macro.workday.get_position_columns", "macro_sql": "{% macro get_position_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_eligible\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"availability_date\", \"datatype\": \"date\"},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_overlap\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_recruiting\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"closed\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"compensation_grade_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_package_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_step_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"earliest_overlap_date\", \"datatype\": \"date\"},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_posting_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_time_type_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_amount_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_percent_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"supervisory_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_for_filled_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_type_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.46225, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.462786, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4636889, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.463851, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4640021, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.464163, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4643042, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.464465, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.465222, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.465826, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.467037, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.467284, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.467552, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.467788, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.468013, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.468261, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.468538, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.468847, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.469184, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4692879, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4693818, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4694788, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.469934, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4705632, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.471494, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.472061, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4729118, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.473392, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4735239, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.473653, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4737742, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4739048, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4766421, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4768069, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.476971, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4771872, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.478921, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.479757, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.479883, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.480125, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4803772, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.480492, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.480608, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.480717, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4808269, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4812632, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.481777, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.482357, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.482582, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.482802, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.48308, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4842749, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.488035, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.48837, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4887092, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.49006, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4905658, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.491085, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.491231, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.491372, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.491526, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4916632, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.491803, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.492794, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4941561, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.494831, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.495018, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.495174, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4953358, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.495488, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4956539, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.495896, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.495997, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.496093, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.496812, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4980211, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4981902, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.49895, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.502542, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.508137, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.509652, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.510006, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.510161, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.510444, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.510837, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.510953, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.511067, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.511167, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.511266, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.5115242, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.511625, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.51172, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.5120971, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.512467, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.workday._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_deleted", "block_contents": "Indicates if the record was soft-deleted by Fivetran."}, "doc.workday._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_synced", "block_contents": "Timestamp the record was synced by Fivetran."}, "doc.workday._fivetran_start": {"name": "_fivetran_start", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_start", "block_contents": "Timestamp when the record was first created or modified in the source."}, "doc.workday._fivetran_end": {"name": "_fivetran_end", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_end", "block_contents": "Timestamp marking the end of a record being active."}, "doc.workday._fivetran_date": {"name": "_fivetran_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_date", "block_contents": "Date when the record was first created or modified in the source."}, "doc.workday._fivetran_active": {"name": "_fivetran_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_active", "block_contents": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE."}, "doc.workday.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.source_relation", "block_contents": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "doc.workday.academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_end_date", "block_contents": "The end date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_start_date", "block_contents": "The start date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year", "block_contents": "The work percentage of the year in the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date", "block_contents": "The end date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date", "block_contents": "The start date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_suffix": {"name": "academic_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_suffix", "block_contents": "The academic suffix, if applicable (e.g., PhD, MD)."}, "doc.workday.academic_tenure_date": {"name": "academic_tenure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_date", "block_contents": "Date when academic tenure is achieved."}, "doc.workday.academic_tenure_eligible": {"name": "academic_tenure_eligible", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_eligible", "block_contents": "Flag indicating whether the position is eligible for academic tenure."}, "doc.workday.active": {"name": "active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active", "block_contents": "Flag indicating the current active status of the worker."}, "doc.workday.active_status_date": {"name": "active_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active_status_date", "block_contents": "Date when the active status was last updated."}, "doc.workday.additional_job_description": {"name": "additional_job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_job_description", "block_contents": "Additional details or information about the job."}, "doc.workday.additional_name_type": {"name": "additional_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_name_type", "block_contents": "Additional type or category for the person name."}, "doc.workday.additional_nationality": {"name": "additional_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_nationality", "block_contents": "Additional nationality associated with the individual."}, "doc.workday.adoption_notification_date": {"name": "adoption_notification_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_notification_date", "block_contents": "The date of adoption notification."}, "doc.workday.adoption_placement_date": {"name": "adoption_placement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_placement_date", "block_contents": "The date of adoption placement."}, "doc.workday.age_of_dependent": {"name": "age_of_dependent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.age_of_dependent", "block_contents": "The age of the dependent associated with the leave status."}, "doc.workday.annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_currency", "block_contents": "Currency used for annual compensation summaries."}, "doc.workday.annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_frequency", "block_contents": "Frequency of currency for annual compensation summaries."}, "doc.workday.annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual compensation summaries."}, "doc.workday.annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.annual_summary_currency": {"name": "annual_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_currency", "block_contents": "Currency used for annual summaries."}, "doc.workday.annual_summary_frequency": {"name": "annual_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_frequency", "block_contents": "Frequency of currency for annual summaries."}, "doc.workday.annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual summaries."}, "doc.workday.annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.associated_worker_id": {"name": "associated_worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.associated_worker_id", "block_contents": "Identifier for the worker associated with the organization role."}, "doc.workday.availability_date": {"name": "availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.availability_date", "block_contents": "Date when the organization becomes available."}, "doc.workday.available_for_hire": {"name": "available_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_hire", "block_contents": "Flag indicating whether the organization is available for hiring."}, "doc.workday.available_for_overlap": {"name": "available_for_overlap", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_overlap", "block_contents": "Flag indicating whether the position is available for overlap with other positions."}, "doc.workday.available_for_recruiting": {"name": "available_for_recruiting", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_recruiting", "block_contents": "Flag indicating whether the position is available for recruiting."}, "doc.workday.benefits_effect": {"name": "benefits_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_effect", "block_contents": "The effect of leave on benefits."}, "doc.workday.benefits_service_date": {"name": "benefits_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_service_date", "block_contents": "Date when the worker's benefits service starts."}, "doc.workday.blood_type": {"name": "blood_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.blood_type", "block_contents": "The blood type of the individual."}, "doc.workday.business_site_summary_display_language": {"name": "business_site_summary_display_language", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_display_language", "block_contents": "The display language of the business site summary."}, "doc.workday.business_site_summary_local": {"name": "business_site_summary_local", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_local", "block_contents": "Local information related to the business site summary."}, "doc.workday.business_site_summary_location": {"name": "business_site_summary_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location", "block_contents": "The location of the business site summary."}, "doc.workday.business_site_summary_location_type": {"name": "business_site_summary_location_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location_type", "block_contents": "The type of location for the business site summary."}, "doc.workday.business_site_summary_name": {"name": "business_site_summary_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_name", "block_contents": "The name associated with the business site summary."}, "doc.workday.business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the business site summary."}, "doc.workday.business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_time_profile", "block_contents": "The time profile associated with the business site summary."}, "doc.workday.business_title": {"name": "business_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_title", "block_contents": "The business title associated with the worker position."}, "doc.workday.caesarean_section_birth": {"name": "caesarean_section_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.caesarean_section_birth", "block_contents": "Indicator for Caesarean section birth."}, "doc.workday.child_birth_date": {"name": "child_birth_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_birth_date", "block_contents": "The date of child birth."}, "doc.workday.child_sdate_of_death": {"name": "child_sdate_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_sdate_of_death", "block_contents": "The start date of child death.>"}, "doc.workday.citizenship_status": {"name": "citizenship_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.citizenship_status", "block_contents": "The citizenship status of the individual."}, "doc.workday.city_of_birth": {"name": "city_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth", "block_contents": "The city of birth of the individual."}, "doc.workday.city_of_birth_code": {"name": "city_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth_code", "block_contents": "The city of birth code of the individual."}, "doc.workday.closed": {"name": "closed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.closed", "block_contents": "Flag indicating whether the position is closed."}, "doc.workday.code": {"name": "code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.code", "block_contents": "Code assigned to the organization for reference and categorization."}, "doc.workday.company_service_date": {"name": "company_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.company_service_date", "block_contents": "Date when the worker's service with the company started."}, "doc.workday.compensation_effective_date": {"name": "compensation_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_effective_date", "block_contents": "Effective date when changes to the worker's compensation take effect."}, "doc.workday.compensation_grade_code": {"name": "compensation_grade_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_code", "block_contents": "Code associated with the compensation grade of the position."}, "doc.workday.compensation_grade_id": {"name": "compensation_grade_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_id", "block_contents": "Identifier for the compensation grade."}, "doc.workday.compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_code", "block_contents": "Code associated with the compensation grade profile of the position."}, "doc.workday.compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_id", "block_contents": "Unique identifier for the compensation grade profile associated with the worker."}, "doc.workday.compensation_package_code": {"name": "compensation_package_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_package_code", "block_contents": "Code associated with the compensation package of the position."}, "doc.workday.compensation_step_code": {"name": "compensation_step_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_step_code", "block_contents": "Code associated with the compensation step of the position."}, "doc.workday.continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_accrual_effect", "block_contents": "The effect of leave on continuous service accrual."}, "doc.workday.continuous_service_date": {"name": "continuous_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_date", "block_contents": "Date when the worker's continuous service with the organization started."}, "doc.workday.contract_assignment_details": {"name": "contract_assignment_details", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_assignment_details", "block_contents": "Details of the worker's contract assignment."}, "doc.workday.contract_currency_code": {"name": "contract_currency_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_currency_code", "block_contents": "Currency code used for the worker's contract."}, "doc.workday.contract_end_date": {"name": "contract_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_end_date", "block_contents": "Date when the worker's contract is scheduled to end."}, "doc.workday.contract_frequency_name": {"name": "contract_frequency_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_frequency_name", "block_contents": "Frequency of payment for the worker's contract."}, "doc.workday.contract_pay_rate": {"name": "contract_pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_pay_rate", "block_contents": "Pay rate associated with the worker's contract."}, "doc.workday.contract_vendor_name": {"name": "contract_vendor_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_vendor_name", "block_contents": "Name of the vendor associated with the worker's contract."}, "doc.workday.country": {"name": "country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country", "block_contents": "The country associated with the person name."}, "doc.workday.country_of_birth": {"name": "country_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country_of_birth", "block_contents": "The country of birth of the individual."}, "doc.workday.critical_job": {"name": "critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.critical_job", "block_contents": "Flag indicating whether the job is critical."}, "doc.workday.date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_baby_arrived_home_from_hospital", "block_contents": "The date when the baby arrived home from the hospital."}, "doc.workday.date_child_entered_country": {"name": "date_child_entered_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_child_entered_country", "block_contents": "The date when the child entered the country."}, "doc.workday.date_entered_workforce": {"name": "date_entered_workforce", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_entered_workforce", "block_contents": "Date when the worker entered the workforce."}, "doc.workday.date_of_birth": {"name": "date_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_birth", "block_contents": "The date of birth of the individual."}, "doc.workday.date_of_death": {"name": "date_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_death", "block_contents": "The date of death of the individual."}, "doc.workday.date_of_recall": {"name": "date_of_recall", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_recall", "block_contents": "The date of recall."}, "doc.workday.days_employed": {"name": "days_employed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_employed", "block_contents": "The number of days the employee held their position."}, "doc.workday.days_as_worker": {"name": "days_as_worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_as_worker", "block_contents": "Number of days since the worker has been created."}, "doc.workday.days_unemployed": {"name": "days_unemployed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_unemployed", "block_contents": "Number of days the worker has been unemployed."}, "doc.workday.default_weekly_hours": {"name": "default_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.default_weekly_hours", "block_contents": "The default weekly hours associated with the worker position."}, "doc.workday.departure_date": {"name": "departure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.departure_date", "block_contents": "The departure date for the employee."}, "doc.workday.difficulty_to_fill": {"name": "difficulty_to_fill", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill", "block_contents": "Indication of the difficulty level in filling the job."}, "doc.workday.difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill_code", "block_contents": "Code indicating the difficulty level in filling the position."}, "doc.workday.discharge_date": {"name": "discharge_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.discharge_date", "block_contents": "The date on which the individual was discharged from military service."}, "doc.workday.earliest_hire_date": {"name": "earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_hire_date", "block_contents": "Earliest date when the position can be filled."}, "doc.workday.earliest_overlap_date": {"name": "earliest_overlap_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_overlap_date", "block_contents": "Earliest date when the position can overlap with other positions."}, "doc.workday.effective_date": {"name": "effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.effective_date", "block_contents": "Date when the job profile becomes effective."}, "doc.workday.eligible_for_hire": {"name": "eligible_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_hire", "block_contents": "Flag indicating whether the worker is eligible for hire."}, "doc.workday.eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_rehire_on_latest_termination", "block_contents": "Flag indicating whether the worker is eligible for rehire based on the latest termination."}, "doc.workday.email_address": {"name": "email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_address", "block_contents": "The actual email address of the person."}, "doc.workday.email_code": {"name": "email_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_code", "block_contents": "A code or label associated with the type or purpose of the email address."}, "doc.workday.email_comment": {"name": "email_comment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_comment", "block_contents": "Any additional comments or notes related to the email address."}, "doc.workday.employee_id": {"name": "employee_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_id", "block_contents": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee."}, "doc.workday.employed_five_years": {"name": "employed_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_five_years", "block_contents": "Tracks whether a worker was employed at least five years."}, "doc.workday.employed_one_year": {"name": "employed_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_one_year", "block_contents": "Tracks whether a worker was employed at least one year."}, "doc.workday.employed_ten_years": {"name": "employed_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_ten_years", "block_contents": "Tracks whether a worker was employed at least ten years."}, "doc.workday.employed_thirty_years": {"name": "employed_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_thirty_years", "block_contents": "Tracks whether a worker was employed at least thirty years."}, "doc.workday.employed_twenty_years": {"name": "employed_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_twenty_years", "block_contents": "Tracks whether a worker was employed at least twenty years."}, "doc.workday.employee_compensation_currency": {"name": "employee_compensation_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_currency", "block_contents": "Currency code used for the worker's employee compensation."}, "doc.workday.employee_compensation_frequency": {"name": "employee_compensation_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_frequency", "block_contents": "Frequency of payment for the worker's employee compensation."}, "doc.workday.employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's employee compensation."}, "doc.workday.employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_base_pay", "block_contents": "Total base pay for the worker's employee compensation."}, "doc.workday.employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's employee compensation."}, "doc.workday.employee_type": {"name": "employee_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_type", "block_contents": "The type of employee associated with the worker position."}, "doc.workday.end_date": {"name": "end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_date", "block_contents": "The end date of the worker position."}, "doc.workday.end_employment_date": {"name": "end_employment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_employment_date", "block_contents": "Date when the worker's employment is scheduled to end."}, "doc.workday.estimated_leave_end_date": {"name": "estimated_leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.estimated_leave_end_date", "block_contents": "The estimated end date of the leave."}, "doc.workday.ethnicity_code": {"name": "ethnicity_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_code", "block_contents": "The code representing the ethnicity of the individual."}, "doc.workday.ethnicity_codes": {"name": "ethnicity_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_codes", "block_contents": "String aggregation of all ethnicity codes associated with an individual."}, "doc.workday.ethnicity_id": {"name": "ethnicity_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_id", "block_contents": "The identifier associated with the ethnicity."}, "doc.workday.exclude_from_head_count": {"name": "exclude_from_head_count", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.exclude_from_head_count", "block_contents": "Flag indicating whether the position is excluded from headcount."}, "doc.workday.expected_assignment_end_date": {"name": "expected_assignment_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_assignment_end_date", "block_contents": "The expected end date of the assignment associated with the worker position."}, "doc.workday.expected_date_of_return": {"name": "expected_date_of_return", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_date_of_return", "block_contents": "Expected date of the worker's return."}, "doc.workday.expected_due_date": {"name": "expected_due_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_due_date", "block_contents": "The expected due date."}, "doc.workday.expected_retirement_date": {"name": "expected_retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_retirement_date", "block_contents": "Expected date of the worker's retirement."}, "doc.workday.external_employee": {"name": "external_employee", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_employee", "block_contents": "Flag indicating whether the worker is an external employee."}, "doc.workday.external_url": {"name": "external_url", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_url", "block_contents": "External URL associated with the organization."}, "doc.workday.federal_withholding_fein": {"name": "federal_withholding_fein", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.federal_withholding_fein", "block_contents": "The Federal Employer Identification Number (FEIN) for federal withholding."}, "doc.workday.first_day_of_work": {"name": "first_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_day_of_work", "block_contents": "The date when the worker started their first day of work."}, "doc.workday.first_name": {"name": "first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_name", "block_contents": "The first name of the individual."}, "doc.workday.frequency": {"name": "frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.frequency", "block_contents": "The frequency associated with the worker position."}, "doc.workday.fte_percent": {"name": "fte_percent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.fte_percent", "block_contents": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek"}, "doc.workday.full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_name_singapore_malaysia", "block_contents": "The full name as used in Singapore and Malaysia."}, "doc.workday.full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_time_equivalent_percentage", "block_contents": "The full-time equivalent (FTE) percentage associated with the worker position."}, "doc.workday.gender": {"name": "gender", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.gender", "block_contents": "The gender of the individual."}, "doc.workday.has_international_assignment": {"name": "has_international_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.has_international_assignment", "block_contents": "Flag indicating whether the worker has an international assignment."}, "doc.workday.headcount_restriction_code": {"name": "headcount_restriction_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.headcount_restriction_code", "block_contents": "The code associated with headcount restriction for the worker position."}, "doc.workday.hereditary_suffix": {"name": "hereditary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hereditary_suffix", "block_contents": "The hereditary suffix, if applicable (e.g., Jr, Sr)."}, "doc.workday.hire_date": {"name": "hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_date", "block_contents": "The date when the worker was hired."}, "doc.workday.hire_reason": {"name": "hire_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_reason", "block_contents": "The reason for hiring the worker."}, "doc.workday.hire_rescinded": {"name": "hire_rescinded", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_rescinded", "block_contents": "Flag indicating whether the worker's hire was rescinded."}, "doc.workday.hiring_freeze": {"name": "hiring_freeze", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hiring_freeze", "block_contents": "Flag indicating whether the organization is under a hiring freeze."}, "doc.workday.hispanic_or_latino": {"name": "hispanic_or_latino", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hispanic_or_latino", "block_contents": "lag indicating whether the individual is Hispanic or Latino."}, "doc.workday.home_country": {"name": "home_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.home_country", "block_contents": "The home country of the worker."}, "doc.workday.honorary_suffix": {"name": "honorary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.honorary_suffix", "block_contents": "The honorary suffix, if applicable."}, "doc.workday.host_country": {"name": "host_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.host_country", "block_contents": "The host country associated with the worker."}, "doc.workday.hourly_frequency_currency": {"name": "hourly_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_currency", "block_contents": "Currency code used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_frequency", "block_contents": "Frequency of payment for the worker's hourly compensation."}, "doc.workday.hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_base_pay", "block_contents": "Total base pay for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's hourly compensation."}, "doc.workday.hukou_locality": {"name": "hukou_locality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_locality", "block_contents": "The locality associated with the Hukou."}, "doc.workday.hukou_postal_code": {"name": "hukou_postal_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_postal_code", "block_contents": "The postal code associated with the Hukou."}, "doc.workday.hukou_region": {"name": "hukou_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_region", "block_contents": "The region associated with the Hukou."}, "doc.workday.hukou_subregion": {"name": "hukou_subregion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_subregion", "block_contents": "The subregion associated with the Hukou."}, "doc.workday.hukou_type": {"name": "hukou_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_type", "block_contents": "The type of Hukou."}, "doc.workday.id": {"name": "id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.id", "block_contents": "Unique identifier."}, "doc.workday.inactive": {"name": "inactive", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive", "block_contents": "Flag indicating whether this is inactive."}, "doc.workday.inactive_date": {"name": "inactive_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive_date", "block_contents": "Date when the organization becomes inactive"}, "doc.workday.include_job_code_in_name": {"name": "include_job_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_job_code_in_name", "block_contents": "Flag indicating whether to include the job code in the job profile name."}, "doc.workday.include_manager_in_name": {"name": "include_manager_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_manager_in_name", "block_contents": "Flag indicating whether to include the manager in the organization name."}, "doc.workday.include_organization_code_in_name": {"name": "include_organization_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_organization_code_in_name", "block_contents": "Flag indicating whether to include the organization code in the name."}, "doc.workday.index": {"name": "index", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.index", "block_contents": "An index for a particular identifier."}, "doc.workday.international_assignment_type": {"name": "international_assignment_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.international_assignment_type", "block_contents": "The type of international assignment associated with the worker position."}, "doc.workday.is_critical_job": {"name": "is_critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_critical_job", "block_contents": "Flag indicating whether the position is considered critical based on the job profile."}, "doc.workday.is_current_employee_five_years": {"name": "is_current_employee_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_five_years", "block_contents": "Tracks whether a worker is active for more than five years."}, "doc.workday.is_current_employee_one_year": {"name": "is_current_employee_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_one_year", "block_contents": "Tracks whether a worker is active for more than a year."}, "doc.workday.is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_ten_years", "block_contents": "Tracks whether a worker is active for more than ten years."}, "doc.workday.is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_thirty_years", "block_contents": "Tracks whether a worker is active for more than thirty years."}, "doc.workday.is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_twenty_years", "block_contents": "Tracks whether a worker is active for more than twenty years."}, "doc.workday.is_employed": {"name": "is_employed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_employed", "block_contents": "Is the worker currently employed?"}, "doc.workday.is_military_service": {"name": "is_military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_military_service", "block_contents": "Whether the employee served in the military."}, "doc.workday.is_primary_job": {"name": "is_primary_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_primary_job", "block_contents": "Flag indicating whether the job is the primary job for the worker."}, "doc.workday.is_regrettable_termination": {"name": "is_regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_regrettable_termination", "block_contents": "Has the worker been regrettably terminated?"}, "doc.workday.is_terminated": {"name": "is_terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_terminated", "block_contents": "Has the worker been terminated?"}, "doc.workday.is_user_active": {"name": "is_user_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_user_active", "block_contents": "Is the user currently active."}, "doc.workday.job_category_code": {"name": "job_category_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_code", "block_contents": "Code indicating the category of the job profile associated with the position."}, "doc.workday.job_category_id": {"name": "job_category_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_id", "block_contents": "Identifier for the job category."}, "doc.workday.job_description": {"name": "job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description", "block_contents": "Detailed description of the job associated with the position."}, "doc.workday.job_description_summary": {"name": "job_description_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description_summary", "block_contents": "Summary or overview of the job description for the position."}, "doc.workday.job_exempt": {"name": "job_exempt", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_exempt", "block_contents": "Indicates whether the job is exempt from certain regulations."}, "doc.workday.job_family": {"name": "job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family", "block_contents": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles."}, "doc.workday.job_family_code": {"name": "job_family_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_code", "block_contents": "Code assigned to the job family"}, "doc.workday.job_family_codes": {"name": "job_family_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_codes", "block_contents": "String array of all job family codes assigned to a job profile."}, "doc.workday.job_family_group": {"name": "job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group", "block_contents": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics."}, "doc.workday.job_family_group_code": {"name": "job_family_group_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_code", "block_contents": "Code assigned to the job family group for reference and categorization."}, "doc.workday.job_family_group_codes": {"name": "job_family_group_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_codes", "block_contents": "String array of all job family group codes assigned to a job profile."}, "doc.workday.job_family_group_id": {"name": "job_family_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_id", "block_contents": "Identifier for the job family group."}, "doc.workday.job_family_group_summary": {"name": "job_family_group_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summary", "block_contents": "The summary of the job family group."}, "doc.workday.job_family_group_summaries": {"name": "job_family_group_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summaries", "block_contents": "String array of all job family group summaries assigned to a job profile."}, "doc.workday.job_family_id": {"name": "job_family_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_id", "block_contents": "Identifier for the job family."}, "doc.workday.job_family_job_family_group": {"name": "job_family_job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_family_group", "block_contents": "Represents the relationship between job families and job family groups in the Workday dataset."}, "doc.workday.job_family_job_profile": {"name": "job_family_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_profile", "block_contents": "Represents the relationship between job families and job profiles in the Workday dataset."}, "doc.workday.job_family_summary": {"name": "job_family_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summary", "block_contents": "The summary of the job family."}, "doc.workday.job_family_summaries": {"name": "job_family_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summaries", "block_contents": "String array of all job family summaries assigned to a job profile."}, "doc.workday.job_group_id": {"name": "job_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_group_id", "block_contents": "The unique identifier for the job group."}, "doc.workday.job_posting_title": {"name": "job_posting_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_posting_title", "block_contents": "Title used for job postings associated with the position."}, "doc.workday.job_private_title": {"name": "job_private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_private_title", "block_contents": "The private title associated with the job."}, "doc.workday.job_profile": {"name": "job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile", "block_contents": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes."}, "doc.workday.job_profile_code": {"name": "job_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_code", "block_contents": "Code assigned to the job profile."}, "doc.workday.job_profile_description": {"name": "job_profile_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_description", "block_contents": "Brief description of the job profile."}, "doc.workday.job_profile_id": {"name": "job_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_id", "block_contents": "Identifier for the job profile."}, "doc.workday.job_summary": {"name": "job_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_summary", "block_contents": "The summary of the job."}, "doc.workday.job_title": {"name": "job_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_title", "block_contents": "The title of the job for the worker."}, "doc.workday.last_date_for_which_paid": {"name": "last_date_for_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_date_for_which_paid", "block_contents": "The last date being paid before leave."}, "doc.workday.last_datefor_which_paid": {"name": "last_datefor_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_datefor_which_paid", "block_contents": "Last date for which the worker was paid."}, "doc.workday.last_medical_exam_date": {"name": "last_medical_exam_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_date", "block_contents": "The date of the last medical exam."}, "doc.workday.last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_valid_to", "block_contents": "The validity date of the last medical exam."}, "doc.workday.last_name": {"name": "last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_name", "block_contents": "The last name or surname of the individual."}, "doc.workday.last_updated_date_time": {"name": "last_updated_date_time", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_updated_date_time", "block_contents": "Date and time when the organization record was last updated."}, "doc.workday.leave_description": {"name": "leave_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_description", "block_contents": "Description of the type of leave"}, "doc.workday.leave_end_date": {"name": "leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_end_date", "block_contents": "The end date of the leave."}, "doc.workday.leave_entitlement_override": {"name": "leave_entitlement_override", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_entitlement_override", "block_contents": "Override for leave entitlement."}, "doc.workday.leave_last_day_of_work": {"name": "leave_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_last_day_of_work", "block_contents": "The last day of work associated with the leave status."}, "doc.workday.leave_of_absence_type": {"name": "leave_of_absence_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_of_absence_type", "block_contents": "The type of leave of absence."}, "doc.workday.leave_percentage": {"name": "leave_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_percentage", "block_contents": "The percentage of leave."}, "doc.workday.leave_request_event_id": {"name": "leave_request_event_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_request_event_id", "block_contents": "The unique identifier for the leave request event."}, "doc.workday.leave_return_event": {"name": "leave_return_event", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_return_event", "block_contents": "The event associated with the return from leave."}, "doc.workday.leave_start_date": {"name": "leave_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_start_date", "block_contents": "The start date of the leave."}, "doc.workday.leave_status_code": {"name": "leave_status_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_status_code", "block_contents": "The code indicating the status of the leave."}, "doc.workday.leave_type_reason": {"name": "leave_type_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_type_reason", "block_contents": "The reason for the leave type."}, "doc.workday.level": {"name": "level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.level", "block_contents": "Level associated with the job profile."}, "doc.workday.local_first_name": {"name": "local_first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name", "block_contents": "The local or native first name of the individual."}, "doc.workday.local_first_name_2": {"name": "local_first_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name_2", "block_contents": "Additional local or native first name, if applicable."}, "doc.workday.local_hukou": {"name": "local_hukou", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_hukou", "block_contents": "Flag indicating whether the Hukou is local."}, "doc.workday.local_last_name": {"name": "local_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name", "block_contents": "The local or native last name of the individual."}, "doc.workday.local_last_name_2": {"name": "local_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name_2", "block_contents": "Additional local or native last name, if applicable."}, "doc.workday.local_middle_name": {"name": "local_middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name", "block_contents": "The local or native middle name of the individual."}, "doc.workday.local_middle_name_2": {"name": "local_middle_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name_2", "block_contents": "Additional local or native middle name, if applicable."}, "doc.workday.local_secondary_last_name": {"name": "local_secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name", "block_contents": "Secondary local or native last name or surname, if applicable."}, "doc.workday.local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name_2", "block_contents": "Additional secondary local or native last name, if applicable."}, "doc.workday.local_termination_reason": {"name": "local_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_termination_reason", "block_contents": "The reason for local termination of the worker."}, "doc.workday.location": {"name": "location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location", "block_contents": "Location associated with the organization."}, "doc.workday.location_during_leave": {"name": "location_during_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location_during_leave", "block_contents": "The location during the leave."}, "doc.workday.management_level": {"name": "management_level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level", "block_contents": "Management level associated with the job profile."}, "doc.workday.management_level_code": {"name": "management_level_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level_code", "block_contents": "Code indicating the management level associated with the job profile."}, "doc.workday.manager_id": {"name": "manager_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.manager_id", "block_contents": "Identifier for the manager associated with the organization."}, "doc.workday.marital_status": {"name": "marital_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status", "block_contents": "The marital status of the individual."}, "doc.workday.marital_status_date": {"name": "marital_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status_date", "block_contents": "The date of the marital status."}, "doc.workday.medical_exam_notes": {"name": "medical_exam_notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.medical_exam_notes", "block_contents": "Notes from the medical exam."}, "doc.workday.middle_name": {"name": "middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.middle_name", "block_contents": "The middle name of the individual."}, "doc.workday.military_service": {"name": "military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_service", "block_contents": "Represents information about an individual's military service in the Workday system."}, "doc.workday.military_status": {"name": "military_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_status", "block_contents": "The military status of the worker."}, "doc.workday.months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.months_continuous_prior_employment", "block_contents": "Number of months of continuous prior employment."}, "doc.workday.position_location": {"name": "position_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_location", "block_contents": "The position location of the employee."}, "doc.workday.position_effective_date": {"name": "position_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_effective_date", "block_contents": "The position effective date for the employee."}, "doc.workday.position_end_date": {"name": "position_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_end_date", "block_contents": "The position end date for this employee."}, "doc.workday.position_start_date": {"name": "position_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_start_date", "block_contents": "The position start date for this employee."}, "doc.workday.multiple_child_indicator": {"name": "multiple_child_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.multiple_child_indicator", "block_contents": "Indicator for multiple children."}, "doc.workday.native_region": {"name": "native_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region", "block_contents": "The native region of the individual."}, "doc.workday.native_region_code": {"name": "native_region_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region_code", "block_contents": "The code of the native region."}, "doc.workday.not_returning": {"name": "not_returning", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.not_returning", "block_contents": "Flag indicating whether the worker is not returning."}, "doc.workday.notes": {"name": "notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.notes", "block_contents": "Additional notes or comments related to the military service record."}, "doc.workday.number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_babies_adopted_children", "block_contents": "The number of babies adopted by the worker."}, "doc.workday.number_of_child_dependents": {"name": "number_of_child_dependents", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_child_dependents", "block_contents": "The number of child dependents."}, "doc.workday.number_of_previous_births": {"name": "number_of_previous_births", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_births", "block_contents": "The number of previous births."}, "doc.workday.number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_maternity_leaves", "block_contents": "The number of previous maternity leaves."}, "doc.workday.on_leave": {"name": "on_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.on_leave", "block_contents": "Indicator for whether the worker is on leave."}, "doc.workday.organization": {"name": "organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization", "block_contents": "Identifier for the organization."}, "doc.workday.organization_code": {"name": "organization_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_code", "block_contents": "Code associated with the organization."}, "doc.workday.organization_description": {"name": "organization_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_description", "block_contents": "The description of the organization."}, "doc.workday.organization_id": {"name": "organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_id", "block_contents": "Identifier for the organization."}, "doc.workday.organization_job_family": {"name": "organization_job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_job_family", "block_contents": "Captures the associations between different organizational entities and the job families they are linked to."}, "doc.workday.organization_location": {"name": "organization_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_location", "block_contents": "The location of the organization."}, "doc.workday.organization_name": {"name": "organization_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_name", "block_contents": "Name of the organization."}, "doc.workday.organization_owner_id": {"name": "organization_owner_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_owner_id", "block_contents": "Identifier for the owner of the organization."}, "doc.workday.organization_role": {"name": "organization_role", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role", "block_contents": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities."}, "doc.workday.organization_role_code": {"name": "organization_role_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_code", "block_contents": "Code assigned to the organization role for reference and categorization."}, "doc.workday.organization_role_id": {"name": "organization_role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_id", "block_contents": "The role id associated with the organization."}, "doc.workday.organization_role_worker": {"name": "organization_role_worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_worker", "block_contents": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill."}, "doc.workday.organization_sub_type": {"name": "organization_sub_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_sub_type", "block_contents": "Subtype or classification of the organization."}, "doc.workday.organization_type": {"name": "organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_type", "block_contents": "Type or category of the organization."}, "doc.workday.organization_worker_code": {"name": "organization_worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_worker_code", "block_contents": "The worker code associated with the organization."}, "doc.workday.original_hire_date": {"name": "original_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.original_hire_date", "block_contents": "The original date when the worker was hired."}, "doc.workday.paid_fte": {"name": "paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_fte", "block_contents": "The paid full-time equivalent (FTE) associated with the worker position."}, "doc.workday.paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_time_off_accrual_effect", "block_contents": "The effect of leave on paid time off accrual."}, "doc.workday.pay_group": {"name": "pay_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group", "block_contents": "The pay group associated with the worker position."}, "doc.workday.pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_currency", "block_contents": "Currency code used for the worker's pay group frequency."}, "doc.workday.pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_frequency", "block_contents": "Frequency of payment for the worker's pay group."}, "doc.workday.pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's pay group."}, "doc.workday.pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_base_pay", "block_contents": "Total base pay for the worker's pay group."}, "doc.workday.pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's pay group."}, "doc.workday.pay_rate": {"name": "pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate", "block_contents": "The pay rate associated with the worker position."}, "doc.workday.pay_rate_type": {"name": "pay_rate_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate_type", "block_contents": "The type of pay rate associated with the worker position."}, "doc.workday.pay_through_date": {"name": "pay_through_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_through_date", "block_contents": "The date through which the worker is paid."}, "doc.workday.payroll_effect": {"name": "payroll_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_effect", "block_contents": "The effect of leave on payroll."}, "doc.workday.payroll_entity": {"name": "payroll_entity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_entity", "block_contents": "The payroll entity associated with the worker position."}, "doc.workday.payroll_file_number": {"name": "payroll_file_number", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_file_number", "block_contents": "The file number associated with payroll for the worker position."}, "doc.workday.person_contact_email_address": {"name": "person_contact_email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address", "block_contents": "Represents the email addresses associated with a person in the Workday system."}, "doc.workday.person_contact_email_address_id": {"name": "person_contact_email_address_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address_id", "block_contents": "The identifier of the personal contact email address."}, "doc.workday.person_name": {"name": "person_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name", "block_contents": "Represents the name information for an individual in the Workday system."}, "doc.workday.person_name_type": {"name": "person_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name_type", "block_contents": "The type or category of the person name (e.g., legal name, preferred name)."}, "doc.workday.personal_info_system_id": {"name": "personal_info_system_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_info_system_id", "block_contents": "The system ID associated with the personal information of the individual."}, "doc.workday.personal_information": {"name": "personal_information", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information", "block_contents": "The personal information associated with each worker."}, "doc.workday.personal_information_ethnicity": {"name": "personal_information_ethnicity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_ethnicity", "block_contents": "Represents information about the ethnicity of an individual in the Workday system."}, "doc.workday.personal_information_id": {"name": "personal_information_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_id", "block_contents": "The identifier for each personal information record."}, "doc.workday.personal_information_type": {"name": "personal_information_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_type", "block_contents": "The type of personal information record."}, "doc.workday.personnel_file_agency": {"name": "personnel_file_agency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personnel_file_agency", "block_contents": "The agency associated with the personnel file."}, "doc.workday.political_affiliation": {"name": "political_affiliation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.political_affiliation", "block_contents": "The political affiliation of the individual."}, "doc.workday.position": {"name": "position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position", "block_contents": "Resource for understanding the details and attributes associated with each position."}, "doc.workday.position_code": {"name": "position_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_code", "block_contents": "Code associated with the position for reference and categorization."}, "doc.workday.position_days": {"name": "position_days", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_days", "block_contents": "The days the worker held positions at the company."}, "doc.workday.position_id": {"name": "position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_id", "block_contents": "Identifier for the specific position."}, "doc.workday.position_job_profile": {"name": "position_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile", "block_contents": "Captures the associations between specific positions and the job profiles they are linked to."}, "doc.workday.position_job_profile_name": {"name": "position_job_profile_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile_name", "block_contents": "Name associated with the job profile linked to the position."}, "doc.workday.position_organization": {"name": "position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization", "block_contents": "Captures the associations between specific positions and the organizations to which they belong."}, "doc.workday.position_organization_type": {"name": "position_organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization_type", "block_contents": "Type or category of the position within the organization."}, "doc.workday.position_time_type_code": {"name": "position_time_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_time_type_code", "block_contents": "Code indicating the time type associated with the position."}, "doc.workday.prefix_salutation": {"name": "prefix_salutation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_salutation", "block_contents": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.)."}, "doc.workday.prefix_title": {"name": "prefix_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title", "block_contents": "The prefix or title associated with the name (e.g., Professor)."}, "doc.workday.prefix_title_code": {"name": "prefix_title_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title_code", "block_contents": "The code associated with the prefix or title."}, "doc.workday.primary_compensation_basis": {"name": "primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis", "block_contents": "Primary basis of compensation for the position."}, "doc.workday.primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_amount_change", "block_contents": "Change in the amount of the primary compensation basis."}, "doc.workday.primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_percent_change", "block_contents": "Change in the percentage of the primary compensation basis."}, "doc.workday.primary_nationality": {"name": "primary_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_nationality", "block_contents": "The primary nationality of the individual."}, "doc.workday.primary_termination_category": {"name": "primary_termination_category", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_category", "block_contents": "The primary termination category for the worker."}, "doc.workday.primary_termination_reason": {"name": "primary_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_reason", "block_contents": "The primary termination reason for the worker."}, "doc.workday.private_title": {"name": "private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.private_title", "block_contents": "Private title associated with the job profile."}, "doc.workday.probation_end_date": {"name": "probation_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_end_date", "block_contents": "The date when the worker's probation ends."}, "doc.workday.probation_start_date": {"name": "probation_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_start_date", "block_contents": "The date when the worker's probation starts."}, "doc.workday.professional_suffix": {"name": "professional_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.professional_suffix", "block_contents": "The professional suffix, if applicable (e.g., Esq., CPA)."}, "doc.workday.public_job": {"name": "public_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.public_job", "block_contents": "Flag indicating whether the job is public."}, "doc.workday.rank": {"name": "rank", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rank", "block_contents": "The rank achieved by the individual during military service."}, "doc.workday.reason_reference_id": {"name": "reason_reference_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.reason_reference_id", "block_contents": "The reference ID for the termination reason."}, "doc.workday.referral_payment_plan": {"name": "referral_payment_plan", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.referral_payment_plan", "block_contents": "Referral payment plan associated with the job profile."}, "doc.workday.region_of_birth": {"name": "region_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth", "block_contents": "The region of birth of the individual."}, "doc.workday.region_of_birth_code": {"name": "region_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth_code", "block_contents": "The code of the region of birth."}, "doc.workday.regrettable_termination": {"name": "regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regrettable_termination", "block_contents": "Flag indicating whether the worker's termination is regrettable."}, "doc.workday.regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regular_paid_equivalent_hours", "block_contents": "The regular paid equivalent hours associated with the worker position."}, "doc.workday.rehire": {"name": "rehire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rehire", "block_contents": "Flag indicating whether the worker is eligible for rehire."}, "doc.workday.religion": {"name": "religion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religion", "block_contents": "The religion of the individual."}, "doc.workday.religious_suffix": {"name": "religious_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religious_suffix", "block_contents": "The religious suffix, if applicable."}, "doc.workday.resignation_date": {"name": "resignation_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.resignation_date", "block_contents": "The date when the worker resigned."}, "doc.workday.retired": {"name": "retired", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retired", "block_contents": "Flag indicating whether the worker is retired."}, "doc.workday.retirement_date": {"name": "retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_date", "block_contents": "The date when the worker retired."}, "doc.workday.retirement_eligibility_date": {"name": "retirement_eligibility_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_eligibility_date", "block_contents": "The date when the worker becomes eligible for retirement."}, "doc.workday.return_unknown": {"name": "return_unknown", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.return_unknown", "block_contents": "Flag indicating whether the worker's return status is unknown."}, "doc.workday.role_id": {"name": "role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.role_id", "block_contents": "Identifier for the specific role."}, "doc.workday.royal_suffix": {"name": "royal_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.royal_suffix", "block_contents": "The royal suffix, if applicable."}, "doc.workday.scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the worker position."}, "doc.workday.secondary_last_name": {"name": "secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.secondary_last_name", "block_contents": "Secondary last name or surname, if applicable."}, "doc.workday.seniority_date": {"name": "seniority_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.seniority_date", "block_contents": "The date when the worker's seniority is recorded."}, "doc.workday.service": {"name": "service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service", "block_contents": "The specific military service branch in which the individual served."}, "doc.workday.service_type": {"name": "service_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service_type", "block_contents": "The type or category of military service (e.g., active duty, reserve, etc.)."}, "doc.workday.severance_date": {"name": "severance_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.severance_date", "block_contents": "The date when the worker's severance is recorded."}, "doc.workday.single_parent_indicator": {"name": "single_parent_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.single_parent_indicator", "block_contents": "Indicator for a single parent."}, "doc.workday.social_benefit": {"name": "social_benefit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_benefit", "block_contents": "The social benefit associated with the individual."}, "doc.workday.social_security_disability_code": {"name": "social_security_disability_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_security_disability_code", "block_contents": "The code indicating social security disability."}, "doc.workday.social_suffix": {"name": "social_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix", "block_contents": "The social suffix, if applicable."}, "doc.workday.social_suffix_id": {"name": "social_suffix_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix_id", "block_contents": "The identifier for the social suffix."}, "doc.workday.specify_paid_fte": {"name": "specify_paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_paid_fte", "block_contents": "Flag indicating whether to specify paid FTE for the worker position."}, "doc.workday.specify_working_fte": {"name": "specify_working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_working_fte", "block_contents": "Flag indicating whether to specify working FTE for the worker position."}, "doc.workday.staffing_model": {"name": "staffing_model", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.staffing_model", "block_contents": "Staffing model associated with the organization"}, "doc.workday.start_date": {"name": "start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_date", "block_contents": "The start date of the worker position."}, "doc.workday.start_international_assignment_reason": {"name": "start_international_assignment_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_international_assignment_reason", "block_contents": "The reason for starting an international assignment associated with the worker position."}, "doc.workday.status": {"name": "status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status", "block_contents": "The status of the individual's military service (e.g., active, inactive, retired)."}, "doc.workday.status_begin_date": {"name": "status_begin_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status_begin_date", "block_contents": "The date on which the current military service status began."}, "doc.workday.stock_vesting_effect": {"name": "stock_vesting_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stock_vesting_effect", "block_contents": "The effect of leave on stock vesting."}, "doc.workday.stop_payment_date": {"name": "stop_payment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stop_payment_date", "block_contents": "The date when stop payment occurs."}, "doc.workday.summary": {"name": "summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.summary", "block_contents": "Summary or overview of the job profile."}, "doc.workday.superior_organization_id": {"name": "superior_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.superior_organization_id", "block_contents": "Identifier for the superior organization, if applicable."}, "doc.workday.supervisory_organization_id": {"name": "supervisory_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_organization_id", "block_contents": "Identifier for the supervisory organization associated with the position."}, "doc.workday.supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_availability_date", "block_contents": "Availability date for supervisory positions within the organization."}, "doc.workday.supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_earliest_hire_date", "block_contents": "Earliest hire date for supervisory positions within the organization."}, "doc.workday.supervisory_position_time_type": {"name": "supervisory_position_time_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_time_type", "block_contents": "Time type associated with supervisory positions."}, "doc.workday.supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_worker_type", "block_contents": "Worker type associated with supervisory positions."}, "doc.workday.terminated": {"name": "terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.terminated", "block_contents": "Flag indicating whether the worker is terminated."}, "doc.workday.termination_date": {"name": "termination_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_date", "block_contents": "The date when the worker is terminated."}, "doc.workday.termination_involuntary": {"name": "termination_involuntary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_involuntary", "block_contents": "Flag indicating whether the termination is involuntary."}, "doc.workday.termination_last_day_of_work": {"name": "termination_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_last_day_of_work", "block_contents": "The last day of work for the worker during termination."}, "doc.workday.tertiary_last_name": {"name": "tertiary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tertiary_last_name", "block_contents": "Tertiary last name or surname, if applicable."}, "doc.workday.time_off_service_date": {"name": "time_off_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.time_off_service_date", "block_contents": "The date when the worker's time-off service starts."}, "doc.workday.title": {"name": "title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.title", "block_contents": "Title associated with the job profile."}, "doc.workday.tobacco_use": {"name": "tobacco_use", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tobacco_use", "block_contents": "Flag indicating whether the individual uses tobacco."}, "doc.workday.top_level_organization_id": {"name": "top_level_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.top_level_organization_id", "block_contents": "Identifier for the top-level organization, if applicable."}, "doc.workday.union_code": {"name": "union_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_code", "block_contents": "Code associated with the union related to the job profile."}, "doc.workday.union_membership_requirement": {"name": "union_membership_requirement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_membership_requirement", "block_contents": "Flag indicating whether union membership is a requirement for the job profile."}, "doc.workday.universal_id": {"name": "universal_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.universal_id", "block_contents": "The universal ID associated with the worker."}, "doc.workday.user_id": {"name": "user_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.user_id", "block_contents": "The identifier for the user associated with the worker."}, "doc.workday.vesting_date": {"name": "vesting_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.vesting_date", "block_contents": "The date when the worker's vesting starts."}, "doc.workday.visibility": {"name": "visibility", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.visibility", "block_contents": "Visibility level of the organization."}, "doc.workday.week_of_confinement": {"name": "week_of_confinement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.week_of_confinement", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_hours_profile": {"name": "work_hours_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_hours_profile", "block_contents": "The work hours profile associated with the worker position."}, "doc.workday.work_related": {"name": "work_related", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_related", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_shift": {"name": "work_shift", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift", "block_contents": "The work shift associated with the worker position."}, "doc.workday.work_shift_required": {"name": "work_shift_required", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift_required", "block_contents": "Flag indicating whether a work shift is required."}, "doc.workday.work_space": {"name": "work_space", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_space", "block_contents": "The work space associated with the worker position."}, "doc.workday.work_study_award_source_code": {"name": "work_study_award_source_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_award_source_code", "block_contents": "Code associated with the source of work study awards."}, "doc.workday.work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_requirement_option_code", "block_contents": "Code associated with work study requirement options."}, "doc.workday.workday__employee_overview": {"name": "workday__employee_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__employee_overview", "block_contents": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees."}, "doc.workday.workday__job_overview": {"name": "workday__job_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__job_overview", "block_contents": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings."}, "doc.workday.workday__role_overview": {"name": "workday__role_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__role_overview", "block_contents": "Each record represents a role in an organization, enhanced with additional organizational details."}, "doc.workday.workday__organization_overview": {"name": "workday__organization_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__organization_overview", "block_contents": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures."}, "doc.workday.workday__position_overview": {"name": "workday__position_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__position_overview", "block_contents": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts."}, "doc.workday.worker": {"name": "worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker", "block_contents": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker."}, "doc.workday.worker_code": {"name": "worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_code", "block_contents": "The code associated with the worker."}, "doc.workday.worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_for_filled_position_id", "block_contents": "Identifier for the worker filling the position, if applicable."}, "doc.workday.worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_hours_profile_classification", "block_contents": "The classification of worker hours profile associated with the worker position."}, "doc.workday.worker_id": {"name": "worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_id", "block_contents": "Unique identifier for the worker."}, "doc.workday.worker_leave_status": {"name": "worker_leave_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_leave_status", "block_contents": "Represents the leave status of workers in the Workday system."}, "doc.workday.worker_levels": {"name": "worker_levels", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_levels", "block_contents": "The number of levels the worker has worked at."}, "doc.workday.worker_position": {"name": "worker_position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position", "block_contents": "Represents the positions held by workers in the Workday system"}, "doc.workday.worker_position_organization": {"name": "worker_position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_organization", "block_contents": "Ties together workers to the positions and organizations they hold in the Workday system."}, "doc.workday.worker_position_id": {"name": "worker_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_id", "block_contents": "Identifier for the worker associated with the position."}, "doc.workday.worker_positions": {"name": "worker_positions", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_positions", "block_contents": "The number of positions the worker has held"}, "doc.workday.worker_type_code": {"name": "worker_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_type_code", "block_contents": "Code indicating the type of worker associated with the position."}, "doc.workday.working_fte": {"name": "working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_fte", "block_contents": "The working full-time equivalent (FTE) associated with the worker position."}, "doc.workday.working_time_frequency": {"name": "working_time_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_frequency", "block_contents": "The frequency of working time associated with the worker position."}, "doc.workday.working_time_unit": {"name": "working_time_unit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_unit", "block_contents": "The unit of working time associated with the worker position."}, "doc.workday.working_time_value": {"name": "working_time_value", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_value", "block_contents": "The value of working time associated with the worker position."}, "doc.workday.date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_pay_group_assignment", "block_contents": "Date a group's pay is assigned to be processed."}, "doc.workday.primary_business_site": {"name": "primary_business_site", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_business_site", "block_contents": "Primary location a worker's business is situated."}, "doc.workday.used_in_change_organization_assignments": {"name": "used_in_change_organization_assignments", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.used_in_change_organization_assignments", "block_contents": "If a worker has opted to change these organization assignments."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {}, "parent_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.workday__job_overview": ["model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_group", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_profile"], "model.workday.workday__position_overview": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"], "model.workday.workday__organization_overview": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"], "model.workday.stg_workday__position": ["model.workday.stg_workday__position_base"], "model.workday.stg_workday__job_family_group": ["model.workday.stg_workday__job_family_group_base"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "model.workday.stg_workday__organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "model.workday.stg_workday__organization_role": ["model.workday.stg_workday__organization_role_base"], "model.workday.stg_workday__worker_position": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "model.workday.stg_workday__position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "model.workday.stg_workday__worker_position_organization": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.stg_workday__job_profile": ["model.workday.stg_workday__job_profile_base"], "model.workday.stg_workday__position_organization": ["model.workday.stg_workday__position_organization_base"], "model.workday.stg_workday__worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "model.workday.stg_workday__person_name": ["model.workday.stg_workday__person_name_base"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "model.workday.stg_workday__organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "model.workday.stg_workday__job_family": ["model.workday.stg_workday__job_family_base"], "model.workday.stg_workday__military_service": ["model.workday.stg_workday__military_service_base"], "model.workday.stg_workday__personal_information": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "model.workday.stg_workday__worker": ["model.workday.stg_workday__worker_base"], "model.workday.stg_workday__organization": ["model.workday.stg_workday__organization_base"], "model.workday.stg_workday__job_family_job_family_group_base": ["source.workday.workday.job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["source.workday.workday.personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["source.workday.workday.job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["source.workday.workday.worker_position_organization_history"], "model.workday.stg_workday__position_base": ["source.workday.workday.position"], "model.workday.stg_workday__person_contact_email_address_base": ["source.workday.workday.person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["source.workday.workday.organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["source.workday.workday.job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["source.workday.workday.position_organization"], "model.workday.stg_workday__organization_role_base": ["source.workday.workday.organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["source.workday.workday.worker_leave_status"], "model.workday.stg_workday__job_family_base": ["source.workday.workday.job_family"], "model.workday.stg_workday__job_profile_base": ["source.workday.workday.job_profile"], "model.workday.stg_workday__organization_base": ["source.workday.workday.organization"], "model.workday.stg_workday__organization_role_worker_base": ["source.workday.workday.organization_role_worker"], "model.workday.stg_workday__worker_base": ["source.workday.workday.worker_history"], "model.workday.stg_workday__position_job_profile_base": ["source.workday.workday.position_job_profile"], "model.workday.stg_workday__worker_position_base": ["source.workday.workday.worker_position_history"], "model.workday.stg_workday__person_name_base": ["source.workday.workday.person_name"], "model.workday.stg_workday__military_service_base": ["source.workday.workday.military_service"], "model.workday.stg_workday__personal_information_base": ["source.workday.workday.personal_information_history"], "model.workday.workday__monthly_summary": ["model.workday.workday__employee_daily_history"], "model.workday.workday__employee_daily_history": ["model.workday.int_workday__employee_history"], "model.workday.workday__worker_position_org_daily_history": ["model.workday.stg_workday__worker_position_organization_base", "model.workday.stg_workday__worker_position_organization_history"], "model.workday.stg_workday__worker_position_history": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__worker_history": ["model.workday.stg_workday__worker_base"], "model.workday.stg_workday__personal_information_history": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.int_workday__employee_history": ["model.workday.stg_workday__personal_information_history", "model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history"], "model.workday.int_workday__worker_position_enriched": ["model.workday.stg_workday__worker_position"], "model.workday.int_workday__personal_details": ["model.workday.stg_workday__military_service", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__person_name", "model.workday.stg_workday__personal_information", "model.workday.stg_workday__personal_information_ethnicity"], "model.workday.int_workday__worker_details": ["model.workday.stg_workday__worker"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.int_workday__personal_details", "model.workday.int_workday__worker_details", "model.workday.int_workday__worker_position_enriched"], "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": ["model.workday.workday__job_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": ["model.workday.workday__job_overview"], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": ["model.workday.workday__position_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": ["model.workday.workday__position_overview"], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": ["model.workday.workday__organization_overview"], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": ["model.workday.workday__organization_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": ["model.workday.workday__organization_overview"], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": ["model.workday.stg_workday__job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": ["model.workday.stg_workday__job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": ["model.workday.stg_workday__job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": ["model.workday.stg_workday__job_family"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": ["model.workday.stg_workday__job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": ["model.workday.stg_workday__job_family_group"], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": ["model.workday.stg_workday__organization_role"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": ["model.workday.stg_workday__organization_role_worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": ["model.workday.stg_workday__organization_job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": ["model.workday.stg_workday__organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": ["model.workday.stg_workday__organization"], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": ["model.workday.stg_workday__position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": ["model.workday.stg_workday__position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": ["model.workday.stg_workday__position"], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": ["model.workday.stg_workday__position_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": ["model.workday.stg_workday__worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": ["model.workday.stg_workday__worker"], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": ["model.workday.stg_workday__personal_information"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": ["model.workday.stg_workday__personal_information"], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": ["model.workday.stg_workday__person_name"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": ["model.workday.stg_workday__military_service"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": ["model.workday.stg_workday__military_service"], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": ["model.workday.stg_workday__worker_position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": ["model.workday.stg_workday__worker_leave_status"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": ["model.workday.stg_workday__worker_position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": ["model.workday.stg_workday__worker_position_organization"], "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": ["model.workday.workday__employee_daily_history"], "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": ["model.workday.workday__employee_daily_history"], "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": ["model.workday.workday__monthly_summary"], "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": ["model.workday.workday__monthly_summary"], "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": ["model.workday.stg_workday__personal_information_history"], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": ["model.workday.stg_workday__worker_history"], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": ["model.workday.stg_workday__worker_position_history"], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": ["model.workday.stg_workday__worker_position_organization_history"], "source.workday.workday.job_profile": [], "source.workday.workday.job_family_job_profile": [], "source.workday.workday.job_family": [], "source.workday.workday.job_family_job_family_group": [], "source.workday.workday.job_family_group": [], "source.workday.workday.organization_role": [], "source.workday.workday.organization_role_worker": [], "source.workday.workday.organization_job_family": [], "source.workday.workday.organization": [], "source.workday.workday.position_organization": [], "source.workday.workday.position": [], "source.workday.workday.position_job_profile": [], "source.workday.workday.worker_history": [], "source.workday.workday.personal_information_history": [], "source.workday.workday.person_name": [], "source.workday.workday.personal_information_ethnicity": [], "source.workday.workday.military_service": [], "source.workday.workday.person_contact_email_address": [], "source.workday.workday.worker_position_history": [], "source.workday.workday.worker_leave_status": [], "source.workday.workday.worker_position_organization_history": []}, "child_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "test.workday.unique_workday__employee_overview_employee_id.b01e19996c"], "model.workday.workday__job_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857"], "model.workday.workday__position_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "test.workday.not_null_workday__position_overview_position_id.603beb3f22"], "model.workday.workday__organization_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412"], "model.workday.stg_workday__position": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e"], "model.workday.stg_workday__job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c"], "model.workday.stg_workday__organization_role_worker": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72"], "model.workday.stg_workday__organization_role": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f"], "model.workday.stg_workday__worker_position": ["model.workday.int_workday__worker_position_enriched", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755"], "model.workday.stg_workday__position_job_profile": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7"], "model.workday.stg_workday__worker_position_organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b"], "model.workday.stg_workday__job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa"], "model.workday.stg_workday__position_organization": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7"], "model.workday.stg_workday__worker_leave_status": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61"], "model.workday.stg_workday__person_name": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd"], "model.workday.stg_workday__organization_job_family": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e"], "model.workday.stg_workday__job_family": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f"], "model.workday.stg_workday__military_service": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38"], "model.workday.stg_workday__personal_information": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b"], "model.workday.stg_workday__worker": ["model.workday.int_workday__worker_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "test.workday.not_null_stg_workday__worker_worker_id.8dae310560"], "model.workday.stg_workday__organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7"], "model.workday.stg_workday__job_family_job_family_group_base": ["model.workday.stg_workday__job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["model.workday.stg_workday__personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["model.workday.stg_workday__job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["model.workday.stg_workday__worker_position_organization", "model.workday.stg_workday__worker_position_organization_history", "model.workday.workday__worker_position_org_daily_history"], "model.workday.stg_workday__position_base": ["model.workday.stg_workday__position"], "model.workday.stg_workday__person_contact_email_address_base": ["model.workday.stg_workday__person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["model.workday.stg_workday__organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["model.workday.stg_workday__job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["model.workday.stg_workday__position_organization"], "model.workday.stg_workday__organization_role_base": ["model.workday.stg_workday__organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["model.workday.stg_workday__worker_leave_status"], "model.workday.stg_workday__job_family_base": ["model.workday.stg_workday__job_family"], "model.workday.stg_workday__job_profile_base": ["model.workday.stg_workday__job_profile"], "model.workday.stg_workday__organization_base": ["model.workday.stg_workday__organization"], "model.workday.stg_workday__organization_role_worker_base": ["model.workday.stg_workday__organization_role_worker"], "model.workday.stg_workday__worker_base": ["model.workday.stg_workday__worker", "model.workday.stg_workday__worker_history"], "model.workday.stg_workday__position_job_profile_base": ["model.workday.stg_workday__position_job_profile"], "model.workday.stg_workday__worker_position_base": ["model.workday.stg_workday__worker_position", "model.workday.stg_workday__worker_position_history"], "model.workday.stg_workday__person_name_base": ["model.workday.stg_workday__person_name"], "model.workday.stg_workday__military_service_base": ["model.workday.stg_workday__military_service"], "model.workday.stg_workday__personal_information_base": ["model.workday.stg_workday__personal_information", "model.workday.stg_workday__personal_information_history"], "model.workday.workday__monthly_summary": ["test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab"], "model.workday.workday__employee_daily_history": ["model.workday.workday__monthly_summary", "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269"], "model.workday.workday__worker_position_org_daily_history": ["test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21"], "model.workday.stg_workday__worker_position_history": ["model.workday.int_workday__employee_history", "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879"], "model.workday.stg_workday__worker_history": ["model.workday.int_workday__employee_history", "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72"], "model.workday.stg_workday__personal_information_history": ["model.workday.int_workday__employee_history", "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc"], "model.workday.stg_workday__worker_position_organization_history": ["model.workday.workday__worker_position_org_daily_history", "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398"], "model.workday.int_workday__employee_history": ["model.workday.workday__employee_daily_history"], "model.workday.int_workday__worker_position_enriched": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__personal_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.workday__employee_overview"], "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": [], "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": [], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": [], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": [], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": [], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": [], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": [], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": [], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": [], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": [], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": [], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": [], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": [], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": [], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": [], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": [], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": [], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": [], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": [], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": [], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": [], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": [], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": [], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": [], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": [], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": [], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": [], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": [], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": [], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": [], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": [], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": [], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": [], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": [], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": [], "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": [], "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": [], "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": [], "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": [], "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": [], "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": [], "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": [], "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": [], "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": [], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": [], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": [], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": [], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": [], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": [], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": [], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": [], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": [], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": [], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": [], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": [], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": [], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": [], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": [], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": [], "source.workday.workday.job_profile": ["model.workday.stg_workday__job_profile_base"], "source.workday.workday.job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "source.workday.workday.job_family": ["model.workday.stg_workday__job_family_base"], "source.workday.workday.job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "source.workday.workday.job_family_group": ["model.workday.stg_workday__job_family_group_base"], "source.workday.workday.organization_role": ["model.workday.stg_workday__organization_role_base"], "source.workday.workday.organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "source.workday.workday.organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "source.workday.workday.organization": ["model.workday.stg_workday__organization_base"], "source.workday.workday.position_organization": ["model.workday.stg_workday__position_organization_base"], "source.workday.workday.position": ["model.workday.stg_workday__position_base"], "source.workday.workday.position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "source.workday.workday.worker_history": ["model.workday.stg_workday__worker_base"], "source.workday.workday.personal_information_history": ["model.workday.stg_workday__personal_information_base"], "source.workday.workday.person_name": ["model.workday.stg_workday__person_name_base"], "source.workday.workday.personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "source.workday.workday.military_service": ["model.workday.stg_workday__military_service_base"], "source.workday.workday.person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "source.workday.workday.worker_position_history": ["model.workday.stg_workday__worker_position_base"], "source.workday.workday.worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "source.workday.workday.worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json index c0439a5..074af9a 100644 --- a/docs/run_results.json +++ b/docs/run_results.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v5.json", "dbt_version": "1.7.8", "generated_at": "2024-04-02T10:16:00.264093Z", "invocation_id": "2c956fce-7a6c-4f51-b5a5-d975f2021c95", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.607265Z", "completed_at": "2024-04-02T10:15:48.642750Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.645481Z", "completed_at": "2024-04-02T10:15:48.645497Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.04426717758178711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.635812Z", "completed_at": "2024-04-02T10:15:48.643351Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.646162Z", "completed_at": "2024-04-02T10:15:48.646167Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.04413008689880371, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.639186Z", "completed_at": "2024-04-02T10:15:48.643740Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.646497Z", "completed_at": "2024-04-02T10:15:48.646502Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.04420828819274902, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.633101Z", "completed_at": "2024-04-02T10:15:48.644499Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.647637Z", "completed_at": "2024-04-02T10:15:48.647641Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.046555280685424805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.654863Z", "completed_at": "2024-04-02T10:15:48.667544Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.669322Z", "completed_at": "2024-04-02T10:15:48.669329Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0194399356842041, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.658835Z", "completed_at": "2024-04-02T10:15:48.667936Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.670101Z", "completed_at": "2024-04-02T10:15:48.670107Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.019529342651367188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__military_service_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.661552Z", "completed_at": "2024-04-02T10:15:48.668544Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.671036Z", "completed_at": "2024-04-02T10:15:48.671044Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.0200040340423584, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.664341Z", "completed_at": "2024-04-02T10:15:48.668809Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.671364Z", "completed_at": "2024-04-02T10:15:48.671367Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.019658565521240234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.676615Z", "completed_at": "2024-04-02T10:15:48.687671Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.689395Z", "completed_at": "2024-04-02T10:15:48.689405Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0164639949798584, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.680653Z", "completed_at": "2024-04-02T10:15:48.687990Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.689622Z", "completed_at": "2024-04-02T10:15:48.689625Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.015976905822753906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.682921Z", "completed_at": "2024-04-02T10:15:48.688944Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.691276Z", "completed_at": "2024-04-02T10:15:48.691279Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01699090003967285, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.685202Z", "completed_at": "2024-04-02T10:15:48.689167Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.691625Z", "completed_at": "2024-04-02T10:15:48.691628Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01703810691833496, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_name_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.695836Z", "completed_at": "2024-04-02T10:15:48.707530Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.708713Z", "completed_at": "2024-04-02T10:15:48.708719Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01660609245300293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.698326Z", "completed_at": "2024-04-02T10:15:48.707839Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.709464Z", "completed_at": "2024-04-02T10:15:48.709469Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017239093780517578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.702240Z", "completed_at": "2024-04-02T10:15:48.708949Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.711595Z", "completed_at": "2024-04-02T10:15:48.711600Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01776909828186035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.704909Z", "completed_at": "2024-04-02T10:15:48.709160Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.711886Z", "completed_at": "2024-04-02T10:15:48.711889Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.017829179763793945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.714973Z", "completed_at": "2024-04-02T10:15:48.726935Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.728383Z", "completed_at": "2024-04-02T10:15:48.728389Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01712799072265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.718268Z", "completed_at": "2024-04-02T10:15:48.727273Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.729071Z", "completed_at": "2024-04-02T10:15:48.729075Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016927003860473633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.721284Z", "completed_at": "2024-04-02T10:15:48.727867Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.730113Z", "completed_at": "2024-04-02T10:15:48.730116Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01405477523803711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_leave_status_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.723584Z", "completed_at": "2024-04-02T10:15:48.728610Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.731186Z", "completed_at": "2024-04-02T10:15:48.731189Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.015025138854980469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.738393Z", "completed_at": "2024-04-02T10:15:48.739559Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.743351Z", "completed_at": "2024-04-02T10:15:48.743357Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.010863780975341797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.740222Z", "completed_at": "2024-04-02T10:15:48.741150Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.743975Z", "completed_at": "2024-04-02T10:15:48.743978Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011005878448486328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.741688Z", "completed_at": "2024-04-02T10:15:48.742614Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.744733Z", "completed_at": "2024-04-02T10:15:48.744738Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.008429765701293945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.734933Z", "completed_at": "2024-04-02T10:15:48.742884Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.744996Z", "completed_at": "2024-04-02T10:15:48.744999Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.014181137084960938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.749377Z", "completed_at": "2024-04-02T10:15:48.750435Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.755759Z", "completed_at": "2024-04-02T10:15:48.755766Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009887933731079102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.751075Z", "completed_at": "2024-04-02T10:15:48.752757Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.756506Z", "completed_at": "2024-04-02T10:15:48.756511Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00990915298461914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.753289Z", "completed_at": "2024-04-02T10:15:48.754198Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.757286Z", "completed_at": "2024-04-02T10:15:48.757289Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.010066032409667969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_military_service_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.754447Z", "completed_at": "2024-04-02T10:15:48.755311Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.757523Z", "completed_at": "2024-04-02T10:15:48.757525Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.010302305221557617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.762300Z", "completed_at": "2024-04-02T10:15:48.763347Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.805066Z", "completed_at": "2024-04-02T10:15:48.805074Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.04643678665161133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.764040Z", "completed_at": "2024-04-02T10:15:48.764974Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.805730Z", "completed_at": "2024-04-02T10:15:48.805733Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.046411752700805664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.765446Z", "completed_at": "2024-04-02T10:15:48.767626Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.806514Z", "completed_at": "2024-04-02T10:15:48.806518Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.04682302474975586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.768029Z", "completed_at": "2024-04-02T10:15:48.804410Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.806758Z", "completed_at": "2024-04-02T10:15:48.806764Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.04712510108947754, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.812116Z", "completed_at": "2024-04-02T10:15:48.813216Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.817694Z", "completed_at": "2024-04-02T10:15:48.817700Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009320974349975586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_name_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.813900Z", "completed_at": "2024-04-02T10:15:48.814803Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.818313Z", "completed_at": "2024-04-02T10:15:48.818316Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009237051010131836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.815269Z", "completed_at": "2024-04-02T10:15:48.816129Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.819018Z", "completed_at": "2024-04-02T10:15:48.819021Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.009345054626464844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.816360Z", "completed_at": "2024-04-02T10:15:48.817203Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.819249Z", "completed_at": "2024-04-02T10:15:48.819252Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.009353160858154297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.823666Z", "completed_at": "2024-04-02T10:15:48.824743Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.830242Z", "completed_at": "2024-04-02T10:15:48.830256Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.010230064392089844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.825378Z", "completed_at": "2024-04-02T10:15:48.826997Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.831053Z", "completed_at": "2024-04-02T10:15:48.831060Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.010289907455444336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.827436Z", "completed_at": "2024-04-02T10:15:48.828305Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.831863Z", "completed_at": "2024-04-02T10:15:48.831866Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01034402847290039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.828607Z", "completed_at": "2024-04-02T10:15:48.829594Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.832105Z", "completed_at": "2024-04-02T10:15:48.832108Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.010436773300170898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.836543Z", "completed_at": "2024-04-02T10:15:48.837491Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.850189Z", "completed_at": "2024-04-02T10:15:48.850196Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01719808578491211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:48.838309Z", "completed_at": "2024-04-02T10:15:48.839315Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:48.850822Z", "completed_at": "2024-04-02T10:15:48.850825Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.017229795455932617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.710149Z", "completed_at": "2024-04-02T10:15:56.721796Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.722360Z", "completed_at": "2024-04-02T10:15:56.722367Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.013910770416259766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from __dbt__cte__stg_workday__job_family_job_profile\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.724093Z", "completed_at": "2024-04-02T10:15:56.730541Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.731016Z", "completed_at": "2024-04-02T10:15:56.731021Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007966041564941406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.732631Z", "completed_at": "2024-04-02T10:15:56.736070Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.736569Z", "completed_at": "2024-04-02T10:15:56.736574Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.004988193511962891, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.738082Z", "completed_at": "2024-04-02T10:15:56.742064Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.742542Z", "completed_at": "2024-04-02T10:15:56.742548Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00540471076965332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id\n from __dbt__cte__stg_workday__job_family\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.744017Z", "completed_at": "2024-04-02T10:15:56.747643Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.748099Z", "completed_at": "2024-04-02T10:15:56.748104Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.004996061325073242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.749726Z", "completed_at": "2024-04-02T10:15:56.754536Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.755016Z", "completed_at": "2024-04-02T10:15:56.755022Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.006385087966918945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from __dbt__cte__stg_workday__job_family_job_family_group\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.756653Z", "completed_at": "2024-04-02T10:15:56.761204Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.761711Z", "completed_at": "2024-04-02T10:15:56.761717Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.006094217300415039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.763323Z", "completed_at": "2024-04-02T10:15:56.766827Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.767290Z", "completed_at": "2024-04-02T10:15:56.767294Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.004946231842041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.768840Z", "completed_at": "2024-04-02T10:15:56.772895Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.773363Z", "completed_at": "2024-04-02T10:15:56.773368Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0055391788482666016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_group_id\n from __dbt__cte__stg_workday__job_family_group\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.774950Z", "completed_at": "2024-04-02T10:15:56.778333Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.778806Z", "completed_at": "2024-04-02T10:15:56.778812Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0049169063568115234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_group\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.780363Z", "completed_at": "2024-04-02T10:15:56.797305Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.797849Z", "completed_at": "2024-04-02T10:15:56.797856Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01849508285522461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__job_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), job_profile_data as (\n\n select * \n from __dbt__cte__stg_workday__job_profile\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_profile\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from __dbt__cte__stg_workday__job_family\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_family_group\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from __dbt__cte__stg_workday__job_family_group\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.799623Z", "completed_at": "2024-04-02T10:15:56.803957Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.804438Z", "completed_at": "2024-04-02T10:15:56.804443Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.005816936492919922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id\n from __dbt__cte__stg_workday__job_profile\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.806009Z", "completed_at": "2024-04-02T10:15:56.809936Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.810467Z", "completed_at": "2024-04-02T10:15:56.810472Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.005483150482177734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.812482Z", "completed_at": "2024-04-02T10:15:56.817541Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.818025Z", "completed_at": "2024-04-02T10:15:56.818032Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.00666499137878418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from __dbt__cte__stg_workday__organization_job_family\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.819774Z", "completed_at": "2024-04-02T10:15:56.823568Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.824169Z", "completed_at": "2024-04-02T10:15:56.824176Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.005578041076660156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.825924Z", "completed_at": "2024-04-02T10:15:56.830507Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.831025Z", "completed_at": "2024-04-02T10:15:56.831031Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.006153106689453125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.832813Z", "completed_at": "2024-04-02T10:15:56.837630Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.838134Z", "completed_at": "2024-04-02T10:15:56.838140Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.006429910659790039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__military_service\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.839623Z", "completed_at": "2024-04-02T10:15:56.844317Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.846229Z", "completed_at": "2024-04-02T10:15:56.846234Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.007946014404296875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__military_service\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.851520Z", "completed_at": "2024-04-02T10:15:56.860571Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.861554Z", "completed_at": "2024-04-02T10:15:56.861560Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016697168350219727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.847361Z", "completed_at": "2024-04-02T10:15:56.860834Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.861820Z", "completed_at": "2024-04-02T10:15:56.861823Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01766681671142578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id\n from __dbt__cte__stg_workday__organization\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.855657Z", "completed_at": "2024-04-02T10:15:56.862034Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.864285Z", "completed_at": "2024-04-02T10:15:56.864289Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.010523796081542969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from __dbt__cte__stg_workday__organization_role\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.869926Z", "completed_at": "2024-04-02T10:15:56.878012Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.879054Z", "completed_at": "2024-04-02T10:15:56.879061Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.014865875244140625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_role_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.866433Z", "completed_at": "2024-04-02T10:15:56.878305Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.879321Z", "completed_at": "2024-04-02T10:15:56.879325Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.015964984893798828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.873921Z", "completed_at": "2024-04-02T10:15:56.880070Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.881877Z", "completed_at": "2024-04-02T10:15:56.881881Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009716987609863281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from __dbt__cte__stg_workday__person_contact_email_address\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.883375Z", "completed_at": "2024-04-02T10:15:56.892019Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.898065Z", "completed_at": "2024-04-02T10:15:56.898073Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.017358064651489258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_contact_email_address_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere person_contact_email_address_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.887041Z", "completed_at": "2024-04-02T10:15:56.892297Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.898352Z", "completed_at": "2024-04-02T10:15:56.898357Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.017290830612182617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.892513Z", "completed_at": "2024-04-02T10:15:56.899713Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.901549Z", "completed_at": "2024-04-02T10:15:56.901558Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.011410951614379883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from __dbt__cte__stg_workday__organization_role_worker\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.907038Z", "completed_at": "2024-04-02T10:15:56.915623Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.916704Z", "completed_at": "2024-04-02T10:15:56.916710Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016471147537231445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_worker_code\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_worker_code is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.903132Z", "completed_at": "2024-04-02T10:15:56.915904Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.917165Z", "completed_at": "2024-04-02T10:15:56.917169Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01753401756286621, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.912119Z", "completed_at": "2024-04-02T10:15:56.916936Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.918877Z", "completed_at": "2024-04-02T10:15:56.918880Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008634090423583984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select role_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.921194Z", "completed_at": "2024-04-02T10:15:56.933837Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.934536Z", "completed_at": "2024-04-02T10:15:56.934543Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01602005958557129, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from __dbt__cte__stg_workday__person_name\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.926949Z", "completed_at": "2024-04-02T10:15:56.934317Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.935734Z", "completed_at": "2024-04-02T10:15:56.935737Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.016505956649780273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_name_type\nfrom __dbt__cte__stg_workday__person_name\nwhere person_name_type is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.930654Z", "completed_at": "2024-04-02T10:15:56.935015Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.937013Z", "completed_at": "2024-04-02T10:15:56.937017Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01146697998046875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_name\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.939173Z", "completed_at": "2024-04-02T10:15:56.947256Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.997359Z", "completed_at": "2024-04-02T10:15:56.997371Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0608210563659668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__personal_information\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:56.943847Z", "completed_at": "2024-04-02T10:15:56.997056Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:56.998776Z", "completed_at": "2024-04-02T10:15:56.998780Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.06147599220275879, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.002513Z", "completed_at": "2024-04-02T10:15:57.014762Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.015432Z", "completed_at": "2024-04-02T10:15:57.015440Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.015820026397705078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.011497Z", "completed_at": "2024-04-02T10:15:57.015728Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.017740Z", "completed_at": "2024-04-02T10:15:57.017748Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.017081022262573242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.007930Z", "completed_at": "2024-04-02T10:15:57.016530Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.018541Z", "completed_at": "2024-04-02T10:15:57.018546Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01852703094482422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select ethnicity_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere ethnicity_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.020715Z", "completed_at": "2024-04-02T10:15:57.028153Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.039445Z", "completed_at": "2024-04-02T10:15:57.039457Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.022700071334838867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id\n from __dbt__cte__stg_workday__position\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.029071Z", "completed_at": "2024-04-02T10:15:57.039822Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.042489Z", "completed_at": "2024-04-02T10:15:57.042496Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.016824007034301758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.033984Z", "completed_at": "2024-04-02T10:15:57.042061Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.050176Z", "completed_at": "2024-04-02T10:15:57.050184Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.024737119674682617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.046342Z", "completed_at": "2024-04-02T10:15:57.052014Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.061000Z", "completed_at": "2024-04-02T10:15:57.061009Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.018754005432128906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.052377Z", "completed_at": "2024-04-02T10:15:57.061705Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.068047Z", "completed_at": "2024-04-02T10:15:57.068054Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.02310919761657715, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.062681Z", "completed_at": "2024-04-02T10:15:57.069263Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.075914Z", "completed_at": "2024-04-02T10:15:57.075923Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01643204689025879, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from __dbt__cte__stg_workday__position_organization\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.070703Z", "completed_at": "2024-04-02T10:15:57.081113Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.082884Z", "completed_at": "2024-04-02T10:15:57.082891Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.015654802322387695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.077252Z", "completed_at": "2024-04-02T10:15:57.083185Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.092084Z", "completed_at": "2024-04-02T10:15:57.092092Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0177919864654541, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.084654Z", "completed_at": "2024-04-02T10:15:57.094022Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.099742Z", "completed_at": "2024-04-02T10:15:57.099750Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.02136516571044922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__position_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), position_data as (\n\n select *\n from __dbt__cte__stg_workday__position\n),\n\nposition_job_profile_data as (\n\n select *\n from __dbt__cte__stg_workday__position_job_profile\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.094310Z", "completed_at": "2024-04-02T10:15:57.103287Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.105050Z", "completed_at": "2024-04-02T10:15:57.105054Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013616800308227539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from __dbt__cte__stg_workday__position_job_profile\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.100024Z", "completed_at": "2024-04-02T10:15:57.104795Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.106558Z", "completed_at": "2024-04-02T10:15:57.106562Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.012458086013793945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.107043Z", "completed_at": "2024-04-02T10:15:57.112910Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.119460Z", "completed_at": "2024-04-02T10:15:57.119467Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01488494873046875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.113146Z", "completed_at": "2024-04-02T10:15:57.119762Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.120973Z", "completed_at": "2024-04-02T10:15:57.120976Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.010387897491455078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.116555Z", "completed_at": "2024-04-02T10:15:57.121195Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.122829Z", "completed_at": "2024-04-02T10:15:57.122833Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.014628887176513672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.123059Z", "completed_at": "2024-04-02T10:15:57.133163Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.145410Z", "completed_at": "2024-04-02T10:15:57.145417Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.028396129608154297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.145675Z", "completed_at": "2024-04-02T10:15:57.151127Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.152659Z", "completed_at": "2024-04-02T10:15:57.152664Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.016239166259765625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__worker\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.156402Z", "completed_at": "2024-04-02T10:15:57.162243Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.166373Z", "completed_at": "2024-04-02T10:15:57.166379Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01538705825805664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from __dbt__cte__stg_workday__worker_leave_status\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.152901Z", "completed_at": "2024-04-02T10:15:57.162496Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.166675Z", "completed_at": "2024-04-02T10:15:57.166679Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01617908477783203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.162747Z", "completed_at": "2024-04-02T10:15:57.167821Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.169452Z", "completed_at": "2024-04-02T10:15:57.169456Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.008887052536010742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select leave_request_event_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere leave_request_event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.170780Z", "completed_at": "2024-04-02T10:15:57.189137Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.190074Z", "completed_at": "2024-04-02T10:15:57.190081Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.02234625816345215, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.184892Z", "completed_at": "2024-04-02T10:15:57.191430Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.193448Z", "completed_at": "2024-04-02T10:15:57.193453Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.010038137435913086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from __dbt__cte__stg_workday__worker_position\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.194626Z", "completed_at": "2024-04-02T10:15:57.206319Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.206859Z", "completed_at": "2024-04-02T10:15:57.206868Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.014770984649658203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.198055Z", "completed_at": "2024-04-02T10:15:57.207636Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.209271Z", "completed_at": "2024-04-02T10:15:57.209275Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01721811294555664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.202586Z", "completed_at": "2024-04-02T10:15:57.208221Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.209692Z", "completed_at": "2024-04-02T10:15:57.209695Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.011686086654663086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.210429Z", "completed_at": "2024-04-02T10:15:57.215278Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.278162Z", "completed_at": "2024-04-02T10:15:57.278170Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0701897144317627, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.250365Z", "completed_at": "2024-04-02T10:15:57.280496Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.285053Z", "completed_at": "2024-04-02T10:15:57.285060Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.07107782363891602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.216109Z", "completed_at": "2024-04-02T10:15:57.284238Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.285340Z", "completed_at": "2024-04-02T10:15:57.285344Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0719459056854248, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__employee_history", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n), worker_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_history\n),\n\nworker_position_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_history\n),\n\npersonal_information_history as (\n\n select *\n from __dbt__cte__stg_workday__personal_information_history\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select md5(cast(coalesce(cast(employee_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.280791Z", "completed_at": "2024-04-02T10:15:57.285599Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.287618Z", "completed_at": "2024-04-02T10:15:57.287622Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009095907211303711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.289717Z", "completed_at": "2024-04-02T10:15:57.306596Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.307694Z", "completed_at": "2024-04-02T10:15:57.307701Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.02075791358947754, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.293279Z", "completed_at": "2024-04-02T10:15:57.306857Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.307946Z", "completed_at": "2024-04-02T10:15:57.307949Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.020884037017822266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.298069Z", "completed_at": "2024-04-02T10:15:57.308166Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.310152Z", "completed_at": "2024-04-02T10:15:57.310156Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01396489143371582, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__organization_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), organization_data as (\n\n select * \n from __dbt__cte__stg_workday__organization\n),\n\norganization_role_data as (\n\n select * \n from __dbt__cte__stg_workday__organization_role\n),\n\nworker_position_organization as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_organization\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.316598Z", "completed_at": "2024-04-02T10:15:57.324069Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.325333Z", "completed_at": "2024-04-02T10:15:57.325341Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01548910140991211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.312162Z", "completed_at": "2024-04-02T10:15:57.324373Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.325573Z", "completed_at": "2024-04-02T10:15:57.325576Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01653313636779785, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from __dbt__cte__stg_workday__worker_position_organization\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.320648Z", "completed_at": "2024-04-02T10:15:57.325085Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.327248Z", "completed_at": "2024-04-02T10:15:57.327252Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008526802062988281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.330554Z", "completed_at": "2024-04-02T10:15:57.341127Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.341916Z", "completed_at": "2024-04-02T10:15:57.341923Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.014070987701416016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.334111Z", "completed_at": "2024-04-02T10:15:57.341641Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.343369Z", "completed_at": "2024-04-02T10:15:57.343373Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.015202999114990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.337141Z", "completed_at": "2024-04-02T10:15:57.342178Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.343935Z", "completed_at": "2024-04-02T10:15:57.343940Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01496124267578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.371149Z", "completed_at": "2024-04-02T10:15:57.377665Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.379250Z", "completed_at": "2024-04-02T10:15:57.379259Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.023791074752807617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.379576Z", "completed_at": "2024-04-02T10:15:57.384397Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.387856Z", "completed_at": "2024-04-02T10:15:57.387866Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.010310888290405273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.384654Z", "completed_at": "2024-04-02T10:15:57.389001Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.390285Z", "completed_at": "2024-04-02T10:15:57.390293Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.02118086814880371, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.390627Z", "completed_at": "2024-04-02T10:15:57.405603Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.406187Z", "completed_at": "2024-04-02T10:15:57.406192Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.017338037490844727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n), employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from __dbt__cte__int_workday__worker_employee_enhanced \n)\n\nselect * \nfrom employee_surrogate_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.408677Z", "completed_at": "2024-04-02T10:15:57.415807Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.416583Z", "completed_at": "2024-04-02T10:15:57.416588Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009726762771606445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.411710Z", "completed_at": "2024-04-02T10:15:57.416334Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.417584Z", "completed_at": "2024-04-02T10:15:57.417587Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.010279178619384766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.419146Z", "completed_at": "2024-04-02T10:15:57.422168Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:57.422654Z", "completed_at": "2024-04-02T10:15:57.422660Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.004583120346069336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__employee_overview_employee_id.b01e19996c", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is not null\ngroup by employee_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.067604Z", "completed_at": "2024-04-02T10:15:58.084231Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.085350Z", "completed_at": "2024-04-02T10:15:58.085361Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.02280282974243164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.075564Z", "completed_at": "2024-04-02T10:15:58.085771Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.088298Z", "completed_at": "2024-04-02T10:15:58.088305Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.024255037307739258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.090995Z", "completed_at": "2024-04-02T10:15:58.102487Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.103601Z", "completed_at": "2024-04-02T10:15:58.103612Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.015605926513671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.097492Z", "completed_at": "2024-04-02T10:15:58.104817Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.106629Z", "completed_at": "2024-04-02T10:15:58.106644Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011202096939086914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.108100Z", "completed_at": "2024-04-02T10:15:58.113727Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.114405Z", "completed_at": "2024-04-02T10:15:58.114412Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.008980035781860352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:57.362003Z", "completed_at": "2024-04-02T10:15:58.809676Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.810247Z", "completed_at": "2024-04-02T10:15:58.810256Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.5768733024597168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_daily_history", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n\n\n \n \n\n \n \n\n\n\n\n\nwith spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n + \n \n p13.generated_number * power(2, 13)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n cross join \n \n p as p13\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 8493\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2000-12-31' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-02'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.936182Z", "completed_at": "2024-04-02T10:15:58.965021Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.966241Z", "completed_at": "2024-04-02T10:15:58.966254Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.03783082962036133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__monthly_summary", "compiled": true, "compiled_code": " \n\nwith row_month_partition as (\n\n select *, \n cast(date_trunc('month', date_day) as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n),\n\nend_of_month_history as (\n \n select *,\n now() as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when date_month = cast(date_trunc('month', position_effective_date) as date) then 1 else 0 end) as new_employees,\n sum(case when date_month = cast(date_trunc('month', termination_date) as date) then 1 else 0 end) as churned_employees,\n sum(case when (date_month = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = cast(date_trunc('month', end_employment_date) as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and (cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.960865Z", "completed_at": "2024-04-02T10:15:58.965920Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.968323Z", "completed_at": "2024-04-02T10:15:58.968329Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.03798508644104004, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is not null\ngroup by employee_day_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.956856Z", "completed_at": "2024-04-02T10:15:58.966550Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.969605Z", "completed_at": "2024-04-02T10:15:58.969614Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0407872200012207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.973990Z", "completed_at": "2024-04-02T10:15:58.982269Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.983184Z", "completed_at": "2024-04-02T10:15:58.983193Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.013358831405639648, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metrics_month\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.978383Z", "completed_at": "2024-04-02T10:15:58.982847Z"}, {"name": "execute", "started_at": "2024-04-02T10:15:58.984735Z", "completed_at": "2024-04-02T10:15:58.984745Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.012235164642333984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab", "compiled": true, "compiled_code": "\n \n \n\nselect\n metrics_month as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is not null\ngroup by metrics_month\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:15:58.046582Z", "completed_at": "2024-04-02T10:15:59.973814Z"}, {"name": "execute", "started_at": "2024-04-02T10:16:00.030208Z", "completed_at": "2024-04-02T10:16:00.037272Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 2.1368558406829834, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__worker_position_org_daily_history", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n\n\n \n \n\n \n \n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n), spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n + \n \n p13.generated_number * power(2, 13)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n cross join \n \n p as p13\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 8493\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2000-12-31' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-02'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nworker_position_org_history as (\n\n select * \n from __dbt__cte__stg_workday__worker_position_organization_history\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n _fivetran_start,\n _fivetran_end,\n _fivetran_active,\n _fivetran_date,\n history_unique_key,\n index,\n date_of_pay_group_assignment,\n primary_business_site,\n is_used_in_change_organization_assignments\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:16:00.204380Z", "completed_at": "2024-04-02T10:16:00.235704Z"}, {"name": "execute", "started_at": "2024-04-02T10:16:00.239246Z", "completed_at": "2024-04-02T10:16:00.239256Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.05458402633666992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:16:00.190101Z", "completed_at": "2024-04-02T10:16:00.236606Z"}, {"name": "execute", "started_at": "2024-04-02T10:16:00.240316Z", "completed_at": "2024-04-02T10:16:00.240321Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.057309865951538086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:16:00.214079Z", "completed_at": "2024-04-02T10:16:00.237648Z"}, {"name": "execute", "started_at": "2024-04-02T10:16:00.242040Z", "completed_at": "2024-04-02T10:16:00.242048Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.05629396438598633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect wpo_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:16:00.208639Z", "completed_at": "2024-04-02T10:16:00.238271Z"}, {"name": "execute", "started_at": "2024-04-02T10:16:00.242453Z", "completed_at": "2024-04-02T10:16:00.242458Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.057634830474853516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T10:16:00.248753Z", "completed_at": "2024-04-02T10:16:00.257473Z"}, {"name": "execute", "started_at": "2024-04-02T10:16:00.259175Z", "completed_at": "2024-04-02T10:16:00.259241Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014747142791748047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21", "compiled": true, "compiled_code": "\n \n \n\nselect\n wpo_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is not null\ngroup by wpo_day_id\nhaving count(*) > 1\n\n\n", "relation_name": null}], "elapsed_time": 15.525320053100586, "args": {"log_format": "default", "send_anonymous_usage_stats": true, "warn_error_options": {"include": [], "exclude": []}, "printer_width": 80, "partial_parse": true, "indirect_selection": "eager", "compile": true, "log_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests/logs", "enable_legacy_logger": false, "show_resource_report": false, "static_parser": true, "target": "postgres", "empty_catalog": false, "profiles_dir": "/Users/avinash.kunnath/.dbt", "cache_selected_only": false, "macro_debugging": false, "defer": false, "quiet": false, "write_json": true, "log_level": "info", "favor_state": false, "log_file_max_bytes": 10485760, "introspect": true, "populate_cache": true, "which": "generate", "strict_mode": false, "exclude": [], "project_dir": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "print": true, "select": [], "log_level_file": "debug", "vars": {}, "version_check": true, "use_colors_file": true, "static": false, "partial_parse_file_diff": true, "invocation_command": "dbt docs generate -t postgres", "log_format_file": "debug", "use_colors": true}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v5.json", "dbt_version": "1.7.8", "generated_at": "2024-04-02T23:44:57.807306Z", "invocation_id": "cc500e2b-b7c4-44e8-b9fd-9ae8c4aa2439", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.662918Z", "completed_at": "2024-04-02T23:44:48.667351Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.670002Z", "completed_at": "2024-04-02T23:44:48.670060Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.06273818016052246, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.612249Z", "completed_at": "2024-04-02T23:44:48.667842Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.670372Z", "completed_at": "2024-04-02T23:44:48.670376Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.06996393203735352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.659346Z", "completed_at": "2024-04-02T23:44:48.668330Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.670641Z", "completed_at": "2024-04-02T23:44:48.670644Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.06618595123291016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.656186Z", "completed_at": "2024-04-02T23:44:48.668727Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.670908Z", "completed_at": "2024-04-02T23:44:48.670911Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0692129135131836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.678031Z", "completed_at": "2024-04-02T23:44:48.691779Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.693516Z", "completed_at": "2024-04-02T23:44:48.693524Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.020138263702392578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.681877Z", "completed_at": "2024-04-02T23:44:48.692679Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.695511Z", "completed_at": "2024-04-02T23:44:48.695517Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.022124052047729492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__military_service_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.687351Z", "completed_at": "2024-04-02T23:44:48.693223Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.696200Z", "completed_at": "2024-04-02T23:44:48.696206Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.022367238998413086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.684528Z", "completed_at": "2024-04-02T23:44:48.694181Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.697763Z", "completed_at": "2024-04-02T23:44:48.697770Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.025568008422851562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.703646Z", "completed_at": "2024-04-02T23:44:48.711593Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.717969Z", "completed_at": "2024-04-02T23:44:48.717977Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.020074129104614258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.708514Z", "completed_at": "2024-04-02T23:44:48.717679Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.720002Z", "completed_at": "2024-04-02T23:44:48.720006Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0189208984375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.711851Z", "completed_at": "2024-04-02T23:44:48.718297Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.720966Z", "completed_at": "2024-04-02T23:44:48.720970Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.019448041915893555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.714674Z", "completed_at": "2024-04-02T23:44:48.719486Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.722292Z", "completed_at": "2024-04-02T23:44:48.722296Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01589488983154297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_name_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.724591Z", "completed_at": "2024-04-02T23:44:48.732401Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.739109Z", "completed_at": "2024-04-02T23:44:48.739117Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01853203773498535, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.729030Z", "completed_at": "2024-04-02T23:44:48.738734Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.741257Z", "completed_at": "2024-04-02T23:44:48.741260Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.018342971801757812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.733040Z", "completed_at": "2024-04-02T23:44:48.739507Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.742144Z", "completed_at": "2024-04-02T23:44:48.742147Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.016323089599609375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.736055Z", "completed_at": "2024-04-02T23:44:48.740670Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.743470Z", "completed_at": "2024-04-02T23:44:48.743477Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01688218116760254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.746387Z", "completed_at": "2024-04-02T23:44:48.753302Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.760742Z", "completed_at": "2024-04-02T23:44:48.760748Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.018751859664916992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.750782Z", "completed_at": "2024-04-02T23:44:48.760361Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.762573Z", "completed_at": "2024-04-02T23:44:48.762577Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.017873048782348633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.753926Z", "completed_at": "2024-04-02T23:44:48.761077Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.763432Z", "completed_at": "2024-04-02T23:44:48.763435Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01577281951904297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_leave_status_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.756758Z", "completed_at": "2024-04-02T23:44:48.762081Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.764727Z", "completed_at": "2024-04-02T23:44:48.764733Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016149044036865234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.767254Z", "completed_at": "2024-04-02T23:44:48.771957Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.777481Z", "completed_at": "2024-04-02T23:44:48.777488Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014492988586425781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.772289Z", "completed_at": "2024-04-02T23:44:48.773589Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.777748Z", "completed_at": "2024-04-02T23:44:48.777751Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012478828430175781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.774185Z", "completed_at": "2024-04-02T23:44:48.775189Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.778271Z", "completed_at": "2024-04-02T23:44:48.778275Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.009619951248168945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.775994Z", "completed_at": "2024-04-02T23:44:48.776968Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.779649Z", "completed_at": "2024-04-02T23:44:48.779652Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01009678840637207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.784407Z", "completed_at": "2024-04-02T23:44:48.785715Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.794011Z", "completed_at": "2024-04-02T23:44:48.794017Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.013282060623168945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.786231Z", "completed_at": "2024-04-02T23:44:48.789958Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.794263Z", "completed_at": "2024-04-02T23:44:48.794266Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013468027114868164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.790729Z", "completed_at": "2024-04-02T23:44:48.791681Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.794761Z", "completed_at": "2024-04-02T23:44:48.794764Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013691902160644531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_military_service_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.792516Z", "completed_at": "2024-04-02T23:44:48.793482Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.796197Z", "completed_at": "2024-04-02T23:44:48.796204Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.013998985290527344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.800746Z", "completed_at": "2024-04-02T23:44:48.801926Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.870942Z", "completed_at": "2024-04-02T23:44:48.870955Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.07423210144042969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.802319Z", "completed_at": "2024-04-02T23:44:48.803326Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.871343Z", "completed_at": "2024-04-02T23:44:48.871350Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.07446789741516113, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.804058Z", "completed_at": "2024-04-02T23:44:48.806252Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.872001Z", "completed_at": "2024-04-02T23:44:48.872007Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.07473397254943848, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.807232Z", "completed_at": "2024-04-02T23:44:48.870086Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.873606Z", "completed_at": "2024-04-02T23:44:48.873610Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.07499408721923828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.877998Z", "completed_at": "2024-04-02T23:44:48.879153Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.883939Z", "completed_at": "2024-04-02T23:44:48.883944Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00979304313659668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_name_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.879419Z", "completed_at": "2024-04-02T23:44:48.880383Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.884172Z", "completed_at": "2024-04-02T23:44:48.884175Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01003885269165039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.880882Z", "completed_at": "2024-04-02T23:44:48.881821Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.884778Z", "completed_at": "2024-04-02T23:44:48.884784Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.010372161865234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.882542Z", "completed_at": "2024-04-02T23:44:48.883456Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.886443Z", "completed_at": "2024-04-02T23:44:48.886447Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.010887861251831055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.891605Z", "completed_at": "2024-04-02T23:44:48.892998Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.898875Z", "completed_at": "2024-04-02T23:44:48.898881Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011053085327148438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.893367Z", "completed_at": "2024-04-02T23:44:48.895305Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.899108Z", "completed_at": "2024-04-02T23:44:48.899110Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.011123895645141602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.895952Z", "completed_at": "2024-04-02T23:44:48.896859Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.899523Z", "completed_at": "2024-04-02T23:44:48.899526Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.011286020278930664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.897545Z", "completed_at": "2024-04-02T23:44:48.898425Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.900770Z", "completed_at": "2024-04-02T23:44:48.900774Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.011753082275390625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.905786Z", "completed_at": "2024-04-02T23:44:48.906943Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.921032Z", "completed_at": "2024-04-02T23:44:48.921039Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.018917083740234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.907304Z", "completed_at": "2024-04-02T23:44:48.908214Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.921290Z", "completed_at": "2024-04-02T23:44:48.921293Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.019083023071289062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.652076Z", "completed_at": "2024-04-02T23:44:55.667999Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.668641Z", "completed_at": "2024-04-02T23:44:55.668649Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.017765283584594727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from __dbt__cte__stg_workday__job_family_job_family_group\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.670453Z", "completed_at": "2024-04-02T23:44:55.677467Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.678043Z", "completed_at": "2024-04-02T23:44:55.678050Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.008748054504394531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.680084Z", "completed_at": "2024-04-02T23:44:55.684123Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.684651Z", "completed_at": "2024-04-02T23:44:55.684656Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.005898952484130859, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.686702Z", "completed_at": "2024-04-02T23:44:55.691657Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.692156Z", "completed_at": "2024-04-02T23:44:55.692162Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.006756305694580078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from __dbt__cte__stg_workday__job_family_job_profile\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.693910Z", "completed_at": "2024-04-02T23:44:55.697364Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.697872Z", "completed_at": "2024-04-02T23:44:55.697879Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.005042076110839844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.699593Z", "completed_at": "2024-04-02T23:44:55.702869Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.703312Z", "completed_at": "2024-04-02T23:44:55.703317Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.004689931869506836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.705000Z", "completed_at": "2024-04-02T23:44:55.710077Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.710529Z", "completed_at": "2024-04-02T23:44:55.710535Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.006653785705566406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_group_id\n from __dbt__cte__stg_workday__job_family_group\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.712212Z", "completed_at": "2024-04-02T23:44:55.715484Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.715919Z", "completed_at": "2024-04-02T23:44:55.715923Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.004787921905517578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_group\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.717750Z", "completed_at": "2024-04-02T23:44:55.722316Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.722848Z", "completed_at": "2024-04-02T23:44:55.722854Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.006396055221557617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id\n from __dbt__cte__stg_workday__job_family\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.724469Z", "completed_at": "2024-04-02T23:44:55.727940Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.728359Z", "completed_at": "2024-04-02T23:44:55.728363Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0048220157623291016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.730169Z", "completed_at": "2024-04-02T23:44:55.745416Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.745854Z", "completed_at": "2024-04-02T23:44:55.745860Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.016927003860473633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__job_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), job_profile_data as (\n\n select * \n from __dbt__cte__stg_workday__job_profile\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_profile\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from __dbt__cte__stg_workday__job_family\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_family_group\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from __dbt__cte__stg_workday__job_family_group\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.747655Z", "completed_at": "2024-04-02T23:44:55.752075Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.752573Z", "completed_at": "2024-04-02T23:44:55.752580Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.006314992904663086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id\n from __dbt__cte__stg_workday__job_profile\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.754282Z", "completed_at": "2024-04-02T23:44:55.757948Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.758464Z", "completed_at": "2024-04-02T23:44:55.758471Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.005241870880126953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.760186Z", "completed_at": "2024-04-02T23:44:55.767646Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.770303Z", "completed_at": "2024-04-02T23:44:55.770309Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.011644840240478516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__military_service\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.771511Z", "completed_at": "2024-04-02T23:44:55.785672Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.786874Z", "completed_at": "2024-04-02T23:44:55.786883Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.018695354461669922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__military_service\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.775728Z", "completed_at": "2024-04-02T23:44:55.785979Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.787481Z", "completed_at": "2024-04-02T23:44:55.787486Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01911187171936035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id\n from __dbt__cte__stg_workday__organization\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.782734Z", "completed_at": "2024-04-02T23:44:55.787185Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.789575Z", "completed_at": "2024-04-02T23:44:55.789580Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.008890151977539062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.792084Z", "completed_at": "2024-04-02T23:44:55.804253Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.805222Z", "completed_at": "2024-04-02T23:44:55.805229Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0160367488861084, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from __dbt__cte__stg_workday__organization_job_family\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.796731Z", "completed_at": "2024-04-02T23:44:55.804918Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.806578Z", "completed_at": "2024-04-02T23:44:55.806582Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016479969024658203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.800810Z", "completed_at": "2024-04-02T23:44:55.805711Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.807844Z", "completed_at": "2024-04-02T23:44:55.807847Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01263570785522461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.810371Z", "completed_at": "2024-04-02T23:44:55.820932Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.825595Z", "completed_at": "2024-04-02T23:44:55.825607Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.018410921096801758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from __dbt__cte__stg_workday__organization_role\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.816714Z", "completed_at": "2024-04-02T23:44:55.825204Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.827308Z", "completed_at": "2024-04-02T23:44:55.827315Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.018691062927246094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.821324Z", "completed_at": "2024-04-02T23:44:55.827027Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.829086Z", "completed_at": "2024-04-02T23:44:55.829090Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013830184936523438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_role_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.830629Z", "completed_at": "2024-04-02T23:44:55.840502Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.845697Z", "completed_at": "2024-04-02T23:44:55.845703Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017895936965942383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from __dbt__cte__stg_workday__organization_role_worker\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.836759Z", "completed_at": "2024-04-02T23:44:55.845449Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.846952Z", "completed_at": "2024-04-02T23:44:55.846955Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.017778873443603516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.840902Z", "completed_at": "2024-04-02T23:44:55.846186Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.848395Z", "completed_at": "2024-04-02T23:44:55.848401Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013607978820800781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_worker_code\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_worker_code is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.851318Z", "completed_at": "2024-04-02T23:44:55.860254Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.865448Z", "completed_at": "2024-04-02T23:44:55.865460Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017926931381225586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select role_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.855609Z", "completed_at": "2024-04-02T23:44:55.864976Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.867146Z", "completed_at": "2024-04-02T23:44:55.867151Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01775217056274414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from __dbt__cte__stg_workday__person_name\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.860627Z", "completed_at": "2024-04-02T23:44:55.866123Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.868664Z", "completed_at": "2024-04-02T23:44:55.868668Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.014687061309814453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_name_type\nfrom __dbt__cte__stg_workday__person_name\nwhere person_name_type is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.870940Z", "completed_at": "2024-04-02T23:44:55.881236Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.885606Z", "completed_at": "2024-04-02T23:44:55.885614Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017441987991333008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_name\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.875652Z", "completed_at": "2024-04-02T23:44:55.885290Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.886919Z", "completed_at": "2024-04-02T23:44:55.886923Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01755690574645996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from __dbt__cte__stg_workday__person_contact_email_address\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.881649Z", "completed_at": "2024-04-02T23:44:55.886665Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.888567Z", "completed_at": "2024-04-02T23:44:55.888572Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.014356851577758789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_contact_email_address_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere person_contact_email_address_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.890250Z", "completed_at": "2024-04-02T23:44:55.899704Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.903687Z", "completed_at": "2024-04-02T23:44:55.903694Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016258955001831055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.895124Z", "completed_at": "2024-04-02T23:44:55.903946Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.905534Z", "completed_at": "2024-04-02T23:44:55.905537Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016846656799316406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__personal_information\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.900104Z", "completed_at": "2024-04-02T23:44:55.904963Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.907090Z", "completed_at": "2024-04-02T23:44:55.907096Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013509273529052734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.908588Z", "completed_at": "2024-04-02T23:44:55.919111Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.925860Z", "completed_at": "2024-04-02T23:44:55.925870Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.020606279373168945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.915290Z", "completed_at": "2024-04-02T23:44:55.925390Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.927476Z", "completed_at": "2024-04-02T23:44:55.927480Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.014812946319580078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.919478Z", "completed_at": "2024-04-02T23:44:55.927088Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.929139Z", "completed_at": "2024-04-02T23:44:55.929142Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.015184879302978516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.942424Z", "completed_at": "2024-04-02T23:44:55.952778Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.954603Z", "completed_at": "2024-04-02T23:44:55.954611Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.02538299560546875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.947313Z", "completed_at": "2024-04-02T23:44:55.954318Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.959281Z", "completed_at": "2024-04-02T23:44:55.959289Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01837015151977539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select ethnicity_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere ethnicity_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.956046Z", "completed_at": "2024-04-02T23:44:55.961248Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.967202Z", "completed_at": "2024-04-02T23:44:55.967209Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017212867736816406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.962356Z", "completed_at": "2024-04-02T23:44:55.971500Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.973566Z", "completed_at": "2024-04-02T23:44:55.973574Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.014055252075195312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id\n from __dbt__cte__stg_workday__position\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.967560Z", "completed_at": "2024-04-02T23:44:55.973141Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.982064Z", "completed_at": "2024-04-02T23:44:55.982073Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.021322011947631836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.974977Z", "completed_at": "2024-04-02T23:44:55.984072Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.990756Z", "completed_at": "2024-04-02T23:44:55.990764Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.022241830825805664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__position_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), position_data as (\n\n select *\n from __dbt__cte__stg_workday__position\n),\n\nposition_job_profile_data as (\n\n select *\n from __dbt__cte__stg_workday__position_job_profile\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.985099Z", "completed_at": "2024-04-02T23:44:55.995375Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.996999Z", "completed_at": "2024-04-02T23:44:55.997003Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.014423131942749023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from __dbt__cte__stg_workday__position_job_profile\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.991139Z", "completed_at": "2024-04-02T23:44:55.996745Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.001452Z", "completed_at": "2024-04-02T23:44:56.001458Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.017847776412963867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.998142Z", "completed_at": "2024-04-02T23:44:56.003728Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.009660Z", "completed_at": "2024-04-02T23:44:56.009669Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01762080192565918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.004469Z", "completed_at": "2024-04-02T23:44:56.014373Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.016376Z", "completed_at": "2024-04-02T23:44:56.016383Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.014693737030029297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from __dbt__cte__stg_workday__position_organization\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.010005Z", "completed_at": "2024-04-02T23:44:56.015574Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.017793Z", "completed_at": "2024-04-02T23:44:56.017797Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.018846988677978516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.018072Z", "completed_at": "2024-04-02T23:44:56.024332Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.029359Z", "completed_at": "2024-04-02T23:44:56.029366Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01742100715637207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.025080Z", "completed_at": "2024-04-02T23:44:56.033699Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.035496Z", "completed_at": "2024-04-02T23:44:56.035503Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013309955596923828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.029660Z", "completed_at": "2024-04-02T23:44:56.035185Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.041100Z", "completed_at": "2024-04-02T23:44:56.041110Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.017455101013183594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.037000Z", "completed_at": "2024-04-02T23:44:56.043159Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.061688Z", "completed_at": "2024-04-02T23:44:56.061695Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0871129035949707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.062030Z", "completed_at": "2024-04-02T23:44:56.124236Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.129696Z", "completed_at": "2024-04-02T23:44:56.129707Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.08704280853271484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__worker\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.125994Z", "completed_at": "2024-04-02T23:44:56.136097Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.137517Z", "completed_at": "2024-04-02T23:44:56.137522Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01835799217224121, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.131071Z", "completed_at": "2024-04-02T23:44:56.137277Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.142643Z", "completed_at": "2024-04-02T23:44:56.142652Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.018407821655273438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from __dbt__cte__stg_workday__worker_leave_status\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.137765Z", "completed_at": "2024-04-02T23:44:56.143381Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.145511Z", "completed_at": "2024-04-02T23:44:56.145517Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013410091400146484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select leave_request_event_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere leave_request_event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.146191Z", "completed_at": "2024-04-02T23:44:56.160779Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.162169Z", "completed_at": "2024-04-02T23:44:56.162176Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.02287912368774414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.162620Z", "completed_at": "2024-04-02T23:44:56.168955Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.173640Z", "completed_at": "2024-04-02T23:44:56.173647Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01620316505432129, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from __dbt__cte__stg_workday__worker_position\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.170239Z", "completed_at": "2024-04-02T23:44:56.178156Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.179778Z", "completed_at": "2024-04-02T23:44:56.179785Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0162808895111084, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.173939Z", "completed_at": "2024-04-02T23:44:56.178883Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.184207Z", "completed_at": "2024-04-02T23:44:56.184220Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016269207000732422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.180051Z", "completed_at": "2024-04-02T23:44:56.186505Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.188257Z", "completed_at": "2024-04-02T23:44:56.188261Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.043637990951538086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.188503Z", "completed_at": "2024-04-02T23:44:56.241242Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.252593Z", "completed_at": "2024-04-02T23:44:56.252614Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.06693100929260254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.191422Z", "completed_at": "2024-04-02T23:44:56.253233Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.259405Z", "completed_at": "2024-04-02T23:44:56.259413Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.07315587997436523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__employee_history", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n), worker_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_history\n),\n\nworker_position_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_history\n),\n\npersonal_information_history as (\n\n select *\n from __dbt__cte__stg_workday__personal_information_history\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select md5(cast(coalesce(cast(employee_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.254080Z", "completed_at": "2024-04-02T23:44:56.260978Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.265881Z", "completed_at": "2024-04-02T23:44:56.265886Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.014534950256347656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.261611Z", "completed_at": "2024-04-02T23:44:56.266917Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.271705Z", "completed_at": "2024-04-02T23:44:56.271710Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01279592514038086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.267235Z", "completed_at": "2024-04-02T23:44:56.272184Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.277178Z", "completed_at": "2024-04-02T23:44:56.277185Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012689828872680664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.272932Z", "completed_at": "2024-04-02T23:44:56.278477Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.287621Z", "completed_at": "2024-04-02T23:44:56.287631Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01721811294555664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.279507Z", "completed_at": "2024-04-02T23:44:56.294347Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.295757Z", "completed_at": "2024-04-02T23:44:56.295763Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.019192934036254883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__organization_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), organization_data as (\n\n select * \n from __dbt__cte__stg_workday__organization\n),\n\norganization_role_data as (\n\n select * \n from __dbt__cte__stg_workday__organization_role\n),\n\nworker_position_organization as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_organization\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.288977Z", "completed_at": "2024-04-02T23:44:56.296249Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.301036Z", "completed_at": "2024-04-02T23:44:56.301041Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01480412483215332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from __dbt__cte__stg_workday__worker_position_organization\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.296954Z", "completed_at": "2024-04-02T23:44:56.302394Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.307537Z", "completed_at": "2024-04-02T23:44:56.307543Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013018131256103516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.303524Z", "completed_at": "2024-04-02T23:44:56.312288Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.313841Z", "completed_at": "2024-04-02T23:44:56.313848Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016226768493652344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.308680Z", "completed_at": "2024-04-02T23:44:56.313602Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.317973Z", "completed_at": "2024-04-02T23:44:56.317978Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.011770248413085938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.314091Z", "completed_at": "2024-04-02T23:44:56.319161Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.321218Z", "completed_at": "2024-04-02T23:44:56.321224Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013247966766357422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.321528Z", "completed_at": "2024-04-02T23:44:56.340554Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.341988Z", "completed_at": "2024-04-02T23:44:56.341994Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.03181719779968262, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.354861Z", "completed_at": "2024-04-02T23:44:56.367323Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.368103Z", "completed_at": "2024-04-02T23:44:56.368111Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.015833139419555664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.357956Z", "completed_at": "2024-04-02T23:44:56.367891Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.369917Z", "completed_at": "2024-04-02T23:44:56.369922Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01684880256652832, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.372325Z", "completed_at": "2024-04-02T23:44:56.389789Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.390418Z", "completed_at": "2024-04-02T23:44:56.390425Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.019778013229370117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.375773Z", "completed_at": "2024-04-02T23:44:56.391297Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.391755Z", "completed_at": "2024-04-02T23:44:56.391758Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.020192861557006836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n), employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from __dbt__cte__int_workday__worker_employee_enhanced \n)\n\nselect * \nfrom employee_surrogate_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.397913Z", "completed_at": "2024-04-02T23:44:56.401256Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.401785Z", "completed_at": "2024-04-02T23:44:56.401791Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.008652925491333008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.394366Z", "completed_at": "2024-04-02T23:44:56.402678Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.404089Z", "completed_at": "2024-04-02T23:44:56.404094Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.014352083206176758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.404349Z", "completed_at": "2024-04-02T23:44:56.408257Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.408847Z", "completed_at": "2024-04-02T23:44:56.408853Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006183147430419922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__employee_overview_employee_id.b01e19996c", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is not null\ngroup by employee_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.479796Z", "completed_at": "2024-04-02T23:44:56.484940Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.486021Z", "completed_at": "2024-04-02T23:44:56.486028Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01695728302001953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.476827Z", "completed_at": "2024-04-02T23:44:56.485213Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.486289Z", "completed_at": "2024-04-02T23:44:56.486296Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01791214942932129, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.493163Z", "completed_at": "2024-04-02T23:44:56.496712Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.497858Z", "completed_at": "2024-04-02T23:44:56.497867Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00990915298461914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.489617Z", "completed_at": "2024-04-02T23:44:56.497058Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.498120Z", "completed_at": "2024-04-02T23:44:56.498123Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.010812044143676758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.500410Z", "completed_at": "2024-04-02T23:44:56.504588Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.505027Z", "completed_at": "2024-04-02T23:44:56.505033Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0056188106536865234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.342449Z", "completed_at": "2024-04-02T23:44:57.559117Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.559604Z", "completed_at": "2024-04-02T23:44:57.559611Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.3466367721557617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_daily_history", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n\n\n \n \n\n \n \n\n\n\n\n\nwith spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 6972\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2005-03-01' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-02'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:57.691895Z", "completed_at": "2024-04-02T23:44:57.725673Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.726513Z", "completed_at": "2024-04-02T23:44:57.726529Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.038146018981933594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__monthly_summary", "compiled": true, "compiled_code": " \n\nwith row_month_partition as (\n\n select *, \n cast(date_trunc('month', date_day) as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n),\n\nend_of_month_history as (\n \n select *,\n now() as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when date_month = cast(date_trunc('month', position_effective_date) as date) then 1 else 0 end) as new_employees,\n sum(case when date_month = cast(date_trunc('month', termination_date) as date) then 1 else 0 end) as churned_employees,\n sum(case when (date_month = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = cast(date_trunc('month', end_employment_date) as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and (cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:57.718995Z", "completed_at": "2024-04-02T23:44:57.727944Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.730328Z", "completed_at": "2024-04-02T23:44:57.730335Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.04093170166015625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is not null\ngroup by employee_day_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:57.712103Z", "completed_at": "2024-04-02T23:44:57.728363Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.730679Z", "completed_at": "2024-04-02T23:44:57.730686Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.04212307929992676, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:57.732476Z", "completed_at": "2024-04-02T23:44:57.741415Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.741987Z", "completed_at": "2024-04-02T23:44:57.741994Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.012644052505493164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metrics_month\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:57.737476Z", "completed_at": "2024-04-02T23:44:57.742852Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.743285Z", "completed_at": "2024-04-02T23:44:57.743288Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0070269107818603516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab", "compiled": true, "compiled_code": "\n \n \n\nselect\n metrics_month as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is not null\ngroup by metrics_month\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.471224Z", "completed_at": "2024-04-02T23:44:57.674300Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.674769Z", "completed_at": "2024-04-02T23:44:57.674775Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.3049590587615967, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__worker_position_org_daily_history", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n\n\n \n \n\n \n \n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n), spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 6972\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2005-03-01' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-02'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nworker_position_org_history as (\n\n select * \n from __dbt__cte__stg_workday__worker_position_organization_history\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n _fivetran_start,\n _fivetran_end,\n _fivetran_active,\n _fivetran_date,\n history_unique_key,\n index,\n date_of_pay_group_assignment,\n primary_business_site,\n is_used_in_change_organization_assignments\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:57.776397Z", "completed_at": "2024-04-02T23:44:57.790302Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.794843Z", "completed_at": "2024-04-02T23:44:57.794851Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.021268129348754883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:57.781789Z", "completed_at": "2024-04-02T23:44:57.794156Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.796855Z", "completed_at": "2024-04-02T23:44:57.796865Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.022647857666015625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:57.785157Z", "completed_at": "2024-04-02T23:44:57.794547Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.797230Z", "completed_at": "2024-04-02T23:44:57.797235Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.019114017486572266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:57.790626Z", "completed_at": "2024-04-02T23:44:57.795076Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.797962Z", "completed_at": "2024-04-02T23:44:57.797968Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.019089937210083008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect wpo_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:57.800701Z", "completed_at": "2024-04-02T23:44:57.804319Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.804832Z", "completed_at": "2024-04-02T23:44:57.804840Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005922079086303711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21", "compiled": true, "compiled_code": "\n \n \n\nselect\n wpo_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is not null\ngroup by wpo_day_id\nhaving count(*) > 1\n\n\n", "relation_name": null}], "elapsed_time": 12.48839282989502, "args": {"which": "generate", "log_level_file": "debug", "log_file_max_bytes": 10485760, "partial_parse_file_diff": true, "quiet": false, "log_format_file": "debug", "print": true, "log_format": "default", "project_dir": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "compile": true, "warn_error_options": {"include": [], "exclude": []}, "macro_debugging": false, "write_json": true, "use_colors": true, "cache_selected_only": false, "profiles_dir": "/Users/avinash.kunnath/.dbt", "static_parser": true, "printer_width": 80, "use_colors_file": true, "select": [], "enable_legacy_logger": false, "indirect_selection": "eager", "introspect": true, "invocation_command": "dbt docs generate -t postgres", "vars": {}, "populate_cache": true, "defer": false, "strict_mode": false, "log_level": "info", "log_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests/logs", "version_check": true, "send_anonymous_usage_stats": true, "partial_parse": true, "show_resource_report": false, "empty_catalog": false, "exclude": [], "favor_state": false, "target": "postgres", "static": false}} \ No newline at end of file diff --git a/models/workday_history/workday__employee_daily_history.sql b/models/workday_history/workday__employee_daily_history.sql index c3191e4..654bc9e 100644 --- a/models/workday_history/workday__employee_daily_history.sql +++ b/models/workday_history/workday__employee_daily_history.sql @@ -36,7 +36,7 @@ with spine as ( {# Arbitrarily picked employee_history_start_date variable value. Choose a more appropriate default if necessary. #} {{ dbt_utils.date_spine( datepart="day", - start_date = "greatest(cast('" ~ start_date[0:10] ~ "' as date), cast('" ~ var('employee_history_start_date','2000-12-31') ~ "' as date))", + start_date = "greatest(cast('" ~ start_date[0:10] ~ "' as date), cast('" ~ var('employee_history_start_date','2005-03-01') ~ "' as date))", end_date = "cast('" ~ last_date[0:10] ~ "'as date)" ) }} diff --git a/models/workday_history/workday__worker_position_org_daily_history.sql b/models/workday_history/workday__worker_position_org_daily_history.sql index 5303237..f85d6fe 100644 --- a/models/workday_history/workday__worker_position_org_daily_history.sql +++ b/models/workday_history/workday__worker_position_org_daily_history.sql @@ -34,7 +34,7 @@ with spine as ( {# Arbitrarily picked employee_history_start_date variable value. Choose a more appropriate default if necessary. #} {{ dbt_utils.date_spine( datepart="day", - start_date = "greatest(cast('" ~ start_date[0:10] ~ "' as date), cast('" ~ var('employee_history_start_date','2000-12-31') ~ "' as date))", + start_date = "greatest(cast('" ~ start_date[0:10] ~ "' as date), cast('" ~ var('employee_history_start_date','2005-03-01') ~ "' as date))", end_date = "cast('" ~ last_date[0:10] ~ "'as date)" ) }} From 72b79a2af003a54514a639a8799d5e2f2015d544 Mon Sep 17 00:00:00 2001 From: Avinash Kunnath Date: Wed, 3 Apr 2024 08:32:22 -0700 Subject: [PATCH 20/20] PR final review --- .buildkite/scripts/run_models.sh | 2 +- CHANGELOG.md | 5 +++++ README.md | 2 +- docs/catalog.json | 2 +- docs/manifest.json | 2 +- docs/run_results.json | 2 +- models/workday_history/workday__employee_daily_history.sql | 4 ++-- .../workday__worker_position_org_daily_history.sql | 6 +++--- 8 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.buildkite/scripts/run_models.sh b/.buildkite/scripts/run_models.sh index c7a0aa3..89f1422 100644 --- a/.buildkite/scripts/run_models.sh +++ b/.buildkite/scripts/run_models.sh @@ -20,5 +20,5 @@ dbt seed --target "$db" --full-refresh dbt run --target "$db" --full-refresh dbt test --target "$db" dbt run --vars '{employee_history_enabled: true}' --target "$db" -dbt test --target "$db" +dbt test --vars '{employee_history_enabled: true}' --target "$db" dbt run-operation fivetran_utils.drop_schemas_automation --target "$db" \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 88b2017..233c2aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # dbt_workday v0.2.0 +Lots of major updates! [PR #5](https://github.com/fivetran/dbt_workday/pull/5) includes the following changes: + +## 🚨 Breaking Changes 🚨 +- We are now materializing staging models as ephemeral rather than views, as they are mostly redundant with the source tables and are primarily designed for preparing models for final transformation. Previous staging views will no longer be used and will be considered stale. + ## 🔑 New Primary Key 🔑 - Created a surrogate key `employee_id` in `workday__employee_overview` that combines `worker_id`, `source_relation`, `position_id`, and `position_start_date`. This accounts for edge cases like when: - A worker can hold multiple positions concurrently. diff --git a/README.md b/README.md index cf913e5..c54cf1b 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ To connect your multiple schema/database sources to the package models, follow t ## (Optional) Step 4: Utilizing Workday HCM History Mode -If you have History Mode enabled for your Workday HCM connector, we now include support for the worker, worker position, worker position organization, and personal information tables directly. You can view these files in the [`staging/stg_workday_history`](https://github.com/fivetran/dbt_workday/blob/main/models/workday_history/staging) folder. This staging data then flows into the employee daily history model, which in turn populates the monthly summary model. This will allow you access to your historical data for these tables for the most accurate record of your data over time. +If you have History Mode enabled for your Workday HCM connector, we now include support for the worker, worker position, worker position organization, and personal information tables directly. You can view these files in the [`staging`](https://github.com/fivetran/dbt_workday/blob/main/models/workday_history/staging) folder. This staging data then flows into the employee daily history model, which in turn populates the monthly summary model. This will allow you access to your historical data for these tables for the most accurate record of your data over time. ### Enabling Workday HCM History Mode Models The History Mode models can get quite expansive since it will take in **ALL** historical records, so we've disabled them by default. You can enable the history models you'd like to utilize by adding the below variable configurations within your `dbt_project.yml` file for the equivalent models. diff --git a/docs/catalog.json b/docs/catalog.json index b8683df..a279cf3 100644 --- a/docs/catalog.json +++ b/docs/catalog.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.7.8", "generated_at": "2024-04-02T23:44:59.861111Z", "invocation_id": "cc500e2b-b7c4-44e8-b9fd-9ae8c4aa2439", "env": {}}, "nodes": {"seed.workday_integration_tests.workday_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_data"}, "seed.workday_integration_tests.workday_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data"}, "seed.workday_integration_tests.workday_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_profile_data"}, "seed.workday_integration_tests.workday_military_service_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_military_service_data"}, "seed.workday_integration_tests.workday_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_data"}, "seed.workday_integration_tests.workday_organization_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data"}, "seed.workday_integration_tests.workday_organization_role_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_data"}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data"}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data"}, "seed.workday_integration_tests.workday_person_name_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_name_data"}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data"}, "seed.workday_integration_tests.workday_personal_information_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data"}, "seed.workday_integration_tests.workday_position_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_data"}, "seed.workday_integration_tests.workday_position_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data"}, "seed.workday_integration_tests.workday_position_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_organization_data"}, "seed.workday_integration_tests.workday_worker_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_history_data"}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data"}, "seed.workday_integration_tests.workday_worker_position_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data"}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data"}, "model.workday.stg_workday__job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_base"}, "model.workday.stg_workday__job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_group_base"}, "model.workday.stg_workday__job_family_job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base"}, "model.workday.stg_workday__job_family_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_profile_base"}, "model.workday.stg_workday__job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_profile_base"}, "model.workday.stg_workday__military_service_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__military_service_base"}, "model.workday.stg_workday__organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_base"}, "model.workday.stg_workday__organization_job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_job_family_base"}, "model.workday.stg_workday__organization_role_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_base"}, "model.workday.stg_workday__organization_role_worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_worker_base"}, "model.workday.stg_workday__person_contact_email_address_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_contact_email_address_base"}, "model.workday.stg_workday__person_name_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_name_base"}, "model.workday.stg_workday__personal_information_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_base"}, "model.workday.stg_workday__personal_information_ethnicity_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base"}, "model.workday.stg_workday__position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_base"}, "model.workday.stg_workday__position_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_job_profile_base"}, "model.workday.stg_workday__position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_organization_base"}, "model.workday.stg_workday__worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_base"}, "model.workday.stg_workday__worker_leave_status_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_leave_status_base"}, "model.workday.stg_workday__worker_position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_base"}, "model.workday.stg_workday__worker_position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_organization_base"}, "model.workday.int_workday__employee_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"history_unique_key": {"type": "text", "index": 1, "name": "history_unique_key", "comment": null}, "employee_id": {"type": "text", "index": 2, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 3, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 6, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_end", "comment": null}, "is_wh_fivetran_active": {"type": "boolean", "index": 9, "name": "is_wh_fivetran_active", "comment": null}, "is_wph_fivetran_active": {"type": "boolean", "index": 10, "name": "is_wph_fivetran_active", "comment": null}, "is_pih_fivetran_active": {"type": "boolean", "index": 11, "name": "is_pih_fivetran_active", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 12, "name": "academic_tenure_date", "comment": null}, "is_active": {"type": "boolean", "index": 13, "name": "is_active", "comment": null}, "active_status_date": {"type": "date", "index": 14, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 15, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 16, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 17, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 19, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 20, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 21, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 23, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 24, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 25, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 26, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 27, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 28, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 29, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 30, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 31, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 32, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 33, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 34, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 35, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 36, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 37, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 38, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 39, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 40, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 41, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 42, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 43, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 44, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 45, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 46, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 47, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 48, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 49, "name": "first_day_of_work", "comment": null}, "is_has_international_assignment": {"type": "boolean", "index": 50, "name": "is_has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 51, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 52, "name": "hire_reason", "comment": null}, "is_hire_rescinded": {"type": "boolean", "index": 53, "name": "is_hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 54, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 55, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 56, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 57, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 58, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 59, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 60, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 61, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 62, "name": "months_continuous_prior_employment", "comment": null}, "is_not_returning": {"type": "boolean", "index": 63, "name": "is_not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 64, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 65, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 66, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 67, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 68, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 69, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 70, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 71, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 72, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 73, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 74, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 75, "name": "reason_reference_id", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 76, "name": "is_regrettable_termination", "comment": null}, "is_rehire": {"type": "boolean", "index": 77, "name": "is_rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 78, "name": "resignation_date", "comment": null}, "is_retired": {"type": "boolean", "index": 79, "name": "is_retired", "comment": null}, "retirement_date": {"type": "integer", "index": 80, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 81, "name": "retirement_eligibility_date", "comment": null}, "is_return_unknown": {"type": "boolean", "index": 82, "name": "is_return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 83, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 84, "name": "severance_date", "comment": null}, "is_terminated": {"type": "boolean", "index": 85, "name": "is_terminated", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 86, "name": "termination_date", "comment": null}, "is_termination_involuntary": {"type": "boolean", "index": 87, "name": "is_termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 88, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 89, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 90, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 91, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 92, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 93, "name": "worker_code", "comment": null}, "position_location": {"type": "text", "index": 94, "name": "position_location", "comment": null}, "is_exclude_from_head_count": {"type": "boolean", "index": 95, "name": "is_exclude_from_head_count", "comment": null}, "fte_percent": {"type": "integer", "index": 96, "name": "fte_percent", "comment": null}, "is_job_exempt": {"type": "boolean", "index": 97, "name": "is_job_exempt", "comment": null}, "is_specify_paid_fte": {"type": "boolean", "index": 98, "name": "is_specify_paid_fte", "comment": null}, "is_specify_working_fte": {"type": "boolean", "index": 99, "name": "is_specify_working_fte", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 100, "name": "is_work_shift_required", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 101, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 102, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 103, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 104, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 105, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 106, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 107, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 108, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 109, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 110, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 111, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 112, "name": "business_title", "comment": null}, "is_critical_job": {"type": "boolean", "index": 113, "name": "is_critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 114, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 115, "name": "difficulty_to_fill", "comment": null}, "position_effective_date": {"type": "timestamp without time zone", "index": 116, "name": "position_effective_date", "comment": null}, "employee_type": {"type": "text", "index": 117, "name": "employee_type", "comment": null}, "position_end_date": {"type": "timestamp without time zone", "index": 118, "name": "position_end_date", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 119, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 120, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 121, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 122, "name": "frequency", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 123, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 124, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 125, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 126, "name": "is_primary_job", "comment": null}, "job_profile_id": {"type": "text", "index": 127, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 128, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 129, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 130, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 131, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 132, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 133, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 134, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 135, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 136, "name": "scheduled_weekly_hours", "comment": null}, "position_start_date": {"type": "timestamp without time zone", "index": 137, "name": "position_start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 138, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 139, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 140, "name": "work_shift", "comment": null}, "work_space": {"type": "integer", "index": 141, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 142, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 143, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 144, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 145, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 146, "name": "working_time_value", "comment": null}, "additional_nationality": {"type": "integer", "index": 147, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 148, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 149, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 150, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 151, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 152, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 153, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 154, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 155, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 156, "name": "is_hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 157, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 158, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 159, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 160, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 161, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 162, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 163, "name": "last_medical_exam_valid_to", "comment": null}, "is_local_hukou": {"type": "integer", "index": 164, "name": "is_local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 165, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 166, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 167, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 168, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 169, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 170, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 171, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 172, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 173, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 174, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 175, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 176, "name": "social_benefit", "comment": null}, "is_tobacco_use": {"type": "boolean", "index": 177, "name": "is_tobacco_use", "comment": null}, "type": {"type": "text", "index": 178, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__employee_history"}, "model.workday.workday__employee_daily_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_day_id": {"type": "text", "index": 1, "name": "employee_day_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "history_unique_key": {"type": "text", "index": 3, "name": "history_unique_key", "comment": null}, "employee_id": {"type": "text", "index": 4, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 5, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 6, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 8, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_end", "comment": null}, "is_wh_fivetran_active": {"type": "boolean", "index": 11, "name": "is_wh_fivetran_active", "comment": null}, "is_wph_fivetran_active": {"type": "boolean", "index": 12, "name": "is_wph_fivetran_active", "comment": null}, "is_pih_fivetran_active": {"type": "boolean", "index": 13, "name": "is_pih_fivetran_active", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 14, "name": "academic_tenure_date", "comment": null}, "is_active": {"type": "boolean", "index": 15, "name": "is_active", "comment": null}, "active_status_date": {"type": "date", "index": 16, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 17, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 18, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 19, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 20, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 22, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 23, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 24, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 25, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 26, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 27, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 28, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 29, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 30, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 31, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 32, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 33, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 34, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 35, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 36, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 37, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 38, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 39, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 40, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 41, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 42, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 43, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 44, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 45, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 46, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 47, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 48, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 49, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 50, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 51, "name": "first_day_of_work", "comment": null}, "is_has_international_assignment": {"type": "boolean", "index": 52, "name": "is_has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 53, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 54, "name": "hire_reason", "comment": null}, "is_hire_rescinded": {"type": "boolean", "index": 55, "name": "is_hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 56, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 57, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 58, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 59, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 60, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 61, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 62, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 63, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 64, "name": "months_continuous_prior_employment", "comment": null}, "is_not_returning": {"type": "boolean", "index": 65, "name": "is_not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 66, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 67, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 68, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 69, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 70, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 71, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 72, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 73, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 74, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 75, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 76, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 77, "name": "reason_reference_id", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 78, "name": "is_regrettable_termination", "comment": null}, "is_rehire": {"type": "boolean", "index": 79, "name": "is_rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 80, "name": "resignation_date", "comment": null}, "is_retired": {"type": "boolean", "index": 81, "name": "is_retired", "comment": null}, "retirement_date": {"type": "integer", "index": 82, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 83, "name": "retirement_eligibility_date", "comment": null}, "is_return_unknown": {"type": "boolean", "index": 84, "name": "is_return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 85, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 86, "name": "severance_date", "comment": null}, "is_terminated": {"type": "boolean", "index": 87, "name": "is_terminated", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 88, "name": "termination_date", "comment": null}, "is_termination_involuntary": {"type": "boolean", "index": 89, "name": "is_termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 90, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 91, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 92, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 93, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 94, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 95, "name": "worker_code", "comment": null}, "position_location": {"type": "text", "index": 96, "name": "position_location", "comment": null}, "is_exclude_from_head_count": {"type": "boolean", "index": 97, "name": "is_exclude_from_head_count", "comment": null}, "fte_percent": {"type": "integer", "index": 98, "name": "fte_percent", "comment": null}, "is_job_exempt": {"type": "boolean", "index": 99, "name": "is_job_exempt", "comment": null}, "is_specify_paid_fte": {"type": "boolean", "index": 100, "name": "is_specify_paid_fte", "comment": null}, "is_specify_working_fte": {"type": "boolean", "index": 101, "name": "is_specify_working_fte", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 102, "name": "is_work_shift_required", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 103, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 104, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 105, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 106, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 107, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 108, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 109, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 110, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 111, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 112, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 113, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 114, "name": "business_title", "comment": null}, "is_critical_job": {"type": "boolean", "index": 115, "name": "is_critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 116, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 117, "name": "difficulty_to_fill", "comment": null}, "position_effective_date": {"type": "timestamp without time zone", "index": 118, "name": "position_effective_date", "comment": null}, "employee_type": {"type": "text", "index": 119, "name": "employee_type", "comment": null}, "position_end_date": {"type": "timestamp without time zone", "index": 120, "name": "position_end_date", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 121, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 122, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 123, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 124, "name": "frequency", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 125, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 126, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 127, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 128, "name": "is_primary_job", "comment": null}, "job_profile_id": {"type": "text", "index": 129, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 130, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 131, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 132, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 133, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 134, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 135, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 136, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 137, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 138, "name": "scheduled_weekly_hours", "comment": null}, "position_start_date": {"type": "timestamp without time zone", "index": 139, "name": "position_start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 140, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 141, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 142, "name": "work_shift", "comment": null}, "work_space": {"type": "integer", "index": 143, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 144, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 145, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 146, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 147, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 148, "name": "working_time_value", "comment": null}, "additional_nationality": {"type": "integer", "index": 149, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 150, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 151, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 152, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 153, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 154, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 155, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 156, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 157, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 158, "name": "is_hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 159, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 160, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 161, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 162, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 163, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 164, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 165, "name": "last_medical_exam_valid_to", "comment": null}, "is_local_hukou": {"type": "integer", "index": 166, "name": "is_local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 167, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 168, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 169, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 170, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 171, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 172, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 173, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 174, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 175, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 176, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 177, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 178, "name": "social_benefit", "comment": null}, "is_tobacco_use": {"type": "boolean", "index": 179, "name": "is_tobacco_use", "comment": null}, "type": {"type": "text", "index": 180, "name": "type", "comment": null}, "row_num": {"type": "bigint", "index": 181, "name": "row_num", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_daily_history"}, "model.workday.workday__employee_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_id": {"type": "text", "index": 1, "name": "employee_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "position_start_date": {"type": "date", "index": 5, "name": "position_start_date", "comment": null}, "worker_code": {"type": "integer", "index": 6, "name": "worker_code", "comment": null}, "user_id": {"type": "text", "index": 7, "name": "user_id", "comment": null}, "universal_id": {"type": "integer", "index": 8, "name": "universal_id", "comment": null}, "is_user_active": {"type": "boolean", "index": 9, "name": "is_user_active", "comment": null}, "is_employed": {"type": "boolean", "index": 10, "name": "is_employed", "comment": null}, "hire_date": {"type": "date", "index": 11, "name": "hire_date", "comment": null}, "departure_date": {"type": "date", "index": 12, "name": "departure_date", "comment": null}, "days_as_worker": {"type": "integer", "index": 13, "name": "days_as_worker", "comment": null}, "is_terminated": {"type": "boolean", "index": 14, "name": "is_terminated", "comment": null}, "primary_termination_category": {"type": "text", "index": 15, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 16, "name": "primary_termination_reason", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 17, "name": "is_regrettable_termination", "comment": null}, "compensation_effective_date": {"type": "date", "index": 18, "name": "compensation_effective_date", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 19, "name": "employee_compensation_frequency", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 20, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_summary_currency": {"type": "text", "index": 23, "name": "annual_summary_currency", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 24, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 25, "name": "annual_summary_primary_compensation_basis", "comment": null}, "compensation_grade_id": {"type": "text", "index": 26, "name": "compensation_grade_id", "comment": null}, "first_name": {"type": "text", "index": 27, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 28, "name": "last_name", "comment": null}, "date_of_birth": {"type": "date", "index": 29, "name": "date_of_birth", "comment": null}, "gender": {"type": "text", "index": 30, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 31, "name": "is_hispanic_or_latino", "comment": null}, "email_address": {"type": "text", "index": 32, "name": "email_address", "comment": null}, "ethnicity_codes": {"type": "text", "index": 33, "name": "ethnicity_codes", "comment": null}, "military_status": {"type": "text", "index": 34, "name": "military_status", "comment": null}, "business_title": {"type": "text", "index": 35, "name": "business_title", "comment": null}, "job_profile_id": {"type": "text", "index": 36, "name": "job_profile_id", "comment": null}, "employee_type": {"type": "text", "index": 37, "name": "employee_type", "comment": null}, "position_location": {"type": "text", "index": 38, "name": "position_location", "comment": null}, "management_level_code": {"type": "text", "index": 39, "name": "management_level_code", "comment": null}, "fte_percent": {"type": "integer", "index": 40, "name": "fte_percent", "comment": null}, "position_end_date": {"type": "date", "index": 41, "name": "position_end_date", "comment": null}, "position_effective_date": {"type": "date", "index": 42, "name": "position_effective_date", "comment": null}, "days_employed": {"type": "integer", "index": 43, "name": "days_employed", "comment": null}, "is_employed_one_year": {"type": "boolean", "index": 44, "name": "is_employed_one_year", "comment": null}, "is_employed_five_years": {"type": "boolean", "index": 45, "name": "is_employed_five_years", "comment": null}, "is_employed_ten_years": {"type": "boolean", "index": 46, "name": "is_employed_ten_years", "comment": null}, "is_employed_twenty_years": {"type": "boolean", "index": 47, "name": "is_employed_twenty_years", "comment": null}, "is_employed_thirty_years": {"type": "boolean", "index": 48, "name": "is_employed_thirty_years", "comment": null}, "is_current_employee_one_year": {"type": "boolean", "index": 49, "name": "is_current_employee_one_year", "comment": null}, "is_current_employee_five_years": {"type": "boolean", "index": 50, "name": "is_current_employee_five_years", "comment": null}, "is_current_employee_ten_years": {"type": "boolean", "index": 51, "name": "is_current_employee_ten_years", "comment": null}, "is_current_employee_twenty_years": {"type": "boolean", "index": 52, "name": "is_current_employee_twenty_years", "comment": null}, "is_current_employee_thirty_years": {"type": "boolean", "index": 53, "name": "is_current_employee_thirty_years", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_overview"}, "model.workday.workday__job_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "job_profile_code": {"type": "text", "index": 3, "name": "job_profile_code", "comment": null}, "job_title": {"type": "text", "index": 4, "name": "job_title", "comment": null}, "private_title": {"type": "integer", "index": 5, "name": "private_title", "comment": null}, "job_summary": {"type": "text", "index": 6, "name": "job_summary", "comment": null}, "job_description": {"type": "text", "index": 7, "name": "job_description", "comment": null}, "job_family_codes": {"type": "text", "index": 8, "name": "job_family_codes", "comment": null}, "job_family_summaries": {"type": "text", "index": 9, "name": "job_family_summaries", "comment": null}, "job_family_group_codes": {"type": "text", "index": 10, "name": "job_family_group_codes", "comment": null}, "job_family_group_summaries": {"type": "text", "index": 11, "name": "job_family_group_summaries", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__job_overview"}, "model.workday.workday__monthly_summary": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"metrics_month": {"type": "date", "index": 1, "name": "metrics_month", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "new_employees": {"type": "bigint", "index": 3, "name": "new_employees", "comment": null}, "churned_employees": {"type": "bigint", "index": 4, "name": "churned_employees", "comment": null}, "churned_voluntary_employees": {"type": "bigint", "index": 5, "name": "churned_voluntary_employees", "comment": null}, "churned_involuntary_employees": {"type": "bigint", "index": 6, "name": "churned_involuntary_employees", "comment": null}, "churned_workers": {"type": "bigint", "index": 7, "name": "churned_workers", "comment": null}, "active_employees": {"type": "bigint", "index": 8, "name": "active_employees", "comment": null}, "active_male_employees": {"type": "bigint", "index": 9, "name": "active_male_employees", "comment": null}, "active_female_employees": {"type": "bigint", "index": 10, "name": "active_female_employees", "comment": null}, "active_workers": {"type": "bigint", "index": 11, "name": "active_workers", "comment": null}, "active_known_gender_employees": {"type": "bigint", "index": 12, "name": "active_known_gender_employees", "comment": null}, "avg_employee_primary_compensation": {"type": "double precision", "index": 13, "name": "avg_employee_primary_compensation", "comment": null}, "avg_employee_base_pay": {"type": "double precision", "index": 14, "name": "avg_employee_base_pay", "comment": null}, "avg_employee_salary_and_allowances": {"type": "double precision", "index": 15, "name": "avg_employee_salary_and_allowances", "comment": null}, "avg_days_as_employee": {"type": "numeric", "index": 16, "name": "avg_days_as_employee", "comment": null}, "avg_worker_primary_compensation": {"type": "double precision", "index": 17, "name": "avg_worker_primary_compensation", "comment": null}, "avg_worker_base_pay": {"type": "double precision", "index": 18, "name": "avg_worker_base_pay", "comment": null}, "avg_worker_salary_and_allowances": {"type": "double precision", "index": 19, "name": "avg_worker_salary_and_allowances", "comment": null}, "avg_days_as_worker": {"type": "numeric", "index": 20, "name": "avg_days_as_worker", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__monthly_summary"}, "model.workday.workday__organization_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "organization_role_id": {"type": "text", "index": 2, "name": "organization_role_id", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "organization_code": {"type": "text", "index": 6, "name": "organization_code", "comment": null}, "organization_name": {"type": "text", "index": 7, "name": "organization_name", "comment": null}, "organization_type": {"type": "text", "index": 8, "name": "organization_type", "comment": null}, "organization_sub_type": {"type": "text", "index": 9, "name": "organization_sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 10, "name": "superior_organization_id", "comment": null}, "top_level_organization_id": {"type": "text", "index": 11, "name": "top_level_organization_id", "comment": null}, "manager_id": {"type": "text", "index": 12, "name": "manager_id", "comment": null}, "organization_role_code": {"type": "text", "index": 13, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__organization_overview"}, "model.workday.workday__position_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "position_code": {"type": "text", "index": 3, "name": "position_code", "comment": null}, "job_posting_title": {"type": "text", "index": 4, "name": "job_posting_title", "comment": null}, "effective_date": {"type": "date", "index": 5, "name": "effective_date", "comment": null}, "is_closed": {"type": "boolean", "index": 6, "name": "is_closed", "comment": null}, "is_hiring_freeze": {"type": "boolean", "index": 7, "name": "is_hiring_freeze", "comment": null}, "is_available_for_hire": {"type": "boolean", "index": 8, "name": "is_available_for_hire", "comment": null}, "availability_date": {"type": "date", "index": 9, "name": "availability_date", "comment": null}, "is_available_for_recruiting": {"type": "boolean", "index": 10, "name": "is_available_for_recruiting", "comment": null}, "earliest_hire_date": {"type": "date", "index": 11, "name": "earliest_hire_date", "comment": null}, "is_available_for_overlap": {"type": "boolean", "index": 12, "name": "is_available_for_overlap", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 13, "name": "earliest_overlap_date", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 14, "name": "worker_for_filled_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 15, "name": "worker_type_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 16, "name": "position_time_type_code", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 17, "name": "supervisory_organization_id", "comment": null}, "job_profile_id": {"type": "text", "index": 18, "name": "job_profile_id", "comment": null}, "compensation_package_code": {"type": "integer", "index": 19, "name": "compensation_package_code", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 20, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 21, "name": "compensation_grade_profile_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__position_overview"}, "model.workday.workday__worker_position_org_daily_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__worker_position_org_daily_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"wpo_day_id": {"type": "text", "index": 1, "name": "wpo_day_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "organization_id": {"type": "text", "index": 5, "name": "organization_id", "comment": null}, "source_relation": {"type": "text", "index": 6, "name": "source_relation", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_end", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 9, "name": "_fivetran_active", "comment": null}, "_fivetran_date": {"type": "date", "index": 10, "name": "_fivetran_date", "comment": null}, "history_unique_key": {"type": "text", "index": 11, "name": "history_unique_key", "comment": null}, "index": {"type": "integer", "index": 12, "name": "index", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 13, "name": "date_of_pay_group_assignment", "comment": null}, "primary_business_site": {"type": "integer", "index": 14, "name": "primary_business_site", "comment": null}, "is_used_in_change_organization_assignments": {"type": "boolean", "index": 15, "name": "is_used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__worker_position_org_daily_history"}}, "sources": {"source.workday.workday.job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family"}, "source.workday.workday.job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_group"}, "source.workday.workday.job_family_job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_family_group"}, "source.workday.workday.job_family_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_profile"}, "source.workday.workday.job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_profile"}, "source.workday.workday.military_service": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.military_service"}, "source.workday.workday.organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization"}, "source.workday.workday.organization_job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_job_family"}, "source.workday.workday.organization_role": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role"}, "source.workday.workday.organization_role_worker": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role_worker"}, "source.workday.workday.person_contact_email_address": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_contact_email_address"}, "source.workday.workday.person_name": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_name"}, "source.workday.workday.personal_information_ethnicity": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_ethnicity"}, "source.workday.workday.personal_information_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_history"}, "source.workday.workday.position": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position"}, "source.workday.workday.position_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_job_profile"}, "source.workday.workday.position_organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_organization"}, "source.workday.workday.worker_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_history"}, "source.workday.workday.worker_leave_status": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_leave_status"}, "source.workday.workday.worker_position_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_history"}, "source.workday.workday.worker_position_organization_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_organization_history"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.7.8", "generated_at": "2024-04-03T15:31:28.568174Z", "invocation_id": "9c69f9af-b538-4190-9c4d-01824c6af93c", "env": {}}, "nodes": {"seed.workday_integration_tests.workday_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_data"}, "seed.workday_integration_tests.workday_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_family_group_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data"}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data"}, "seed.workday_integration_tests.workday_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_job_profile_data"}, "seed.workday_integration_tests.workday_military_service_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_military_service_data"}, "seed.workday_integration_tests.workday_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_data"}, "seed.workday_integration_tests.workday_organization_job_family_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data"}, "seed.workday_integration_tests.workday_organization_role_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_data"}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data"}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data"}, "seed.workday_integration_tests.workday_person_name_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_person_name_data"}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data"}, "seed.workday_integration_tests.workday_personal_information_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data"}, "seed.workday_integration_tests.workday_position_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_data"}, "seed.workday_integration_tests.workday_position_job_profile_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data"}, "seed.workday_integration_tests.workday_position_organization_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_position_organization_data"}, "seed.workday_integration_tests.workday_worker_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_history_data"}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data"}, "seed.workday_integration_tests.workday_worker_position_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data"}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data"}, "model.workday.stg_workday__job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_base"}, "model.workday.stg_workday__job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_group_base"}, "model.workday.stg_workday__job_family_job_family_group_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base"}, "model.workday.stg_workday__job_family_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_family_job_profile_base"}, "model.workday.stg_workday__job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__job_profile_base"}, "model.workday.stg_workday__military_service_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__military_service_base"}, "model.workday.stg_workday__organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_base"}, "model.workday.stg_workday__organization_job_family_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_job_family_base"}, "model.workday.stg_workday__organization_role_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_base"}, "model.workday.stg_workday__organization_role_worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__organization_role_worker_base"}, "model.workday.stg_workday__person_contact_email_address_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_contact_email_address_base"}, "model.workday.stg_workday__person_name_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__person_name_base"}, "model.workday.stg_workday__personal_information_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_base"}, "model.workday.stg_workday__personal_information_ethnicity_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base"}, "model.workday.stg_workday__position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_base"}, "model.workday.stg_workday__position_job_profile_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_job_profile_base"}, "model.workday.stg_workday__position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__position_organization_base"}, "model.workday.stg_workday__worker_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_base"}, "model.workday.stg_workday__worker_leave_status_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_leave_status_base"}, "model.workday.stg_workday__worker_position_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_base"}, "model.workday.stg_workday__worker_position_organization_base": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.stg_workday__worker_position_organization_base"}, "model.workday.int_workday__employee_history": {"metadata": {"type": "VIEW", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"history_unique_key": {"type": "text", "index": 1, "name": "history_unique_key", "comment": null}, "employee_id": {"type": "text", "index": 2, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 3, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 6, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_end", "comment": null}, "is_wh_fivetran_active": {"type": "boolean", "index": 9, "name": "is_wh_fivetran_active", "comment": null}, "is_wph_fivetran_active": {"type": "boolean", "index": 10, "name": "is_wph_fivetran_active", "comment": null}, "is_pih_fivetran_active": {"type": "boolean", "index": 11, "name": "is_pih_fivetran_active", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 12, "name": "academic_tenure_date", "comment": null}, "is_active": {"type": "boolean", "index": 13, "name": "is_active", "comment": null}, "active_status_date": {"type": "date", "index": 14, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 15, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 16, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 17, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 18, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 19, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 20, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 21, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 23, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 24, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 25, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 26, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 27, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 28, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 29, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 30, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 31, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 32, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 33, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 34, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 35, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 36, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 37, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 38, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 39, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 40, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 41, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 42, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 43, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 44, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 45, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 46, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 47, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 48, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 49, "name": "first_day_of_work", "comment": null}, "is_has_international_assignment": {"type": "boolean", "index": 50, "name": "is_has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 51, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 52, "name": "hire_reason", "comment": null}, "is_hire_rescinded": {"type": "boolean", "index": 53, "name": "is_hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 54, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 55, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 56, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 57, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 58, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 59, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 60, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 61, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 62, "name": "months_continuous_prior_employment", "comment": null}, "is_not_returning": {"type": "boolean", "index": 63, "name": "is_not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 64, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 65, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 66, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 67, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 68, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 69, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 70, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 71, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 72, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 73, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 74, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 75, "name": "reason_reference_id", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 76, "name": "is_regrettable_termination", "comment": null}, "is_rehire": {"type": "boolean", "index": 77, "name": "is_rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 78, "name": "resignation_date", "comment": null}, "is_retired": {"type": "boolean", "index": 79, "name": "is_retired", "comment": null}, "retirement_date": {"type": "integer", "index": 80, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 81, "name": "retirement_eligibility_date", "comment": null}, "is_return_unknown": {"type": "boolean", "index": 82, "name": "is_return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 83, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 84, "name": "severance_date", "comment": null}, "is_terminated": {"type": "boolean", "index": 85, "name": "is_terminated", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 86, "name": "termination_date", "comment": null}, "is_termination_involuntary": {"type": "boolean", "index": 87, "name": "is_termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 88, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 89, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 90, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 91, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 92, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 93, "name": "worker_code", "comment": null}, "position_location": {"type": "text", "index": 94, "name": "position_location", "comment": null}, "is_exclude_from_head_count": {"type": "boolean", "index": 95, "name": "is_exclude_from_head_count", "comment": null}, "fte_percent": {"type": "integer", "index": 96, "name": "fte_percent", "comment": null}, "is_job_exempt": {"type": "boolean", "index": 97, "name": "is_job_exempt", "comment": null}, "is_specify_paid_fte": {"type": "boolean", "index": 98, "name": "is_specify_paid_fte", "comment": null}, "is_specify_working_fte": {"type": "boolean", "index": 99, "name": "is_specify_working_fte", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 100, "name": "is_work_shift_required", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 101, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 102, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 103, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 104, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 105, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 106, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 107, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 108, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 109, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 110, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 111, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 112, "name": "business_title", "comment": null}, "is_critical_job": {"type": "boolean", "index": 113, "name": "is_critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 114, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 115, "name": "difficulty_to_fill", "comment": null}, "position_effective_date": {"type": "timestamp without time zone", "index": 116, "name": "position_effective_date", "comment": null}, "employee_type": {"type": "text", "index": 117, "name": "employee_type", "comment": null}, "position_end_date": {"type": "timestamp without time zone", "index": 118, "name": "position_end_date", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 119, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 120, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 121, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 122, "name": "frequency", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 123, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 124, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 125, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 126, "name": "is_primary_job", "comment": null}, "job_profile_id": {"type": "text", "index": 127, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 128, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 129, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 130, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 131, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 132, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 133, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 134, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 135, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 136, "name": "scheduled_weekly_hours", "comment": null}, "position_start_date": {"type": "timestamp without time zone", "index": 137, "name": "position_start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 138, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 139, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 140, "name": "work_shift", "comment": null}, "work_space": {"type": "integer", "index": 141, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 142, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 143, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 144, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 145, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 146, "name": "working_time_value", "comment": null}, "additional_nationality": {"type": "integer", "index": 147, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 148, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 149, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 150, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 151, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 152, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 153, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 154, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 155, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 156, "name": "is_hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 157, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 158, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 159, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 160, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 161, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 162, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 163, "name": "last_medical_exam_valid_to", "comment": null}, "is_local_hukou": {"type": "integer", "index": 164, "name": "is_local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 165, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 166, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 167, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 168, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 169, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 170, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 171, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 172, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 173, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 174, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 175, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 176, "name": "social_benefit", "comment": null}, "is_tobacco_use": {"type": "boolean", "index": 177, "name": "is_tobacco_use", "comment": null}, "type": {"type": "text", "index": 178, "name": "type", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.int_workday__employee_history"}, "model.workday.workday__employee_daily_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_day_id": {"type": "text", "index": 1, "name": "employee_day_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "history_unique_key": {"type": "text", "index": 3, "name": "history_unique_key", "comment": null}, "employee_id": {"type": "text", "index": 4, "name": "employee_id", "comment": null}, "_fivetran_date": {"type": "date", "index": 5, "name": "_fivetran_date", "comment": null}, "worker_id": {"type": "text", "index": 6, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 7, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 8, "name": "position_id", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 9, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 10, "name": "_fivetran_end", "comment": null}, "is_wh_fivetran_active": {"type": "boolean", "index": 11, "name": "is_wh_fivetran_active", "comment": null}, "is_wph_fivetran_active": {"type": "boolean", "index": 12, "name": "is_wph_fivetran_active", "comment": null}, "is_pih_fivetran_active": {"type": "boolean", "index": 13, "name": "is_pih_fivetran_active", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 14, "name": "academic_tenure_date", "comment": null}, "is_active": {"type": "boolean", "index": 15, "name": "is_active", "comment": null}, "active_status_date": {"type": "date", "index": 16, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 17, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 18, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 19, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 20, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 22, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 23, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 24, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 25, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 26, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 27, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 28, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 29, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 30, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 31, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 32, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 33, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 34, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 35, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 36, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 37, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 38, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 39, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 40, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 41, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 42, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 43, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 44, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 45, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 46, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 47, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "timestamp without time zone", "index": 48, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 49, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 50, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 51, "name": "first_day_of_work", "comment": null}, "is_has_international_assignment": {"type": "boolean", "index": 52, "name": "is_has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 53, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 54, "name": "hire_reason", "comment": null}, "is_hire_rescinded": {"type": "boolean", "index": 55, "name": "is_hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 56, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 57, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 58, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 59, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 60, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 61, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 62, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 63, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 64, "name": "months_continuous_prior_employment", "comment": null}, "is_not_returning": {"type": "boolean", "index": 65, "name": "is_not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 66, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 67, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 68, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 69, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 70, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 71, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 72, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 73, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 74, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 75, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 76, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 77, "name": "reason_reference_id", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 78, "name": "is_regrettable_termination", "comment": null}, "is_rehire": {"type": "boolean", "index": 79, "name": "is_rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 80, "name": "resignation_date", "comment": null}, "is_retired": {"type": "boolean", "index": 81, "name": "is_retired", "comment": null}, "retirement_date": {"type": "integer", "index": 82, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 83, "name": "retirement_eligibility_date", "comment": null}, "is_return_unknown": {"type": "boolean", "index": 84, "name": "is_return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 85, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 86, "name": "severance_date", "comment": null}, "is_terminated": {"type": "boolean", "index": 87, "name": "is_terminated", "comment": null}, "termination_date": {"type": "timestamp without time zone", "index": 88, "name": "termination_date", "comment": null}, "is_termination_involuntary": {"type": "boolean", "index": 89, "name": "is_termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 90, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 91, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 92, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 93, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 94, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 95, "name": "worker_code", "comment": null}, "position_location": {"type": "text", "index": 96, "name": "position_location", "comment": null}, "is_exclude_from_head_count": {"type": "boolean", "index": 97, "name": "is_exclude_from_head_count", "comment": null}, "fte_percent": {"type": "integer", "index": 98, "name": "fte_percent", "comment": null}, "is_job_exempt": {"type": "boolean", "index": 99, "name": "is_job_exempt", "comment": null}, "is_specify_paid_fte": {"type": "boolean", "index": 100, "name": "is_specify_paid_fte", "comment": null}, "is_specify_working_fte": {"type": "boolean", "index": 101, "name": "is_specify_working_fte", "comment": null}, "is_work_shift_required": {"type": "boolean", "index": 102, "name": "is_work_shift_required", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 103, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 104, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 105, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 106, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 107, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 108, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 109, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 110, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 111, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 112, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 113, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 114, "name": "business_title", "comment": null}, "is_critical_job": {"type": "boolean", "index": 115, "name": "is_critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 116, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 117, "name": "difficulty_to_fill", "comment": null}, "position_effective_date": {"type": "timestamp without time zone", "index": 118, "name": "position_effective_date", "comment": null}, "employee_type": {"type": "text", "index": 119, "name": "employee_type", "comment": null}, "position_end_date": {"type": "timestamp without time zone", "index": 120, "name": "position_end_date", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 121, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 122, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 123, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 124, "name": "frequency", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 125, "name": "headcount_restriction_code", "comment": null}, "host_country": {"type": "integer", "index": 126, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 127, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 128, "name": "is_primary_job", "comment": null}, "job_profile_id": {"type": "text", "index": 129, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 130, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 131, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 132, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 133, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 134, "name": "pay_rate_type", "comment": null}, "payroll_entity": {"type": "integer", "index": 135, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 136, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 137, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 138, "name": "scheduled_weekly_hours", "comment": null}, "position_start_date": {"type": "timestamp without time zone", "index": 139, "name": "position_start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 140, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 141, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 142, "name": "work_shift", "comment": null}, "work_space": {"type": "integer", "index": 143, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 144, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 145, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 146, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 147, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 148, "name": "working_time_value", "comment": null}, "additional_nationality": {"type": "integer", "index": 149, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 150, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 151, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 152, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 153, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 154, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 155, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 156, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 157, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 158, "name": "is_hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 159, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 160, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 161, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 162, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 163, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 164, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 165, "name": "last_medical_exam_valid_to", "comment": null}, "is_local_hukou": {"type": "integer", "index": 166, "name": "is_local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 167, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 168, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 169, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 170, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 171, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 172, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 173, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 174, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 175, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 176, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 177, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 178, "name": "social_benefit", "comment": null}, "is_tobacco_use": {"type": "boolean", "index": 179, "name": "is_tobacco_use", "comment": null}, "type": {"type": "text", "index": 180, "name": "type", "comment": null}, "row_num": {"type": "bigint", "index": 181, "name": "row_num", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_daily_history"}, "model.workday.workday__employee_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"employee_id": {"type": "text", "index": 1, "name": "employee_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "source_relation": {"type": "text", "index": 3, "name": "source_relation", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "position_start_date": {"type": "date", "index": 5, "name": "position_start_date", "comment": null}, "worker_code": {"type": "integer", "index": 6, "name": "worker_code", "comment": null}, "user_id": {"type": "text", "index": 7, "name": "user_id", "comment": null}, "universal_id": {"type": "integer", "index": 8, "name": "universal_id", "comment": null}, "is_user_active": {"type": "boolean", "index": 9, "name": "is_user_active", "comment": null}, "is_employed": {"type": "boolean", "index": 10, "name": "is_employed", "comment": null}, "hire_date": {"type": "date", "index": 11, "name": "hire_date", "comment": null}, "departure_date": {"type": "date", "index": 12, "name": "departure_date", "comment": null}, "days_as_worker": {"type": "integer", "index": 13, "name": "days_as_worker", "comment": null}, "is_terminated": {"type": "boolean", "index": 14, "name": "is_terminated", "comment": null}, "primary_termination_category": {"type": "text", "index": 15, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 16, "name": "primary_termination_reason", "comment": null}, "is_regrettable_termination": {"type": "boolean", "index": 17, "name": "is_regrettable_termination", "comment": null}, "compensation_effective_date": {"type": "date", "index": 18, "name": "compensation_effective_date", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 19, "name": "employee_compensation_frequency", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 20, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 21, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 22, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_summary_currency": {"type": "text", "index": 23, "name": "annual_summary_currency", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 24, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 25, "name": "annual_summary_primary_compensation_basis", "comment": null}, "compensation_grade_id": {"type": "text", "index": 26, "name": "compensation_grade_id", "comment": null}, "first_name": {"type": "text", "index": 27, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 28, "name": "last_name", "comment": null}, "date_of_birth": {"type": "date", "index": 29, "name": "date_of_birth", "comment": null}, "gender": {"type": "text", "index": 30, "name": "gender", "comment": null}, "is_hispanic_or_latino": {"type": "integer", "index": 31, "name": "is_hispanic_or_latino", "comment": null}, "email_address": {"type": "text", "index": 32, "name": "email_address", "comment": null}, "ethnicity_codes": {"type": "text", "index": 33, "name": "ethnicity_codes", "comment": null}, "military_status": {"type": "text", "index": 34, "name": "military_status", "comment": null}, "business_title": {"type": "text", "index": 35, "name": "business_title", "comment": null}, "job_profile_id": {"type": "text", "index": 36, "name": "job_profile_id", "comment": null}, "employee_type": {"type": "text", "index": 37, "name": "employee_type", "comment": null}, "position_location": {"type": "text", "index": 38, "name": "position_location", "comment": null}, "management_level_code": {"type": "text", "index": 39, "name": "management_level_code", "comment": null}, "fte_percent": {"type": "integer", "index": 40, "name": "fte_percent", "comment": null}, "position_end_date": {"type": "date", "index": 41, "name": "position_end_date", "comment": null}, "position_effective_date": {"type": "date", "index": 42, "name": "position_effective_date", "comment": null}, "days_employed": {"type": "integer", "index": 43, "name": "days_employed", "comment": null}, "is_employed_one_year": {"type": "boolean", "index": 44, "name": "is_employed_one_year", "comment": null}, "is_employed_five_years": {"type": "boolean", "index": 45, "name": "is_employed_five_years", "comment": null}, "is_employed_ten_years": {"type": "boolean", "index": 46, "name": "is_employed_ten_years", "comment": null}, "is_employed_twenty_years": {"type": "boolean", "index": 47, "name": "is_employed_twenty_years", "comment": null}, "is_employed_thirty_years": {"type": "boolean", "index": 48, "name": "is_employed_thirty_years", "comment": null}, "is_current_employee_one_year": {"type": "boolean", "index": 49, "name": "is_current_employee_one_year", "comment": null}, "is_current_employee_five_years": {"type": "boolean", "index": 50, "name": "is_current_employee_five_years", "comment": null}, "is_current_employee_ten_years": {"type": "boolean", "index": 51, "name": "is_current_employee_ten_years", "comment": null}, "is_current_employee_twenty_years": {"type": "boolean", "index": 52, "name": "is_current_employee_twenty_years", "comment": null}, "is_current_employee_thirty_years": {"type": "boolean", "index": 53, "name": "is_current_employee_thirty_years", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__employee_overview"}, "model.workday.workday__job_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "job_profile_code": {"type": "text", "index": 3, "name": "job_profile_code", "comment": null}, "job_title": {"type": "text", "index": 4, "name": "job_title", "comment": null}, "private_title": {"type": "integer", "index": 5, "name": "private_title", "comment": null}, "job_summary": {"type": "text", "index": 6, "name": "job_summary", "comment": null}, "job_description": {"type": "text", "index": 7, "name": "job_description", "comment": null}, "job_family_codes": {"type": "text", "index": 8, "name": "job_family_codes", "comment": null}, "job_family_summaries": {"type": "text", "index": 9, "name": "job_family_summaries", "comment": null}, "job_family_group_codes": {"type": "text", "index": 10, "name": "job_family_group_codes", "comment": null}, "job_family_group_summaries": {"type": "text", "index": 11, "name": "job_family_group_summaries", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__job_overview"}, "model.workday.workday__monthly_summary": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"metrics_month": {"type": "date", "index": 1, "name": "metrics_month", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "new_employees": {"type": "bigint", "index": 3, "name": "new_employees", "comment": null}, "churned_employees": {"type": "bigint", "index": 4, "name": "churned_employees", "comment": null}, "churned_voluntary_employees": {"type": "bigint", "index": 5, "name": "churned_voluntary_employees", "comment": null}, "churned_involuntary_employees": {"type": "bigint", "index": 6, "name": "churned_involuntary_employees", "comment": null}, "churned_workers": {"type": "bigint", "index": 7, "name": "churned_workers", "comment": null}, "active_employees": {"type": "bigint", "index": 8, "name": "active_employees", "comment": null}, "active_male_employees": {"type": "bigint", "index": 9, "name": "active_male_employees", "comment": null}, "active_female_employees": {"type": "bigint", "index": 10, "name": "active_female_employees", "comment": null}, "active_workers": {"type": "bigint", "index": 11, "name": "active_workers", "comment": null}, "active_known_gender_employees": {"type": "bigint", "index": 12, "name": "active_known_gender_employees", "comment": null}, "avg_employee_primary_compensation": {"type": "double precision", "index": 13, "name": "avg_employee_primary_compensation", "comment": null}, "avg_employee_base_pay": {"type": "double precision", "index": 14, "name": "avg_employee_base_pay", "comment": null}, "avg_employee_salary_and_allowances": {"type": "double precision", "index": 15, "name": "avg_employee_salary_and_allowances", "comment": null}, "avg_days_as_employee": {"type": "numeric", "index": 16, "name": "avg_days_as_employee", "comment": null}, "avg_worker_primary_compensation": {"type": "double precision", "index": 17, "name": "avg_worker_primary_compensation", "comment": null}, "avg_worker_base_pay": {"type": "double precision", "index": 18, "name": "avg_worker_base_pay", "comment": null}, "avg_worker_salary_and_allowances": {"type": "double precision", "index": 19, "name": "avg_worker_salary_and_allowances", "comment": null}, "avg_days_as_worker": {"type": "numeric", "index": 20, "name": "avg_days_as_worker", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__monthly_summary"}, "model.workday.workday__organization_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "organization_role_id": {"type": "text", "index": 2, "name": "organization_role_id", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 5, "name": "source_relation", "comment": null}, "organization_code": {"type": "text", "index": 6, "name": "organization_code", "comment": null}, "organization_name": {"type": "text", "index": 7, "name": "organization_name", "comment": null}, "organization_type": {"type": "text", "index": 8, "name": "organization_type", "comment": null}, "organization_sub_type": {"type": "text", "index": 9, "name": "organization_sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 10, "name": "superior_organization_id", "comment": null}, "top_level_organization_id": {"type": "text", "index": 11, "name": "top_level_organization_id", "comment": null}, "manager_id": {"type": "text", "index": 12, "name": "manager_id", "comment": null}, "organization_role_code": {"type": "text", "index": 13, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__organization_overview"}, "model.workday.workday__position_overview": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "source_relation": {"type": "text", "index": 2, "name": "source_relation", "comment": null}, "position_code": {"type": "text", "index": 3, "name": "position_code", "comment": null}, "job_posting_title": {"type": "text", "index": 4, "name": "job_posting_title", "comment": null}, "effective_date": {"type": "date", "index": 5, "name": "effective_date", "comment": null}, "is_closed": {"type": "boolean", "index": 6, "name": "is_closed", "comment": null}, "is_hiring_freeze": {"type": "boolean", "index": 7, "name": "is_hiring_freeze", "comment": null}, "is_available_for_hire": {"type": "boolean", "index": 8, "name": "is_available_for_hire", "comment": null}, "availability_date": {"type": "date", "index": 9, "name": "availability_date", "comment": null}, "is_available_for_recruiting": {"type": "boolean", "index": 10, "name": "is_available_for_recruiting", "comment": null}, "earliest_hire_date": {"type": "date", "index": 11, "name": "earliest_hire_date", "comment": null}, "is_available_for_overlap": {"type": "boolean", "index": 12, "name": "is_available_for_overlap", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 13, "name": "earliest_overlap_date", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 14, "name": "worker_for_filled_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 15, "name": "worker_type_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 16, "name": "position_time_type_code", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 17, "name": "supervisory_organization_id", "comment": null}, "job_profile_id": {"type": "text", "index": 18, "name": "job_profile_id", "comment": null}, "compensation_package_code": {"type": "integer", "index": 19, "name": "compensation_package_code", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 20, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 21, "name": "compensation_grade_profile_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__position_overview"}, "model.workday.workday__worker_position_org_daily_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests_workday", "name": "workday__worker_position_org_daily_history", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"wpo_day_id": {"type": "text", "index": 1, "name": "wpo_day_id", "comment": null}, "date_day": {"type": "date", "index": 2, "name": "date_day", "comment": null}, "worker_id": {"type": "text", "index": 3, "name": "worker_id", "comment": null}, "position_id": {"type": "text", "index": 4, "name": "position_id", "comment": null}, "organization_id": {"type": "text", "index": 5, "name": "organization_id", "comment": null}, "source_relation": {"type": "text", "index": 6, "name": "source_relation", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 8, "name": "_fivetran_end", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 9, "name": "_fivetran_active", "comment": null}, "_fivetran_date": {"type": "date", "index": 10, "name": "_fivetran_date", "comment": null}, "history_unique_key": {"type": "text", "index": 11, "name": "history_unique_key", "comment": null}, "index": {"type": "integer", "index": 12, "name": "index", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 13, "name": "date_of_pay_group_assignment", "comment": null}, "primary_business_site": {"type": "integer", "index": 14, "name": "primary_business_site", "comment": null}, "is_used_in_change_organization_assignments": {"type": "boolean", "index": 15, "name": "is_used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.workday.workday__worker_position_org_daily_history"}}, "sources": {"source.workday.workday.job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_code": {"type": "text", "index": 6, "name": "job_family_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family"}, "source.workday.workday.job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "effective_date": {"type": "date", "index": 4, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 5, "name": "inactive", "comment": null}, "job_family_group_code": {"type": "text", "index": 6, "name": "job_family_group_code", "comment": null}, "summary": {"type": "text", "index": 7, "name": "summary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_group"}, "source.workday.workday.job_family_job_family_group": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_group_id": {"type": "text", "index": 1, "name": "job_family_group_id", "comment": null}, "job_family_id": {"type": "text", "index": 2, "name": "job_family_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_family_group"}, "source.workday.workday.job_family_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "job_profile_id": {"type": "text", "index": 2, "name": "job_profile_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_family_job_profile"}, "source.workday.workday.job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "additional_job_description": {"type": "integer", "index": 4, "name": "additional_job_description", "comment": null}, "compensation_grade_id": {"type": "integer", "index": 5, "name": "compensation_grade_id", "comment": null}, "critical_job": {"type": "boolean", "index": 6, "name": "critical_job", "comment": null}, "description": {"type": "text", "index": 7, "name": "description", "comment": null}, "difficulty_to_fill": {"type": "integer", "index": 8, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 9, "name": "effective_date", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "include_job_code_in_name": {"type": "boolean", "index": 11, "name": "include_job_code_in_name", "comment": null}, "job_category_id": {"type": "integer", "index": 12, "name": "job_category_id", "comment": null}, "job_profile_code": {"type": "text", "index": 13, "name": "job_profile_code", "comment": null}, "level": {"type": "integer", "index": 14, "name": "level", "comment": null}, "management_level": {"type": "text", "index": 15, "name": "management_level", "comment": null}, "private_title": {"type": "integer", "index": 16, "name": "private_title", "comment": null}, "public_job": {"type": "boolean", "index": 17, "name": "public_job", "comment": null}, "referral_payment_plan": {"type": "integer", "index": 18, "name": "referral_payment_plan", "comment": null}, "summary": {"type": "text", "index": 19, "name": "summary", "comment": null}, "title": {"type": "text", "index": 20, "name": "title", "comment": null}, "union_code": {"type": "integer", "index": 21, "name": "union_code", "comment": null}, "union_membership_requirement": {"type": "integer", "index": 22, "name": "union_membership_requirement", "comment": null}, "work_shift_required": {"type": "boolean", "index": 23, "name": "work_shift_required", "comment": null}, "work_study_award_source_code": {"type": "integer", "index": 24, "name": "work_study_award_source_code", "comment": null}, "work_study_requirement_option_code": {"type": "integer", "index": 25, "name": "work_study_requirement_option_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.job_profile"}, "source.workday.workday.military_service": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_military_service_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "discharge_date": {"type": "date", "index": 5, "name": "discharge_date", "comment": null}, "notes": {"type": "integer", "index": 6, "name": "notes", "comment": null}, "rank": {"type": "integer", "index": 7, "name": "rank", "comment": null}, "service": {"type": "text", "index": 8, "name": "service", "comment": null}, "service_type": {"type": "integer", "index": 9, "name": "service_type", "comment": null}, "status": {"type": "text", "index": 10, "name": "status", "comment": null}, "status_begin_date": {"type": "integer", "index": 11, "name": "status_begin_date", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.military_service"}, "source.workday.workday.organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "availability_date": {"type": "timestamp without time zone", "index": 4, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "integer", "index": 5, "name": "available_for_hire", "comment": null}, "code": {"type": "integer", "index": 6, "name": "code", "comment": null}, "description": {"type": "integer", "index": 7, "name": "description", "comment": null}, "external_url": {"type": "text", "index": 8, "name": "external_url", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 9, "name": "hiring_freeze", "comment": null}, "inactive": {"type": "boolean", "index": 10, "name": "inactive", "comment": null}, "inactive_date": {"type": "integer", "index": 11, "name": "inactive_date", "comment": null}, "include_manager_in_name": {"type": "boolean", "index": 12, "name": "include_manager_in_name", "comment": null}, "include_organization_code_in_name": {"type": "boolean", "index": 13, "name": "include_organization_code_in_name", "comment": null}, "last_updated_date_time": {"type": "timestamp without time zone", "index": 14, "name": "last_updated_date_time", "comment": null}, "location": {"type": "text", "index": 15, "name": "location", "comment": null}, "manager_id": {"type": "text", "index": 16, "name": "manager_id", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "organization_code": {"type": "text", "index": 18, "name": "organization_code", "comment": null}, "organization_owner_id": {"type": "text", "index": 19, "name": "organization_owner_id", "comment": null}, "staffing_model": {"type": "text", "index": 20, "name": "staffing_model", "comment": null}, "sub_type": {"type": "text", "index": 21, "name": "sub_type", "comment": null}, "superior_organization_id": {"type": "text", "index": 22, "name": "superior_organization_id", "comment": null}, "supervisory_position_availability_date": {"type": "date", "index": 23, "name": "supervisory_position_availability_date", "comment": null}, "supervisory_position_earliest_hire_date": {"type": "date", "index": 24, "name": "supervisory_position_earliest_hire_date", "comment": null}, "supervisory_position_time_type": {"type": "integer", "index": 25, "name": "supervisory_position_time_type", "comment": null}, "supervisory_position_worker_type": {"type": "integer", "index": 26, "name": "supervisory_position_worker_type", "comment": null}, "top_level_organization_id": {"type": "text", "index": 27, "name": "top_level_organization_id", "comment": null}, "type": {"type": "text", "index": 28, "name": "type", "comment": null}, "visibility": {"type": "text", "index": 29, "name": "visibility", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization"}, "source.workday.workday.organization_job_family": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_family_id": {"type": "text", "index": 1, "name": "job_family_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "job_family_group_id": {"type": "text", "index": 5, "name": "job_family_group_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_job_family"}, "source.workday.workday.organization_role": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 2, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "organization_role_code": {"type": "text", "index": 5, "name": "organization_role_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role"}, "source.workday.workday.organization_role_worker": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"associated_worker_id": {"type": "integer", "index": 1, "name": "associated_worker_id", "comment": null}, "organization_id": {"type": "text", "index": 2, "name": "organization_id", "comment": null}, "role_id": {"type": "text", "index": 3, "name": "role_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.organization_role_worker"}, "source.workday.workday.person_contact_email_address": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "email_address": {"type": "text", "index": 5, "name": "email_address", "comment": null}, "email_code": {"type": "text", "index": 6, "name": "email_code", "comment": null}, "email_comment": {"type": "integer", "index": 7, "name": "email_comment", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_contact_email_address"}, "source.workday.workday.person_name": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_person_name_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_suffix": {"type": "integer", "index": 6, "name": "academic_suffix", "comment": null}, "additional_name_type": {"type": "integer", "index": 7, "name": "additional_name_type", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "first_name": {"type": "text", "index": 9, "name": "first_name", "comment": null}, "full_name_singapore_malaysia": {"type": "integer", "index": 10, "name": "full_name_singapore_malaysia", "comment": null}, "hereditary_suffix": {"type": "integer", "index": 11, "name": "hereditary_suffix", "comment": null}, "honorary_suffix": {"type": "integer", "index": 12, "name": "honorary_suffix", "comment": null}, "last_name": {"type": "text", "index": 13, "name": "last_name", "comment": null}, "local_first_name": {"type": "integer", "index": 14, "name": "local_first_name", "comment": null}, "local_first_name_2": {"type": "integer", "index": 15, "name": "local_first_name_2", "comment": null}, "local_last_name": {"type": "integer", "index": 16, "name": "local_last_name", "comment": null}, "local_last_name_2": {"type": "integer", "index": 17, "name": "local_last_name_2", "comment": null}, "local_middle_name": {"type": "integer", "index": 18, "name": "local_middle_name", "comment": null}, "local_middle_name_2": {"type": "integer", "index": 19, "name": "local_middle_name_2", "comment": null}, "local_secondary_last_name": {"type": "integer", "index": 20, "name": "local_secondary_last_name", "comment": null}, "local_secondary_last_name_2": {"type": "integer", "index": 21, "name": "local_secondary_last_name_2", "comment": null}, "middle_name": {"type": "integer", "index": 22, "name": "middle_name", "comment": null}, "prefix_salutation": {"type": "integer", "index": 23, "name": "prefix_salutation", "comment": null}, "prefix_title": {"type": "integer", "index": 24, "name": "prefix_title", "comment": null}, "prefix_title_code": {"type": "integer", "index": 25, "name": "prefix_title_code", "comment": null}, "professional_suffix": {"type": "integer", "index": 26, "name": "professional_suffix", "comment": null}, "religious_suffix": {"type": "integer", "index": 27, "name": "religious_suffix", "comment": null}, "royal_suffix": {"type": "integer", "index": 28, "name": "royal_suffix", "comment": null}, "secondary_last_name": {"type": "integer", "index": 29, "name": "secondary_last_name", "comment": null}, "social_suffix": {"type": "integer", "index": 30, "name": "social_suffix", "comment": null}, "social_suffix_id": {"type": "integer", "index": 31, "name": "social_suffix_id", "comment": null}, "tertiary_last_name": {"type": "integer", "index": 32, "name": "tertiary_last_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.person_name"}, "source.workday.workday.personal_information_ethnicity": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"index": {"type": "integer", "index": 1, "name": "index", "comment": null}, "personal_info_system_id": {"type": "text", "index": 2, "name": "personal_info_system_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "ethnicity_code": {"type": "text", "index": 5, "name": "ethnicity_code", "comment": null}, "ethnicity_id": {"type": "text", "index": 6, "name": "ethnicity_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_ethnicity"}, "source.workday.workday.personal_information_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "type": {"type": "text", "index": 2, "name": "type", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "additional_nationality": {"type": "integer", "index": 7, "name": "additional_nationality", "comment": null}, "blood_type": {"type": "integer", "index": 8, "name": "blood_type", "comment": null}, "citizenship_status": {"type": "text", "index": 9, "name": "citizenship_status", "comment": null}, "city_of_birth": {"type": "text", "index": 10, "name": "city_of_birth", "comment": null}, "city_of_birth_code": {"type": "integer", "index": 11, "name": "city_of_birth_code", "comment": null}, "country_of_birth": {"type": "text", "index": 12, "name": "country_of_birth", "comment": null}, "date_of_birth": {"type": "date", "index": 13, "name": "date_of_birth", "comment": null}, "date_of_death": {"type": "integer", "index": 14, "name": "date_of_death", "comment": null}, "gender": {"type": "text", "index": 15, "name": "gender", "comment": null}, "hispanic_or_latino": {"type": "integer", "index": 16, "name": "hispanic_or_latino", "comment": null}, "hukou_locality": {"type": "integer", "index": 17, "name": "hukou_locality", "comment": null}, "hukou_postal_code": {"type": "integer", "index": 18, "name": "hukou_postal_code", "comment": null}, "hukou_region": {"type": "integer", "index": 19, "name": "hukou_region", "comment": null}, "hukou_subregion": {"type": "integer", "index": 20, "name": "hukou_subregion", "comment": null}, "hukou_type": {"type": "integer", "index": 21, "name": "hukou_type", "comment": null}, "last_medical_exam_date": {"type": "integer", "index": 22, "name": "last_medical_exam_date", "comment": null}, "last_medical_exam_valid_to": {"type": "integer", "index": 23, "name": "last_medical_exam_valid_to", "comment": null}, "local_hukou": {"type": "integer", "index": 24, "name": "local_hukou", "comment": null}, "marital_status": {"type": "text", "index": 25, "name": "marital_status", "comment": null}, "marital_status_date": {"type": "integer", "index": 26, "name": "marital_status_date", "comment": null}, "medical_exam_notes": {"type": "integer", "index": 27, "name": "medical_exam_notes", "comment": null}, "native_region": {"type": "integer", "index": 28, "name": "native_region", "comment": null}, "native_region_code": {"type": "integer", "index": 29, "name": "native_region_code", "comment": null}, "personnel_file_agency": {"type": "integer", "index": 30, "name": "personnel_file_agency", "comment": null}, "political_affiliation": {"type": "integer", "index": 31, "name": "political_affiliation", "comment": null}, "primary_nationality": {"type": "text", "index": 32, "name": "primary_nationality", "comment": null}, "region_of_birth": {"type": "integer", "index": 33, "name": "region_of_birth", "comment": null}, "region_of_birth_code": {"type": "text", "index": 34, "name": "region_of_birth_code", "comment": null}, "religion": {"type": "text", "index": 35, "name": "religion", "comment": null}, "social_benefit": {"type": "integer", "index": 36, "name": "social_benefit", "comment": null}, "tobacco_use": {"type": "boolean", "index": 37, "name": "tobacco_use", "comment": null}, "ll": {"type": "integer", "index": 38, "name": "ll", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.personal_information_history"}, "source.workday.workday.position": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "academic_tenure_eligible": {"type": "boolean", "index": 4, "name": "academic_tenure_eligible", "comment": null}, "availability_date": {"type": "date", "index": 5, "name": "availability_date", "comment": null}, "available_for_hire": {"type": "boolean", "index": 6, "name": "available_for_hire", "comment": null}, "available_for_overlap": {"type": "boolean", "index": 7, "name": "available_for_overlap", "comment": null}, "available_for_recruiting": {"type": "boolean", "index": 8, "name": "available_for_recruiting", "comment": null}, "closed": {"type": "boolean", "index": 9, "name": "closed", "comment": null}, "compensation_grade_code": {"type": "integer", "index": 10, "name": "compensation_grade_code", "comment": null}, "compensation_grade_profile_code": {"type": "integer", "index": 11, "name": "compensation_grade_profile_code", "comment": null}, "compensation_package_code": {"type": "integer", "index": 12, "name": "compensation_package_code", "comment": null}, "compensation_step_code": {"type": "integer", "index": 13, "name": "compensation_step_code", "comment": null}, "critical_job": {"type": "boolean", "index": 14, "name": "critical_job", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 15, "name": "difficulty_to_fill_code", "comment": null}, "earliest_hire_date": {"type": "date", "index": 16, "name": "earliest_hire_date", "comment": null}, "earliest_overlap_date": {"type": "integer", "index": 17, "name": "earliest_overlap_date", "comment": null}, "effective_date": {"type": "date", "index": 18, "name": "effective_date", "comment": null}, "hiring_freeze": {"type": "boolean", "index": 19, "name": "hiring_freeze", "comment": null}, "job_description": {"type": "text", "index": 20, "name": "job_description", "comment": null}, "job_description_summary": {"type": "text", "index": 21, "name": "job_description_summary", "comment": null}, "job_posting_title": {"type": "text", "index": 22, "name": "job_posting_title", "comment": null}, "position_code": {"type": "text", "index": 23, "name": "position_code", "comment": null}, "position_time_type_code": {"type": "text", "index": 24, "name": "position_time_type_code", "comment": null}, "primary_compensation_basis": {"type": "double precision", "index": 25, "name": "primary_compensation_basis", "comment": null}, "primary_compensation_basis_amount_change": {"type": "integer", "index": 26, "name": "primary_compensation_basis_amount_change", "comment": null}, "primary_compensation_basis_percent_change": {"type": "integer", "index": 27, "name": "primary_compensation_basis_percent_change", "comment": null}, "supervisory_organization_id": {"type": "text", "index": 28, "name": "supervisory_organization_id", "comment": null}, "work_shift_required": {"type": "boolean", "index": 29, "name": "work_shift_required", "comment": null}, "worker_for_filled_position_id": {"type": "text", "index": 30, "name": "worker_for_filled_position_id", "comment": null}, "worker_position_id": {"type": "text", "index": 31, "name": "worker_position_id", "comment": null}, "worker_type_code": {"type": "text", "index": 32, "name": "worker_type_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position"}, "source.workday.workday.position_job_profile": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"job_profile_id": {"type": "text", "index": 1, "name": "job_profile_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "difficulty_to_fill_code": {"type": "integer", "index": 5, "name": "difficulty_to_fill_code", "comment": null}, "is_critical_job": {"type": "boolean", "index": 6, "name": "is_critical_job", "comment": null}, "job_category_code": {"type": "integer", "index": 7, "name": "job_category_code", "comment": null}, "management_level_code": {"type": "text", "index": 8, "name": "management_level_code", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}, "work_shift_required": {"type": "boolean", "index": 10, "name": "work_shift_required", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_job_profile"}, "source.workday.workday.position_organization": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"organization_id": {"type": "text", "index": 1, "name": "organization_id", "comment": null}, "position_id": {"type": "text", "index": 2, "name": "position_id", "comment": null}, "type": {"type": "text", "index": 3, "name": "type", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.position_organization"}, "source.workday.workday.worker_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 2, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "academic_tenure_date": {"type": "integer", "index": 6, "name": "academic_tenure_date", "comment": null}, "active": {"type": "boolean", "index": 7, "name": "active", "comment": null}, "active_status_date": {"type": "date", "index": 8, "name": "active_status_date", "comment": null}, "annual_currency_summary_currency": {"type": "text", "index": 9, "name": "annual_currency_summary_currency", "comment": null}, "annual_currency_summary_frequency": {"type": "text", "index": 10, "name": "annual_currency_summary_frequency", "comment": null}, "annual_currency_summary_primary_compensation_basis": {"type": "double precision", "index": 11, "name": "annual_currency_summary_primary_compensation_basis", "comment": null}, "annual_currency_summary_total_base_pay": {"type": "double precision", "index": 12, "name": "annual_currency_summary_total_base_pay", "comment": null}, "annual_currency_summary_total_salary_and_allowances": {"type": "double precision", "index": 13, "name": "annual_currency_summary_total_salary_and_allowances", "comment": null}, "annual_summary_currency": {"type": "text", "index": 14, "name": "annual_summary_currency", "comment": null}, "annual_summary_frequency": {"type": "text", "index": 15, "name": "annual_summary_frequency", "comment": null}, "annual_summary_primary_compensation_basis": {"type": "double precision", "index": 16, "name": "annual_summary_primary_compensation_basis", "comment": null}, "annual_summary_total_base_pay": {"type": "double precision", "index": 17, "name": "annual_summary_total_base_pay", "comment": null}, "annual_summary_total_salary_and_allowances": {"type": "double precision", "index": 18, "name": "annual_summary_total_salary_and_allowances", "comment": null}, "benefits_service_date": {"type": "integer", "index": 19, "name": "benefits_service_date", "comment": null}, "company_service_date": {"type": "integer", "index": 20, "name": "company_service_date", "comment": null}, "compensation_effective_date": {"type": "date", "index": 21, "name": "compensation_effective_date", "comment": null}, "compensation_grade_id": {"type": "text", "index": 22, "name": "compensation_grade_id", "comment": null}, "compensation_grade_profile_id": {"type": "text", "index": 23, "name": "compensation_grade_profile_id", "comment": null}, "continuous_service_date": {"type": "date", "index": 24, "name": "continuous_service_date", "comment": null}, "contract_assignment_details": {"type": "integer", "index": 25, "name": "contract_assignment_details", "comment": null}, "contract_currency_code": {"type": "integer", "index": 26, "name": "contract_currency_code", "comment": null}, "contract_end_date": {"type": "integer", "index": 27, "name": "contract_end_date", "comment": null}, "contract_frequency_name": {"type": "integer", "index": 28, "name": "contract_frequency_name", "comment": null}, "contract_pay_rate": {"type": "integer", "index": 29, "name": "contract_pay_rate", "comment": null}, "contract_vendor_name": {"type": "integer", "index": 30, "name": "contract_vendor_name", "comment": null}, "date_entered_workforce": {"type": "integer", "index": 31, "name": "date_entered_workforce", "comment": null}, "days_unemployed": {"type": "double precision", "index": 32, "name": "days_unemployed", "comment": null}, "eligible_for_hire": {"type": "text", "index": 33, "name": "eligible_for_hire", "comment": null}, "eligible_for_rehire_on_latest_termination": {"type": "text", "index": 34, "name": "eligible_for_rehire_on_latest_termination", "comment": null}, "employee_compensation_currency": {"type": "text", "index": 35, "name": "employee_compensation_currency", "comment": null}, "employee_compensation_frequency": {"type": "text", "index": 36, "name": "employee_compensation_frequency", "comment": null}, "employee_compensation_primary_compensation_basis": {"type": "double precision", "index": 37, "name": "employee_compensation_primary_compensation_basis", "comment": null}, "employee_compensation_total_base_pay": {"type": "double precision", "index": 38, "name": "employee_compensation_total_base_pay", "comment": null}, "employee_compensation_total_salary_and_allowances": {"type": "double precision", "index": 39, "name": "employee_compensation_total_salary_and_allowances", "comment": null}, "end_employment_date": {"type": "date", "index": 40, "name": "end_employment_date", "comment": null}, "expected_date_of_return": {"type": "integer", "index": 41, "name": "expected_date_of_return", "comment": null}, "expected_retirement_date": {"type": "integer", "index": 42, "name": "expected_retirement_date", "comment": null}, "first_day_of_work": {"type": "date", "index": 43, "name": "first_day_of_work", "comment": null}, "has_international_assignment": {"type": "boolean", "index": 44, "name": "has_international_assignment", "comment": null}, "hire_date": {"type": "date", "index": 45, "name": "hire_date", "comment": null}, "hire_reason": {"type": "text", "index": 46, "name": "hire_reason", "comment": null}, "hire_rescinded": {"type": "boolean", "index": 47, "name": "hire_rescinded", "comment": null}, "home_country": {"type": "integer", "index": 48, "name": "home_country", "comment": null}, "hourly_frequency_currency": {"type": "text", "index": 49, "name": "hourly_frequency_currency", "comment": null}, "hourly_frequency_frequency": {"type": "text", "index": 50, "name": "hourly_frequency_frequency", "comment": null}, "hourly_frequency_primary_compensation_basis": {"type": "integer", "index": 51, "name": "hourly_frequency_primary_compensation_basis", "comment": null}, "hourly_frequency_total_base_pay": {"type": "double precision", "index": 52, "name": "hourly_frequency_total_base_pay", "comment": null}, "hourly_frequency_total_salary_and_allowances": {"type": "integer", "index": 53, "name": "hourly_frequency_total_salary_and_allowances", "comment": null}, "last_datefor_which_paid": {"type": "integer", "index": 54, "name": "last_datefor_which_paid", "comment": null}, "local_termination_reason": {"type": "integer", "index": 55, "name": "local_termination_reason", "comment": null}, "months_continuous_prior_employment": {"type": "double precision", "index": 56, "name": "months_continuous_prior_employment", "comment": null}, "not_returning": {"type": "boolean", "index": 57, "name": "not_returning", "comment": null}, "original_hire_date": {"type": "date", "index": 58, "name": "original_hire_date", "comment": null}, "pay_group_frequency_currency": {"type": "text", "index": 59, "name": "pay_group_frequency_currency", "comment": null}, "pay_group_frequency_frequency": {"type": "integer", "index": 60, "name": "pay_group_frequency_frequency", "comment": null}, "pay_group_frequency_primary_compensation_basis": {"type": "double precision", "index": 61, "name": "pay_group_frequency_primary_compensation_basis", "comment": null}, "pay_group_frequency_total_base_pay": {"type": "double precision", "index": 62, "name": "pay_group_frequency_total_base_pay", "comment": null}, "pay_group_frequency_total_salary_and_allowances": {"type": "double precision", "index": 63, "name": "pay_group_frequency_total_salary_and_allowances", "comment": null}, "pay_through_date": {"type": "date", "index": 64, "name": "pay_through_date", "comment": null}, "primary_termination_category": {"type": "text", "index": 65, "name": "primary_termination_category", "comment": null}, "primary_termination_reason": {"type": "text", "index": 66, "name": "primary_termination_reason", "comment": null}, "probation_end_date": {"type": "integer", "index": 67, "name": "probation_end_date", "comment": null}, "probation_start_date": {"type": "integer", "index": 68, "name": "probation_start_date", "comment": null}, "reason_reference_id": {"type": "text", "index": 69, "name": "reason_reference_id", "comment": null}, "regrettable_termination": {"type": "boolean", "index": 70, "name": "regrettable_termination", "comment": null}, "rehire": {"type": "boolean", "index": 71, "name": "rehire", "comment": null}, "resignation_date": {"type": "integer", "index": 72, "name": "resignation_date", "comment": null}, "retired": {"type": "boolean", "index": 73, "name": "retired", "comment": null}, "retirement_date": {"type": "integer", "index": 74, "name": "retirement_date", "comment": null}, "retirement_eligibility_date": {"type": "integer", "index": 75, "name": "retirement_eligibility_date", "comment": null}, "return_unknown": {"type": "boolean", "index": 76, "name": "return_unknown", "comment": null}, "seniority_date": {"type": "date", "index": 77, "name": "seniority_date", "comment": null}, "severance_date": {"type": "integer", "index": 78, "name": "severance_date", "comment": null}, "terminated": {"type": "boolean", "index": 79, "name": "terminated", "comment": null}, "termination_date": {"type": "date", "index": 80, "name": "termination_date", "comment": null}, "termination_involuntary": {"type": "boolean", "index": 81, "name": "termination_involuntary", "comment": null}, "termination_last_day_of_work": {"type": "date", "index": 82, "name": "termination_last_day_of_work", "comment": null}, "time_off_service_date": {"type": "integer", "index": 83, "name": "time_off_service_date", "comment": null}, "universal_id": {"type": "integer", "index": 84, "name": "universal_id", "comment": null}, "user_id": {"type": "text", "index": 85, "name": "user_id", "comment": null}, "vesting_date": {"type": "integer", "index": 86, "name": "vesting_date", "comment": null}, "worker_code": {"type": "integer", "index": 87, "name": "worker_code", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_history"}, "source.workday.workday.worker_leave_status": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"leave_request_event_id": {"type": "text", "index": 1, "name": "leave_request_event_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "adoption_notification_date": {"type": "date", "index": 5, "name": "adoption_notification_date", "comment": null}, "adoption_placement_date": {"type": "date", "index": 6, "name": "adoption_placement_date", "comment": null}, "age_of_dependent": {"type": "integer", "index": 7, "name": "age_of_dependent", "comment": null}, "benefits_effect": {"type": "boolean", "index": 8, "name": "benefits_effect", "comment": null}, "caesarean_section_birth": {"type": "integer", "index": 9, "name": "caesarean_section_birth", "comment": null}, "child_birth_date": {"type": "date", "index": 10, "name": "child_birth_date", "comment": null}, "child_sdate_of_death": {"type": "integer", "index": 11, "name": "child_sdate_of_death", "comment": null}, "continuous_service_accrual_effect": {"type": "boolean", "index": 12, "name": "continuous_service_accrual_effect", "comment": null}, "date_baby_arrived_home_from_hospital": {"type": "integer", "index": 13, "name": "date_baby_arrived_home_from_hospital", "comment": null}, "date_child_entered_country": {"type": "integer", "index": 14, "name": "date_child_entered_country", "comment": null}, "date_of_recall": {"type": "integer", "index": 15, "name": "date_of_recall", "comment": null}, "description": {"type": "text", "index": 16, "name": "description", "comment": null}, "estimated_leave_end_date": {"type": "date", "index": 17, "name": "estimated_leave_end_date", "comment": null}, "expected_due_date": {"type": "date", "index": 18, "name": "expected_due_date", "comment": null}, "first_day_of_work": {"type": "integer", "index": 19, "name": "first_day_of_work", "comment": null}, "last_date_for_which_paid": {"type": "integer", "index": 20, "name": "last_date_for_which_paid", "comment": null}, "leave_end_date": {"type": "integer", "index": 21, "name": "leave_end_date", "comment": null}, "leave_entitlement_override": {"type": "integer", "index": 22, "name": "leave_entitlement_override", "comment": null}, "leave_last_day_of_work": {"type": "date", "index": 23, "name": "leave_last_day_of_work", "comment": null}, "leave_of_absence_type": {"type": "text", "index": 24, "name": "leave_of_absence_type", "comment": null}, "leave_percentage": {"type": "integer", "index": 25, "name": "leave_percentage", "comment": null}, "leave_return_event": {"type": "integer", "index": 26, "name": "leave_return_event", "comment": null}, "leave_start_date": {"type": "date", "index": 27, "name": "leave_start_date", "comment": null}, "leave_status_code": {"type": "text", "index": 28, "name": "leave_status_code", "comment": null}, "leave_type_reason": {"type": "text", "index": 29, "name": "leave_type_reason", "comment": null}, "location_during_leave": {"type": "integer", "index": 30, "name": "location_during_leave", "comment": null}, "multiple_child_indicator": {"type": "integer", "index": 31, "name": "multiple_child_indicator", "comment": null}, "number_of_babies_adopted_children": {"type": "integer", "index": 32, "name": "number_of_babies_adopted_children", "comment": null}, "number_of_child_dependents": {"type": "integer", "index": 33, "name": "number_of_child_dependents", "comment": null}, "number_of_previous_births": {"type": "integer", "index": 34, "name": "number_of_previous_births", "comment": null}, "number_of_previous_maternity_leaves": {"type": "integer", "index": 35, "name": "number_of_previous_maternity_leaves", "comment": null}, "on_leave": {"type": "boolean", "index": 36, "name": "on_leave", "comment": null}, "paid_time_off_accrual_effect": {"type": "boolean", "index": 37, "name": "paid_time_off_accrual_effect", "comment": null}, "payroll_effect": {"type": "boolean", "index": 38, "name": "payroll_effect", "comment": null}, "single_parent_indicator": {"type": "integer", "index": 39, "name": "single_parent_indicator", "comment": null}, "social_security_disability_code": {"type": "integer", "index": 40, "name": "social_security_disability_code", "comment": null}, "stillbirth_baby_deceased": {"type": "boolean", "index": 41, "name": "stillbirth_baby_deceased", "comment": null}, "stock_vesting_effect": {"type": "boolean", "index": 42, "name": "stock_vesting_effect", "comment": null}, "stop_payment_date": {"type": "integer", "index": 43, "name": "stop_payment_date", "comment": null}, "week_of_confinement": {"type": "integer", "index": 44, "name": "week_of_confinement", "comment": null}, "work_related": {"type": "integer", "index": 45, "name": "work_related", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_leave_status"}, "source.workday.workday.worker_position_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"position_id": {"type": "text", "index": 1, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 2, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 3, "name": "_fivetran_active", "comment": null}, "_fivetran_start": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_start", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_synced", "comment": null}, "academic_pay_setup_data_annual_work_period_end_date": {"type": "integer", "index": 7, "name": "academic_pay_setup_data_annual_work_period_end_date", "comment": null}, "academic_pay_setup_data_annual_work_period_start_date": {"type": "integer", "index": 8, "name": "academic_pay_setup_data_annual_work_period_start_date", "comment": null}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"type": "integer", "index": 9, "name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"type": "integer", "index": 10, "name": "academic_pay_setup_data_disbursement_plan_period_end_date", "comment": null}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"type": "integer", "index": 11, "name": "academic_pay_setup_data_disbursement_plan_period_start_date", "comment": null}, "business_site_summary_display_language": {"type": "text", "index": 12, "name": "business_site_summary_display_language", "comment": null}, "business_site_summary_local": {"type": "text", "index": 13, "name": "business_site_summary_local", "comment": null}, "business_site_summary_location": {"type": "text", "index": 14, "name": "business_site_summary_location", "comment": null}, "business_site_summary_location_type": {"type": "text", "index": 15, "name": "business_site_summary_location_type", "comment": null}, "business_site_summary_name": {"type": "text", "index": 16, "name": "business_site_summary_name", "comment": null}, "business_site_summary_scheduled_weekly_hours": {"type": "double precision", "index": 17, "name": "business_site_summary_scheduled_weekly_hours", "comment": null}, "business_site_summary_time_profile": {"type": "text", "index": 18, "name": "business_site_summary_time_profile", "comment": null}, "business_title": {"type": "text", "index": 19, "name": "business_title", "comment": null}, "critical_job": {"type": "boolean", "index": 20, "name": "critical_job", "comment": null}, "default_weekly_hours": {"type": "double precision", "index": 21, "name": "default_weekly_hours", "comment": null}, "difficulty_to_fill": {"type": "text", "index": 22, "name": "difficulty_to_fill", "comment": null}, "effective_date": {"type": "date", "index": 23, "name": "effective_date", "comment": null}, "employee_type": {"type": "text", "index": 24, "name": "employee_type", "comment": null}, "end_date": {"type": "date", "index": 25, "name": "end_date", "comment": null}, "end_employment_date": {"type": "date", "index": 26, "name": "end_employment_date", "comment": null}, "exclude_from_head_count": {"type": "boolean", "index": 27, "name": "exclude_from_head_count", "comment": null}, "expected_assignment_end_date": {"type": "integer", "index": 28, "name": "expected_assignment_end_date", "comment": null}, "external_employee": {"type": "integer", "index": 29, "name": "external_employee", "comment": null}, "federal_withholding_fein": {"type": "integer", "index": 30, "name": "federal_withholding_fein", "comment": null}, "frequency": {"type": "text", "index": 31, "name": "frequency", "comment": null}, "full_time_equivalent_percentage": {"type": "integer", "index": 32, "name": "full_time_equivalent_percentage", "comment": null}, "headcount_restriction_code": {"type": "integer", "index": 33, "name": "headcount_restriction_code", "comment": null}, "home_country": {"type": "integer", "index": 34, "name": "home_country", "comment": null}, "host_country": {"type": "integer", "index": 35, "name": "host_country", "comment": null}, "international_assignment_type": {"type": "integer", "index": 36, "name": "international_assignment_type", "comment": null}, "is_primary_job": {"type": "boolean", "index": 37, "name": "is_primary_job", "comment": null}, "job_exempt": {"type": "boolean", "index": 38, "name": "job_exempt", "comment": null}, "job_profile_id": {"type": "text", "index": 39, "name": "job_profile_id", "comment": null}, "management_level_code": {"type": "text", "index": 40, "name": "management_level_code", "comment": null}, "paid_fte": {"type": "double precision", "index": 41, "name": "paid_fte", "comment": null}, "pay_group": {"type": "integer", "index": 42, "name": "pay_group", "comment": null}, "pay_rate": {"type": "integer", "index": 43, "name": "pay_rate", "comment": null}, "pay_rate_type": {"type": "text", "index": 44, "name": "pay_rate_type", "comment": null}, "pay_through_date": {"type": "date", "index": 45, "name": "pay_through_date", "comment": null}, "payroll_entity": {"type": "integer", "index": 46, "name": "payroll_entity", "comment": null}, "payroll_file_number": {"type": "integer", "index": 47, "name": "payroll_file_number", "comment": null}, "regular_paid_equivalent_hours": {"type": "integer", "index": 48, "name": "regular_paid_equivalent_hours", "comment": null}, "scheduled_weekly_hours": {"type": "double precision", "index": 49, "name": "scheduled_weekly_hours", "comment": null}, "specify_paid_fte": {"type": "boolean", "index": 50, "name": "specify_paid_fte", "comment": null}, "specify_working_fte": {"type": "boolean", "index": 51, "name": "specify_working_fte", "comment": null}, "start_date": {"type": "date", "index": 52, "name": "start_date", "comment": null}, "start_international_assignment_reason": {"type": "date", "index": 53, "name": "start_international_assignment_reason", "comment": null}, "work_hours_profile": {"type": "integer", "index": 54, "name": "work_hours_profile", "comment": null}, "work_shift": {"type": "integer", "index": 55, "name": "work_shift", "comment": null}, "work_shift_required": {"type": "boolean", "index": 56, "name": "work_shift_required", "comment": null}, "work_space": {"type": "integer", "index": 57, "name": "work_space", "comment": null}, "worker_hours_profile_classification": {"type": "integer", "index": 58, "name": "worker_hours_profile_classification", "comment": null}, "working_fte": {"type": "double precision", "index": 59, "name": "working_fte", "comment": null}, "working_time_frequency": {"type": "integer", "index": 60, "name": "working_time_frequency", "comment": null}, "working_time_unit": {"type": "integer", "index": 61, "name": "working_time_unit", "comment": null}, "working_time_value": {"type": "integer", "index": 62, "name": "working_time_value", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_history"}, "source.workday.workday.worker_position_organization_history": {"metadata": {"type": "BASE TABLE", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_start": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_start", "comment": null}, "index": {"type": "integer", "index": 2, "name": "index", "comment": null}, "position_id": {"type": "text", "index": 3, "name": "position_id", "comment": null}, "worker_id": {"type": "text", "index": 4, "name": "worker_id", "comment": null}, "_fivetran_active": {"type": "boolean", "index": 5, "name": "_fivetran_active", "comment": null}, "_fivetran_end": {"type": "timestamp without time zone", "index": 6, "name": "_fivetran_end", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 7, "name": "_fivetran_synced", "comment": null}, "date_of_pay_group_assignment": {"type": "integer", "index": 8, "name": "date_of_pay_group_assignment", "comment": null}, "organization_id": {"type": "text", "index": 9, "name": "organization_id", "comment": null}, "primary_business_site": {"type": "integer", "index": 10, "name": "primary_business_site", "comment": null}, "used_in_change_organization_assignments": {"type": "boolean", "index": 11, "name": "used_in_change_organization_assignments", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.workday.workday.worker_position_organization_history"}}, "errors": null} \ No newline at end of file diff --git a/docs/manifest.json b/docs/manifest.json index 12686c5..2b0b163 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v11.json", "dbt_version": "1.7.8", "generated_at": "2024-04-02T23:44:45.176218Z", "invocation_id": "cc500e2b-b7c4-44e8-b9fd-9ae8c4aa2439", "env": {}, "project_name": "workday_integration_tests", "project_id": "457920b1e5594993369a050db836d437", "user_id": "81581f81-d5af-4143-8fbf-c2f0001e4f56", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_job_family_group_data"], "alias": "workday_job_family_job_family_group_data", "checksum": {"name": "sha256", "checksum": "a4c9b0101811381ac698bec0ba8dd2474fa563f2d2dc6bdf1e072bd3f890313f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.8557298, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_history_data.csv", "original_file_path": "seeds/workday_personal_information_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "fqn": ["workday_integration_tests", "workday_personal_information_history_data"], "alias": "workday_personal_information_history_data", "checksum": {"name": "sha256", "checksum": "2810574ec93fc886e6f1faa097951c8d7c96336fbd1a03b75a22b5a7bb85d13a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.863468, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_ethnicity_data.csv", "original_file_path": "seeds/workday_personal_information_ethnicity_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "fqn": ["workday_integration_tests", "workday_personal_information_ethnicity_data"], "alias": "workday_personal_information_ethnicity_data", "checksum": {"name": "sha256", "checksum": "986222e9224bcca39693358ca9829277b4f6a2c56111ba9aa2db56734d128e9a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.8646882, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_group_data"], "alias": "workday_job_family_group_data", "checksum": {"name": "sha256", "checksum": "394c43d528af65ce740ba8ebd24d6d14e6ea99f5d57abcdd2690070f408378f9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.866107, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_history_data.csv", "original_file_path": "seeds/workday_worker_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "fqn": ["workday_integration_tests", "workday_worker_history_data"], "alias": "workday_worker_history_data", "checksum": {"name": "sha256", "checksum": "b3b80c42d748789791fca4630504aafa22afd1dca315e0d63bc0f9f9fe33a68d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "annual_currency_summary_primary_compensation_basis": "float", "annual_currency_summary_total_base_pay": "float", "annual_currency_summary_total_salary_and_allowances": "float", "annual_summary_primary_compensation_basis": "float", "annual_summary_total_base_pay": "float", "annual_summary_total_salary_and_allowances": "float", "contract_pay_rate": "float", "days_unemployed": "float", "employee_compensation_primary_compensation_basis": "float", "employee_compensation_total_base_pay": "float", "employee_compensation_total_salary_and_allowances": "float", "hourly_frequency_primary_compensation_basis": "float", "hourly_frequency_total_base_pay": "float", "hourly_frequency_total_salary_and_allowances": "float", "months_continuous_prior_employment": "float", "pay_group_frequency_primary_compensation_basis": "float", "pay_group_frequency_total_base_pay": "float", "pay_group_frequency_total_salary_and_allowances": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "annual_currency_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "contract_pay_rate": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "days_unemployed": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "months_continuous_prior_employment": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712101391.867906, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_leave_status_data.csv", "original_file_path": "seeds/workday_worker_leave_status_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "fqn": ["workday_integration_tests", "workday_worker_leave_status_data"], "alias": "workday_worker_leave_status_data", "checksum": {"name": "sha256", "checksum": "bec6fe9af70bc7bebcfebbd12d41d1674fa78fc88497783bf7be995f1290b901"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "age_of_dependent": "float", "leave_entitlement_override": "float", "leave_percentage": "float", "number_of_babies_adopted_children": "float", "number_of_child_dependents": "float", "number_of_previous_births": "float", "number_of_previous_maternity_leaves": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "age_of_dependent": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_entitlement_override": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_percentage": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_babies_adopted_children": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_child_dependents": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_births": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_maternity_leaves": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712101391.8695092, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_organization_history_data.csv", "original_file_path": "seeds/workday_worker_position_organization_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_organization_history_data"], "alias": "workday_worker_position_organization_history_data", "checksum": {"name": "sha256", "checksum": "79d43cf1c2b3425d03d23b014705613022d55eb282108d972cbeb58bf55ed0d3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.8709362, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_data.csv", "original_file_path": "seeds/workday_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_data", "fqn": ["workday_integration_tests", "workday_job_family_data"], "alias": "workday_job_family_data", "checksum": {"name": "sha256", "checksum": "727b3c01934259786bd85a1bed73ac70611363839a611bdea640bf9bd95cba2d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.872223, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_history_data.csv", "original_file_path": "seeds/workday_worker_position_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_history_data"], "alias": "workday_worker_position_history_data", "checksum": {"name": "sha256", "checksum": "434f6ed5606c6606bbbf41d1427584a275a825ae285f88c1b12d2c3d7da3c07d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "float", "business_site_summary_scheduled_weekly_hours": "float", "default_weekly_hours": "float", "start_date": "timestamp", "end_date": "timestamp"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "business_site_summary_scheduled_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "default_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "start_date": "timestamp", "end_date": "timestamp"}, "created_at": 1712101391.873491, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_name_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_name_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_name_data.csv", "original_file_path": "seeds/workday_person_name_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_name_data", "fqn": ["workday_integration_tests", "workday_person_name_data"], "alias": "workday_person_name_data", "checksum": {"name": "sha256", "checksum": "104b5d938091b1587548c91aa46a0e5b38ebccec81cbc569993b8a971b116881"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.8749352, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_data.csv", "original_file_path": "seeds/workday_organization_role_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "fqn": ["workday_integration_tests", "workday_organization_role_data"], "alias": "workday_organization_role_data", "checksum": {"name": "sha256", "checksum": "b3e1187179e8afc95fbf180efac810d5a8f4f57e118393c60fca2c2c7f09e024"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.876232, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_military_service_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_military_service_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_military_service_data.csv", "original_file_path": "seeds/workday_military_service_data.csv", "unique_id": "seed.workday_integration_tests.workday_military_service_data", "fqn": ["workday_integration_tests", "workday_military_service_data"], "alias": "workday_military_service_data", "checksum": {"name": "sha256", "checksum": "f3d25deafee7b4188b4bdfe815b40397bdd80cd135db866b9ddf2b3a0b346b07"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.877653, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_data.csv", "original_file_path": "seeds/workday_position_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_data", "fqn": ["workday_integration_tests", "workday_position_data"], "alias": "workday_position_data", "checksum": {"name": "sha256", "checksum": "f31ec8364b56eb931ab406b25be5cfc0301bba65908bc448aeb170ed79805894"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "primary_compensation_basis": "float", "primary_compensation_basis_amount_change": "float", "primary_compensation_basis_percent_change": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_amount_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_percent_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712101391.8789608, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_data.csv", "original_file_path": "seeds/workday_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_data", "fqn": ["workday_integration_tests", "workday_organization_data"], "alias": "workday_organization_data", "checksum": {"name": "sha256", "checksum": "e0ece91ba5a270a01be9bbe91ea46b49c9e5c3c56e7234b5a597c9d81f63b4cc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.880388, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_organization_data.csv", "original_file_path": "seeds/workday_position_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "fqn": ["workday_integration_tests", "workday_position_organization_data"], "alias": "workday_position_organization_data", "checksum": {"name": "sha256", "checksum": "c0cd526bcf4b91f1842484875ce4fe803d510862d4d4ddba72c6d1724c8e9ea8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.8816, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_profile_data.csv", "original_file_path": "seeds/workday_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_profile_data"], "alias": "workday_job_profile_data", "checksum": {"name": "sha256", "checksum": "677a184272cdd2e0d746d5616d33ad4ce394c74e759f73bf0e51f8dda5cc96e4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.883074, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_contact_email_address_data.csv", "original_file_path": "seeds/workday_person_contact_email_address_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "fqn": ["workday_integration_tests", "workday_person_contact_email_address_data"], "alias": "workday_person_contact_email_address_data", "checksum": {"name": "sha256", "checksum": "4641c91d789ed134081a55cf0aaafc5a61a7ea075904691a353389552038dbe9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.8842711, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_job_family_data.csv", "original_file_path": "seeds/workday_organization_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "fqn": ["workday_integration_tests", "workday_organization_job_family_data"], "alias": "workday_organization_job_family_data", "checksum": {"name": "sha256", "checksum": "2db2016b7eea202409836faff94ba2f168ce13dfd9e00ee1d1591eb85315cd47"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.885411, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_profile_data.csv", "original_file_path": "seeds/workday_job_family_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_family_job_profile_data"], "alias": "workday_job_family_job_profile_data", "checksum": {"name": "sha256", "checksum": "bc99975db9382af8f66fd46976db4cca2a987b1e9de24d17ceeb1ebf6e5ecb68"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.8870342, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_job_profile_data.csv", "original_file_path": "seeds/workday_position_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "fqn": ["workday_integration_tests", "workday_position_job_profile_data"], "alias": "workday_position_job_profile_data", "checksum": {"name": "sha256", "checksum": "e5d675b82b521d6856d8f516209642745a595a31d88d147f6561bcbc970433b3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.888336, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_worker_data.csv", "original_file_path": "seeds/workday_organization_role_worker_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "fqn": ["workday_integration_tests", "workday_organization_role_worker_data"], "alias": "workday_organization_role_worker_data", "checksum": {"name": "sha256", "checksum": "e24079f7ed64c407174d546132b71c69a9b1eaa9951b5a91772a3da7b3ff95f8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712101391.8895721, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "model.workday.workday__employee_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "resource_type": "model", "package_name": "workday", "path": "workday__employee_overview.sql", "original_file_path": "models/workday__employee_overview.sql", "unique_id": "model.workday.workday__employee_overview", "fqn": ["workday", "workday__employee_overview"], "alias": "workday__employee_overview", "checksum": {"name": "sha256", "checksum": "b6fe9afa14aa393b3c40d1a669d182f20e556adacaa1ec46b05ad800bd4141a7"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees.", "columns": {"employee_id": {"name": "employee_id", "description": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_user_active": {"name": "is_user_active", "description": "Is the user currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed": {"name": "is_employed", "description": "Is the worker currently employed?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "departure_date": {"name": "departure_date", "description": "The departure date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_as_worker": {"name": "days_as_worker", "description": "Number of days since the worker has been created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Has the worker been regrettably terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_codes": {"name": "ethnicity_codes", "description": "String aggregation of all ethnicity codes associated with an individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The military status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The position start date for this employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The position end date for this employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "The position effective date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The position location of the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_employed": {"name": "days_employed", "description": "The number of days the employee held their position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_one_year": {"name": "is_employed_one_year", "description": "Tracks whether a worker was employed at least one year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_five_years": {"name": "is_employed_five_years", "description": "Tracks whether a worker was employed at least five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_ten_years": {"name": "is_employed_ten_years", "description": "Tracks whether a worker was employed at least ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_twenty_years": {"name": "is_employed_twenty_years", "description": "Tracks whether a worker was employed at least twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_thirty_years": {"name": "is_employed_thirty_years", "description": "Tracks whether a worker was employed at least thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_one_year": {"name": "is_current_employee_one_year", "description": "Tracks whether a worker is active for more than a year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_five_years": {"name": "is_current_employee_five_years", "description": "Tracks whether a worker is active for more than five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "description": "Tracks whether a worker is active for more than ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "description": "Tracks whether a worker is active for more than twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "description": "Tracks whether a worker is active for more than thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712101392.855912, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"", "raw_code": "with employee_surrogate_key as (\n \n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'source_relation', 'position_id', 'position_start_date']) }} as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from {{ ref('int_workday__worker_employee_enhanced') }} \n)\n\nselect * \nfrom employee_surrogate_key", "language": "sql", "refs": [{"name": "int_workday__worker_employee_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.int_workday__worker_employee_enhanced"]}, "compiled_path": "target/compiled/workday/models/workday__employee_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n), employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from __dbt__cte__int_workday__worker_employee_enhanced \n)\n\nselect * \nfrom employee_surrogate_key", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_details", "sql": " __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n)"}, {"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__personal_details", "sql": " __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n)"}, {"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_position_enriched", "sql": " __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n)"}, {"id": "model.workday.int_workday__worker_employee_enhanced", "sql": " __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__job_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "resource_type": "model", "package_name": "workday", "path": "workday__job_overview.sql", "original_file_path": "models/workday__job_overview.sql", "unique_id": "model.workday.workday__job_overview", "fqn": ["workday", "workday__job_overview"], "alias": "workday__job_overview", "checksum": {"name": "sha256", "checksum": "b50072f5be5632d10a64a1e777aa62ae6f2283f22244bd033fea5fc20ce66165"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "The private title associated with the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "The summary of the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_codes": {"name": "job_family_codes", "description": "String array of all job family codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summaries": {"name": "job_family_summaries", "description": "String array of all job family summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_codes": {"name": "job_family_group_codes", "description": "String array of all job family group codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summaries": {"name": "job_family_group_summaries", "description": "String array of all job family group summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712101392.857625, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"", "raw_code": "with job_profile_data as (\n\n select * \n from {{ ref('stg_workday__job_profile') }}\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_profile') }}\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from {{ ref('stg_workday__job_family') }}\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_family_group') }}\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from {{ ref('stg_workday__job_family_group') }}\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_code', \"', '\" ) }} as job_family_codes,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_summary', \"', '\" ) }} as job_family_summaries, \n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_code', \"', '\" ) }} as job_family_group_codes,\n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_summary', \"', '\" ) }} as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom job_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}, {"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg", "macro.dbt_utils.group_by"], "nodes": ["model.workday.stg_workday__job_profile", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/workday__job_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), job_profile_data as (\n\n select * \n from __dbt__cte__stg_workday__job_profile\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_profile\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from __dbt__cte__stg_workday__job_family\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_family_group\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from __dbt__cte__stg_workday__job_family_group\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__position_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "resource_type": "model", "package_name": "workday", "path": "workday__position_overview.sql", "original_file_path": "models/workday__position_overview.sql", "unique_id": "model.workday.workday__position_overview", "fqn": ["workday", "workday__position_overview"], "alias": "workday__position_overview", "checksum": {"name": "sha256", "checksum": "567db8a61cd72c8faec1aac1963cbf05b776d0fe170a7f8c0ae8ea3d076464d3"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts.", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712101392.8609989, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"", "raw_code": "with position_data as (\n\n select *\n from {{ ref('stg_workday__position') }}\n),\n\nposition_job_profile_data as (\n\n select *\n from {{ ref('stg_workday__position_job_profile') }}\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}, {"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/workday__position_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), position_data as (\n\n select *\n from __dbt__cte__stg_workday__position\n),\n\nposition_job_profile_data as (\n\n select *\n from __dbt__cte__stg_workday__position_job_profile\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__organization_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "resource_type": "model", "package_name": "workday", "path": "workday__organization_overview.sql", "original_file_path": "models/workday__organization_overview.sql", "unique_id": "model.workday.workday__organization_overview", "fqn": ["workday", "workday__organization_overview"], "alias": "workday__organization_overview", "checksum": {"name": "sha256", "checksum": "0df19685be8a2ffee5d5e16069cbc9771cc639372004929a73f500f9d7c59798"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712101392.8629382, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"", "raw_code": "with organization_data as (\n\n select * \n from {{ ref('stg_workday__organization') }}\n),\n\norganization_role_data as (\n\n select * \n from {{ ref('stg_workday__organization_role') }}\n),\n\nworker_position_organization as (\n\n select *\n from {{ ref('stg_workday__worker_position_organization') }}\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}, {"name": "stg_workday__organization_role", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/workday__organization_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), organization_data as (\n\n select * \n from __dbt__cte__stg_workday__organization\n),\n\norganization_role_data as (\n\n select * \n from __dbt__cte__stg_workday__organization_role\n),\n\nworker_position_organization as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_organization\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position.sql", "original_file_path": "models/staging/stg_workday__position.sql", "unique_id": "model.workday.stg_workday__position", "fqn": ["workday", "staging", "stg_workday__position"], "alias": "stg_workday__position", "checksum": {"name": "sha256", "checksum": "a8eea235110df116f941d206b25f965ace56ec776662153af05d70a2bdf1cd4b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_academic_tenure_eligible": {"name": "is_academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.023948, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_base')),\n staging_columns=get_position_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_base", "package": null, "version": null}, {"name": "stg_workday__position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_group"], "alias": "stg_workday__job_family_group", "checksum": {"name": "sha256", "checksum": "91495541dd20c1e46fd9fc7074605bd8d766196513173eb2e6d6d2abd779474a"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summary": {"name": "job_family_group_summary", "description": "The summary of the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.019827, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_group_base')),\n staging_columns=get_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_profile.sql", "original_file_path": "models/staging/stg_workday__job_family_job_profile.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile", "fqn": ["workday", "staging", "stg_workday__job_family_job_profile"], "alias": "stg_workday__job_family_job_profile", "checksum": {"name": "sha256", "checksum": "22f926dc89704581204ef1db5906e7fc184c404d53dc5141b47056de357d6066"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.018506, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_profile_base')),\n staging_columns=get_job_family_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role_worker.sql", "original_file_path": "models/staging/stg_workday__organization_role_worker.sql", "unique_id": "model.workday.stg_workday__organization_role_worker", "fqn": ["workday", "staging", "stg_workday__organization_role_worker"], "alias": "stg_workday__organization_role_worker", "checksum": {"name": "sha256", "checksum": "6cbf3f20ac378d061a6c9034bd75c08e7cf7079ac12c8b167c31e6e1c0e54fa6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_worker_code": {"name": "organization_worker_code", "description": "The worker code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.020619, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_worker_base')),\n staging_columns=get_organization_role_worker_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_worker_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role_worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role.sql", "original_file_path": "models/staging/stg_workday__organization_role.sql", "unique_id": "model.workday.stg_workday__organization_role", "fqn": ["workday", "staging", "stg_workday__organization_role"], "alias": "stg_workday__organization_role", "checksum": {"name": "sha256", "checksum": "d20118b8c8234cda8e96b2df978fdce2aa46bbdb356ebac5b29680663d105e05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.020158, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_base')),\n staging_columns=get_organization_role_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position.sql", "original_file_path": "models/staging/stg_workday__worker_position.sql", "unique_id": "model.workday.stg_workday__worker_position", "fqn": ["workday", "staging", "stg_workday__worker_position"], "alias": "stg_workday__worker_position", "checksum": {"name": "sha256", "checksum": "f812d4b0a33146284f402362816bc05ca7a5e85fa228207ea0df356396906025"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the positions held by workers in the Workday system", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.032806, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_base')),\n staging_columns=get_worker_position_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_contact_email_address.sql", "original_file_path": "models/staging/stg_workday__person_contact_email_address.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address", "fqn": ["workday", "staging", "stg_workday__person_contact_email_address"], "alias": "stg_workday__person_contact_email_address", "checksum": {"name": "sha256", "checksum": "fc93cd7747b3087ad994ab34f0feec9a8293e02f719a8ddb64bf652d786f50e5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_contact_email_address_id": {"name": "person_contact_email_address_id", "description": "The identifier of the personal contact email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.0310988, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_contact_email_address_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_contact_email_address_base')),\n staging_columns=get_person_contact_email_address_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_contact_email_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_contact_email_address_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_contact_email_address.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_job_profile.sql", "original_file_path": "models/staging/stg_workday__position_job_profile.sql", "unique_id": "model.workday.stg_workday__position_job_profile", "fqn": ["workday", "staging", "stg_workday__position_job_profile"], "alias": "stg_workday__position_job_profile", "checksum": {"name": "sha256", "checksum": "1bd56f05d8c66dff4d5741a2ca3963cd4859341229686f1e9155289aa86ca3f3"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_job_profile_name": {"name": "position_job_profile_name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.024777, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_job_profile_base')),\n staging_columns=get_position_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__position_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position_organization.sql", "original_file_path": "models/staging/stg_workday__worker_position_organization.sql", "unique_id": "model.workday.stg_workday__worker_position_organization", "fqn": ["workday", "staging", "stg_workday__worker_position_organization"], "alias": "stg_workday__worker_position_organization", "checksum": {"name": "sha256", "checksum": "c06c632d0c5bc211074ad78e1d36ea19e68ad03423068316bd207e3978472684"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.035869, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_organization_base')),\n staging_columns=get_worker_position_organization_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_profile.sql", "original_file_path": "models/staging/stg_workday__job_profile.sql", "unique_id": "model.workday.stg_workday__job_profile", "fqn": ["workday", "staging", "stg_workday__job_profile"], "alias": "stg_workday__job_profile", "checksum": {"name": "sha256", "checksum": "c58fefde4e2bab4dfcc7d23f270ba41e4b3a785de9c0f221854b44ce088753d6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_job_code_in_name": {"name": "is_include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_public_job": {"name": "is_public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.018173, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_profile_base')),\n staging_columns=get_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_organization.sql", "original_file_path": "models/staging/stg_workday__position_organization.sql", "unique_id": "model.workday.stg_workday__position_organization", "fqn": ["workday", "staging", "stg_workday__position_organization"], "alias": "stg_workday__position_organization", "checksum": {"name": "sha256", "checksum": "3e066e026cb6c5a57a3780d60185e331275a40666ec842bd51a9f5214c8106f0"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.022847, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_organization_base')),\n staging_columns=get_position_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_organization_base", "package": null, "version": null}, {"name": "stg_workday__position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_leave_status.sql", "original_file_path": "models/staging/stg_workday__worker_leave_status.sql", "unique_id": "model.workday.stg_workday__worker_leave_status", "fqn": ["workday", "staging", "stg_workday__worker_leave_status"], "alias": "stg_workday__worker_leave_status", "checksum": {"name": "sha256", "checksum": "7a780769764a426e346115891309d38326b383297d43976f5b368feefe555e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the leave status of workers in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_benefits_effect": {"name": "is_benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_caesarean_section_birth": {"name": "is_caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_continuous_service_accrual_effect": {"name": "is_continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_multiple_child_indicator": {"name": "is_multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_on_leave": {"name": "is_on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_paid_time_off_accrual_effect": {"name": "is_paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_payroll_effect": {"name": "is_payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_single_parent_indicator": {"name": "is_single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_stock_vesting_effect": {"name": "is_stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_related": {"name": "is_work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.035386, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_leave_status_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_leave_status_base')),\n staging_columns=get_worker_leave_status_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}, {"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_leave_status_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__worker_leave_status_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_leave_status.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_name.sql", "original_file_path": "models/staging/stg_workday__person_name.sql", "unique_id": "model.workday.stg_workday__person_name", "fqn": ["workday", "staging", "stg_workday__person_name"], "alias": "stg_workday__person_name", "checksum": {"name": "sha256", "checksum": "da74b8517c3659e32fa4600075b2c78fd9edf3b9d67b062a39aceeb7007a8106"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the name information for an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_name_type": {"name": "person_name_type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.0298932, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_name_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_name_base')),\n staging_columns=get_person_name_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_name_base", "package": null, "version": null}, {"name": "stg_workday__person_name_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_name_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_name_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_name.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information_ethnicity.sql", "original_file_path": "models/staging/stg_workday__personal_information_ethnicity.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity", "fqn": ["workday", "staging", "stg_workday__personal_information_ethnicity"], "alias": "stg_workday__personal_information_ethnicity", "checksum": {"name": "sha256", "checksum": "1cddb347cc063152fdf7519ab20008979c18819cf57eda40f40b5c0ae4df795c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.0302348, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_ethnicity_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_ethnicity_base')),\n staging_columns=get_personal_information_ethnicity_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_ethnicity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information_ethnicity.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_job_family.sql", "original_file_path": "models/staging/stg_workday__organization_job_family.sql", "unique_id": "model.workday.stg_workday__organization_job_family", "fqn": ["workday", "staging", "stg_workday__organization_job_family"], "alias": "stg_workday__organization_job_family", "checksum": {"name": "sha256", "checksum": "25a30264c730bb3d4ed427d08d7262415aa13c72bda44f292aef305dabadb4dc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.0209439, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_job_family_base')),\n staging_columns=get_organization_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family_base", "package": null, "version": null}, {"name": "stg_workday__organization_job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family.sql", "original_file_path": "models/staging/stg_workday__job_family.sql", "unique_id": "model.workday.stg_workday__job_family", "fqn": ["workday", "staging", "stg_workday__job_family"], "alias": "stg_workday__job_family", "checksum": {"name": "sha256", "checksum": "2b55aade2b7c5f3aaa66b8689637aecadf3960de67f0df66ecd9d511ec3f4a2c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summary": {"name": "job_family_summary", "description": "The summary of the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.019048, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_base')),\n staging_columns=get_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_base", "package": null, "version": null}, {"name": "stg_workday__job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__military_service.sql", "original_file_path": "models/staging/stg_workday__military_service.sql", "unique_id": "model.workday.stg_workday__military_service", "fqn": ["workday", "staging", "stg_workday__military_service"], "alias": "stg_workday__military_service", "checksum": {"name": "sha256", "checksum": "2723e93ad3a6b887aa7d9b8c5d97bee2714a4b0d8ff0c80decb8be429e77b709"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about an individual's military service in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.0306282, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__military_service_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__military_service_base')),\n staging_columns=get_military_service_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__military_service_base", "package": null, "version": null}, {"name": "stg_workday__military_service_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_military_service_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__military_service_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__military_service.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information.sql", "original_file_path": "models/staging/stg_workday__personal_information.sql", "unique_id": "model.workday.stg_workday__personal_information", "fqn": ["workday", "staging", "stg_workday__personal_information"], "alias": "stg_workday__personal_information", "checksum": {"name": "sha256", "checksum": "99c2547b9cba3b9798c54da22173f0f4e2d0db3f9623673fc37f0c6f081646bd"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "The personal information associated with each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.028927, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_base')),\n staging_columns=get_personal_information_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__personal_information_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_job_family_group"], "alias": "stg_workday__job_family_job_family_group", "checksum": {"name": "sha256", "checksum": "6fd4740d69f85753d0bf54a02768c8d9b8887e6e58481511bb3067f6dbe9b7eb"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.0193632, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_family_group_base')),\n staging_columns=get_job_family_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker.sql", "original_file_path": "models/staging/stg_workday__worker.sql", "unique_id": "model.workday.stg_workday__worker", "fqn": ["workday", "staging", "stg_workday__worker"], "alias": "stg_workday__worker", "checksum": {"name": "sha256", "checksum": "eabb44e7218212b2cfa0ed153715acd2cd920d91f48a20884f237d3307a8d88d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.0276842, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_base')),\n staging_columns=get_worker_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization.sql", "original_file_path": "models/staging/stg_workday__organization.sql", "unique_id": "model.workday.stg_workday__organization", "fqn": ["workday", "staging", "stg_workday__organization"], "alias": "stg_workday__organization", "checksum": {"name": "sha256", "checksum": "ddc0897b633fd79f01412ef8b78788ca8168409bbdd6a076e7ae77eae46e5b4c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Identifier for the organization.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_description": {"name": "organization_description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_manager_in_name": {"name": "is_include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_organization_code_in_name": {"name": "is_include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_location": {"name": "organization_location", "description": "The location of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712101393.02252, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_base')),\n staging_columns=get_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_base", "package": null, "version": null}, {"name": "stg_workday__organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_family_group_base"], "alias": "stg_workday__job_family_job_family_group_base", "checksum": {"name": "sha256", "checksum": "e2032528b0352adb9b447a62934a158666a681a00bfd8821c454342850710217"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.251905, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_family_group"], ["workday", "job_family_job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_ethnicity_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_ethnicity_base"], "alias": "stg_workday__personal_information_ethnicity_base", "checksum": {"name": "sha256", "checksum": "83d4f52d542558f35ac9c4bca924abf5d50bd6d060b57de257d9b3a8011375bc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.269129, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_ethnicity', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_ethnicity',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_ethnicity"], ["workday", "personal_information_ethnicity"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_group_base"], "alias": "stg_workday__job_family_group_base", "checksum": {"name": "sha256", "checksum": "bea26ff96c14d3e08fd64f97fbc8fbefc3cc6cc6726f7eb27132f966e3ace85d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.273083, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_group"], ["workday", "job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_organization_base.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_organization_base"], "alias": "stg_workday__worker_position_organization_base", "checksum": {"name": "sha256", "checksum": "42729b33f262620d892e95707fef1e711b95c66a4df3fb612d1eb73d024a7e38"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.277426, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_organization_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_organization_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_organization_history"], ["workday", "worker_position_organization_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_base.sql", "original_file_path": "models/staging/base/stg_workday__position_base.sql", "unique_id": "model.workday.stg_workday__position_base", "fqn": ["workday", "staging", "base", "stg_workday__position_base"], "alias": "stg_workday__position_base", "checksum": {"name": "sha256", "checksum": "4ccfff02ed1a6e0e94868985aa08ad5eaac5c78e608ae24eb36ebeb3da3b1443"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.281013, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position"], ["workday", "position"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_contact_email_address_base.sql", "original_file_path": "models/staging/base/stg_workday__person_contact_email_address_base.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "fqn": ["workday", "staging", "base", "stg_workday__person_contact_email_address_base"], "alias": "stg_workday__person_contact_email_address_base", "checksum": {"name": "sha256", "checksum": "2bfb4c913c999795db2691f4b3bc115fbae9bbad6e4eb59ad305bc057e7e0e5b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.284479, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_contact_email_address', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_contact_email_address',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_contact_email_address"], ["workday", "person_contact_email_address"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_contact_email_address_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_job_family_base.sql", "unique_id": "model.workday.stg_workday__organization_job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_job_family_base"], "alias": "stg_workday__organization_job_family_base", "checksum": {"name": "sha256", "checksum": "8a999ebe4367e8c4e6994124834c09f9d1eeb411d6e00353c9995bc0900ee1ea"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.287861, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_job_family"], ["workday", "organization_job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_profile_base"], "alias": "stg_workday__job_family_job_profile_base", "checksum": {"name": "sha256", "checksum": "61149fbd447008acfc11c0cce919a3dcdfc878b1e43f1a904bed99cd0e12e934"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.291552, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_profile"], ["workday", "job_family_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__position_organization_base.sql", "unique_id": "model.workday.stg_workday__position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__position_organization_base"], "alias": "stg_workday__position_organization_base", "checksum": {"name": "sha256", "checksum": "e9e1144f5ba976bda0612b7899e5c418c8f2880a69bb98c7bd61826b438cf705"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.295786, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_organization"], ["workday", "position_organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_base.sql", "unique_id": "model.workday.stg_workday__organization_role_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_base"], "alias": "stg_workday__organization_role_base", "checksum": {"name": "sha256", "checksum": "7da1ae4c5e420c6a429f6082802496377da44449aefb62728c64e31c64923832"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.29934, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role"], ["workday", "organization_role"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_leave_status_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_leave_status_base.sql", "unique_id": "model.workday.stg_workday__worker_leave_status_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_leave_status_base"], "alias": "stg_workday__worker_leave_status_base", "checksum": {"name": "sha256", "checksum": "25de6c8505c09d17787931dd2ad7fb497ee4fcc6ad9c076417ac327d38b2cee5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.3034701, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_leave_status', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_leave_status',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_leave_status"], ["workday", "worker_leave_status"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_leave_status_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_base.sql", "unique_id": "model.workday.stg_workday__job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_base"], "alias": "stg_workday__job_family_base", "checksum": {"name": "sha256", "checksum": "a6d51501e8a9f185408e2c8c963b04ed89e1f87260216f3e994f324119a0f804"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.307363, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family"], ["workday", "job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_profile_base"], "alias": "stg_workday__job_profile_base", "checksum": {"name": "sha256", "checksum": "ddeb40a89a0b03a8748dae6a224bade7705498441a9f295682bd24ef643fc563"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.3113348, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_profile"], ["workday", "job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_base.sql", "unique_id": "model.workday.stg_workday__organization_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_base"], "alias": "stg_workday__organization_base", "checksum": {"name": "sha256", "checksum": "ee0cb72047f2c7760251317c86318a9f46c5a8be9113fcb7d81b269e1b4b4e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.315708, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization"], ["workday", "organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_worker_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_worker_base.sql", "unique_id": "model.workday.stg_workday__organization_role_worker_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_worker_base"], "alias": "stg_workday__organization_role_worker_base", "checksum": {"name": "sha256", "checksum": "74e858892ef8851aec9a06e4e05dbca91361b09939c257c69db38356d59acf05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.31919, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role_worker', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role_worker',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role_worker"], ["workday", "organization_role_worker"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_base.sql", "unique_id": "model.workday.stg_workday__worker_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_base"], "alias": "stg_workday__worker_base", "checksum": {"name": "sha256", "checksum": "5f0f82a654f8f22d1e129cebdf87aa064125f5deeeca51c50d53f249dd0d96e1"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.323391, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_history"], ["workday", "worker_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__position_job_profile_base.sql", "unique_id": "model.workday.stg_workday__position_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__position_job_profile_base"], "alias": "stg_workday__position_job_profile_base", "checksum": {"name": "sha256", "checksum": "7a2843eac9ceff71866501a413274121b15a2e8d1337b83962e0045cb1b403c5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.327331, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_job_profile"], ["workday", "position_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_base.sql", "unique_id": "model.workday.stg_workday__worker_position_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_base"], "alias": "stg_workday__worker_position_base", "checksum": {"name": "sha256", "checksum": "8a8431d94738ad8c342bba23f86ace1e658cf63ac9254481bf8463622129514e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.3312268, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_history"], ["workday", "worker_position_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_name_base.sql", "original_file_path": "models/staging/base/stg_workday__person_name_base.sql", "unique_id": "model.workday.stg_workday__person_name_base", "fqn": ["workday", "staging", "base", "stg_workday__person_name_base"], "alias": "stg_workday__person_name_base", "checksum": {"name": "sha256", "checksum": "85c57cfa1fe54db08605b75e32060e1bd488a4f71eae27b2cb8a2805ac4ac655"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.335579, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_name', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_name',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_name"], ["workday", "person_name"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_name"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_name_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__military_service_base.sql", "original_file_path": "models/staging/base/stg_workday__military_service_base.sql", "unique_id": "model.workday.stg_workday__military_service_base", "fqn": ["workday", "staging", "base", "stg_workday__military_service_base"], "alias": "stg_workday__military_service_base", "checksum": {"name": "sha256", "checksum": "9478cb8eea5671a0261ed280e3723a9ad826ee22b77b9dfe709be5fc85fd295e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.339026, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='military_service', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='military_service',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "military_service"], ["workday", "military_service"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.military_service"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__military_service_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_base.sql", "unique_id": "model.workday.stg_workday__personal_information_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_base"], "alias": "stg_workday__personal_information_base", "checksum": {"name": "sha256", "checksum": "0767af75bcb79f32dd324d8bf4e57ffc0d0014bda0609b426df78cdc17566e96"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712101392.343195, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_history"], ["workday", "personal_information_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__monthly_summary": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__monthly_summary.sql", "original_file_path": "models/workday_history/workday__monthly_summary.sql", "unique_id": "model.workday.workday__monthly_summary", "fqn": ["workday", "workday_history", "workday__monthly_summary"], "alias": "workday__monthly_summary", "checksum": {"name": "sha256", "checksum": "c2c7661c8324a927d8bf739bdcc37d21d650b2aa0ca769ee77205b47dc81e804"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a month, aggregated from the last day of each month of the employee daily history. This captures monthly metrics of workers, such as average salary, churned and retained employees, etc.", "columns": {"metrics_month": {"name": "metrics_month", "description": "Month in which metrics are being aggregated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_employees": {"name": "new_employees", "description": "New employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_employees": {"name": "churned_employees", "description": "Churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_voluntary_employees": {"name": "churned_voluntary_employees", "description": "Voluntary churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_involuntary_employees": {"name": "churned_involuntary_employees", "description": "Involuntary churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_workers": {"name": "churned_workers", "description": "Churned workers that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_employees": {"name": "active_employees", "description": "Employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_male_employees": {"name": "active_male_employees", "description": "Male employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_female_employees": {"name": "active_female_employees", "description": "Female employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_workers": {"name": "active_workers", "description": "Workers considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_known_gender_employees": {"name": "active_known_gender_employees", "description": "Known gender employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_primary_compensation": {"name": "avg_employee_primary_compensation", "description": "Average primary compensation salary of employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_base_pay": {"name": "avg_employee_base_pay", "description": "Average base pay of the employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_salary_and_allowances": {"name": "avg_employee_salary_and_allowances", "description": "Average salary and allowances of the employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_days_as_employee": {"name": "avg_days_as_employee", "description": "Average days employee has been active month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_primary_compensation": {"name": "avg_worker_primary_compensation", "description": "Average primary compensation for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_base_pay": {"name": "avg_worker_base_pay", "description": "Average base pay for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_salary_and_allowances": {"name": "avg_worker_salary_and_allowances", "description": "Average salary plus allowances for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_days_as_worker": {"name": "avg_days_as_worker", "description": "Average days as a worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712101393.135306, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }} \n\nwith row_month_partition as (\n\n select *, \n cast({{ dbt.date_trunc(\"month\", \"date_day\") }} as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from {{ ref('workday__employee_daily_history') }}\n),\n\nend_of_month_history as (\n \n select *,\n {{ dbt.current_timestamp() }} as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then {{ dbt.datediff(\"hire_date\", \"current_date\", \"day\") }}\n else {{ dbt.datediff(\"hire_date\", \"termination_date\", \"day\") }}\n end as days_as_worker,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when date_month = cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date) then 1 else 0 end) as new_employees,\n sum(case when date_month = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) then 1 else 0 end) as churned_employees,\n sum(case when (date_month = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date)\n and (cast(date_month as date) <= cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date)\n and cast(date_month as date) <= cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__monthly_summary.sql", "compiled": true, "compiled_code": " \n\nwith row_month_partition as (\n\n select *, \n cast(date_trunc('month', date_day) as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n),\n\nend_of_month_history as (\n \n select *,\n now() as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when date_month = cast(date_trunc('month', position_effective_date) as date) then 1 else 0 end) as new_employees,\n sum(case when date_month = cast(date_trunc('month', termination_date) as date) then 1 else 0 end) as churned_employees,\n sum(case when (date_month = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = cast(date_trunc('month', end_employment_date) as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and (cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__employee_daily_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__employee_daily_history.sql", "original_file_path": "models/workday_history/workday__employee_daily_history.sql", "unique_id": "model.workday.workday__employee_daily_history", "fqn": ["workday", "workday_history", "workday__employee_daily_history"], "alias": "workday__employee_daily_history", "checksum": {"name": "sha256", "checksum": "47b8cd821865a578f389213983200d86a810622aab8770174b4145c10aa916b3"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a daily record in an employee, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to track the daily history of their employees from when they started.", "columns": {"employee_day_id": {"name": "employee_day_id", "description": "Surrogate key hashed on `date_day` and `history_unique_key`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date on which the account had these field values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on 'employee_id' and '_fivetran_date'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_id": {"name": "employee_id", "description": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_wh_fivetran_active": {"name": "is_wh_fivetran_active", "description": "Is the worker history record the most recent fivetran active record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_wph_fivetran_active": {"name": "is_wph_fivetran_active", "description": "Is the worker position history record the most recent fivetranactive record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_pih_fivetran_active": {"name": "is_pih_fivetran_active", "description": "Is the personal information history record the most recent fivetran active record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wh_end_employment_date": {"name": "wh_end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wph_end_employment_date": {"name": "wph_end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wh_pay_through_date": {"name": "wh_pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wph_pay_through_date": {"name": "wph_pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The position location of the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "The position effective date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "row_num": {"name": "row_num", "description": "This is the row number filter designed to grab the most recent daily record for an employee. This value should always be 1 in this model.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712101393.131665, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"", "raw_code": "-- depends_on: {{ ref('int_workday__employee_history') }}\n{{ config(enabled=var('employee_history_enabled', False)) }}\n\n{% if execute %} \n {% set first_last_date_query %}\n with min_max_values as (\n\n select \n min(_fivetran_start) as min_start,\n max(_fivetran_start) as max_start \n from {{ ref('int_workday__employee_history') }}\n )\n\n select \n min_start,\n case when max_start >= {{ dbt.current_timestamp() }}\n then max_start\n else {{ dbt.date_trunc('day', dbt.current_timestamp()) }} \n end as max_start\n from min_max_values\n \n {% endset %}\n\n {% set start_date = run_query(first_last_date_query).columns[0][0]|string %}\n {% set last_date = run_query(first_last_date_query).columns[1][0]|string %}\n\n{# If only compiling, creates range going back 1 year #}\n{% else %} \n {% set start_date = dbt.dateadd(\"year\", \"-2\", \"current_date\") %} -- Arbitrarily picked. Choose a more appropriate default if necessary.\n {% set last_date = dbt.dateadd(\"year\", \"-1\", \"current_date\") %}\n{% endif %}\n\n\nwith spine as (\n {# Prioritizes variables over calculated dates #}\n {# Arbitrarily picked employee_history_start_date variable value. Choose a more appropriate default if necessary. #}\n {{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date = \"greatest(cast('\" ~ start_date[0:10] ~ \"' as date), cast('\" ~ var('employee_history_start_date','2005-03-01') ~ \"' as date))\", \n end_date = \"cast('\" ~ last_date[0:10] ~ \"'as date)\"\n )\n }}\n),\n\nemployee_history as (\n\n select * \n from {{ ref('int_workday__employee_history') }}\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['spine.date_day','get_latest_daily_value.history_unique_key']) }} as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }})\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }})\n)\n\nselect * \nfrom daily_history", "language": "sql", "refs": [{"name": "int_workday__employee_history", "package": null, "version": null}, {"name": "int_workday__employee_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp", "macro.dbt.current_timestamp", "macro.dbt.date_trunc", "macro.dbt.run_query"], "nodes": ["model.workday.int_workday__employee_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__employee_daily_history.sql", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n\n\n \n \n\n \n \n\n\n\n\n\nwith spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 6972\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2005-03-01' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-02'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__worker_position_org_daily_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__worker_position_org_daily_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__worker_position_org_daily_history.sql", "original_file_path": "models/workday_history/workday__worker_position_org_daily_history.sql", "unique_id": "model.workday.workday__worker_position_org_daily_history", "fqn": ["workday", "workday_history", "workday__worker_position_org_daily_history"], "alias": "workday__worker_position_org_daily_history", "checksum": {"name": "sha256", "checksum": "ad5b7e21ed08bdb7f2ba61ea8f25949b07c83ce0e0036857c1467564cc4f40a0"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a daily record for a worker/position/organization combination, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to tie in organizations to employees via other organization models (such as `workday__organization_overview`) more easily in their warehouses.", "columns": {"wpo_day_id": {"name": "wpo_day_id", "description": "Surrogate key hashed on `date_day` and `history_unique_key`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date on which the account had these field values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, `source_relation`, and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712101393.1361852, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"", "raw_code": "-- depends_on: {{ ref('stg_workday__worker_position_organization_base') }}\n{{ config(enabled=var('employee_history_enabled', False)) }}\n\n{% if execute %} \n {% set first_last_date_query %}\n with min_max_values as (\n select \n min(_fivetran_start) as min_start,\n max(_fivetran_start) as max_start \n from {{ ref('stg_workday__worker_position_organization_base') }}\n )\n\n select \n min_start,\n case when max_start >= {{ dbt.current_timestamp() }}\n then max_start\n else {{ dbt.date_trunc('day', dbt.current_timestamp()) }} \n end as max_date\n from min_max_values\n\n {% endset %}\n\n {% set start_date = run_query(first_last_date_query).columns[0][0]|string %}\n {% set last_date = run_query(first_last_date_query).columns[1][0]|string %}\n\n{# If only compiling, creates range going back 1 year #}\n{% else %} \n {% set start_date = dbt.dateadd(\"year\", \"-2\", \"current_date\") %} -- Arbitrarily picked. Choose a more appropriate default if necessary.\n {% set last_date = dbt.dateadd(\"year\", \"-1\", \"current_date\") %}\n{% endif %}\n\nwith spine as (\n {# Prioritizes variables over calculated dates #}\n {# Arbitrarily picked employee_history_start_date variable value. Choose a more appropriate default if necessary. #}\n {{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date = \"greatest(cast('\" ~ start_date[0:10] ~ \"' as date), cast('\" ~ var('employee_history_start_date','2005-03-01') ~ \"' as date))\",\n end_date = \"cast('\" ~ last_date[0:10] ~ \"'as date)\"\n )\n }}\n),\n\nworker_position_org_history as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_history') }}\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['spine.date_day',\n 'get_latest_daily_value.history_unique_key']) }} \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n _fivetran_start,\n _fivetran_end,\n _fivetran_active,\n _fivetran_date,\n history_unique_key,\n index,\n date_of_pay_group_assignment,\n primary_business_site,\n is_used_in_change_organization_assignments\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }})\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }})\n)\n\nselect * \nfrom daily_history", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp", "macro.dbt.current_timestamp", "macro.dbt.date_trunc", "macro.dbt.run_query"], "nodes": ["model.workday.stg_workday__worker_position_organization_base", "model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__worker_position_org_daily_history.sql", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n\n\n \n \n\n \n \n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n), spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 6972\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2005-03-01' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-02'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nworker_position_org_history as (\n\n select * \n from __dbt__cte__stg_workday__worker_position_organization_history\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n _fivetran_start,\n _fivetran_end,\n _fivetran_active,\n _fivetran_date,\n history_unique_key,\n index,\n date_of_pay_group_assignment,\n primary_business_site,\n is_used_in_change_organization_assignments\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_position_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_position_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_position_history.sql", "unique_id": "model.workday.stg_workday__worker_position_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_position_history"], "alias": "stg_workday__worker_position_history", "checksum": {"name": "sha256", "checksum": "bc97bcda48a57bad3149f45aae7b36daf46dc32061c7bcaa281fbbbcab8375c8"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id`, `source_relation` and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712101393.185612, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_position_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %}\n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_base')),\n staging_columns=get_worker_position_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as {{ dbt.type_timestamp() }}) as position_effective_date,\n employee_type,\n cast(end_date as {{ dbt.type_timestamp() }}) as position_end_date,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as {{ dbt.type_timestamp() }}) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_position_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_history.sql", "unique_id": "model.workday.stg_workday__worker_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_history"], "alias": "stg_workday__worker_history", "checksum": {"name": "sha256", "checksum": "d53da2e60d3a239d9d0a6c3cf1b733df3ef3c1671f6432a0c7bad7017eb6ef5c"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id`, `source_relation` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712101393.184255, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_base')),\n staging_columns=get_worker_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as {{ dbt.type_timestamp() }}) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "nodes": ["model.workday.stg_workday__worker_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__personal_information_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__personal_information_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__personal_information_history.sql", "unique_id": "model.workday.stg_workday__personal_information_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__personal_information_history"], "alias": "stg_workday__personal_information_history", "checksum": {"name": "sha256", "checksum": "f5f3d7da4818c5381dfcd37b1ae3896f7a3b4c4f963aeb8035eb2866579c982e"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id`, `source_relation` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712101393.1822531, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__personal_information_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_base')),\n staging_columns=get_personal_information_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "nodes": ["model.workday.stg_workday__personal_information_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__personal_information_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_position_organization_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_position_organization_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_position_organization_history.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_position_organization_history"], "alias": "stg_workday__worker_position_organization_history", "checksum": {"name": "sha256", "checksum": "bafdee6a223a9eb9a1c8d8272ff66de3a7c34d74682ef3613569c9b80a297f6c"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id`, `position_id`, `organization_id`, `source_relation`, and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712101393.186144, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_organization_base')),\n staging_columns=get_worker_position_organization_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'organization_id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_organization_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_position_organization_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__employee_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/intermediate/int_workday__employee_history.sql", "original_file_path": "models/workday_history/intermediate/int_workday__employee_history.sql", "unique_id": "model.workday.int_workday__employee_history", "fqn": ["workday", "workday_history", "intermediate", "int_workday__employee_history"], "alias": "int_workday__employee_history", "checksum": {"name": "sha256", "checksum": "5c18f885ead273db1df9a2203e804797db6e3cfcb3f0e3554b6f6309ef440998"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "view", "enabled": true}, "created_at": 1712101392.481384, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith worker_history as (\n\n select *\n from {{ ref('stg_workday__worker_history') }}\n),\n\nworker_position_history as (\n\n select *\n from {{ ref('stg_workday__worker_position_history') }}\n),\n\npersonal_information_history as (\n\n select *\n from {{ ref('stg_workday__personal_information_history') }}\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead({{ dbt.dateadd('microsecond', -1, '_fivetran_start') }} ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as {{ dbt.type_timestamp() }}),\n cast('9999-12-31 23:59:59.999000' as {{ dbt.type_timestamp() }})) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select {{ dbt_utils.generate_surrogate_key(['worker_id', 'source_relation', 'position_id', 'position_start_date']) }} as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select {{ dbt_utils.generate_surrogate_key(['employee_id', '_fivetran_date']) }} as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}, {"name": "stg_workday__worker_position_history", "package": null, "version": null}, {"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history", "model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/intermediate/int_workday__employee_history.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n), worker_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_history\n),\n\nworker_position_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_history\n),\n\npersonal_information_history as (\n\n select *\n from __dbt__cte__stg_workday__personal_information_history\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select md5(cast(coalesce(cast(employee_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_position_enriched": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_position_enriched", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_position_enriched.sql", "original_file_path": "models/intermediate/int_workday__worker_position_enriched.sql", "unique_id": "model.workday.int_workday__worker_position_enriched", "fqn": ["workday", "intermediate", "int_workday__worker_position_enriched"], "alias": "int_workday__worker_position_enriched", "checksum": {"name": "sha256", "checksum": "0bcb8eaaab77feebef76105a810b2f955a424dab91401003170763a691f1bc6d"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712101392.489185, "relation_name": null, "raw_code": "with worker_position_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker_position') }}\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_position_enriched.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__personal_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__personal_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__personal_details.sql", "original_file_path": "models/intermediate/int_workday__personal_details.sql", "unique_id": "model.workday.int_workday__personal_details", "fqn": ["workday", "intermediate", "int_workday__personal_details"], "alias": "int_workday__personal_details", "checksum": {"name": "sha256", "checksum": "594516db9541d923dcc1958d6ed5747fb91aee48aaa01e0acf8fcbd2fb1a8950"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712101392.4944499, "relation_name": null, "raw_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from {{ ref('stg_workday__personal_information') }}\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from {{ ref('stg_workday__person_name') }}\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from {{ ref('stg_workday__person_contact_email_address') }}\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n {{ fivetran_utils.string_agg('distinct ethnicity_code', \"', '\" ) }} as ethnicity_codes\n from {{ ref('stg_workday__personal_information_ethnicity') }}\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from {{ ref('stg_workday__military_service') }}\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}, {"name": "stg_workday__person_name", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}, {"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.workday.stg_workday__personal_information", "model.workday.stg_workday__person_name", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__personal_information_ethnicity", "model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__personal_details.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_details.sql", "original_file_path": "models/intermediate/int_workday__worker_details.sql", "unique_id": "model.workday.int_workday__worker_details", "fqn": ["workday", "intermediate", "int_workday__worker_details"], "alias": "int_workday__worker_details", "checksum": {"name": "sha256", "checksum": "6004df52c6e8acb2f9eb07f0e02e5fb9f694a9f8c3cb3d129916e686039ffd7a"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712101392.498257, "relation_name": null, "raw_code": "with worker_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker') }}\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then {{ dbt.datediff('hire_date', 'current_date', 'day') }}\n else {{ dbt.datediff('hire_date', 'termination_date', 'day') }}\n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_details.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_employee_enhanced": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_employee_enhanced", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_employee_enhanced.sql", "original_file_path": "models/intermediate/int_workday__worker_employee_enhanced.sql", "unique_id": "model.workday.int_workday__worker_employee_enhanced", "fqn": ["workday", "intermediate", "int_workday__worker_employee_enhanced"], "alias": "int_workday__worker_employee_enhanced", "checksum": {"name": "sha256", "checksum": "b304988457480f06f3bbc052fb27d7d6af37592d243606c4acf783558786aa1d"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712101392.501843, "relation_name": null, "raw_code": "with int_worker_base as (\n\n select * \n from {{ ref('int_workday__worker_details') }} \n),\n\nint_worker_personal_details as (\n\n select * \n from {{ ref('int_workday__personal_details') }} \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from {{ ref('int_workday__worker_position_enriched') }} \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "language": "sql", "refs": [{"name": "int_workday__worker_details", "package": null, "version": null}, {"name": "int_workday__personal_details", "package": null, "version": null}, {"name": "int_workday__worker_position_enriched", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.int_workday__worker_details", "model.workday.int_workday__personal_details", "model.workday.int_workday__worker_position_enriched"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_employee_enhanced.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_details", "sql": " __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n)"}, {"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__personal_details", "sql": " __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n)"}, {"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_position_enriched", "sql": " __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "employee_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__employee_overview_employee_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__employee_overview_employee_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.unique_workday__employee_overview_employee_id.b01e19996c", "fqn": ["workday", "unique_workday__employee_overview_employee_id"], "alias": "unique_workday__employee_overview_employee_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101392.907291, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/unique_workday__employee_overview_employee_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is not null\ngroup by employee_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "employee_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_overview_employee_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_overview_employee_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "fqn": ["workday", "not_null_workday__employee_overview_employee_id"], "alias": "not_null_workday__employee_overview_employee_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101392.908441, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__employee_overview_employee_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_overview_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_overview_worker_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "fqn": ["workday", "not_null_workday__employee_overview_worker_id"], "alias": "not_null_workday__employee_overview_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101392.909355, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__employee_overview_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__job_overview_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__job_overview_job_profile_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "fqn": ["workday", "not_null_workday__job_overview_job_profile_id"], "alias": "not_null_workday__job_overview_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101392.9104111, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__job_overview_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656"}, "created_at": 1712101392.9114811, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656\") }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.not_null_workday__position_overview_position_id.603beb3f22": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__position_overview_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__position_overview_position_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "fqn": ["workday", "not_null_workday__position_overview_position_id"], "alias": "not_null_workday__position_overview_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101392.9184651, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__position_overview_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e"}, "created_at": 1712101392.919374, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e\") }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "fqn": ["workday", "not_null_workday__organization_overview_organization_id"], "alias": "not_null_workday__organization_overview_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101392.92214, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_role_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "fqn": ["workday", "not_null_workday__organization_overview_organization_role_id"], "alias": "not_null_workday__organization_overview_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101392.9232152, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1"}, "created_at": 1712101392.924219, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1\") }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "fqn": ["workday", "staging", "not_null_stg_workday__job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.036512, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1"}, "created_at": 1712101393.0377622, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id\n from __dbt__cte__stg_workday__job_profile\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_family_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.0402539, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.041163, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id"], "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378"}, "created_at": 1712101393.042062, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from __dbt__cte__stg_workday__job_family_job_profile\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.044495, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id"], "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd"}, "created_at": 1712101393.045407, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id\n from __dbt__cte__stg_workday__job_family\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_group_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.04796, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af"}, "created_at": 1712101393.048873, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4"}, "created_at": 1712101393.049784, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from __dbt__cte__stg_workday__job_family_job_family_group\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_group_job_family_group_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_family_group_job_family_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.052115, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_group_job_family_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_group\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5"}, "created_at": 1712101393.0530298, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_group_id\n from __dbt__cte__stg_workday__job_family_group\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_id"], "alias": "not_null_stg_workday__organization_role_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.0560331, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_role_id"], "alias": "not_null_stg_workday__organization_role_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.056948, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_role_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id"], "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908"}, "created_at": 1712101393.0578408, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from __dbt__cte__stg_workday__organization_role\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_worker_code", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_worker_code", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_worker_code"], "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda"}, "created_at": 1712101393.060225, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_worker_code\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_worker_code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_worker_code", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_id"], "alias": "not_null_stg_workday__organization_role_worker_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.061126, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_role_id"], "alias": "not_null_stg_workday__organization_role_worker_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.062037, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select role_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "role_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_worker_code", "organization_id", "role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id"], "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a"}, "created_at": 1712101393.06312, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from __dbt__cte__stg_workday__organization_role_worker\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_job_family_id"], "alias": "not_null_stg_workday__organization_job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.065946, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_organization_id"], "alias": "not_null_stg_workday__organization_job_family_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.0669272, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id"], "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456"}, "created_at": 1712101393.0680609, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from __dbt__cte__stg_workday__organization_job_family\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_organization_id"], "alias": "not_null_stg_workday__organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.070622, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id"], "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5"}, "created_at": 1712101393.0716941, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id\n from __dbt__cte__stg_workday__organization\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_organization_id"], "alias": "not_null_stg_workday__position_organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.0739388, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_position_id"], "alias": "not_null_stg_workday__position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.075414, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id"], "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc"}, "created_at": 1712101393.0765078, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from __dbt__cte__stg_workday__position_organization\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "fqn": ["workday", "staging", "not_null_stg_workday__position_position_id"], "alias": "not_null_stg_workday__position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.07884, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32"}, "created_at": 1712101393.079762, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32\") }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id\n from __dbt__cte__stg_workday__position\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_job_profile_id"], "alias": "not_null_stg_workday__position_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.0819032, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_position_id"], "alias": "not_null_stg_workday__position_job_profile_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.082976, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id"], "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62"}, "created_at": 1712101393.083998, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from __dbt__cte__stg_workday__position_job_profile\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "fqn": ["workday", "staging", "not_null_stg_workday__worker_worker_id"], "alias": "not_null_stg_workday__worker_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.087203, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33"}, "created_at": 1712101393.088319, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__worker\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_worker_id"], "alias": "not_null_stg_workday__personal_information_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.090904, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13"}, "created_at": 1712101393.0920682, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__personal_information\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_worker_id"], "alias": "not_null_stg_workday__person_name_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.0953119, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_name\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_name_type", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_person_name_type", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_person_name_type.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_person_name_type"], "alias": "not_null_stg_workday__person_name_person_name_type", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.096253, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_person_name_type.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_name_type\nfrom __dbt__cte__stg_workday__person_name\nwhere person_name_type is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_name_type", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_name_type"], "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type"], "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574"}, "created_at": 1712101393.097153, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from __dbt__cte__stg_workday__person_name\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_worker_id"], "alias": "not_null_stg_workday__personal_information_ethnicity_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.099632, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ethnicity_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_ethnicity_id"], "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5"}, "created_at": 1712101393.100553, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select ethnicity_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere ethnicity_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ethnicity_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "ethnicity_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id"], "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5"}, "created_at": 1712101393.1014552, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__military_service_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__military_service_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "fqn": ["workday", "staging", "not_null_stg_workday__military_service_worker_id"], "alias": "not_null_stg_workday__military_service_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.103832, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__military_service_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__military_service\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9"}, "created_at": 1712101393.1052642, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9\") }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__military_service\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_contact_email_address_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id"], "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08"}, "created_at": 1712101393.1078532, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_contact_email_address_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere person_contact_email_address_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_contact_email_address_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_contact_email_address_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_worker_id"], "alias": "not_null_stg_workday__person_contact_email_address_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.108767, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_contact_email_address_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_contact_email_address_id"], "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id"], "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb"}, "created_at": 1712101393.109665, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from __dbt__cte__stg_workday__person_contact_email_address\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_position_id"], "alias": "not_null_stg_workday__worker_position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.112054, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_worker_id"], "alias": "not_null_stg_workday__worker_position_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.112957, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7"}, "created_at": 1712101393.1138592, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from __dbt__cte__stg_workday__worker_position\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "leave_request_event_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_leave_request_event_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_leave_request_event_id"], "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308"}, "created_at": 1712101393.116662, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select leave_request_event_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere leave_request_event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "leave_request_event_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_leave_status_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_worker_id"], "alias": "not_null_stg_workday__worker_leave_status_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.117568, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_leave_status_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "leave_request_event_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id"], "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f"}, "created_at": 1712101393.118468, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from __dbt__cte__stg_workday__worker_leave_status\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_position_id"], "alias": "not_null_stg_workday__worker_position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.120797, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_worker_id"], "alias": "not_null_stg_workday__worker_position_organization_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.121691, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_organization_id"], "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23"}, "created_at": 1712101393.122561, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "position_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id"], "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926"}, "created_at": 1712101393.1236029, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from __dbt__cte__stg_workday__worker_position_organization\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "employee_day_id", "model": "{{ get_where_subquery(ref('workday__employee_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__employee_daily_history_employee_day_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__employee_daily_history_employee_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269", "fqn": ["workday", "workday_history", "unique_workday__employee_daily_history_employee_day_id"], "alias": "unique_workday__employee_daily_history_employee_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.136657, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__employee_daily_history_employee_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is not null\ngroup by employee_day_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_day_id", "file_key_name": "models.workday__employee_daily_history", "attached_node": "model.workday.workday__employee_daily_history"}, "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "employee_day_id", "model": "{{ get_where_subquery(ref('workday__employee_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_daily_history_employee_day_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_daily_history_employee_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "fqn": ["workday", "workday_history", "not_null_workday__employee_daily_history_employee_day_id"], "alias": "not_null_workday__employee_daily_history_employee_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.137674, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__employee_daily_history_employee_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_day_id", "file_key_name": "models.workday__employee_daily_history", "attached_node": "model.workday.workday__employee_daily_history"}, "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__monthly_summary_metrics_month", "resource_type": "test", "package_name": "workday", "path": "unique_workday__monthly_summary_metrics_month.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab", "fqn": ["workday", "workday_history", "unique_workday__monthly_summary_metrics_month"], "alias": "unique_workday__monthly_summary_metrics_month", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.1742709, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__monthly_summary"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__monthly_summary_metrics_month.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n metrics_month as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is not null\ngroup by metrics_month\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metrics_month", "file_key_name": "models.workday__monthly_summary", "attached_node": "model.workday.workday__monthly_summary"}, "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__monthly_summary_metrics_month", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__monthly_summary_metrics_month.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "fqn": ["workday", "workday_history", "not_null_workday__monthly_summary_metrics_month"], "alias": "not_null_workday__monthly_summary_metrics_month", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.175191, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__monthly_summary"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__monthly_summary_metrics_month.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metrics_month\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metrics_month", "file_key_name": "models.workday__monthly_summary", "attached_node": "model.workday.workday__monthly_summary"}, "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "wpo_day_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__worker_position_org_daily_history_wpo_day_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__worker_position_org_daily_history_wpo_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21", "fqn": ["workday", "workday_history", "unique_workday__worker_position_org_daily_history_wpo_day_id"], "alias": "unique_workday__worker_position_org_daily_history_wpo_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.1760871, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__worker_position_org_daily_history_wpo_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n wpo_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is not null\ngroup by wpo_day_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "wpo_day_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "wpo_day_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_wpo_day_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_wpo_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_wpo_day_id"], "alias": "not_null_workday__worker_position_org_daily_history_wpo_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.177108, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_wpo_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect wpo_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "wpo_day_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_worker_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_worker_id"], "alias": "not_null_workday__worker_position_org_daily_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.177988, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_position_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_position_id"], "alias": "not_null_workday__worker_position_org_daily_history_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.1793652, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_organization_id"], "alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632"}, "created_at": 1712101393.180387, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632\") }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__personal_information_history_history_unique_key"], "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2"}, "created_at": 1712101393.1865861, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__personal_information_history_history_unique_key"], "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3"}, "created_at": 1712101393.1875799, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__personal_information_history_worker_id"], "alias": "not_null_stg_workday__personal_information_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.188839, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__personal_information_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_history_history_unique_key"], "alias": "unique_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.190059, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_history_history_unique_key"], "alias": "not_null_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.191222, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_history_worker_id"], "alias": "not_null_stg_workday__worker_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.1921642, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_position_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_position_history_history_unique_key"], "alias": "unique_stg_workday__worker_position_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.193129, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_position_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9"}, "created_at": 1712101393.194192, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_worker_id"], "alias": "not_null_stg_workday__worker_position_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.195124, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_position_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_position_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_position_id"], "alias": "not_null_stg_workday__worker_position_history_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712101393.196183, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_position_history_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22"}, "created_at": 1712101393.197071, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6"}, "created_at": 1712101393.197945, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_worker_id"], "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a"}, "created_at": 1712101393.199209, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_position_id"], "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441"}, "created_at": 1712101393.2004852, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_organization_id"], "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0"}, "created_at": 1712101393.2014499, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}}, "sources": {"source.workday.workday.job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_profile", "fqn": ["workday", "staging", "workday", "job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"id": {"name": "id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_job_code_in_name": {"name": "include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "public_job": {"name": "public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "title": {"name": "title", "description": "Title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "created_at": 1712101393.2035682}, "source.workday.workday.job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_profile", "fqn": ["workday", "staging", "workday", "job_family_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "created_at": 1712101393.203776}, "source.workday.workday.job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family", "fqn": ["workday", "staging", "workday", "job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "created_at": 1712101393.2038798}, "source.workday.workday.job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_family_group", "fqn": ["workday", "staging", "workday", "job_family_job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "created_at": 1712101393.2039602}, "source.workday.workday.job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_group", "fqn": ["workday", "staging", "workday", "job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"id": {"name": "id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "created_at": 1712101393.204042}, "source.workday.workday.organization_role": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role", "fqn": ["workday", "staging", "workday", "organization_role"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "created_at": 1712101393.204117}, "source.workday.workday.organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role_worker", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role_worker", "fqn": ["workday", "staging", "workday", "organization_role_worker"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_worker_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"associated_worker_id": {"name": "associated_worker_id", "description": "Identifier for the worker associated with the organization role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "created_at": 1712101393.204193}, "source.workday.workday.organization_job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_job_family", "fqn": ["workday", "staging", "workday", "organization_job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "created_at": 1712101393.2042692}, "source.workday.workday.organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization", "fqn": ["workday", "staging", "workday", "organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Identifier for the organization.", "columns": {"id": {"name": "id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_manager_in_name": {"name": "include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_organization_code_in_name": {"name": "include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location": {"name": "location", "description": "Location associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sub_type": {"name": "sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "created_at": 1712101393.2043798}, "source.workday.workday.position_organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_organization", "fqn": ["workday", "staging", "workday", "position_organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "created_at": 1712101393.2044559}, "source.workday.workday.position": {"database": "postgres", "schema": "workday_integration_tests", "name": "position", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position", "fqn": ["workday", "staging", "workday", "position"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_eligible": {"name": "academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_overlap": {"name": "available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_recruiting": {"name": "available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "created_at": 1712101393.204562}, "source.workday.workday.position_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_job_profile", "fqn": ["workday", "staging", "workday", "position_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "created_at": 1712101393.204802}, "source.workday.workday.worker_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_history", "fqn": ["workday", "staging", "workday", "worker_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"id": {"name": "id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "has_international_assignment": {"name": "has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_rescinded": {"name": "hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "not_returning": {"name": "not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regrettable_termination": {"name": "regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rehire": {"name": "rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retired": {"name": "retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "return_unknown": {"name": "return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "terminated": {"name": "terminated", "description": "Flag indicating whether the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_involuntary": {"name": "termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "created_at": 1712101393.204967}, "source.workday.workday.personal_information_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_history", "fqn": ["workday", "staging", "workday", "personal_information_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The personal information associated with each worker.", "columns": {"id": {"name": "id", "description": "The identifier for each personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hispanic_or_latino": {"name": "hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_hukou": {"name": "local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tobacco_use": {"name": "tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "created_at": 1712101393.2050781}, "source.workday.workday.person_name": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_name", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_name", "fqn": ["workday", "staging", "workday", "person_name"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_name_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the name information for an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "created_at": 1712101393.20518}, "source.workday.workday.personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_ethnicity", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_ethnicity", "fqn": ["workday", "staging", "workday", "personal_information_ethnicity"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_ethnicity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "created_at": 1712101393.2052548}, "source.workday.workday.military_service": {"database": "postgres", "schema": "workday_integration_tests", "name": "military_service", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.military_service", "fqn": ["workday", "staging", "workday", "military_service"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_military_service_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about an individual's military service in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "created_at": 1712101393.205361}, "source.workday.workday.person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_contact_email_address", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_contact_email_address", "fqn": ["workday", "staging", "workday", "person_contact_email_address"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_contact_email_address_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "created_at": 1712101393.205438}, "source.workday.workday.worker_position_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_history", "fqn": ["workday", "staging", "workday", "worker_position_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the positions held by workers in the Workday system", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location": {"name": "business_site_summary_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "exclude_from_head_count": {"name": "exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_exempt": {"name": "job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_paid_fte": {"name": "specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_working_fte": {"name": "specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "created_at": 1712101393.2055738}, "source.workday.workday.worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_leave_status", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_leave_status", "fqn": ["workday", "staging", "workday", "worker_leave_status"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_leave_status_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the leave status of workers in the Workday system.", "columns": {"leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_effect": {"name": "benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caesarean_section_birth": {"name": "caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "multiple_child_indicator": {"name": "multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_leave": {"name": "on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_effect": {"name": "payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "single_parent_indicator": {"name": "single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stock_vesting_effect": {"name": "stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_related": {"name": "work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "created_at": 1712101393.2056892}, "source.workday.workday.worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_organization_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_organization_history", "fqn": ["workday", "staging", "workday", "worker_position_organization_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_organization_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "created_at": 1712101393.205769}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.136162, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.136389, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.136495, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.136597, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1367, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n when 'm' then 'MATERIALIZED VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1381068, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.138531, "supported_languages": null}, "macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1391602, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.139288, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1475468, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.148043, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.148368, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.148736, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1492, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.149611, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.149782, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1501088, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1506078, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.151488, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.151681, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.151981, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.152236, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.15263, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.152839, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1533859, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1535769, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.153684, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.153847, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.153973, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1543481, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.155013, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.155148, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.155536, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1557708, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.156012, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.156802, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }};\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.157247, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.157516, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.157851, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1579862, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.158697, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1588538, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.158974, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1594722, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1596239, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.159817, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.160356, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.163197, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.163338, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1637828, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.164147, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.165102, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.165278, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.165411, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.165697, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1658518, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.166187, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1664598, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1667998, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.167191, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.167438, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.170509, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.170665, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.170861, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.171519, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.171672, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.17183, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.173095, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1744041, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.178037, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.178308, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.178466, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1785479, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.178685, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1787891, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.178978, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.179801, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.179976, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.180214, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.180605, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.186141, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.189047, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1895292, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.189824, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.190182, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.1905391, "supported_languages": null}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.194863, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.195337, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.195675, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.197068, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.197315, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.197933, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2007098, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.203459, "supported_languages": ["sql"]}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.204865, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2053509, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.206157, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.20645, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2071638, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2127411, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.214218, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.214466, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.215538, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2158232, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.216435, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.217057, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2179031, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.218137, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.218317, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.218591, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.218872, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2191591, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2193432, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2195961, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.219775, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.219924, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.220258, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.224702, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.229404, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.230779, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2321239, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.232957, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.233275, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.233391, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.233699, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation }} clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.233841, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {% if target_relation and defer_relation and target_relation == defer_relation %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation) }}\n {% else %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endif %}\n\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.237602, "supported_languages": ["sql"]}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.24082, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.245049, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.245871, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.24609, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.246521, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.246701, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2468228, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2469518, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.247058, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.247203, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2473102, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.247734, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2479072, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.249095, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.249525, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.250025, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.250905, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.251724, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2523808, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.253624, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.254007, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2548301, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.255381, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2556832, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2558668, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.256045, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.256781, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation_type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.257935, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.258282, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.258508, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.258799, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.258987, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.259597, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.259978, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.260174, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.260437, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2607539, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.261004, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.26143, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.261844, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2621481, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.262346, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{ return(adapter.dispatch('drop_materialized_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.262605, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.262708, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2629619, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.263103, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.26338, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.263584, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.26383, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.263967, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.264522, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.26469, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.26495, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2650828, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.265326, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.265461, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2663429, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.266453, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2669282, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.267078, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.267204, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.268395, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.268739, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2690508, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{ return(adapter.dispatch('drop_table', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.269292, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.269386, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2696269, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.269757, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.269993, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.270124, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.270875, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.271042, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.271424, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.272279, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.272793, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.273, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.273173, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{ return(adapter.dispatch('drop_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.273463, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.273559, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.27441, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.274579, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2757812, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.275977, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.276211, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2764769, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.276611, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.277021, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2772758, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.277466, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2778602, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.278199, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.278473, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.278705, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.279202, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.280499, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.28101, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.281277, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.283059, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.284354, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.285066, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.28529, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.285526, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.285604, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.286301, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.286931, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.287167, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2875268, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2878451, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.288003, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.288235, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.288362, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.289121, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.289522, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2897, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.290176, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2904162, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.290514, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.290825, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.29098, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.291183, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2915132, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.291755, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2918851, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.292196, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.292331, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.292916, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2932868, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2935941, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.293799, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.294089, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.294218, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.294453, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.294594, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.294812, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.294954, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.295177, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.295273, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2955258, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.295649, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.295865, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.296028, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2968462, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.29698, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.297127, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2972631, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2974038, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.297536, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2976792, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.297837, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.297977, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.298112, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.298256, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2983859, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.298529, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2986581, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.2989068, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.299026, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.299242, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.299337, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.299691, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.299932, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.300063, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3005178, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.300663, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.300861, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.301126, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.301246, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.301582, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.301803, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.302253, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3024452, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.30289, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.303095, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.303293, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.303503, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3040059, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.304163, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.304299, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.304404, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3046799, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3047628, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.304925, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.305106, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.305943, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.306081, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3062332, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.306622, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.306797, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.306925, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3070688, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3071842, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.309013, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3091662, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.309361, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3096251, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.309844, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.310122, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.310287, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.310507, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.310724, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3112168, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.31142, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.311549, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3119192, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.312447, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.312785, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.313007, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.31465, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3147662, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.314929, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.315041, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.315376, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.315562, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.31567, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.315882, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3161411, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3163872, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.31668, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3169122, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.317559, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.317744, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.317983, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3182132, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3193002, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header -%}\n {{ sql_header }}\n {%- endif -%}\n {%- if limit is not none -%}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n {%- else -%}\n {{ compiled_code }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.319851, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "{% macro get_limit_subquery_sql(sql, limit) %}\n {{ adapter.dispatch('get_limit_subquery_sql', 'dbt')(sql, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.32003, "supported_languages": null}, "macro.dbt.default__get_limit_subquery_sql": {"name": "default__get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_subquery_sql", "macro_sql": "{% macro default__get_limit_subquery_sql(sql, limit) %}\n select *\n from (\n {{ sql }}\n ) as model_limit_subq\n limit {{ limit }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3201642, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3207822, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.32094, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.321124, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3212779, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.321526, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.322059, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.324685, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.324917, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3251, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3254259, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.325592, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.325727, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.325887, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.326103, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.326286, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.326553, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3267221, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.326869, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3270159, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.327164, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.327362, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.327513, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3294442, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.329588, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.329858, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3300521, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3302321, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.330396, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n cast(null as {{ col['data_type'] }}) as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.33148, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3317811, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.331946, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.332257, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.332465, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.332999, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.333236, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.334156, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3357701, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.335927, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3367648, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.337173, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.337733, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.33818, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.338251, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.338736, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.338961, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.339233, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3394911, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.339828, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.340289, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.340726, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3414469, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.341739, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.342036, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.343028, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3439848, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3447978, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.34578, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3463979, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.346713, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.347449, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.348277, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.348822, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.34923, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.349771, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.350188, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.350662, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.351, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3515809, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n where {{ column_name }} is not null\n limit 1\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.352355, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3529038, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3534698, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.353974, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.354282, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.354635, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.354955, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.355527, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3562582, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.357067, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3581061, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3588638, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.359692, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.360167, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.360447, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.363486, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.364916, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.36516, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3653069, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.365699, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.365941, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.366118, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.366346, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3665001, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.367056, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.368, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.368741, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.369334, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3695831, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.369996, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3704162, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.370971, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3712919, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.371629, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.372331, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.37318, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.373919, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.374283, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3744519, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.374908, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3754911, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.376234, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.376592, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.376842, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.378101, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.379798, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3810408, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.382582, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3829079, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.383041, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3858528, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.38929, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.389623, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.389858, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3905752, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3907871, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.390975, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.391155, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.391305, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.391472, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.391833, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.392062, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3924181, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.392927, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3932512, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.393559, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.395097, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.39545, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3962398, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.3967848, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.397877, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.399362, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.400362, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4011478, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4015942, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.402475, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.403178, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.403597, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.403766, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.404114, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4046469, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.40505, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.405607, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.406055, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.406181, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.406302, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.406422, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4068632, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4076002, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.408553, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.408798, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.409302, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4100149, "supported_languages": null}, "macro.workday.get_person_contact_email_address_columns": {"name": "get_person_contact_email_address_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_contact_email_address_columns.sql", "original_file_path": "macros/get_person_contact_email_address_columns.sql", "unique_id": "macro.workday.get_person_contact_email_address_columns", "macro_sql": "{% macro get_person_contact_email_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_address\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_comment\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4108229, "supported_languages": null}, "macro.workday.get_military_service_columns": {"name": "get_military_service_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_military_service_columns.sql", "original_file_path": "macros/get_military_service_columns.sql", "unique_id": "macro.workday.get_military_service_columns", "macro_sql": "{% macro get_military_service_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"discharge_date\", \"datatype\": \"date\"},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"rank\", \"datatype\": dbt.type_string()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status_begin_date\", \"datatype\": \"date\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.412159, "supported_languages": null}, "macro.workday.get_position_job_profile_columns": {"name": "get_position_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_job_profile_columns.sql", "original_file_path": "macros/get_position_job_profile_columns.sql", "unique_id": "macro.workday.get_position_job_profile_columns", "macro_sql": "{% macro get_position_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.413356, "supported_languages": null}, "macro.workday.get_job_family_job_family_group_columns": {"name": "get_job_family_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_job_family_group_columns", "macro_sql": "{% macro get_job_family_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.413932, "supported_languages": null}, "macro.workday.get_worker_history_columns": {"name": "get_worker_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_history_columns.sql", "original_file_path": "macros/get_worker_history_columns.sql", "unique_id": "macro.workday.get_worker_history_columns", "macro_sql": "{% macro get_worker_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_date\", \"datatype\": \"date\"},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"active_status_date\", \"datatype\": \"date\"},\n {\"name\": \"annual_currency_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_service_date\", \"datatype\": \"date\"},\n {\"name\": \"company_service_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_effective_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"continuous_service_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_assignment_details\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_end_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_frequency_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_pay_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"contract_vendor_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_entered_workforce\", \"datatype\": \"date\"},\n {\"name\": \"days_unemployed\", \"datatype\": dbt.type_float()},\n {\"name\": \"eligible_for_hire\", \"datatype\": dbt.type_string()},\n {\"name\": \"eligible_for_rehire_on_latest_termination\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_date_of_return\", \"datatype\": \"date\"},\n {\"name\": \"expected_retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"has_international_assignment\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hire_date\", \"datatype\": \"date\"},\n {\"name\": \"hire_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"hire_rescinded\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_datefor_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"local_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"months_continuous_prior_employment\", \"datatype\": dbt.type_float()},\n {\"name\": \"not_returning\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"original_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"pay_group_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"primary_termination_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"probation_end_date\", \"datatype\": \"date\"},\n {\"name\": \"probation_start_date\", \"datatype\": \"date\"},\n {\"name\": \"reason_reference_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regrettable_termination\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"rehire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"resignation_date\", \"datatype\": \"date\"},\n {\"name\": \"retired\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"retirement_eligibility_date\", \"datatype\": \"date\"},\n {\"name\": \"return_unknown\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"seniority_date\", \"datatype\": \"date\"},\n {\"name\": \"severance_date\", \"datatype\": \"date\"},\n {\"name\": \"terminated\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_date\", \"datatype\": \"date\"},\n {\"name\": \"termination_involuntary\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"time_off_service_date\", \"datatype\": \"date\"},\n {\"name\": \"universal_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vesting_date\", \"datatype\": \"date\"},\n {\"name\": \"worker_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.425676, "supported_languages": null}, "macro.workday.get_job_family_group_columns": {"name": "get_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_group_columns", "macro_sql": "{% macro get_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_group_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.426538, "supported_languages": null}, "macro.workday.get_worker_leave_status_columns": {"name": "get_worker_leave_status_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_leave_status_columns.sql", "original_file_path": "macros/get_worker_leave_status_columns.sql", "unique_id": "macro.workday.get_worker_leave_status_columns", "macro_sql": "{% macro get_worker_leave_status_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"adoption_notification_date\", \"datatype\": \"date\"},\n {\"name\": \"adoption_placement_date\", \"datatype\": \"date\"},\n {\"name\": \"age_of_dependent\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"caesarean_section_birth\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"child_birth_date\", \"datatype\": \"date\"},\n {\"name\": \"child_sdate_of_death\", \"datatype\": \"date\"},\n {\"name\": \"continuous_service_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"date_baby_arrived_home_from_hospital\", \"datatype\": \"date\"},\n {\"name\": \"date_child_entered_country\", \"datatype\": \"date\"},\n {\"name\": \"date_of_recall\", \"datatype\": \"date\"},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimated_leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_due_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"last_date_for_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_entitlement_override\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"leave_of_absence_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_request_event_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_return_event\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_start_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_status_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_type_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_during_leave\", \"datatype\": dbt.type_string()},\n {\"name\": \"multiple_child_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"number_of_babies_adopted_children\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_child_dependents\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_births\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_maternity_leaves\", \"datatype\": dbt.type_float()},\n {\"name\": \"on_leave\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"paid_time_off_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"payroll_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"single_parent_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"social_security_disability_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"stock_vesting_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"stop_payment_date\", \"datatype\": \"date\"},\n {\"name\": \"week_of_confinement\", \"datatype\": \"date\"},\n {\"name\": \"work_related\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4313679, "supported_languages": null}, "macro.workday.get_organization_role_worker_columns": {"name": "get_organization_role_worker_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_worker_columns.sql", "original_file_path": "macros/get_organization_role_worker_columns.sql", "unique_id": "macro.workday.get_organization_role_worker_columns", "macro_sql": "{% macro get_organization_role_worker_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"associated_worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.432147, "supported_languages": null}, "macro.workday.get_job_profile_columns": {"name": "get_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_profile_columns.sql", "original_file_path": "macros/get_job_profile_columns.sql", "unique_id": "macro.workday.get_job_profile_columns", "macro_sql": "{% macro get_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_job_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"public_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"referral_payment_plan\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_membership_requirement\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_study_award_source_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_study_requirement_option_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.435029, "supported_languages": null}, "macro.workday.get_organization_role_columns": {"name": "get_organization_role_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_columns.sql", "original_file_path": "macros/get_organization_role_columns.sql", "unique_id": "macro.workday.get_organization_role_columns", "macro_sql": "{% macro get_organization_role_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_role_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.435724, "supported_languages": null}, "macro.workday.get_person_name_columns": {"name": "get_person_name_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_name_columns.sql", "original_file_path": "macros/get_person_name_columns.sql", "unique_id": "macro.workday.get_person_name_columns", "macro_sql": "{% macro get_person_name_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"additional_name_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name_singapore_malaysia\", \"datatype\": dbt.type_string()},\n {\"name\": \"hereditary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"honorary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_salutation\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"professional_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"religious_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"royal_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tertiary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4393039, "supported_languages": null}, "macro.workday.get_job_family_job_profile_columns": {"name": "get_job_family_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_profile_columns.sql", "original_file_path": "macros/get_job_family_job_profile_columns.sql", "unique_id": "macro.workday.get_job_family_job_profile_columns", "macro_sql": "{% macro get_job_family_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4398668, "supported_languages": null}, "macro.workday.get_worker_position_history_columns": {"name": "get_worker_position_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_history_columns.sql", "original_file_path": "macros/get_worker_position_history_columns.sql", "unique_id": "macro.workday.get_worker_position_history_columns", "macro_sql": "{% macro get_worker_position_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_pay_setup_data_annual_work_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_work_percent_of_year\", \"datatype\": dbt.type_float()},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"business_site_summary_display_language\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_local\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"business_site_summary_time_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"default_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"employee_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"exclude_from_head_count\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"expected_assignment_end_date\", \"datatype\": \"date\"},\n {\"name\": \"external_employee\", \"datatype\": dbt.type_string()},\n {\"name\": \"federal_withholding_fein\", \"datatype\": dbt.type_string()},\n {\"name\": \"frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_time_equivalent_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"headcount_restriction_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"host_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"international_assignment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_primary_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"paid_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"payroll_entity\", \"datatype\": dbt.type_string()},\n {\"name\": \"payroll_file_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regular_paid_equivalent_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"specify_paid_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"specify_working_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"start_international_assignment_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_hours_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_space\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_hours_profile_classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"working_time_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.44768, "supported_languages": null}, "macro.workday.get_personal_information_ethnicity_columns": {"name": "get_personal_information_ethnicity_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_ethnicity_columns.sql", "original_file_path": "macros/get_personal_information_ethnicity_columns.sql", "unique_id": "macro.workday.get_personal_information_ethnicity_columns", "macro_sql": "{% macro get_personal_information_ethnicity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ethnicity_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"ethnicity_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.448499, "supported_languages": null}, "macro.workday.get_personal_information_history_columns": {"name": "get_personal_information_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_history_columns.sql", "original_file_path": "macros/get_personal_information_history_columns.sql", "unique_id": "macro.workday.get_personal_information_history_columns", "macro_sql": "{% macro get_personal_information_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"blood_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"citizenship_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_birth\", \"datatype\": \"date\"},\n {\"name\": \"date_of_death\", \"datatype\": \"date\"},\n {\"name\": \"gender\", \"datatype\": dbt.type_string()},\n {\"name\": \"hispanic_or_latino\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hukou_locality\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_subregion\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_medical_exam_date\", \"datatype\": \"date\"},\n {\"name\": \"last_medical_exam_valid_to\", \"datatype\": \"date\"},\n {\"name\": \"local_hukou\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"marital_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"marital_status_date\", \"datatype\": \"date\"},\n {\"name\": \"medical_exam_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"personnel_file_agency\", \"datatype\": dbt.type_string()},\n {\"name\": \"political_affiliation\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"religion\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_benefit\", \"datatype\": dbt.type_string()},\n {\"name\": \"tobacco_use\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.452705, "supported_languages": null}, "macro.workday.get_worker_position_organization_history_columns": {"name": "get_worker_position_organization_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_organization_history_columns.sql", "original_file_path": "macros/get_worker_position_organization_history_columns.sql", "unique_id": "macro.workday.get_worker_position_organization_history_columns", "macro_sql": "{% macro get_worker_position_organization_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_pay_group_assignment\", \"datatype\": \"date\"},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_business_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"used_in_change_organization_assignments\", \"datatype\": dbt.type_boolean()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.453876, "supported_languages": null}, "macro.workday.get_organization_job_family_columns": {"name": "get_organization_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_job_family_columns.sql", "original_file_path": "macros/get_organization_job_family_columns.sql", "unique_id": "macro.workday.get_organization_job_family_columns", "macro_sql": "{% macro get_organization_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.454485, "supported_languages": null}, "macro.workday.get_job_family_columns": {"name": "get_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_columns.sql", "original_file_path": "macros/get_job_family_columns.sql", "unique_id": "macro.workday.get_job_family_columns", "macro_sql": "{% macro get_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.45525, "supported_languages": null}, "macro.workday.get_organization_columns": {"name": "get_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_columns.sql", "original_file_path": "macros/get_organization_columns.sql", "unique_id": "macro.workday.get_organization_columns", "macro_sql": "{% macro get_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"availability_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"external_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"inactive_date\", \"datatype\": \"date\"},\n {\"name\": \"include_manager_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_organization_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"last_updated_date_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"location\", \"datatype\": dbt.type_string()},\n {\"name\": \"manager_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_owner_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"staffing_model\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"superior_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_availability_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_time_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_worker_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"top_level_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"visibility\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4581828, "supported_languages": null}, "macro.workday.get_position_organization_columns": {"name": "get_position_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_organization_columns.sql", "original_file_path": "macros/get_position_organization_columns.sql", "unique_id": "macro.workday.get_position_organization_columns", "macro_sql": "{% macro get_position_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4587982, "supported_languages": null}, "macro.workday.get_position_columns": {"name": "get_position_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_columns.sql", "original_file_path": "macros/get_position_columns.sql", "unique_id": "macro.workday.get_position_columns", "macro_sql": "{% macro get_position_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_eligible\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"availability_date\", \"datatype\": \"date\"},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_overlap\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_recruiting\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"closed\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"compensation_grade_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_package_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_step_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"earliest_overlap_date\", \"datatype\": \"date\"},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_posting_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_time_type_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_amount_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_percent_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"supervisory_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_for_filled_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_type_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.46225, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.462786, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4636889, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.463851, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4640021, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.464163, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4643042, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.464465, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.465222, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.465826, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.467037, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.467284, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.467552, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.467788, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.468013, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.468261, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.468538, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.468847, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.469184, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4692879, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4693818, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4694788, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.469934, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4705632, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.471494, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.472061, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4729118, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.473392, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4735239, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.473653, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4737742, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4739048, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4766421, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4768069, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.476971, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4771872, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.478921, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.479757, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.479883, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.480125, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4803772, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.480492, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.480608, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.480717, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4808269, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4812632, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.481777, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.482357, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.482582, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.482802, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.48308, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4842749, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.488035, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.48837, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4887092, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.49006, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4905658, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.491085, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.491231, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.491372, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.491526, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4916632, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.491803, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.492794, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4941561, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.494831, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.495018, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.495174, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4953358, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.495488, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4956539, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.495896, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.495997, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.496093, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.496812, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4980211, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.4981902, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.49895, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.502542, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.508137, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.509652, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.510006, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.510161, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.510444, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.510837, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.510953, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.511067, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.511167, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.511266, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.5115242, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.511625, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.51172, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.5120971, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712101391.512467, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.workday._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_deleted", "block_contents": "Indicates if the record was soft-deleted by Fivetran."}, "doc.workday._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_synced", "block_contents": "Timestamp the record was synced by Fivetran."}, "doc.workday._fivetran_start": {"name": "_fivetran_start", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_start", "block_contents": "Timestamp when the record was first created or modified in the source."}, "doc.workday._fivetran_end": {"name": "_fivetran_end", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_end", "block_contents": "Timestamp marking the end of a record being active."}, "doc.workday._fivetran_date": {"name": "_fivetran_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_date", "block_contents": "Date when the record was first created or modified in the source."}, "doc.workday._fivetran_active": {"name": "_fivetran_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_active", "block_contents": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE."}, "doc.workday.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.source_relation", "block_contents": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "doc.workday.academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_end_date", "block_contents": "The end date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_start_date", "block_contents": "The start date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year", "block_contents": "The work percentage of the year in the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date", "block_contents": "The end date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date", "block_contents": "The start date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_suffix": {"name": "academic_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_suffix", "block_contents": "The academic suffix, if applicable (e.g., PhD, MD)."}, "doc.workday.academic_tenure_date": {"name": "academic_tenure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_date", "block_contents": "Date when academic tenure is achieved."}, "doc.workday.academic_tenure_eligible": {"name": "academic_tenure_eligible", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_eligible", "block_contents": "Flag indicating whether the position is eligible for academic tenure."}, "doc.workday.active": {"name": "active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active", "block_contents": "Flag indicating the current active status of the worker."}, "doc.workday.active_status_date": {"name": "active_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active_status_date", "block_contents": "Date when the active status was last updated."}, "doc.workday.additional_job_description": {"name": "additional_job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_job_description", "block_contents": "Additional details or information about the job."}, "doc.workday.additional_name_type": {"name": "additional_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_name_type", "block_contents": "Additional type or category for the person name."}, "doc.workday.additional_nationality": {"name": "additional_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_nationality", "block_contents": "Additional nationality associated with the individual."}, "doc.workday.adoption_notification_date": {"name": "adoption_notification_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_notification_date", "block_contents": "The date of adoption notification."}, "doc.workday.adoption_placement_date": {"name": "adoption_placement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_placement_date", "block_contents": "The date of adoption placement."}, "doc.workday.age_of_dependent": {"name": "age_of_dependent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.age_of_dependent", "block_contents": "The age of the dependent associated with the leave status."}, "doc.workday.annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_currency", "block_contents": "Currency used for annual compensation summaries."}, "doc.workday.annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_frequency", "block_contents": "Frequency of currency for annual compensation summaries."}, "doc.workday.annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual compensation summaries."}, "doc.workday.annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.annual_summary_currency": {"name": "annual_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_currency", "block_contents": "Currency used for annual summaries."}, "doc.workday.annual_summary_frequency": {"name": "annual_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_frequency", "block_contents": "Frequency of currency for annual summaries."}, "doc.workday.annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual summaries."}, "doc.workday.annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.associated_worker_id": {"name": "associated_worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.associated_worker_id", "block_contents": "Identifier for the worker associated with the organization role."}, "doc.workday.availability_date": {"name": "availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.availability_date", "block_contents": "Date when the organization becomes available."}, "doc.workday.available_for_hire": {"name": "available_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_hire", "block_contents": "Flag indicating whether the organization is available for hiring."}, "doc.workday.available_for_overlap": {"name": "available_for_overlap", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_overlap", "block_contents": "Flag indicating whether the position is available for overlap with other positions."}, "doc.workday.available_for_recruiting": {"name": "available_for_recruiting", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_recruiting", "block_contents": "Flag indicating whether the position is available for recruiting."}, "doc.workday.benefits_effect": {"name": "benefits_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_effect", "block_contents": "The effect of leave on benefits."}, "doc.workday.benefits_service_date": {"name": "benefits_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_service_date", "block_contents": "Date when the worker's benefits service starts."}, "doc.workday.blood_type": {"name": "blood_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.blood_type", "block_contents": "The blood type of the individual."}, "doc.workday.business_site_summary_display_language": {"name": "business_site_summary_display_language", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_display_language", "block_contents": "The display language of the business site summary."}, "doc.workday.business_site_summary_local": {"name": "business_site_summary_local", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_local", "block_contents": "Local information related to the business site summary."}, "doc.workday.business_site_summary_location": {"name": "business_site_summary_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location", "block_contents": "The location of the business site summary."}, "doc.workday.business_site_summary_location_type": {"name": "business_site_summary_location_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location_type", "block_contents": "The type of location for the business site summary."}, "doc.workday.business_site_summary_name": {"name": "business_site_summary_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_name", "block_contents": "The name associated with the business site summary."}, "doc.workday.business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the business site summary."}, "doc.workday.business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_time_profile", "block_contents": "The time profile associated with the business site summary."}, "doc.workday.business_title": {"name": "business_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_title", "block_contents": "The business title associated with the worker position."}, "doc.workday.caesarean_section_birth": {"name": "caesarean_section_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.caesarean_section_birth", "block_contents": "Indicator for Caesarean section birth."}, "doc.workday.child_birth_date": {"name": "child_birth_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_birth_date", "block_contents": "The date of child birth."}, "doc.workday.child_sdate_of_death": {"name": "child_sdate_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_sdate_of_death", "block_contents": "The start date of child death.>"}, "doc.workday.citizenship_status": {"name": "citizenship_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.citizenship_status", "block_contents": "The citizenship status of the individual."}, "doc.workday.city_of_birth": {"name": "city_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth", "block_contents": "The city of birth of the individual."}, "doc.workday.city_of_birth_code": {"name": "city_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth_code", "block_contents": "The city of birth code of the individual."}, "doc.workday.closed": {"name": "closed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.closed", "block_contents": "Flag indicating whether the position is closed."}, "doc.workday.code": {"name": "code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.code", "block_contents": "Code assigned to the organization for reference and categorization."}, "doc.workday.company_service_date": {"name": "company_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.company_service_date", "block_contents": "Date when the worker's service with the company started."}, "doc.workday.compensation_effective_date": {"name": "compensation_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_effective_date", "block_contents": "Effective date when changes to the worker's compensation take effect."}, "doc.workday.compensation_grade_code": {"name": "compensation_grade_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_code", "block_contents": "Code associated with the compensation grade of the position."}, "doc.workday.compensation_grade_id": {"name": "compensation_grade_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_id", "block_contents": "Identifier for the compensation grade."}, "doc.workday.compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_code", "block_contents": "Code associated with the compensation grade profile of the position."}, "doc.workday.compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_id", "block_contents": "Unique identifier for the compensation grade profile associated with the worker."}, "doc.workday.compensation_package_code": {"name": "compensation_package_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_package_code", "block_contents": "Code associated with the compensation package of the position."}, "doc.workday.compensation_step_code": {"name": "compensation_step_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_step_code", "block_contents": "Code associated with the compensation step of the position."}, "doc.workday.continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_accrual_effect", "block_contents": "The effect of leave on continuous service accrual."}, "doc.workday.continuous_service_date": {"name": "continuous_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_date", "block_contents": "Date when the worker's continuous service with the organization started."}, "doc.workday.contract_assignment_details": {"name": "contract_assignment_details", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_assignment_details", "block_contents": "Details of the worker's contract assignment."}, "doc.workday.contract_currency_code": {"name": "contract_currency_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_currency_code", "block_contents": "Currency code used for the worker's contract."}, "doc.workday.contract_end_date": {"name": "contract_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_end_date", "block_contents": "Date when the worker's contract is scheduled to end."}, "doc.workday.contract_frequency_name": {"name": "contract_frequency_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_frequency_name", "block_contents": "Frequency of payment for the worker's contract."}, "doc.workday.contract_pay_rate": {"name": "contract_pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_pay_rate", "block_contents": "Pay rate associated with the worker's contract."}, "doc.workday.contract_vendor_name": {"name": "contract_vendor_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_vendor_name", "block_contents": "Name of the vendor associated with the worker's contract."}, "doc.workday.country": {"name": "country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country", "block_contents": "The country associated with the person name."}, "doc.workday.country_of_birth": {"name": "country_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country_of_birth", "block_contents": "The country of birth of the individual."}, "doc.workday.critical_job": {"name": "critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.critical_job", "block_contents": "Flag indicating whether the job is critical."}, "doc.workday.date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_baby_arrived_home_from_hospital", "block_contents": "The date when the baby arrived home from the hospital."}, "doc.workday.date_child_entered_country": {"name": "date_child_entered_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_child_entered_country", "block_contents": "The date when the child entered the country."}, "doc.workday.date_entered_workforce": {"name": "date_entered_workforce", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_entered_workforce", "block_contents": "Date when the worker entered the workforce."}, "doc.workday.date_of_birth": {"name": "date_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_birth", "block_contents": "The date of birth of the individual."}, "doc.workday.date_of_death": {"name": "date_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_death", "block_contents": "The date of death of the individual."}, "doc.workday.date_of_recall": {"name": "date_of_recall", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_recall", "block_contents": "The date of recall."}, "doc.workday.days_employed": {"name": "days_employed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_employed", "block_contents": "The number of days the employee held their position."}, "doc.workday.days_as_worker": {"name": "days_as_worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_as_worker", "block_contents": "Number of days since the worker has been created."}, "doc.workday.days_unemployed": {"name": "days_unemployed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_unemployed", "block_contents": "Number of days the worker has been unemployed."}, "doc.workday.default_weekly_hours": {"name": "default_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.default_weekly_hours", "block_contents": "The default weekly hours associated with the worker position."}, "doc.workday.departure_date": {"name": "departure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.departure_date", "block_contents": "The departure date for the employee."}, "doc.workday.difficulty_to_fill": {"name": "difficulty_to_fill", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill", "block_contents": "Indication of the difficulty level in filling the job."}, "doc.workday.difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill_code", "block_contents": "Code indicating the difficulty level in filling the position."}, "doc.workday.discharge_date": {"name": "discharge_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.discharge_date", "block_contents": "The date on which the individual was discharged from military service."}, "doc.workday.earliest_hire_date": {"name": "earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_hire_date", "block_contents": "Earliest date when the position can be filled."}, "doc.workday.earliest_overlap_date": {"name": "earliest_overlap_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_overlap_date", "block_contents": "Earliest date when the position can overlap with other positions."}, "doc.workday.effective_date": {"name": "effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.effective_date", "block_contents": "Date when the job profile becomes effective."}, "doc.workday.eligible_for_hire": {"name": "eligible_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_hire", "block_contents": "Flag indicating whether the worker is eligible for hire."}, "doc.workday.eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_rehire_on_latest_termination", "block_contents": "Flag indicating whether the worker is eligible for rehire based on the latest termination."}, "doc.workday.email_address": {"name": "email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_address", "block_contents": "The actual email address of the person."}, "doc.workday.email_code": {"name": "email_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_code", "block_contents": "A code or label associated with the type or purpose of the email address."}, "doc.workday.email_comment": {"name": "email_comment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_comment", "block_contents": "Any additional comments or notes related to the email address."}, "doc.workday.employee_id": {"name": "employee_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_id", "block_contents": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee."}, "doc.workday.employed_five_years": {"name": "employed_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_five_years", "block_contents": "Tracks whether a worker was employed at least five years."}, "doc.workday.employed_one_year": {"name": "employed_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_one_year", "block_contents": "Tracks whether a worker was employed at least one year."}, "doc.workday.employed_ten_years": {"name": "employed_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_ten_years", "block_contents": "Tracks whether a worker was employed at least ten years."}, "doc.workday.employed_thirty_years": {"name": "employed_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_thirty_years", "block_contents": "Tracks whether a worker was employed at least thirty years."}, "doc.workday.employed_twenty_years": {"name": "employed_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_twenty_years", "block_contents": "Tracks whether a worker was employed at least twenty years."}, "doc.workday.employee_compensation_currency": {"name": "employee_compensation_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_currency", "block_contents": "Currency code used for the worker's employee compensation."}, "doc.workday.employee_compensation_frequency": {"name": "employee_compensation_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_frequency", "block_contents": "Frequency of payment for the worker's employee compensation."}, "doc.workday.employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's employee compensation."}, "doc.workday.employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_base_pay", "block_contents": "Total base pay for the worker's employee compensation."}, "doc.workday.employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's employee compensation."}, "doc.workday.employee_type": {"name": "employee_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_type", "block_contents": "The type of employee associated with the worker position."}, "doc.workday.end_date": {"name": "end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_date", "block_contents": "The end date of the worker position."}, "doc.workday.end_employment_date": {"name": "end_employment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_employment_date", "block_contents": "Date when the worker's employment is scheduled to end."}, "doc.workday.estimated_leave_end_date": {"name": "estimated_leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.estimated_leave_end_date", "block_contents": "The estimated end date of the leave."}, "doc.workday.ethnicity_code": {"name": "ethnicity_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_code", "block_contents": "The code representing the ethnicity of the individual."}, "doc.workday.ethnicity_codes": {"name": "ethnicity_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_codes", "block_contents": "String aggregation of all ethnicity codes associated with an individual."}, "doc.workday.ethnicity_id": {"name": "ethnicity_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_id", "block_contents": "The identifier associated with the ethnicity."}, "doc.workday.exclude_from_head_count": {"name": "exclude_from_head_count", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.exclude_from_head_count", "block_contents": "Flag indicating whether the position is excluded from headcount."}, "doc.workday.expected_assignment_end_date": {"name": "expected_assignment_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_assignment_end_date", "block_contents": "The expected end date of the assignment associated with the worker position."}, "doc.workday.expected_date_of_return": {"name": "expected_date_of_return", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_date_of_return", "block_contents": "Expected date of the worker's return."}, "doc.workday.expected_due_date": {"name": "expected_due_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_due_date", "block_contents": "The expected due date."}, "doc.workday.expected_retirement_date": {"name": "expected_retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_retirement_date", "block_contents": "Expected date of the worker's retirement."}, "doc.workday.external_employee": {"name": "external_employee", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_employee", "block_contents": "Flag indicating whether the worker is an external employee."}, "doc.workday.external_url": {"name": "external_url", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_url", "block_contents": "External URL associated with the organization."}, "doc.workday.federal_withholding_fein": {"name": "federal_withholding_fein", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.federal_withholding_fein", "block_contents": "The Federal Employer Identification Number (FEIN) for federal withholding."}, "doc.workday.first_day_of_work": {"name": "first_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_day_of_work", "block_contents": "The date when the worker started their first day of work."}, "doc.workday.first_name": {"name": "first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_name", "block_contents": "The first name of the individual."}, "doc.workday.frequency": {"name": "frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.frequency", "block_contents": "The frequency associated with the worker position."}, "doc.workday.fte_percent": {"name": "fte_percent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.fte_percent", "block_contents": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek"}, "doc.workday.full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_name_singapore_malaysia", "block_contents": "The full name as used in Singapore and Malaysia."}, "doc.workday.full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_time_equivalent_percentage", "block_contents": "The full-time equivalent (FTE) percentage associated with the worker position."}, "doc.workday.gender": {"name": "gender", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.gender", "block_contents": "The gender of the individual."}, "doc.workday.has_international_assignment": {"name": "has_international_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.has_international_assignment", "block_contents": "Flag indicating whether the worker has an international assignment."}, "doc.workday.headcount_restriction_code": {"name": "headcount_restriction_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.headcount_restriction_code", "block_contents": "The code associated with headcount restriction for the worker position."}, "doc.workday.hereditary_suffix": {"name": "hereditary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hereditary_suffix", "block_contents": "The hereditary suffix, if applicable (e.g., Jr, Sr)."}, "doc.workday.hire_date": {"name": "hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_date", "block_contents": "The date when the worker was hired."}, "doc.workday.hire_reason": {"name": "hire_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_reason", "block_contents": "The reason for hiring the worker."}, "doc.workday.hire_rescinded": {"name": "hire_rescinded", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_rescinded", "block_contents": "Flag indicating whether the worker's hire was rescinded."}, "doc.workday.hiring_freeze": {"name": "hiring_freeze", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hiring_freeze", "block_contents": "Flag indicating whether the organization is under a hiring freeze."}, "doc.workday.hispanic_or_latino": {"name": "hispanic_or_latino", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hispanic_or_latino", "block_contents": "lag indicating whether the individual is Hispanic or Latino."}, "doc.workday.home_country": {"name": "home_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.home_country", "block_contents": "The home country of the worker."}, "doc.workday.honorary_suffix": {"name": "honorary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.honorary_suffix", "block_contents": "The honorary suffix, if applicable."}, "doc.workday.host_country": {"name": "host_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.host_country", "block_contents": "The host country associated with the worker."}, "doc.workday.hourly_frequency_currency": {"name": "hourly_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_currency", "block_contents": "Currency code used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_frequency", "block_contents": "Frequency of payment for the worker's hourly compensation."}, "doc.workday.hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_base_pay", "block_contents": "Total base pay for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's hourly compensation."}, "doc.workday.hukou_locality": {"name": "hukou_locality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_locality", "block_contents": "The locality associated with the Hukou."}, "doc.workday.hukou_postal_code": {"name": "hukou_postal_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_postal_code", "block_contents": "The postal code associated with the Hukou."}, "doc.workday.hukou_region": {"name": "hukou_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_region", "block_contents": "The region associated with the Hukou."}, "doc.workday.hukou_subregion": {"name": "hukou_subregion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_subregion", "block_contents": "The subregion associated with the Hukou."}, "doc.workday.hukou_type": {"name": "hukou_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_type", "block_contents": "The type of Hukou."}, "doc.workday.id": {"name": "id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.id", "block_contents": "Unique identifier."}, "doc.workday.inactive": {"name": "inactive", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive", "block_contents": "Flag indicating whether this is inactive."}, "doc.workday.inactive_date": {"name": "inactive_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive_date", "block_contents": "Date when the organization becomes inactive"}, "doc.workday.include_job_code_in_name": {"name": "include_job_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_job_code_in_name", "block_contents": "Flag indicating whether to include the job code in the job profile name."}, "doc.workday.include_manager_in_name": {"name": "include_manager_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_manager_in_name", "block_contents": "Flag indicating whether to include the manager in the organization name."}, "doc.workday.include_organization_code_in_name": {"name": "include_organization_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_organization_code_in_name", "block_contents": "Flag indicating whether to include the organization code in the name."}, "doc.workday.index": {"name": "index", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.index", "block_contents": "An index for a particular identifier."}, "doc.workday.international_assignment_type": {"name": "international_assignment_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.international_assignment_type", "block_contents": "The type of international assignment associated with the worker position."}, "doc.workday.is_critical_job": {"name": "is_critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_critical_job", "block_contents": "Flag indicating whether the position is considered critical based on the job profile."}, "doc.workday.is_current_employee_five_years": {"name": "is_current_employee_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_five_years", "block_contents": "Tracks whether a worker is active for more than five years."}, "doc.workday.is_current_employee_one_year": {"name": "is_current_employee_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_one_year", "block_contents": "Tracks whether a worker is active for more than a year."}, "doc.workday.is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_ten_years", "block_contents": "Tracks whether a worker is active for more than ten years."}, "doc.workday.is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_thirty_years", "block_contents": "Tracks whether a worker is active for more than thirty years."}, "doc.workday.is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_twenty_years", "block_contents": "Tracks whether a worker is active for more than twenty years."}, "doc.workday.is_employed": {"name": "is_employed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_employed", "block_contents": "Is the worker currently employed?"}, "doc.workday.is_military_service": {"name": "is_military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_military_service", "block_contents": "Whether the employee served in the military."}, "doc.workday.is_primary_job": {"name": "is_primary_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_primary_job", "block_contents": "Flag indicating whether the job is the primary job for the worker."}, "doc.workday.is_regrettable_termination": {"name": "is_regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_regrettable_termination", "block_contents": "Has the worker been regrettably terminated?"}, "doc.workday.is_terminated": {"name": "is_terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_terminated", "block_contents": "Has the worker been terminated?"}, "doc.workday.is_user_active": {"name": "is_user_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_user_active", "block_contents": "Is the user currently active."}, "doc.workday.job_category_code": {"name": "job_category_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_code", "block_contents": "Code indicating the category of the job profile associated with the position."}, "doc.workday.job_category_id": {"name": "job_category_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_id", "block_contents": "Identifier for the job category."}, "doc.workday.job_description": {"name": "job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description", "block_contents": "Detailed description of the job associated with the position."}, "doc.workday.job_description_summary": {"name": "job_description_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description_summary", "block_contents": "Summary or overview of the job description for the position."}, "doc.workday.job_exempt": {"name": "job_exempt", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_exempt", "block_contents": "Indicates whether the job is exempt from certain regulations."}, "doc.workday.job_family": {"name": "job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family", "block_contents": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles."}, "doc.workday.job_family_code": {"name": "job_family_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_code", "block_contents": "Code assigned to the job family"}, "doc.workday.job_family_codes": {"name": "job_family_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_codes", "block_contents": "String array of all job family codes assigned to a job profile."}, "doc.workday.job_family_group": {"name": "job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group", "block_contents": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics."}, "doc.workday.job_family_group_code": {"name": "job_family_group_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_code", "block_contents": "Code assigned to the job family group for reference and categorization."}, "doc.workday.job_family_group_codes": {"name": "job_family_group_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_codes", "block_contents": "String array of all job family group codes assigned to a job profile."}, "doc.workday.job_family_group_id": {"name": "job_family_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_id", "block_contents": "Identifier for the job family group."}, "doc.workday.job_family_group_summary": {"name": "job_family_group_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summary", "block_contents": "The summary of the job family group."}, "doc.workday.job_family_group_summaries": {"name": "job_family_group_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summaries", "block_contents": "String array of all job family group summaries assigned to a job profile."}, "doc.workday.job_family_id": {"name": "job_family_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_id", "block_contents": "Identifier for the job family."}, "doc.workday.job_family_job_family_group": {"name": "job_family_job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_family_group", "block_contents": "Represents the relationship between job families and job family groups in the Workday dataset."}, "doc.workday.job_family_job_profile": {"name": "job_family_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_profile", "block_contents": "Represents the relationship between job families and job profiles in the Workday dataset."}, "doc.workday.job_family_summary": {"name": "job_family_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summary", "block_contents": "The summary of the job family."}, "doc.workday.job_family_summaries": {"name": "job_family_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summaries", "block_contents": "String array of all job family summaries assigned to a job profile."}, "doc.workday.job_group_id": {"name": "job_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_group_id", "block_contents": "The unique identifier for the job group."}, "doc.workday.job_posting_title": {"name": "job_posting_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_posting_title", "block_contents": "Title used for job postings associated with the position."}, "doc.workday.job_private_title": {"name": "job_private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_private_title", "block_contents": "The private title associated with the job."}, "doc.workday.job_profile": {"name": "job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile", "block_contents": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes."}, "doc.workday.job_profile_code": {"name": "job_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_code", "block_contents": "Code assigned to the job profile."}, "doc.workday.job_profile_description": {"name": "job_profile_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_description", "block_contents": "Brief description of the job profile."}, "doc.workday.job_profile_id": {"name": "job_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_id", "block_contents": "Identifier for the job profile."}, "doc.workday.job_summary": {"name": "job_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_summary", "block_contents": "The summary of the job."}, "doc.workday.job_title": {"name": "job_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_title", "block_contents": "The title of the job for the worker."}, "doc.workday.last_date_for_which_paid": {"name": "last_date_for_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_date_for_which_paid", "block_contents": "The last date being paid before leave."}, "doc.workday.last_datefor_which_paid": {"name": "last_datefor_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_datefor_which_paid", "block_contents": "Last date for which the worker was paid."}, "doc.workday.last_medical_exam_date": {"name": "last_medical_exam_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_date", "block_contents": "The date of the last medical exam."}, "doc.workday.last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_valid_to", "block_contents": "The validity date of the last medical exam."}, "doc.workday.last_name": {"name": "last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_name", "block_contents": "The last name or surname of the individual."}, "doc.workday.last_updated_date_time": {"name": "last_updated_date_time", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_updated_date_time", "block_contents": "Date and time when the organization record was last updated."}, "doc.workday.leave_description": {"name": "leave_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_description", "block_contents": "Description of the type of leave"}, "doc.workday.leave_end_date": {"name": "leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_end_date", "block_contents": "The end date of the leave."}, "doc.workday.leave_entitlement_override": {"name": "leave_entitlement_override", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_entitlement_override", "block_contents": "Override for leave entitlement."}, "doc.workday.leave_last_day_of_work": {"name": "leave_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_last_day_of_work", "block_contents": "The last day of work associated with the leave status."}, "doc.workday.leave_of_absence_type": {"name": "leave_of_absence_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_of_absence_type", "block_contents": "The type of leave of absence."}, "doc.workday.leave_percentage": {"name": "leave_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_percentage", "block_contents": "The percentage of leave."}, "doc.workday.leave_request_event_id": {"name": "leave_request_event_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_request_event_id", "block_contents": "The unique identifier for the leave request event."}, "doc.workday.leave_return_event": {"name": "leave_return_event", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_return_event", "block_contents": "The event associated with the return from leave."}, "doc.workday.leave_start_date": {"name": "leave_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_start_date", "block_contents": "The start date of the leave."}, "doc.workday.leave_status_code": {"name": "leave_status_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_status_code", "block_contents": "The code indicating the status of the leave."}, "doc.workday.leave_type_reason": {"name": "leave_type_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_type_reason", "block_contents": "The reason for the leave type."}, "doc.workday.level": {"name": "level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.level", "block_contents": "Level associated with the job profile."}, "doc.workday.local_first_name": {"name": "local_first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name", "block_contents": "The local or native first name of the individual."}, "doc.workday.local_first_name_2": {"name": "local_first_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name_2", "block_contents": "Additional local or native first name, if applicable."}, "doc.workday.local_hukou": {"name": "local_hukou", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_hukou", "block_contents": "Flag indicating whether the Hukou is local."}, "doc.workday.local_last_name": {"name": "local_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name", "block_contents": "The local or native last name of the individual."}, "doc.workday.local_last_name_2": {"name": "local_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name_2", "block_contents": "Additional local or native last name, if applicable."}, "doc.workday.local_middle_name": {"name": "local_middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name", "block_contents": "The local or native middle name of the individual."}, "doc.workday.local_middle_name_2": {"name": "local_middle_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name_2", "block_contents": "Additional local or native middle name, if applicable."}, "doc.workday.local_secondary_last_name": {"name": "local_secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name", "block_contents": "Secondary local or native last name or surname, if applicable."}, "doc.workday.local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name_2", "block_contents": "Additional secondary local or native last name, if applicable."}, "doc.workday.local_termination_reason": {"name": "local_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_termination_reason", "block_contents": "The reason for local termination of the worker."}, "doc.workday.location": {"name": "location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location", "block_contents": "Location associated with the organization."}, "doc.workday.location_during_leave": {"name": "location_during_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location_during_leave", "block_contents": "The location during the leave."}, "doc.workday.management_level": {"name": "management_level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level", "block_contents": "Management level associated with the job profile."}, "doc.workday.management_level_code": {"name": "management_level_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level_code", "block_contents": "Code indicating the management level associated with the job profile."}, "doc.workday.manager_id": {"name": "manager_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.manager_id", "block_contents": "Identifier for the manager associated with the organization."}, "doc.workday.marital_status": {"name": "marital_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status", "block_contents": "The marital status of the individual."}, "doc.workday.marital_status_date": {"name": "marital_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status_date", "block_contents": "The date of the marital status."}, "doc.workday.medical_exam_notes": {"name": "medical_exam_notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.medical_exam_notes", "block_contents": "Notes from the medical exam."}, "doc.workday.middle_name": {"name": "middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.middle_name", "block_contents": "The middle name of the individual."}, "doc.workday.military_service": {"name": "military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_service", "block_contents": "Represents information about an individual's military service in the Workday system."}, "doc.workday.military_status": {"name": "military_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_status", "block_contents": "The military status of the worker."}, "doc.workday.months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.months_continuous_prior_employment", "block_contents": "Number of months of continuous prior employment."}, "doc.workday.position_location": {"name": "position_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_location", "block_contents": "The position location of the employee."}, "doc.workday.position_effective_date": {"name": "position_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_effective_date", "block_contents": "The position effective date for the employee."}, "doc.workday.position_end_date": {"name": "position_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_end_date", "block_contents": "The position end date for this employee."}, "doc.workday.position_start_date": {"name": "position_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_start_date", "block_contents": "The position start date for this employee."}, "doc.workday.multiple_child_indicator": {"name": "multiple_child_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.multiple_child_indicator", "block_contents": "Indicator for multiple children."}, "doc.workday.native_region": {"name": "native_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region", "block_contents": "The native region of the individual."}, "doc.workday.native_region_code": {"name": "native_region_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region_code", "block_contents": "The code of the native region."}, "doc.workday.not_returning": {"name": "not_returning", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.not_returning", "block_contents": "Flag indicating whether the worker is not returning."}, "doc.workday.notes": {"name": "notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.notes", "block_contents": "Additional notes or comments related to the military service record."}, "doc.workday.number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_babies_adopted_children", "block_contents": "The number of babies adopted by the worker."}, "doc.workday.number_of_child_dependents": {"name": "number_of_child_dependents", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_child_dependents", "block_contents": "The number of child dependents."}, "doc.workday.number_of_previous_births": {"name": "number_of_previous_births", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_births", "block_contents": "The number of previous births."}, "doc.workday.number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_maternity_leaves", "block_contents": "The number of previous maternity leaves."}, "doc.workday.on_leave": {"name": "on_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.on_leave", "block_contents": "Indicator for whether the worker is on leave."}, "doc.workday.organization": {"name": "organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization", "block_contents": "Identifier for the organization."}, "doc.workday.organization_code": {"name": "organization_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_code", "block_contents": "Code associated with the organization."}, "doc.workday.organization_description": {"name": "organization_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_description", "block_contents": "The description of the organization."}, "doc.workday.organization_id": {"name": "organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_id", "block_contents": "Identifier for the organization."}, "doc.workday.organization_job_family": {"name": "organization_job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_job_family", "block_contents": "Captures the associations between different organizational entities and the job families they are linked to."}, "doc.workday.organization_location": {"name": "organization_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_location", "block_contents": "The location of the organization."}, "doc.workday.organization_name": {"name": "organization_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_name", "block_contents": "Name of the organization."}, "doc.workday.organization_owner_id": {"name": "organization_owner_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_owner_id", "block_contents": "Identifier for the owner of the organization."}, "doc.workday.organization_role": {"name": "organization_role", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role", "block_contents": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities."}, "doc.workday.organization_role_code": {"name": "organization_role_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_code", "block_contents": "Code assigned to the organization role for reference and categorization."}, "doc.workday.organization_role_id": {"name": "organization_role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_id", "block_contents": "The role id associated with the organization."}, "doc.workday.organization_role_worker": {"name": "organization_role_worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_worker", "block_contents": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill."}, "doc.workday.organization_sub_type": {"name": "organization_sub_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_sub_type", "block_contents": "Subtype or classification of the organization."}, "doc.workday.organization_type": {"name": "organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_type", "block_contents": "Type or category of the organization."}, "doc.workday.organization_worker_code": {"name": "organization_worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_worker_code", "block_contents": "The worker code associated with the organization."}, "doc.workday.original_hire_date": {"name": "original_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.original_hire_date", "block_contents": "The original date when the worker was hired."}, "doc.workday.paid_fte": {"name": "paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_fte", "block_contents": "The paid full-time equivalent (FTE) associated with the worker position."}, "doc.workday.paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_time_off_accrual_effect", "block_contents": "The effect of leave on paid time off accrual."}, "doc.workday.pay_group": {"name": "pay_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group", "block_contents": "The pay group associated with the worker position."}, "doc.workday.pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_currency", "block_contents": "Currency code used for the worker's pay group frequency."}, "doc.workday.pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_frequency", "block_contents": "Frequency of payment for the worker's pay group."}, "doc.workday.pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's pay group."}, "doc.workday.pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_base_pay", "block_contents": "Total base pay for the worker's pay group."}, "doc.workday.pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's pay group."}, "doc.workday.pay_rate": {"name": "pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate", "block_contents": "The pay rate associated with the worker position."}, "doc.workday.pay_rate_type": {"name": "pay_rate_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate_type", "block_contents": "The type of pay rate associated with the worker position."}, "doc.workday.pay_through_date": {"name": "pay_through_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_through_date", "block_contents": "The date through which the worker is paid."}, "doc.workday.payroll_effect": {"name": "payroll_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_effect", "block_contents": "The effect of leave on payroll."}, "doc.workday.payroll_entity": {"name": "payroll_entity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_entity", "block_contents": "The payroll entity associated with the worker position."}, "doc.workday.payroll_file_number": {"name": "payroll_file_number", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_file_number", "block_contents": "The file number associated with payroll for the worker position."}, "doc.workday.person_contact_email_address": {"name": "person_contact_email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address", "block_contents": "Represents the email addresses associated with a person in the Workday system."}, "doc.workday.person_contact_email_address_id": {"name": "person_contact_email_address_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address_id", "block_contents": "The identifier of the personal contact email address."}, "doc.workday.person_name": {"name": "person_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name", "block_contents": "Represents the name information for an individual in the Workday system."}, "doc.workday.person_name_type": {"name": "person_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name_type", "block_contents": "The type or category of the person name (e.g., legal name, preferred name)."}, "doc.workday.personal_info_system_id": {"name": "personal_info_system_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_info_system_id", "block_contents": "The system ID associated with the personal information of the individual."}, "doc.workday.personal_information": {"name": "personal_information", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information", "block_contents": "The personal information associated with each worker."}, "doc.workday.personal_information_ethnicity": {"name": "personal_information_ethnicity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_ethnicity", "block_contents": "Represents information about the ethnicity of an individual in the Workday system."}, "doc.workday.personal_information_id": {"name": "personal_information_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_id", "block_contents": "The identifier for each personal information record."}, "doc.workday.personal_information_type": {"name": "personal_information_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_type", "block_contents": "The type of personal information record."}, "doc.workday.personnel_file_agency": {"name": "personnel_file_agency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personnel_file_agency", "block_contents": "The agency associated with the personnel file."}, "doc.workday.political_affiliation": {"name": "political_affiliation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.political_affiliation", "block_contents": "The political affiliation of the individual."}, "doc.workday.position": {"name": "position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position", "block_contents": "Resource for understanding the details and attributes associated with each position."}, "doc.workday.position_code": {"name": "position_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_code", "block_contents": "Code associated with the position for reference and categorization."}, "doc.workday.position_days": {"name": "position_days", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_days", "block_contents": "The days the worker held positions at the company."}, "doc.workday.position_id": {"name": "position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_id", "block_contents": "Identifier for the specific position."}, "doc.workday.position_job_profile": {"name": "position_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile", "block_contents": "Captures the associations between specific positions and the job profiles they are linked to."}, "doc.workday.position_job_profile_name": {"name": "position_job_profile_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile_name", "block_contents": "Name associated with the job profile linked to the position."}, "doc.workday.position_organization": {"name": "position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization", "block_contents": "Captures the associations between specific positions and the organizations to which they belong."}, "doc.workday.position_organization_type": {"name": "position_organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization_type", "block_contents": "Type or category of the position within the organization."}, "doc.workday.position_time_type_code": {"name": "position_time_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_time_type_code", "block_contents": "Code indicating the time type associated with the position."}, "doc.workday.prefix_salutation": {"name": "prefix_salutation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_salutation", "block_contents": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.)."}, "doc.workday.prefix_title": {"name": "prefix_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title", "block_contents": "The prefix or title associated with the name (e.g., Professor)."}, "doc.workday.prefix_title_code": {"name": "prefix_title_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title_code", "block_contents": "The code associated with the prefix or title."}, "doc.workday.primary_compensation_basis": {"name": "primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis", "block_contents": "Primary basis of compensation for the position."}, "doc.workday.primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_amount_change", "block_contents": "Change in the amount of the primary compensation basis."}, "doc.workday.primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_percent_change", "block_contents": "Change in the percentage of the primary compensation basis."}, "doc.workday.primary_nationality": {"name": "primary_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_nationality", "block_contents": "The primary nationality of the individual."}, "doc.workday.primary_termination_category": {"name": "primary_termination_category", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_category", "block_contents": "The primary termination category for the worker."}, "doc.workday.primary_termination_reason": {"name": "primary_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_reason", "block_contents": "The primary termination reason for the worker."}, "doc.workday.private_title": {"name": "private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.private_title", "block_contents": "Private title associated with the job profile."}, "doc.workday.probation_end_date": {"name": "probation_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_end_date", "block_contents": "The date when the worker's probation ends."}, "doc.workday.probation_start_date": {"name": "probation_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_start_date", "block_contents": "The date when the worker's probation starts."}, "doc.workday.professional_suffix": {"name": "professional_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.professional_suffix", "block_contents": "The professional suffix, if applicable (e.g., Esq., CPA)."}, "doc.workday.public_job": {"name": "public_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.public_job", "block_contents": "Flag indicating whether the job is public."}, "doc.workday.rank": {"name": "rank", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rank", "block_contents": "The rank achieved by the individual during military service."}, "doc.workday.reason_reference_id": {"name": "reason_reference_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.reason_reference_id", "block_contents": "The reference ID for the termination reason."}, "doc.workday.referral_payment_plan": {"name": "referral_payment_plan", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.referral_payment_plan", "block_contents": "Referral payment plan associated with the job profile."}, "doc.workday.region_of_birth": {"name": "region_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth", "block_contents": "The region of birth of the individual."}, "doc.workday.region_of_birth_code": {"name": "region_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth_code", "block_contents": "The code of the region of birth."}, "doc.workday.regrettable_termination": {"name": "regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regrettable_termination", "block_contents": "Flag indicating whether the worker's termination is regrettable."}, "doc.workday.regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regular_paid_equivalent_hours", "block_contents": "The regular paid equivalent hours associated with the worker position."}, "doc.workday.rehire": {"name": "rehire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rehire", "block_contents": "Flag indicating whether the worker is eligible for rehire."}, "doc.workday.religion": {"name": "religion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religion", "block_contents": "The religion of the individual."}, "doc.workday.religious_suffix": {"name": "religious_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religious_suffix", "block_contents": "The religious suffix, if applicable."}, "doc.workday.resignation_date": {"name": "resignation_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.resignation_date", "block_contents": "The date when the worker resigned."}, "doc.workday.retired": {"name": "retired", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retired", "block_contents": "Flag indicating whether the worker is retired."}, "doc.workday.retirement_date": {"name": "retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_date", "block_contents": "The date when the worker retired."}, "doc.workday.retirement_eligibility_date": {"name": "retirement_eligibility_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_eligibility_date", "block_contents": "The date when the worker becomes eligible for retirement."}, "doc.workday.return_unknown": {"name": "return_unknown", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.return_unknown", "block_contents": "Flag indicating whether the worker's return status is unknown."}, "doc.workday.role_id": {"name": "role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.role_id", "block_contents": "Identifier for the specific role."}, "doc.workday.royal_suffix": {"name": "royal_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.royal_suffix", "block_contents": "The royal suffix, if applicable."}, "doc.workday.scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the worker position."}, "doc.workday.secondary_last_name": {"name": "secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.secondary_last_name", "block_contents": "Secondary last name or surname, if applicable."}, "doc.workday.seniority_date": {"name": "seniority_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.seniority_date", "block_contents": "The date when the worker's seniority is recorded."}, "doc.workday.service": {"name": "service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service", "block_contents": "The specific military service branch in which the individual served."}, "doc.workday.service_type": {"name": "service_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service_type", "block_contents": "The type or category of military service (e.g., active duty, reserve, etc.)."}, "doc.workday.severance_date": {"name": "severance_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.severance_date", "block_contents": "The date when the worker's severance is recorded."}, "doc.workday.single_parent_indicator": {"name": "single_parent_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.single_parent_indicator", "block_contents": "Indicator for a single parent."}, "doc.workday.social_benefit": {"name": "social_benefit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_benefit", "block_contents": "The social benefit associated with the individual."}, "doc.workday.social_security_disability_code": {"name": "social_security_disability_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_security_disability_code", "block_contents": "The code indicating social security disability."}, "doc.workday.social_suffix": {"name": "social_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix", "block_contents": "The social suffix, if applicable."}, "doc.workday.social_suffix_id": {"name": "social_suffix_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix_id", "block_contents": "The identifier for the social suffix."}, "doc.workday.specify_paid_fte": {"name": "specify_paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_paid_fte", "block_contents": "Flag indicating whether to specify paid FTE for the worker position."}, "doc.workday.specify_working_fte": {"name": "specify_working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_working_fte", "block_contents": "Flag indicating whether to specify working FTE for the worker position."}, "doc.workday.staffing_model": {"name": "staffing_model", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.staffing_model", "block_contents": "Staffing model associated with the organization"}, "doc.workday.start_date": {"name": "start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_date", "block_contents": "The start date of the worker position."}, "doc.workday.start_international_assignment_reason": {"name": "start_international_assignment_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_international_assignment_reason", "block_contents": "The reason for starting an international assignment associated with the worker position."}, "doc.workday.status": {"name": "status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status", "block_contents": "The status of the individual's military service (e.g., active, inactive, retired)."}, "doc.workday.status_begin_date": {"name": "status_begin_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status_begin_date", "block_contents": "The date on which the current military service status began."}, "doc.workday.stock_vesting_effect": {"name": "stock_vesting_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stock_vesting_effect", "block_contents": "The effect of leave on stock vesting."}, "doc.workday.stop_payment_date": {"name": "stop_payment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stop_payment_date", "block_contents": "The date when stop payment occurs."}, "doc.workday.summary": {"name": "summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.summary", "block_contents": "Summary or overview of the job profile."}, "doc.workday.superior_organization_id": {"name": "superior_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.superior_organization_id", "block_contents": "Identifier for the superior organization, if applicable."}, "doc.workday.supervisory_organization_id": {"name": "supervisory_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_organization_id", "block_contents": "Identifier for the supervisory organization associated with the position."}, "doc.workday.supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_availability_date", "block_contents": "Availability date for supervisory positions within the organization."}, "doc.workday.supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_earliest_hire_date", "block_contents": "Earliest hire date for supervisory positions within the organization."}, "doc.workday.supervisory_position_time_type": {"name": "supervisory_position_time_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_time_type", "block_contents": "Time type associated with supervisory positions."}, "doc.workday.supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_worker_type", "block_contents": "Worker type associated with supervisory positions."}, "doc.workday.terminated": {"name": "terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.terminated", "block_contents": "Flag indicating whether the worker is terminated."}, "doc.workday.termination_date": {"name": "termination_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_date", "block_contents": "The date when the worker is terminated."}, "doc.workday.termination_involuntary": {"name": "termination_involuntary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_involuntary", "block_contents": "Flag indicating whether the termination is involuntary."}, "doc.workday.termination_last_day_of_work": {"name": "termination_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_last_day_of_work", "block_contents": "The last day of work for the worker during termination."}, "doc.workday.tertiary_last_name": {"name": "tertiary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tertiary_last_name", "block_contents": "Tertiary last name or surname, if applicable."}, "doc.workday.time_off_service_date": {"name": "time_off_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.time_off_service_date", "block_contents": "The date when the worker's time-off service starts."}, "doc.workday.title": {"name": "title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.title", "block_contents": "Title associated with the job profile."}, "doc.workday.tobacco_use": {"name": "tobacco_use", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tobacco_use", "block_contents": "Flag indicating whether the individual uses tobacco."}, "doc.workday.top_level_organization_id": {"name": "top_level_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.top_level_organization_id", "block_contents": "Identifier for the top-level organization, if applicable."}, "doc.workday.union_code": {"name": "union_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_code", "block_contents": "Code associated with the union related to the job profile."}, "doc.workday.union_membership_requirement": {"name": "union_membership_requirement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_membership_requirement", "block_contents": "Flag indicating whether union membership is a requirement for the job profile."}, "doc.workday.universal_id": {"name": "universal_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.universal_id", "block_contents": "The universal ID associated with the worker."}, "doc.workday.user_id": {"name": "user_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.user_id", "block_contents": "The identifier for the user associated with the worker."}, "doc.workday.vesting_date": {"name": "vesting_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.vesting_date", "block_contents": "The date when the worker's vesting starts."}, "doc.workday.visibility": {"name": "visibility", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.visibility", "block_contents": "Visibility level of the organization."}, "doc.workday.week_of_confinement": {"name": "week_of_confinement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.week_of_confinement", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_hours_profile": {"name": "work_hours_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_hours_profile", "block_contents": "The work hours profile associated with the worker position."}, "doc.workday.work_related": {"name": "work_related", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_related", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_shift": {"name": "work_shift", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift", "block_contents": "The work shift associated with the worker position."}, "doc.workday.work_shift_required": {"name": "work_shift_required", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift_required", "block_contents": "Flag indicating whether a work shift is required."}, "doc.workday.work_space": {"name": "work_space", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_space", "block_contents": "The work space associated with the worker position."}, "doc.workday.work_study_award_source_code": {"name": "work_study_award_source_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_award_source_code", "block_contents": "Code associated with the source of work study awards."}, "doc.workday.work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_requirement_option_code", "block_contents": "Code associated with work study requirement options."}, "doc.workday.workday__employee_overview": {"name": "workday__employee_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__employee_overview", "block_contents": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees."}, "doc.workday.workday__job_overview": {"name": "workday__job_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__job_overview", "block_contents": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings."}, "doc.workday.workday__role_overview": {"name": "workday__role_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__role_overview", "block_contents": "Each record represents a role in an organization, enhanced with additional organizational details."}, "doc.workday.workday__organization_overview": {"name": "workday__organization_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__organization_overview", "block_contents": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures."}, "doc.workday.workday__position_overview": {"name": "workday__position_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__position_overview", "block_contents": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts."}, "doc.workday.worker": {"name": "worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker", "block_contents": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker."}, "doc.workday.worker_code": {"name": "worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_code", "block_contents": "The code associated with the worker."}, "doc.workday.worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_for_filled_position_id", "block_contents": "Identifier for the worker filling the position, if applicable."}, "doc.workday.worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_hours_profile_classification", "block_contents": "The classification of worker hours profile associated with the worker position."}, "doc.workday.worker_id": {"name": "worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_id", "block_contents": "Unique identifier for the worker."}, "doc.workday.worker_leave_status": {"name": "worker_leave_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_leave_status", "block_contents": "Represents the leave status of workers in the Workday system."}, "doc.workday.worker_levels": {"name": "worker_levels", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_levels", "block_contents": "The number of levels the worker has worked at."}, "doc.workday.worker_position": {"name": "worker_position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position", "block_contents": "Represents the positions held by workers in the Workday system"}, "doc.workday.worker_position_organization": {"name": "worker_position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_organization", "block_contents": "Ties together workers to the positions and organizations they hold in the Workday system."}, "doc.workday.worker_position_id": {"name": "worker_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_id", "block_contents": "Identifier for the worker associated with the position."}, "doc.workday.worker_positions": {"name": "worker_positions", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_positions", "block_contents": "The number of positions the worker has held"}, "doc.workday.worker_type_code": {"name": "worker_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_type_code", "block_contents": "Code indicating the type of worker associated with the position."}, "doc.workday.working_fte": {"name": "working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_fte", "block_contents": "The working full-time equivalent (FTE) associated with the worker position."}, "doc.workday.working_time_frequency": {"name": "working_time_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_frequency", "block_contents": "The frequency of working time associated with the worker position."}, "doc.workday.working_time_unit": {"name": "working_time_unit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_unit", "block_contents": "The unit of working time associated with the worker position."}, "doc.workday.working_time_value": {"name": "working_time_value", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_value", "block_contents": "The value of working time associated with the worker position."}, "doc.workday.date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_pay_group_assignment", "block_contents": "Date a group's pay is assigned to be processed."}, "doc.workday.primary_business_site": {"name": "primary_business_site", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_business_site", "block_contents": "Primary location a worker's business is situated."}, "doc.workday.used_in_change_organization_assignments": {"name": "used_in_change_organization_assignments", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.used_in_change_organization_assignments", "block_contents": "If a worker has opted to change these organization assignments."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {}, "parent_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.workday__job_overview": ["model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_group", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_profile"], "model.workday.workday__position_overview": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"], "model.workday.workday__organization_overview": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"], "model.workday.stg_workday__position": ["model.workday.stg_workday__position_base"], "model.workday.stg_workday__job_family_group": ["model.workday.stg_workday__job_family_group_base"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "model.workday.stg_workday__organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "model.workday.stg_workday__organization_role": ["model.workday.stg_workday__organization_role_base"], "model.workday.stg_workday__worker_position": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "model.workday.stg_workday__position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "model.workday.stg_workday__worker_position_organization": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.stg_workday__job_profile": ["model.workday.stg_workday__job_profile_base"], "model.workday.stg_workday__position_organization": ["model.workday.stg_workday__position_organization_base"], "model.workday.stg_workday__worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "model.workday.stg_workday__person_name": ["model.workday.stg_workday__person_name_base"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "model.workday.stg_workday__organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "model.workday.stg_workday__job_family": ["model.workday.stg_workday__job_family_base"], "model.workday.stg_workday__military_service": ["model.workday.stg_workday__military_service_base"], "model.workday.stg_workday__personal_information": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "model.workday.stg_workday__worker": ["model.workday.stg_workday__worker_base"], "model.workday.stg_workday__organization": ["model.workday.stg_workday__organization_base"], "model.workday.stg_workday__job_family_job_family_group_base": ["source.workday.workday.job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["source.workday.workday.personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["source.workday.workday.job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["source.workday.workday.worker_position_organization_history"], "model.workday.stg_workday__position_base": ["source.workday.workday.position"], "model.workday.stg_workday__person_contact_email_address_base": ["source.workday.workday.person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["source.workday.workday.organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["source.workday.workday.job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["source.workday.workday.position_organization"], "model.workday.stg_workday__organization_role_base": ["source.workday.workday.organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["source.workday.workday.worker_leave_status"], "model.workday.stg_workday__job_family_base": ["source.workday.workday.job_family"], "model.workday.stg_workday__job_profile_base": ["source.workday.workday.job_profile"], "model.workday.stg_workday__organization_base": ["source.workday.workday.organization"], "model.workday.stg_workday__organization_role_worker_base": ["source.workday.workday.organization_role_worker"], "model.workday.stg_workday__worker_base": ["source.workday.workday.worker_history"], "model.workday.stg_workday__position_job_profile_base": ["source.workday.workday.position_job_profile"], "model.workday.stg_workday__worker_position_base": ["source.workday.workday.worker_position_history"], "model.workday.stg_workday__person_name_base": ["source.workday.workday.person_name"], "model.workday.stg_workday__military_service_base": ["source.workday.workday.military_service"], "model.workday.stg_workday__personal_information_base": ["source.workday.workday.personal_information_history"], "model.workday.workday__monthly_summary": ["model.workday.workday__employee_daily_history"], "model.workday.workday__employee_daily_history": ["model.workday.int_workday__employee_history"], "model.workday.workday__worker_position_org_daily_history": ["model.workday.stg_workday__worker_position_organization_base", "model.workday.stg_workday__worker_position_organization_history"], "model.workday.stg_workday__worker_position_history": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__worker_history": ["model.workday.stg_workday__worker_base"], "model.workday.stg_workday__personal_information_history": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.int_workday__employee_history": ["model.workday.stg_workday__personal_information_history", "model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history"], "model.workday.int_workday__worker_position_enriched": ["model.workday.stg_workday__worker_position"], "model.workday.int_workday__personal_details": ["model.workday.stg_workday__military_service", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__person_name", "model.workday.stg_workday__personal_information", "model.workday.stg_workday__personal_information_ethnicity"], "model.workday.int_workday__worker_details": ["model.workday.stg_workday__worker"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.int_workday__personal_details", "model.workday.int_workday__worker_details", "model.workday.int_workday__worker_position_enriched"], "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": ["model.workday.workday__job_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": ["model.workday.workday__job_overview"], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": ["model.workday.workday__position_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": ["model.workday.workday__position_overview"], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": ["model.workday.workday__organization_overview"], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": ["model.workday.workday__organization_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": ["model.workday.workday__organization_overview"], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": ["model.workday.stg_workday__job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": ["model.workday.stg_workday__job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": ["model.workday.stg_workday__job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": ["model.workday.stg_workday__job_family"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": ["model.workday.stg_workday__job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": ["model.workday.stg_workday__job_family_group"], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": ["model.workday.stg_workday__organization_role"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": ["model.workday.stg_workday__organization_role_worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": ["model.workday.stg_workday__organization_job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": ["model.workday.stg_workday__organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": ["model.workday.stg_workday__organization"], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": ["model.workday.stg_workday__position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": ["model.workday.stg_workday__position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": ["model.workday.stg_workday__position"], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": ["model.workday.stg_workday__position_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": ["model.workday.stg_workday__worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": ["model.workday.stg_workday__worker"], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": ["model.workday.stg_workday__personal_information"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": ["model.workday.stg_workday__personal_information"], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": ["model.workday.stg_workday__person_name"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": ["model.workday.stg_workday__military_service"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": ["model.workday.stg_workday__military_service"], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": ["model.workday.stg_workday__worker_position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": ["model.workday.stg_workday__worker_leave_status"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": ["model.workday.stg_workday__worker_position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": ["model.workday.stg_workday__worker_position_organization"], "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": ["model.workday.workday__employee_daily_history"], "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": ["model.workday.workday__employee_daily_history"], "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": ["model.workday.workday__monthly_summary"], "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": ["model.workday.workday__monthly_summary"], "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": ["model.workday.stg_workday__personal_information_history"], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": ["model.workday.stg_workday__worker_history"], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": ["model.workday.stg_workday__worker_position_history"], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": ["model.workday.stg_workday__worker_position_organization_history"], "source.workday.workday.job_profile": [], "source.workday.workday.job_family_job_profile": [], "source.workday.workday.job_family": [], "source.workday.workday.job_family_job_family_group": [], "source.workday.workday.job_family_group": [], "source.workday.workday.organization_role": [], "source.workday.workday.organization_role_worker": [], "source.workday.workday.organization_job_family": [], "source.workday.workday.organization": [], "source.workday.workday.position_organization": [], "source.workday.workday.position": [], "source.workday.workday.position_job_profile": [], "source.workday.workday.worker_history": [], "source.workday.workday.personal_information_history": [], "source.workday.workday.person_name": [], "source.workday.workday.personal_information_ethnicity": [], "source.workday.workday.military_service": [], "source.workday.workday.person_contact_email_address": [], "source.workday.workday.worker_position_history": [], "source.workday.workday.worker_leave_status": [], "source.workday.workday.worker_position_organization_history": []}, "child_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "test.workday.unique_workday__employee_overview_employee_id.b01e19996c"], "model.workday.workday__job_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857"], "model.workday.workday__position_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "test.workday.not_null_workday__position_overview_position_id.603beb3f22"], "model.workday.workday__organization_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412"], "model.workday.stg_workday__position": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e"], "model.workday.stg_workday__job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c"], "model.workday.stg_workday__organization_role_worker": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72"], "model.workday.stg_workday__organization_role": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f"], "model.workday.stg_workday__worker_position": ["model.workday.int_workday__worker_position_enriched", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755"], "model.workday.stg_workday__position_job_profile": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7"], "model.workday.stg_workday__worker_position_organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b"], "model.workday.stg_workday__job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa"], "model.workday.stg_workday__position_organization": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7"], "model.workday.stg_workday__worker_leave_status": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61"], "model.workday.stg_workday__person_name": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd"], "model.workday.stg_workday__organization_job_family": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e"], "model.workday.stg_workday__job_family": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f"], "model.workday.stg_workday__military_service": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38"], "model.workday.stg_workday__personal_information": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b"], "model.workday.stg_workday__worker": ["model.workday.int_workday__worker_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "test.workday.not_null_stg_workday__worker_worker_id.8dae310560"], "model.workday.stg_workday__organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7"], "model.workday.stg_workday__job_family_job_family_group_base": ["model.workday.stg_workday__job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["model.workday.stg_workday__personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["model.workday.stg_workday__job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["model.workday.stg_workday__worker_position_organization", "model.workday.stg_workday__worker_position_organization_history", "model.workday.workday__worker_position_org_daily_history"], "model.workday.stg_workday__position_base": ["model.workday.stg_workday__position"], "model.workday.stg_workday__person_contact_email_address_base": ["model.workday.stg_workday__person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["model.workday.stg_workday__organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["model.workday.stg_workday__job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["model.workday.stg_workday__position_organization"], "model.workday.stg_workday__organization_role_base": ["model.workday.stg_workday__organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["model.workday.stg_workday__worker_leave_status"], "model.workday.stg_workday__job_family_base": ["model.workday.stg_workday__job_family"], "model.workday.stg_workday__job_profile_base": ["model.workday.stg_workday__job_profile"], "model.workday.stg_workday__organization_base": ["model.workday.stg_workday__organization"], "model.workday.stg_workday__organization_role_worker_base": ["model.workday.stg_workday__organization_role_worker"], "model.workday.stg_workday__worker_base": ["model.workday.stg_workday__worker", "model.workday.stg_workday__worker_history"], "model.workday.stg_workday__position_job_profile_base": ["model.workday.stg_workday__position_job_profile"], "model.workday.stg_workday__worker_position_base": ["model.workday.stg_workday__worker_position", "model.workday.stg_workday__worker_position_history"], "model.workday.stg_workday__person_name_base": ["model.workday.stg_workday__person_name"], "model.workday.stg_workday__military_service_base": ["model.workday.stg_workday__military_service"], "model.workday.stg_workday__personal_information_base": ["model.workday.stg_workday__personal_information", "model.workday.stg_workday__personal_information_history"], "model.workday.workday__monthly_summary": ["test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab"], "model.workday.workday__employee_daily_history": ["model.workday.workday__monthly_summary", "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269"], "model.workday.workday__worker_position_org_daily_history": ["test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21"], "model.workday.stg_workday__worker_position_history": ["model.workday.int_workday__employee_history", "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879"], "model.workday.stg_workday__worker_history": ["model.workday.int_workday__employee_history", "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72"], "model.workday.stg_workday__personal_information_history": ["model.workday.int_workday__employee_history", "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc"], "model.workday.stg_workday__worker_position_organization_history": ["model.workday.workday__worker_position_org_daily_history", "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398"], "model.workday.int_workday__employee_history": ["model.workday.workday__employee_daily_history"], "model.workday.int_workday__worker_position_enriched": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__personal_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.workday__employee_overview"], "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": [], "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": [], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": [], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": [], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": [], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": [], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": [], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": [], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": [], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": [], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": [], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": [], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": [], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": [], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": [], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": [], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": [], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": [], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": [], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": [], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": [], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": [], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": [], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": [], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": [], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": [], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": [], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": [], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": [], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": [], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": [], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": [], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": [], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": [], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": [], "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": [], "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": [], "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": [], "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": [], "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": [], "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": [], "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": [], "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": [], "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": [], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": [], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": [], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": [], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": [], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": [], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": [], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": [], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": [], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": [], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": [], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": [], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": [], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": [], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": [], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": [], "source.workday.workday.job_profile": ["model.workday.stg_workday__job_profile_base"], "source.workday.workday.job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "source.workday.workday.job_family": ["model.workday.stg_workday__job_family_base"], "source.workday.workday.job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "source.workday.workday.job_family_group": ["model.workday.stg_workday__job_family_group_base"], "source.workday.workday.organization_role": ["model.workday.stg_workday__organization_role_base"], "source.workday.workday.organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "source.workday.workday.organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "source.workday.workday.organization": ["model.workday.stg_workday__organization_base"], "source.workday.workday.position_organization": ["model.workday.stg_workday__position_organization_base"], "source.workday.workday.position": ["model.workday.stg_workday__position_base"], "source.workday.workday.position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "source.workday.workday.worker_history": ["model.workday.stg_workday__worker_base"], "source.workday.workday.personal_information_history": ["model.workday.stg_workday__personal_information_base"], "source.workday.workday.person_name": ["model.workday.stg_workday__person_name_base"], "source.workday.workday.personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "source.workday.workday.military_service": ["model.workday.stg_workday__military_service_base"], "source.workday.workday.person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "source.workday.workday.worker_position_history": ["model.workday.stg_workday__worker_position_base"], "source.workday.workday.worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "source.workday.workday.worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v11.json", "dbt_version": "1.7.8", "generated_at": "2024-04-03T15:31:08.376040Z", "invocation_id": "9c69f9af-b538-4190-9c4d-01824c6af93c", "env": {}, "project_name": "workday_integration_tests", "project_id": "457920b1e5594993369a050db836d437", "user_id": "81581f81-d5af-4143-8fbf-c2f0001e4f56", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_job_family_group_data"], "alias": "workday_job_family_job_family_group_data", "checksum": {"name": "sha256", "checksum": "a4c9b0101811381ac698bec0ba8dd2474fa563f2d2dc6bdf1e072bd3f890313f"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712158226.194026, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_history_data.csv", "original_file_path": "seeds/workday_personal_information_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "fqn": ["workday_integration_tests", "workday_personal_information_history_data"], "alias": "workday_personal_information_history_data", "checksum": {"name": "sha256", "checksum": "2810574ec93fc886e6f1faa097951c8d7c96336fbd1a03b75a22b5a7bb85d13a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712158226.203232, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_personal_information_ethnicity_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_personal_information_ethnicity_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_personal_information_ethnicity_data.csv", "original_file_path": "seeds/workday_personal_information_ethnicity_data.csv", "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "fqn": ["workday_integration_tests", "workday_personal_information_ethnicity_data"], "alias": "workday_personal_information_ethnicity_data", "checksum": {"name": "sha256", "checksum": "986222e9224bcca39693358ca9829277b4f6a2c56111ba9aa2db56734d128e9a"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712158226.204496, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_group_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_group_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_group_data.csv", "original_file_path": "seeds/workday_job_family_group_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "fqn": ["workday_integration_tests", "workday_job_family_group_data"], "alias": "workday_job_family_group_data", "checksum": {"name": "sha256", "checksum": "394c43d528af65ce740ba8ebd24d6d14e6ea99f5d57abcdd2690070f408378f9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712158226.205673, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_history_data.csv", "original_file_path": "seeds/workday_worker_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "fqn": ["workday_integration_tests", "workday_worker_history_data"], "alias": "workday_worker_history_data", "checksum": {"name": "sha256", "checksum": "b3b80c42d748789791fca4630504aafa22afd1dca315e0d63bc0f9f9fe33a68d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "annual_currency_summary_primary_compensation_basis": "float", "annual_currency_summary_total_base_pay": "float", "annual_currency_summary_total_salary_and_allowances": "float", "annual_summary_primary_compensation_basis": "float", "annual_summary_total_base_pay": "float", "annual_summary_total_salary_and_allowances": "float", "contract_pay_rate": "float", "days_unemployed": "float", "employee_compensation_primary_compensation_basis": "float", "employee_compensation_total_base_pay": "float", "employee_compensation_total_salary_and_allowances": "float", "hourly_frequency_primary_compensation_basis": "float", "hourly_frequency_total_base_pay": "float", "hourly_frequency_total_salary_and_allowances": "float", "months_continuous_prior_employment": "float", "pay_group_frequency_primary_compensation_basis": "float", "pay_group_frequency_total_base_pay": "float", "pay_group_frequency_total_salary_and_allowances": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "annual_currency_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_currency_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "annual_summary_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "contract_pay_rate": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "days_unemployed": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "employee_compensation_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "hourly_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "months_continuous_prior_employment": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_base_pay": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "pay_group_frequency_total_salary_and_allowances": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712158226.207019, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_leave_status_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_leave_status_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_leave_status_data.csv", "original_file_path": "seeds/workday_worker_leave_status_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "fqn": ["workday_integration_tests", "workday_worker_leave_status_data"], "alias": "workday_worker_leave_status_data", "checksum": {"name": "sha256", "checksum": "bec6fe9af70bc7bebcfebbd12d41d1674fa78fc88497783bf7be995f1290b901"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "age_of_dependent": "float", "leave_entitlement_override": "float", "leave_percentage": "float", "number_of_babies_adopted_children": "float", "number_of_child_dependents": "float", "number_of_previous_births": "float", "number_of_previous_maternity_leaves": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "age_of_dependent": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_entitlement_override": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "leave_percentage": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_babies_adopted_children": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_child_dependents": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_births": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "number_of_previous_maternity_leaves": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712158226.208713, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_organization_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_organization_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_organization_history_data.csv", "original_file_path": "seeds/workday_worker_position_organization_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_organization_history_data"], "alias": "workday_worker_position_organization_history_data", "checksum": {"name": "sha256", "checksum": "79d43cf1c2b3425d03d23b014705613022d55eb282108d972cbeb58bf55ed0d3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712158226.210025, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_data.csv", "original_file_path": "seeds/workday_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_data", "fqn": ["workday_integration_tests", "workday_job_family_data"], "alias": "workday_job_family_data", "checksum": {"name": "sha256", "checksum": "727b3c01934259786bd85a1bed73ac70611363839a611bdea640bf9bd95cba2d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712158226.2112598, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_worker_position_history_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_worker_position_history_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_worker_position_history_data.csv", "original_file_path": "seeds/workday_worker_position_history_data.csv", "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "fqn": ["workday_integration_tests", "workday_worker_position_history_data"], "alias": "workday_worker_position_history_data", "checksum": {"name": "sha256", "checksum": "434f6ed5606c6606bbbf41d1427584a275a825ae285f88c1b12d2c3d7da3c07d"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "float", "business_site_summary_scheduled_weekly_hours": "float", "default_weekly_hours": "float", "start_date": "timestamp", "end_date": "timestamp"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "business_site_summary_scheduled_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "default_weekly_hours": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "start_date": "timestamp", "end_date": "timestamp"}, "created_at": 1712158226.213011, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_name_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_name_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_name_data.csv", "original_file_path": "seeds/workday_person_name_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_name_data", "fqn": ["workday_integration_tests", "workday_person_name_data"], "alias": "workday_person_name_data", "checksum": {"name": "sha256", "checksum": "104b5d938091b1587548c91aa46a0e5b38ebccec81cbc569993b8a971b116881"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712158226.21453, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_data.csv", "original_file_path": "seeds/workday_organization_role_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "fqn": ["workday_integration_tests", "workday_organization_role_data"], "alias": "workday_organization_role_data", "checksum": {"name": "sha256", "checksum": "b3e1187179e8afc95fbf180efac810d5a8f4f57e118393c60fca2c2c7f09e024"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712158226.21573, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_military_service_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_military_service_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_military_service_data.csv", "original_file_path": "seeds/workday_military_service_data.csv", "unique_id": "seed.workday_integration_tests.workday_military_service_data", "fqn": ["workday_integration_tests", "workday_military_service_data"], "alias": "workday_military_service_data", "checksum": {"name": "sha256", "checksum": "f3d25deafee7b4188b4bdfe815b40397bdd80cd135db866b9ddf2b3a0b346b07"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712158226.21698, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_data.csv", "original_file_path": "seeds/workday_position_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_data", "fqn": ["workday_integration_tests", "workday_position_data"], "alias": "workday_position_data", "checksum": {"name": "sha256", "checksum": "f31ec8364b56eb931ab406b25be5cfc0301bba65908bc448aeb170ed79805894"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true, "primary_compensation_basis": "float", "primary_compensation_basis_amount_change": "float", "primary_compensation_basis_percent_change": "float"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "primary_compensation_basis": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_amount_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}", "primary_compensation_basis_percent_change": "{{ 'FLOAT64' if target.type == 'bigquery' else 'float' }}"}, "created_at": 1712158226.21832, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_data.csv", "original_file_path": "seeds/workday_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_data", "fqn": ["workday_integration_tests", "workday_organization_data"], "alias": "workday_organization_data", "checksum": {"name": "sha256", "checksum": "e0ece91ba5a270a01be9bbe91ea46b49c9e5c3c56e7234b5a597c9d81f63b4cc"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712158226.219764, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_organization_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_organization_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_organization_data.csv", "original_file_path": "seeds/workday_position_organization_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "fqn": ["workday_integration_tests", "workday_position_organization_data"], "alias": "workday_position_organization_data", "checksum": {"name": "sha256", "checksum": "c0cd526bcf4b91f1842484875ce4fe803d510862d4d4ddba72c6d1724c8e9ea8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712158226.22109, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_profile_data.csv", "original_file_path": "seeds/workday_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_profile_data"], "alias": "workday_job_profile_data", "checksum": {"name": "sha256", "checksum": "677a184272cdd2e0d746d5616d33ad4ce394c74e759f73bf0e51f8dda5cc96e4"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712158226.222831, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_person_contact_email_address_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_person_contact_email_address_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_person_contact_email_address_data.csv", "original_file_path": "seeds/workday_person_contact_email_address_data.csv", "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "fqn": ["workday_integration_tests", "workday_person_contact_email_address_data"], "alias": "workday_person_contact_email_address_data", "checksum": {"name": "sha256", "checksum": "4641c91d789ed134081a55cf0aaafc5a61a7ea075904691a353389552038dbe9"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712158226.2243981, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_job_family_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_job_family_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_job_family_data.csv", "original_file_path": "seeds/workday_organization_job_family_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "fqn": ["workday_integration_tests", "workday_organization_job_family_data"], "alias": "workday_organization_job_family_data", "checksum": {"name": "sha256", "checksum": "2db2016b7eea202409836faff94ba2f168ce13dfd9e00ee1d1591eb85315cd47"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712158226.225767, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_job_family_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_job_family_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_job_family_job_profile_data.csv", "original_file_path": "seeds/workday_job_family_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "fqn": ["workday_integration_tests", "workday_job_family_job_profile_data"], "alias": "workday_job_family_job_profile_data", "checksum": {"name": "sha256", "checksum": "bc99975db9382af8f66fd46976db4cca2a987b1e9de24d17ceeb1ebf6e5ecb68"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712158226.2271109, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_position_job_profile_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_position_job_profile_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_position_job_profile_data.csv", "original_file_path": "seeds/workday_position_job_profile_data.csv", "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "fqn": ["workday_integration_tests", "workday_position_job_profile_data"], "alias": "workday_position_job_profile_data", "checksum": {"name": "sha256", "checksum": "e5d675b82b521d6856d8f516209642745a595a31d88d147f6561bcbc970433b3"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712158226.228229, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "seed.workday_integration_tests.workday_organization_role_worker_data": {"database": "postgres", "schema": "workday_integration_tests", "name": "workday_organization_role_worker_data", "resource_type": "seed", "package_name": "workday_integration_tests", "path": "workday_organization_role_worker_data.csv", "original_file_path": "seeds/workday_organization_role_worker_data.csv", "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "fqn": ["workday_integration_tests", "workday_organization_role_worker_data"], "alias": "workday_organization_role_worker_data", "checksum": {"name": "sha256", "checksum": "e24079f7ed64c407174d546132b71c69a9b1eaa9951b5a91772a3da7b3ff95f8"}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "group": null, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "delimiter": ",", "quote_columns": true}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift', 'postgres') else false }}", "column_types": {"_fivetran_synced": "timestamp", "_fivetran_start": "timestamp", "_fivetran_end": "timestamp", "_fivetran_active": "boolean"}}, "created_at": 1712158226.229347, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "raw_code": "", "root_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "depends_on": {"macros": []}}, "model.workday.workday__employee_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_overview", "resource_type": "model", "package_name": "workday", "path": "workday__employee_overview.sql", "original_file_path": "models/workday__employee_overview.sql", "unique_id": "model.workday.workday__employee_overview", "fqn": ["workday", "workday__employee_overview"], "alias": "workday__employee_overview", "checksum": {"name": "sha256", "checksum": "b6fe9afa14aa393b3c40d1a669d182f20e556adacaa1ec46b05ad800bd4141a7"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees.", "columns": {"employee_id": {"name": "employee_id", "description": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_user_active": {"name": "is_user_active", "description": "Is the user currently active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed": {"name": "is_employed", "description": "Is the worker currently employed?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "departure_date": {"name": "departure_date", "description": "The departure date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_as_worker": {"name": "days_as_worker", "description": "Number of days since the worker has been created.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Has the worker been regrettably terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_codes": {"name": "ethnicity_codes", "description": "String aggregation of all ethnicity codes associated with an individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The military status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The position start date for this employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The position end date for this employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "The position effective date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The position location of the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_employed": {"name": "days_employed", "description": "The number of days the employee held their position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_one_year": {"name": "is_employed_one_year", "description": "Tracks whether a worker was employed at least one year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_five_years": {"name": "is_employed_five_years", "description": "Tracks whether a worker was employed at least five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_ten_years": {"name": "is_employed_ten_years", "description": "Tracks whether a worker was employed at least ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_twenty_years": {"name": "is_employed_twenty_years", "description": "Tracks whether a worker was employed at least twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_employed_thirty_years": {"name": "is_employed_thirty_years", "description": "Tracks whether a worker was employed at least thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_one_year": {"name": "is_current_employee_one_year", "description": "Tracks whether a worker is active for more than a year.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_five_years": {"name": "is_current_employee_five_years", "description": "Tracks whether a worker is active for more than five years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "description": "Tracks whether a worker is active for more than ten years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "description": "Tracks whether a worker is active for more than twenty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "description": "Tracks whether a worker is active for more than thirty years.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712158227.214816, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"", "raw_code": "with employee_surrogate_key as (\n \n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'source_relation', 'position_id', 'position_start_date']) }} as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from {{ ref('int_workday__worker_employee_enhanced') }} \n)\n\nselect * \nfrom employee_surrogate_key", "language": "sql", "refs": [{"name": "int_workday__worker_employee_enhanced", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.int_workday__worker_employee_enhanced"]}, "compiled_path": "target/compiled/workday/models/workday__employee_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n), employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from __dbt__cte__int_workday__worker_employee_enhanced \n)\n\nselect * \nfrom employee_surrogate_key", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_details", "sql": " __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n)"}, {"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__personal_details", "sql": " __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n)"}, {"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_position_enriched", "sql": " __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n)"}, {"id": "model.workday.int_workday__worker_employee_enhanced", "sql": " __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__job_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__job_overview", "resource_type": "model", "package_name": "workday", "path": "workday__job_overview.sql", "original_file_path": "models/workday__job_overview.sql", "unique_id": "model.workday.workday__job_overview", "fqn": ["workday", "workday__job_overview"], "alias": "workday__job_overview", "checksum": {"name": "sha256", "checksum": "b50072f5be5632d10a64a1e777aa62ae6f2283f22244bd033fea5fc20ce66165"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "The private title associated with the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "The summary of the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_codes": {"name": "job_family_codes", "description": "String array of all job family codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summaries": {"name": "job_family_summaries", "description": "String array of all job family summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_codes": {"name": "job_family_group_codes", "description": "String array of all job family group codes assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summaries": {"name": "job_family_group_summaries", "description": "String array of all job family group summaries assigned to a job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712158227.217103, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"", "raw_code": "with job_profile_data as (\n\n select * \n from {{ ref('stg_workday__job_profile') }}\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_profile') }}\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from {{ ref('stg_workday__job_family') }}\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from {{ ref('stg_workday__job_family_job_family_group') }}\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from {{ ref('stg_workday__job_family_group') }}\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_code', \"', '\" ) }} as job_family_codes,\n {{ fivetran_utils.string_agg('distinct job_family_data.job_family_summary', \"', '\" ) }} as job_family_summaries, \n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_code', \"', '\" ) }} as job_family_group_codes,\n {{ fivetran_utils.string_agg('distinct job_family_group_data.job_family_group_summary', \"', '\" ) }} as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n {{ dbt_utils.group_by(7) }}\n)\n\nselect *\nfrom job_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile", "package": null, "version": null}, {"name": "stg_workday__job_family", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}, {"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg", "macro.dbt_utils.group_by"], "nodes": ["model.workday.stg_workday__job_profile", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/workday__job_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), job_profile_data as (\n\n select * \n from __dbt__cte__stg_workday__job_profile\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_profile\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from __dbt__cte__stg_workday__job_family\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_family_group\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from __dbt__cte__stg_workday__job_family_group\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__position_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__position_overview", "resource_type": "model", "package_name": "workday", "path": "workday__position_overview.sql", "original_file_path": "models/workday__position_overview.sql", "unique_id": "model.workday.workday__position_overview", "fqn": ["workday", "workday__position_overview"], "alias": "workday__position_overview", "checksum": {"name": "sha256", "checksum": "567db8a61cd72c8faec1aac1963cbf05b776d0fe170a7f8c0ae8ea3d076464d3"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts.", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712158227.219912, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"", "raw_code": "with position_data as (\n\n select *\n from {{ ref('stg_workday__position') }}\n),\n\nposition_job_profile_data as (\n\n select *\n from {{ ref('stg_workday__position_job_profile') }}\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}, {"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/workday__position_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), position_data as (\n\n select *\n from __dbt__cte__stg_workday__position\n),\n\nposition_job_profile_data as (\n\n select *\n from __dbt__cte__stg_workday__position_job_profile\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__organization_overview": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__organization_overview", "resource_type": "model", "package_name": "workday", "path": "workday__organization_overview.sql", "original_file_path": "models/workday__organization_overview.sql", "unique_id": "model.workday.workday__organization_overview", "fqn": ["workday", "workday__organization_overview"], "alias": "workday__organization_overview", "checksum": {"name": "sha256", "checksum": "0df19685be8a2ffee5d5e16069cbc9771cc639372004929a73f500f9d7c59798"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table"}, "created_at": 1712158227.2218251, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"", "raw_code": "with organization_data as (\n\n select * \n from {{ ref('stg_workday__organization') }}\n),\n\norganization_role_data as (\n\n select * \n from {{ ref('stg_workday__organization_role') }}\n),\n\nworker_position_organization as (\n\n select *\n from {{ ref('stg_workday__worker_position_organization') }}\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}, {"name": "stg_workday__organization_role", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/workday__organization_overview.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), organization_data as (\n\n select * \n from __dbt__cte__stg_workday__organization\n),\n\norganization_role_data as (\n\n select * \n from __dbt__cte__stg_workday__organization_role\n),\n\nworker_position_organization as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_organization\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position.sql", "original_file_path": "models/staging/stg_workday__position.sql", "unique_id": "model.workday.stg_workday__position", "fqn": ["workday", "staging", "stg_workday__position"], "alias": "stg_workday__position", "checksum": {"name": "sha256", "checksum": "a8eea235110df116f941d206b25f965ace56ec776662153af05d70a2bdf1cd4b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_academic_tenure_eligible": {"name": "is_academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_overlap": {"name": "is_available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_recruiting": {"name": "is_available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.3978088, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_base')),\n staging_columns=get_position_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_base", "package": null, "version": null}, {"name": "stg_workday__position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_group"], "alias": "stg_workday__job_family_group", "checksum": {"name": "sha256", "checksum": "91495541dd20c1e46fd9fc7074605bd8d766196513173eb2e6d6d2abd779474a"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_summary": {"name": "job_family_group_summary", "description": "The summary of the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.3917701, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_group_base')),\n staging_columns=get_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_profile.sql", "original_file_path": "models/staging/stg_workday__job_family_job_profile.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile", "fqn": ["workday", "staging", "stg_workday__job_family_job_profile"], "alias": "stg_workday__job_family_job_profile", "checksum": {"name": "sha256", "checksum": "22f926dc89704581204ef1db5906e7fc184c404d53dc5141b47056de357d6066"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.390414, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_profile_base')),\n staging_columns=get_job_family_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role_worker.sql", "original_file_path": "models/staging/stg_workday__organization_role_worker.sql", "unique_id": "model.workday.stg_workday__organization_role_worker", "fqn": ["workday", "staging", "stg_workday__organization_role_worker"], "alias": "stg_workday__organization_role_worker", "checksum": {"name": "sha256", "checksum": "6cbf3f20ac378d061a6c9034bd75c08e7cf7079ac12c8b167c31e6e1c0e54fa6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_worker_code": {"name": "organization_worker_code", "description": "The worker code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.3925738, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_worker_base')),\n staging_columns=get_organization_role_worker_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_worker_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role_worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_role.sql", "original_file_path": "models/staging/stg_workday__organization_role.sql", "unique_id": "model.workday.stg_workday__organization_role", "fqn": ["workday", "staging", "stg_workday__organization_role"], "alias": "stg_workday__organization_role", "checksum": {"name": "sha256", "checksum": "d20118b8c8234cda8e96b2df978fdce2aa46bbdb356ebac5b29680663d105e05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_id": {"name": "organization_role_id", "description": "The role id associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.392104, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_role_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_role_base')),\n staging_columns=get_organization_role_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_role_base", "package": null, "version": null}, {"name": "stg_workday__organization_role_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_role_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_role_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_role.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position.sql", "original_file_path": "models/staging/stg_workday__worker_position.sql", "unique_id": "model.workday.stg_workday__worker_position", "fqn": ["workday", "staging", "stg_workday__worker_position"], "alias": "stg_workday__worker_position", "checksum": {"name": "sha256", "checksum": "f812d4b0a33146284f402362816bc05ca7a5e85fa228207ea0df356396906025"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the positions held by workers in the Workday system", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.408329, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_base')),\n staging_columns=get_worker_position_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_contact_email_address.sql", "original_file_path": "models/staging/stg_workday__person_contact_email_address.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address", "fqn": ["workday", "staging", "stg_workday__person_contact_email_address"], "alias": "stg_workday__person_contact_email_address", "checksum": {"name": "sha256", "checksum": "fc93cd7747b3087ad994ab34f0feec9a8293e02f719a8ddb64bf652d786f50e5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_contact_email_address_id": {"name": "person_contact_email_address_id", "description": "The identifier of the personal contact email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.405918, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_contact_email_address_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_contact_email_address_base')),\n staging_columns=get_person_contact_email_address_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_contact_email_address_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_contact_email_address_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_contact_email_address.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_job_profile.sql", "original_file_path": "models/staging/stg_workday__position_job_profile.sql", "unique_id": "model.workday.stg_workday__position_job_profile", "fqn": ["workday", "staging", "stg_workday__position_job_profile"], "alias": "stg_workday__position_job_profile", "checksum": {"name": "sha256", "checksum": "1bd56f05d8c66dff4d5741a2ca3963cd4859341229686f1e9155289aa86ca3f3"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_job_profile_name": {"name": "position_job_profile_name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.398704, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_job_profile_base')),\n staging_columns=get_position_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile_base", "package": null, "version": null}, {"name": "stg_workday__position_job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_position_organization.sql", "original_file_path": "models/staging/stg_workday__worker_position_organization.sql", "unique_id": "model.workday.stg_workday__worker_position_organization", "fqn": ["workday", "staging", "stg_workday__worker_position_organization"], "alias": "stg_workday__worker_position_organization", "checksum": {"name": "sha256", "checksum": "c06c632d0c5bc211074ad78e1d36ea19e68ad03423068316bd207e3978472684"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.413226, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_organization_base')),\n staging_columns=get_worker_position_organization_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_profile.sql", "original_file_path": "models/staging/stg_workday__job_profile.sql", "unique_id": "model.workday.stg_workday__job_profile", "fqn": ["workday", "staging", "stg_workday__job_profile"], "alias": "stg_workday__job_profile", "checksum": {"name": "sha256", "checksum": "c58fefde4e2bab4dfcc7d23f270ba41e4b3a785de9c0f221854b44ce088753d6"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_job_code_in_name": {"name": "is_include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_public_job": {"name": "is_public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_summary": {"name": "job_summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_title": {"name": "job_title", "description": "The title of the job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.390069, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_profile_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_profile_base')),\n staging_columns=get_job_profile_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_profile_base", "package": null, "version": null}, {"name": "stg_workday__job_profile_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_profile_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_profile_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_profile.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__position_organization.sql", "original_file_path": "models/staging/stg_workday__position_organization.sql", "unique_id": "model.workday.stg_workday__position_organization", "fqn": ["workday", "staging", "stg_workday__position_organization"], "alias": "stg_workday__position_organization", "checksum": {"name": "sha256", "checksum": "3e066e026cb6c5a57a3780d60185e331275a40666ec842bd51a9f5214c8106f0"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.3962822, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__position_organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__position_organization_base')),\n staging_columns=get_position_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__position_organization_base", "package": null, "version": null}, {"name": "stg_workday__position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_position_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__position_organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__position_organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker_leave_status.sql", "original_file_path": "models/staging/stg_workday__worker_leave_status.sql", "unique_id": "model.workday.stg_workday__worker_leave_status", "fqn": ["workday", "staging", "stg_workday__worker_leave_status"], "alias": "stg_workday__worker_leave_status", "checksum": {"name": "sha256", "checksum": "7a780769764a426e346115891309d38326b383297d43976f5b368feefe555e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the leave status of workers in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_benefits_effect": {"name": "is_benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_caesarean_section_birth": {"name": "is_caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_continuous_service_accrual_effect": {"name": "is_continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_multiple_child_indicator": {"name": "is_multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_on_leave": {"name": "is_on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_paid_time_off_accrual_effect": {"name": "is_paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_payroll_effect": {"name": "is_payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_single_parent_indicator": {"name": "is_single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_stock_vesting_effect": {"name": "is_stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_related": {"name": "is_work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.412715, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_leave_status_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_leave_status_base')),\n staging_columns=get_worker_leave_status_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}, {"name": "stg_workday__worker_leave_status_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_leave_status_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__worker_leave_status_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker_leave_status.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__person_name.sql", "original_file_path": "models/staging/stg_workday__person_name.sql", "unique_id": "model.workday.stg_workday__person_name", "fqn": ["workday", "staging", "stg_workday__person_name"], "alias": "stg_workday__person_name", "checksum": {"name": "sha256", "checksum": "da74b8517c3659e32fa4600075b2c78fd9edf3b9d67b062a39aceeb7007a8106"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the name information for an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "person_name_type": {"name": "person_name_type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.404376, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__person_name_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__person_name_base')),\n staging_columns=get_person_name_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__person_name_base", "package": null, "version": null}, {"name": "stg_workday__person_name_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_person_name_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__person_name_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__person_name.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information_ethnicity.sql", "original_file_path": "models/staging/stg_workday__personal_information_ethnicity.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity", "fqn": ["workday", "staging", "stg_workday__personal_information_ethnicity"], "alias": "stg_workday__personal_information_ethnicity", "checksum": {"name": "sha256", "checksum": "1cddb347cc063152fdf7519ab20008979c18819cf57eda40f40b5c0ae4df795c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.404856, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_ethnicity_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_ethnicity_base')),\n staging_columns=get_personal_information_ethnicity_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_ethnicity_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information_ethnicity.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization_job_family.sql", "original_file_path": "models/staging/stg_workday__organization_job_family.sql", "unique_id": "model.workday.stg_workday__organization_job_family", "fqn": ["workday", "staging", "stg_workday__organization_job_family"], "alias": "stg_workday__organization_job_family", "checksum": {"name": "sha256", "checksum": "25a30264c730bb3d4ed427d08d7262415aa13c72bda44f292aef305dabadb4dc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.3929, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_job_family_base')),\n staging_columns=get_organization_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family_base", "package": null, "version": null}, {"name": "stg_workday__organization_job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization_job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family.sql", "original_file_path": "models/staging/stg_workday__job_family.sql", "unique_id": "model.workday.stg_workday__job_family", "fqn": ["workday", "staging", "stg_workday__job_family"], "alias": "stg_workday__job_family", "checksum": {"name": "sha256", "checksum": "2b55aade2b7c5f3aaa66b8689637aecadf3960de67f0df66ecd9d511ec3f4a2c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_summary": {"name": "job_family_summary", "description": "The summary of the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.39098, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_base')),\n staging_columns=get_job_family_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_base", "package": null, "version": null}, {"name": "stg_workday__job_family_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__military_service.sql", "original_file_path": "models/staging/stg_workday__military_service.sql", "unique_id": "model.workday.stg_workday__military_service", "fqn": ["workday", "staging", "stg_workday__military_service"], "alias": "stg_workday__military_service", "checksum": {"name": "sha256", "checksum": "2723e93ad3a6b887aa7d9b8c5d97bee2714a4b0d8ff0c80decb8be429e77b709"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents information about an individual's military service in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "military_status": {"name": "military_status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.4053519, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__military_service_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__military_service_base')),\n staging_columns=get_military_service_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__military_service_base", "package": null, "version": null}, {"name": "stg_workday__military_service_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_military_service_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__military_service_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__military_service.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__personal_information.sql", "original_file_path": "models/staging/stg_workday__personal_information.sql", "unique_id": "model.workday.stg_workday__personal_information", "fqn": ["workday", "staging", "stg_workday__personal_information"], "alias": "stg_workday__personal_information", "checksum": {"name": "sha256", "checksum": "99c2547b9cba3b9798c54da22173f0f4e2d0db3f9623673fc37f0c6f081646bd"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "The personal information associated with each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.40335, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__personal_information_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_base')),\n staging_columns=get_personal_information_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__personal_information_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__personal_information.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__job_family_job_family_group.sql", "original_file_path": "models/staging/stg_workday__job_family_job_family_group.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group", "fqn": ["workday", "staging", "stg_workday__job_family_job_family_group"], "alias": "stg_workday__job_family_job_family_group", "checksum": {"name": "sha256", "checksum": "6fd4740d69f85753d0bf54a02768c8d9b8887e6e58481511bb3067f6dbe9b7eb"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.3913019, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__job_family_job_family_group_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__job_family_job_family_group_base')),\n staging_columns=get_job_family_job_family_group_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}, {"name": "stg_workday__job_family_job_family_group_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_job_family_job_family_group_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__job_family_job_family_group_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__job_family_job_family_group.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__worker.sql", "original_file_path": "models/staging/stg_workday__worker.sql", "unique_id": "model.workday.stg_workday__worker", "fqn": ["workday", "staging", "stg_workday__worker"], "alias": "stg_workday__worker", "checksum": {"name": "sha256", "checksum": "eabb44e7218212b2cfa0ed153715acd2cd920d91f48a20884f237d3307a8d88d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.401987, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__worker_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_base')),\n staging_columns=get_worker_history_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where {{ dbt.current_timestamp() }} between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt.current_timestamp"], "nodes": ["model.workday.stg_workday__worker_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__worker.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization", "resource_type": "model", "package_name": "workday", "path": "staging/stg_workday__organization.sql", "original_file_path": "models/staging/stg_workday__organization.sql", "unique_id": "model.workday.stg_workday__organization", "fqn": ["workday", "staging", "stg_workday__organization"], "alias": "stg_workday__organization", "checksum": {"name": "sha256", "checksum": "ddc0897b633fd79f01412ef8b78788ca8168409bbdd6a076e7ae77eae46e5b4c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Identifier for the organization.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_available_for_hire": {"name": "is_available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_description": {"name": "organization_description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hiring_freeze": {"name": "is_hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_manager_in_name": {"name": "is_include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_include_organization_code_in_name": {"name": "is_include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_location": {"name": "organization_location", "description": "The location of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_name": {"name": "organization_name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_sub_type": {"name": "organization_sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_type": {"name": "organization_type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/staging/stg_workday.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "ephemeral"}, "created_at": 1712158227.395172, "relation_name": null, "raw_code": "with base as (\n\n select * \n from {{ ref('stg_workday__organization_base') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__organization_base')),\n staging_columns=get_organization_columns()\n )\n }}\n {{ fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases') \n }}\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__organization_base", "package": null, "version": null}, {"name": "stg_workday__organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_organization_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation"], "nodes": ["model.workday.stg_workday__organization_base"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday__organization.sql", "compiled": true, "compiled_code": "with base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_family_group_base"], "alias": "stg_workday__job_family_job_family_group_base", "checksum": {"name": "sha256", "checksum": "e2032528b0352adb9b447a62934a158666a681a00bfd8821c454342850710217"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.599139, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_family_group"], ["workday", "job_family_job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_ethnicity_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_ethnicity_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_ethnicity_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_ethnicity_base"], "alias": "stg_workday__personal_information_ethnicity_base", "checksum": {"name": "sha256", "checksum": "83d4f52d542558f35ac9c4bca924abf5d50bd6d060b57de257d9b3a8011375bc"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.616697, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_ethnicity', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_ethnicity',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_ethnicity"], ["workday", "personal_information_ethnicity"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_ethnicity_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_group_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_group_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_group_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_group_base.sql", "unique_id": "model.workday.stg_workday__job_family_group_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_group_base"], "alias": "stg_workday__job_family_group_base", "checksum": {"name": "sha256", "checksum": "bea26ff96c14d3e08fd64f97fbc8fbefc3cc6cc6726f7eb27132f966e3ace85d"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.62046, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_group', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_group',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_group"], ["workday", "job_family_group"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_group_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_organization_base.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_organization_base"], "alias": "stg_workday__worker_position_organization_base", "checksum": {"name": "sha256", "checksum": "42729b33f262620d892e95707fef1e711b95c66a4df3fb612d1eb73d024a7e38"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.625779, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_organization_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_organization_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_organization_history"], ["workday", "worker_position_organization_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_base.sql", "original_file_path": "models/staging/base/stg_workday__position_base.sql", "unique_id": "model.workday.stg_workday__position_base", "fqn": ["workday", "staging", "base", "stg_workday__position_base"], "alias": "stg_workday__position_base", "checksum": {"name": "sha256", "checksum": "4ccfff02ed1a6e0e94868985aa08ad5eaac5c78e608ae24eb36ebeb3da3b1443"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.630154, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position"], ["workday", "position"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_contact_email_address_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_contact_email_address_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_contact_email_address_base.sql", "original_file_path": "models/staging/base/stg_workday__person_contact_email_address_base.sql", "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "fqn": ["workday", "staging", "base", "stg_workday__person_contact_email_address_base"], "alias": "stg_workday__person_contact_email_address_base", "checksum": {"name": "sha256", "checksum": "2bfb4c913c999795db2691f4b3bc115fbae9bbad6e4eb59ad305bc057e7e0e5b"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.6341372, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_contact_email_address', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_contact_email_address',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_contact_email_address"], ["workday", "person_contact_email_address"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_contact_email_address_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_job_family_base.sql", "unique_id": "model.workday.stg_workday__organization_job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_job_family_base"], "alias": "stg_workday__organization_job_family_base", "checksum": {"name": "sha256", "checksum": "8a999ebe4367e8c4e6994124834c09f9d1eeb411d6e00353c9995bc0900ee1ea"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.639167, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_job_family"], ["workday", "organization_job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_job_profile_base"], "alias": "stg_workday__job_family_job_profile_base", "checksum": {"name": "sha256", "checksum": "61149fbd447008acfc11c0cce919a3dcdfc878b1e43f1a904bed99cd0e12e934"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.6442208, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family_job_profile"], ["workday", "job_family_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_organization_base.sql", "original_file_path": "models/staging/base/stg_workday__position_organization_base.sql", "unique_id": "model.workday.stg_workday__position_organization_base", "fqn": ["workday", "staging", "base", "stg_workday__position_organization_base"], "alias": "stg_workday__position_organization_base", "checksum": {"name": "sha256", "checksum": "e9e1144f5ba976bda0612b7899e5c418c8f2880a69bb98c7bd61826b438cf705"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.649378, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_organization"], ["workday", "position_organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_base.sql", "unique_id": "model.workday.stg_workday__organization_role_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_base"], "alias": "stg_workday__organization_role_base", "checksum": {"name": "sha256", "checksum": "7da1ae4c5e420c6a429f6082802496377da44449aefb62728c64e31c64923832"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.653582, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role"], ["workday", "organization_role"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_leave_status_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_leave_status_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_leave_status_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_leave_status_base.sql", "unique_id": "model.workday.stg_workday__worker_leave_status_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_leave_status_base"], "alias": "stg_workday__worker_leave_status_base", "checksum": {"name": "sha256", "checksum": "25de6c8505c09d17787931dd2ad7fb497ee4fcc6ad9c076417ac327d38b2cee5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.657325, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_leave_status', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_leave_status',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_leave_status"], ["workday", "worker_leave_status"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_leave_status_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_family_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_family_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_family_base.sql", "original_file_path": "models/staging/base/stg_workday__job_family_base.sql", "unique_id": "model.workday.stg_workday__job_family_base", "fqn": ["workday", "staging", "base", "stg_workday__job_family_base"], "alias": "stg_workday__job_family_base", "checksum": {"name": "sha256", "checksum": "a6d51501e8a9f185408e2c8c963b04ed89e1f87260216f3e994f324119a0f804"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.660954, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_family', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_family',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_family"], ["workday", "job_family"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_family"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_family_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__job_profile_base.sql", "unique_id": "model.workday.stg_workday__job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__job_profile_base"], "alias": "stg_workday__job_profile_base", "checksum": {"name": "sha256", "checksum": "ddeb40a89a0b03a8748dae6a224bade7705498441a9f295682bd24ef643fc563"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.6648362, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "job_profile"], ["workday", "job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_base.sql", "unique_id": "model.workday.stg_workday__organization_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_base"], "alias": "stg_workday__organization_base", "checksum": {"name": "sha256", "checksum": "ee0cb72047f2c7760251317c86318a9f46c5a8be9113fcb7d81b269e1b4b4e0c"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.669448, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization"], ["workday", "organization"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__organization_role_worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__organization_role_worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__organization_role_worker_base.sql", "original_file_path": "models/staging/base/stg_workday__organization_role_worker_base.sql", "unique_id": "model.workday.stg_workday__organization_role_worker_base", "fqn": ["workday", "staging", "base", "stg_workday__organization_role_worker_base"], "alias": "stg_workday__organization_role_worker_base", "checksum": {"name": "sha256", "checksum": "74e858892ef8851aec9a06e4e05dbca91361b09939c257c69db38356d59acf05"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.6731892, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='organization_role_worker', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='organization_role_worker',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "organization_role_worker"], ["workday", "organization_role_worker"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__organization_role_worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_base.sql", "unique_id": "model.workday.stg_workday__worker_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_base"], "alias": "stg_workday__worker_base", "checksum": {"name": "sha256", "checksum": "5f0f82a654f8f22d1e129cebdf87aa064125f5deeeca51c50d53f249dd0d96e1"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.677412, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_history"], ["workday", "worker_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__position_job_profile_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__position_job_profile_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__position_job_profile_base.sql", "original_file_path": "models/staging/base/stg_workday__position_job_profile_base.sql", "unique_id": "model.workday.stg_workday__position_job_profile_base", "fqn": ["workday", "staging", "base", "stg_workday__position_job_profile_base"], "alias": "stg_workday__position_job_profile_base", "checksum": {"name": "sha256", "checksum": "7a2843eac9ceff71866501a413274121b15a2e8d1337b83962e0045cb1b403c5"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.6812742, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='position_job_profile', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='position_job_profile',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "position_job_profile"], ["workday", "position_job_profile"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__position_job_profile_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__worker_position_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__worker_position_base.sql", "original_file_path": "models/staging/base/stg_workday__worker_position_base.sql", "unique_id": "model.workday.stg_workday__worker_position_base", "fqn": ["workday", "staging", "base", "stg_workday__worker_position_base"], "alias": "stg_workday__worker_position_base", "checksum": {"name": "sha256", "checksum": "8a8431d94738ad8c342bba23f86ace1e658cf63ac9254481bf8463622129514e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.685013, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='worker_position_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='worker_position_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "worker_position_history"], ["workday", "worker_position_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.worker_position_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__worker_position_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__person_name_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__person_name_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__person_name_base.sql", "original_file_path": "models/staging/base/stg_workday__person_name_base.sql", "unique_id": "model.workday.stg_workday__person_name_base", "fqn": ["workday", "staging", "base", "stg_workday__person_name_base"], "alias": "stg_workday__person_name_base", "checksum": {"name": "sha256", "checksum": "85c57cfa1fe54db08605b75e32060e1bd488a4f71eae27b2cb8a2805ac4ac655"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.68985, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='person_name', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='person_name',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "person_name"], ["workday", "person_name"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.person_name"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__person_name_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__military_service_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__military_service_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__military_service_base.sql", "original_file_path": "models/staging/base/stg_workday__military_service_base.sql", "unique_id": "model.workday.stg_workday__military_service_base", "fqn": ["workday", "staging", "base", "stg_workday__military_service_base"], "alias": "stg_workday__military_service_base", "checksum": {"name": "sha256", "checksum": "9478cb8eea5671a0261ed280e3723a9ad826ee22b77b9dfe709be5fc85fd295e"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.693857, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='military_service', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='military_service',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "military_service"], ["workday", "military_service"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.military_service"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__military_service_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_base": {"database": "postgres", "schema": "workday_integration_tests_stg_workday", "name": "stg_workday__personal_information_base", "resource_type": "model", "package_name": "workday", "path": "staging/base/stg_workday__personal_information_base.sql", "original_file_path": "models/staging/base/stg_workday__personal_information_base.sql", "unique_id": "model.workday.stg_workday__personal_information_base", "fqn": ["workday", "staging", "base", "stg_workday__personal_information_base"], "alias": "stg_workday__personal_information_base", "checksum": {"name": "sha256", "checksum": "0767af75bcb79f32dd324d8bf4e57ffc0d0014bda0609b426df78cdc17566e96"}, "config": {"enabled": true, "alias": null, "schema": "stg_workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "stg_workday", "materialized": "view"}, "created_at": 1712158226.697793, "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"", "raw_code": "{{\n fivetran_utils.union_data(\n table_identifier='personal_information_history', \n database_variable='workday_database', \n schema_variable='workday_schema', \n default_database=target.database,\n default_schema='workday',\n default_variable='personal_information_history',\n union_schema_variable='workday_union_schemas',\n union_database_variable='workday_union_databases'\n )\n}}", "language": "sql", "refs": [], "sources": [["workday", "personal_information_history"], ["workday", "personal_information_history"]], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.union_data"], "nodes": ["source.workday.workday.personal_information_history"]}, "compiled_path": "target/compiled/workday/models/staging/base/stg_workday__personal_information_base.sql", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__monthly_summary": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__monthly_summary", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__monthly_summary.sql", "original_file_path": "models/workday_history/workday__monthly_summary.sql", "unique_id": "model.workday.workday__monthly_summary", "fqn": ["workday", "workday_history", "workday__monthly_summary"], "alias": "workday__monthly_summary", "checksum": {"name": "sha256", "checksum": "c2c7661c8324a927d8bf739bdcc37d21d650b2aa0ca769ee77205b47dc81e804"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a month, aggregated from the last day of each month of the employee daily history. This captures monthly metrics of workers, such as average salary, churned and retained employees, etc.", "columns": {"metrics_month": {"name": "metrics_month", "description": "Month in which metrics are being aggregated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "new_employees": {"name": "new_employees", "description": "New employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_employees": {"name": "churned_employees", "description": "Churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_voluntary_employees": {"name": "churned_voluntary_employees", "description": "Voluntary churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_involuntary_employees": {"name": "churned_involuntary_employees", "description": "Involuntary churned employees that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "churned_workers": {"name": "churned_workers", "description": "Churned workers that came in this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_employees": {"name": "active_employees", "description": "Employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_male_employees": {"name": "active_male_employees", "description": "Male employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_female_employees": {"name": "active_female_employees", "description": "Female employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_workers": {"name": "active_workers", "description": "Workers considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_known_gender_employees": {"name": "active_known_gender_employees", "description": "Known gender employees considered active this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_primary_compensation": {"name": "avg_employee_primary_compensation", "description": "Average primary compensation salary of employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_base_pay": {"name": "avg_employee_base_pay", "description": "Average base pay of the employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_employee_salary_and_allowances": {"name": "avg_employee_salary_and_allowances", "description": "Average salary and allowances of the employee that month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_days_as_employee": {"name": "avg_days_as_employee", "description": "Average days employee has been active month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_primary_compensation": {"name": "avg_worker_primary_compensation", "description": "Average primary compensation for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_base_pay": {"name": "avg_worker_base_pay", "description": "Average base pay for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_worker_salary_and_allowances": {"name": "avg_worker_salary_and_allowances", "description": "Average salary plus allowances for the worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "avg_days_as_worker": {"name": "avg_days_as_worker", "description": "Average days as a worker this month.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712158227.52061, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }} \n\nwith row_month_partition as (\n\n select *, \n cast({{ dbt.date_trunc(\"month\", \"date_day\") }} as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from {{ ref('workday__employee_daily_history') }}\n),\n\nend_of_month_history as (\n \n select *,\n {{ dbt.current_timestamp() }} as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then {{ dbt.datediff(\"hire_date\", \"current_date\", \"day\") }}\n else {{ dbt.datediff(\"hire_date\", \"termination_date\", \"day\") }}\n end as days_as_worker,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when date_month = cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date) then 1 else 0 end) as new_employees,\n sum(case when date_month = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) then 1 else 0 end) as churned_employees,\n sum(case when (date_month = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = cast({{ dbt.date_trunc(\"month\", \"termination_date\") }} as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date)\n and (cast(date_month as date) <= cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast({{ dbt.date_trunc(\"month\", \"position_effective_date\") }} as date)\n and cast(date_month as date) <= cast({{ dbt.date_trunc(\"month\", \"end_employment_date\") }} as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.date_trunc", "macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__monthly_summary.sql", "compiled": true, "compiled_code": " \n\nwith row_month_partition as (\n\n select *, \n cast(date_trunc('month', date_day) as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n),\n\nend_of_month_history as (\n \n select *,\n now() as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when date_month = cast(date_trunc('month', position_effective_date) as date) then 1 else 0 end) as new_employees,\n sum(case when date_month = cast(date_trunc('month', termination_date) as date) then 1 else 0 end) as churned_employees,\n sum(case when (date_month = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = cast(date_trunc('month', end_employment_date) as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and (cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__employee_daily_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__employee_daily_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__employee_daily_history.sql", "original_file_path": "models/workday_history/workday__employee_daily_history.sql", "unique_id": "model.workday.workday__employee_daily_history", "fqn": ["workday", "workday_history", "workday__employee_daily_history"], "alias": "workday__employee_daily_history", "checksum": {"name": "sha256", "checksum": "88de938194cee26b9b0c94e6336d70befa3578fa7e0ea0521a7816b20afcf133"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a daily record in an employee, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to track the daily history of their employees from when they started.", "columns": {"employee_day_id": {"name": "employee_day_id", "description": "Surrogate key hashed on `date_day` and `history_unique_key`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date on which the account had these field values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on 'employee_id' and '_fivetran_date'.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_id": {"name": "employee_id", "description": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_wh_fivetran_active": {"name": "is_wh_fivetran_active", "description": "Is the worker history record the most recent fivetran active record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_wph_fivetran_active": {"name": "is_wph_fivetran_active", "description": "Is the worker position history record the most recent fivetranactive record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_pih_fivetran_active": {"name": "is_pih_fivetran_active", "description": "Is the personal information history record the most recent fivetran active record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wh_end_employment_date": {"name": "wh_end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wph_end_employment_date": {"name": "wph_end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wh_pay_through_date": {"name": "wh_pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "wph_pay_through_date": {"name": "wph_pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The position location of the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_effective_date": {"name": "position_effective_date", "description": "The position effective date for the employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "row_num": {"name": "row_num", "description": "This is the row number filter designed to grab the most recent daily record for an employee. This value should always be 1 in this model.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712158227.517157, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"", "raw_code": "-- depends_on: {{ ref('int_workday__employee_history') }}\n{{ config(enabled=var('employee_history_enabled', False)) }}\n\n{% if execute %} \n {% set first_last_date_query %}\n with min_max_values as (\n\n select \n min(_fivetran_start) as min_start,\n max(_fivetran_start) as max_start \n from {{ ref('int_workday__employee_history') }}\n )\n\n select \n min_start,\n case when max_start >= {{ dbt.current_timestamp() }}\n then max_start\n else {{ dbt.date_trunc('day', dbt.current_timestamp()) }} \n end as max_start\n from min_max_values\n \n {% endset %}\n\n {% set start_date = run_query(first_last_date_query).columns[0][0]|string %}\n {% set last_date = run_query(first_last_date_query).columns[1][0]|string %}\n\n{# If only compiling, creates range going back 1 year #}\n{% else %} \n {% set start_date = dbt.dateadd(\"year\", \"-1\", \"current_date\") %} -- One year in the past for first date\n {% set last_date = dbt.dateadd(\"day\", \"-1\", \"current_date\") %} -- Yesterday as last date\n{% endif %}\n\n\nwith spine as (\n {# Prioritizes variables over calculated dates #}\n {# Arbitrarily picked employee_history_start_date variable value. Choose a more appropriate default if necessary. #}\n {{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date = \"greatest(cast('\" ~ start_date[0:10] ~ \"' as date), cast('\" ~ var('employee_history_start_date','2005-03-01') ~ \"' as date))\", \n end_date = \"cast('\" ~ last_date[0:10] ~ \"'as date)\"\n )\n }}\n),\n\nemployee_history as (\n\n select * \n from {{ ref('int_workday__employee_history') }}\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['spine.date_day','get_latest_daily_value.history_unique_key']) }} as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }})\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }})\n)\n\nselect * \nfrom daily_history", "language": "sql", "refs": [{"name": "int_workday__employee_history", "package": null, "version": null}, {"name": "int_workday__employee_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp", "macro.dbt.current_timestamp", "macro.dbt.date_trunc", "macro.dbt.run_query"], "nodes": ["model.workday.int_workday__employee_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__employee_daily_history.sql", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n\n\n \n \n\n \n \n\n\n\n\n\nwith spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 6973\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2005-03-01' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-03'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.workday__worker_position_org_daily_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "workday__worker_position_org_daily_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/workday__worker_position_org_daily_history.sql", "original_file_path": "models/workday_history/workday__worker_position_org_daily_history.sql", "unique_id": "model.workday.workday__worker_position_org_daily_history", "fqn": ["workday", "workday_history", "workday__worker_position_org_daily_history"], "alias": "workday__worker_position_org_daily_history", "checksum": {"name": "sha256", "checksum": "9f2a888b68b2cbaa4f4039f36ccc7ae12cf895dfbae490a2e77a32d8cb48999d"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Each record is a daily record for a worker/position/organization combination, starting with its first active date and updating up toward either the current date (if still active) or its last active date. This will allow customers to tie in organizations to employees via other organization models (such as `workday__organization_overview`) more easily in their warehouses.", "columns": {"wpo_day_id": {"name": "wpo_day_id", "description": "Surrogate key hashed on `date_day` and `history_unique_key`", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_day": {"name": "date_day", "description": "Date on which the account had these field values.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id`, `organization_id`, `source_relation`, and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "table", "enabled": true}, "created_at": 1712158227.52129, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"", "raw_code": "-- depends_on: {{ ref('stg_workday__worker_position_organization_base') }}\n{{ config(enabled=var('employee_history_enabled', False)) }}\n\n{% if execute %} \n {% set first_last_date_query %}\n with min_max_values as (\n select \n min(_fivetran_start) as min_start,\n max(_fivetran_start) as max_start \n from {{ ref('stg_workday__worker_position_organization_base') }}\n )\n\n select \n min_start,\n case when max_start >= {{ dbt.current_timestamp() }}\n then max_start\n else {{ dbt.date_trunc('day', dbt.current_timestamp()) }} \n end as max_date\n from min_max_values\n\n {% endset %}\n\n {% set start_date = run_query(first_last_date_query).columns[0][0]|string %}\n {% set last_date = run_query(first_last_date_query).columns[1][0]|string %}\n\n{# If only compiling, creates range going back 1 year #}\n{% else %}\n {% set start_date = dbt.dateadd(\"year\", \"-1\", \"current_date\") %} -- One year in the past for first date\n {% set last_date = dbt.dateadd(\"day\", \"-1\", \"current_date\") %} -- Yesterday as last date\n{% endif %}\n\nwith spine as (\n {# Prioritizes variables over calculated dates #}\n {# Arbitrarily picked employee_history_start_date variable value. Choose a more appropriate default if necessary. #}\n {{ dbt_utils.date_spine(\n datepart=\"day\",\n start_date = \"greatest(cast('\" ~ start_date[0:10] ~ \"' as date), cast('\" ~ var('employee_history_start_date','2005-03-01') ~ \"' as date))\",\n end_date = \"cast('\" ~ last_date[0:10] ~ \"'as date)\"\n )\n }}\n),\n\nworker_position_org_history as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_history') }}\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['spine.date_day',\n 'get_latest_daily_value.history_unique_key']) }} \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n _fivetran_start,\n _fivetran_end,\n _fivetran_active,\n _fivetran_date,\n history_unique_key,\n index,\n date_of_pay_group_assignment,\n primary_business_site,\n is_used_in_change_organization_assignments\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as {{ dbt.type_timestamp() }})\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as {{ dbt.type_timestamp() }})\n)\n\nselect * \nfrom daily_history", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt_utils.date_spine", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp", "macro.dbt.current_timestamp", "macro.dbt.date_trunc", "macro.dbt.run_query"], "nodes": ["model.workday.stg_workday__worker_position_organization_base", "model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday__worker_position_org_daily_history.sql", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n\n\n \n \n\n \n \n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n), spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 6973\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2005-03-01' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-03'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nworker_position_org_history as (\n\n select * \n from __dbt__cte__stg_workday__worker_position_organization_history\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n _fivetran_start,\n _fivetran_end,\n _fivetran_active,\n _fivetran_date,\n history_unique_key,\n index,\n date_of_pay_group_assignment,\n primary_business_site,\n is_used_in_change_organization_assignments\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_position_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_position_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_position_history.sql", "unique_id": "model.workday.stg_workday__worker_position_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_position_history"], "alias": "stg_workday__worker_position_history", "checksum": {"name": "sha256", "checksum": "bc97bcda48a57bad3149f45aae7b36daf46dc32061c7bcaa281fbbbcab8375c8"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `position_id`, `worker_id`, `source_relation` and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_location": {"name": "position_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_end_date": {"name": "position_end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_exclude_from_head_count": {"name": "is_exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "fte_percent": {"name": "fte_percent", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_job_exempt": {"name": "is_job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_paid_fte": {"name": "is_specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_specify_working_fte": {"name": "is_specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_start_date": {"name": "position_start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_work_shift_required": {"name": "is_work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712158227.5731578, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_position_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %}\n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_base')),\n staging_columns=get_worker_position_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as {{ dbt.type_timestamp() }}) as position_effective_date,\n employee_type,\n cast(end_date as {{ dbt.type_timestamp() }}) as position_end_date,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as {{ dbt.type_timestamp() }}) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_position_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_history.sql", "unique_id": "model.workday.stg_workday__worker_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_history"], "alias": "stg_workday__worker_history", "checksum": {"name": "sha256", "checksum": "d53da2e60d3a239d9d0a6c3cf1b733df3ef3c1671f6432a0c7bad7017eb6ef5c"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id`, `source_relation` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_active": {"name": "is_active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_has_international_assignment": {"name": "is_has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hire_rescinded": {"name": "is_hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_not_returning": {"name": "is_not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_regrettable_termination": {"name": "is_regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_rehire": {"name": "is_rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_retired": {"name": "is_retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_return_unknown": {"name": "is_return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_terminated": {"name": "is_terminated", "description": "Has the worker been terminated?", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_termination_involuntary": {"name": "is_termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712158227.571776, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_base')),\n staging_columns=get_worker_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as {{ dbt.type_timestamp() }}) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as {{ dbt.type_timestamp() }}) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_base", "package": null, "version": null}, {"name": "stg_workday__worker_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "nodes": ["model.workday.stg_workday__worker_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__personal_information_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__personal_information_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__personal_information_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__personal_information_history.sql", "unique_id": "model.workday.stg_workday__personal_information_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__personal_information_history"], "alias": "stg_workday__personal_information_history", "checksum": {"name": "sha256", "checksum": "f5f3d7da4818c5381dfcd37b1ae3896f7a3b4c4f963aeb8035eb2866579c982e"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id`, `source_relation` and `_fivetran_start`.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_hispanic_or_latino": {"name": "is_hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_local_hukou": {"name": "is_local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_tobacco_use": {"name": "is_tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712158227.569609, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__personal_information_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__personal_information_base')),\n staging_columns=get_personal_information_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select\n {{ dbt_utils.generate_surrogate_key(['id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__personal_information_base", "package": null, "version": null}, {"name": "stg_workday__personal_information_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_personal_information_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "nodes": ["model.workday.stg_workday__personal_information_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__personal_information_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.stg_workday__worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "stg_workday__worker_position_organization_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/staging/stg_workday__worker_position_organization_history.sql", "original_file_path": "models/workday_history/staging/stg_workday__worker_position_organization_history.sql", "unique_id": "model.workday.stg_workday__worker_position_organization_history", "fqn": ["workday", "workday_history", "staging", "stg_workday__worker_position_organization_history"], "alias": "stg_workday__worker_position_organization_history", "checksum": {"name": "sha256", "checksum": "bafdee6a223a9eb9a1c8d8272ff66de3a7c34d74682ef3613569c9b80a297f6c"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "Represents historical records of a worker's personal information.", "columns": {"history_unique_key": {"name": "history_unique_key", "description": "Surrogate key hashed on `worker_id`, `position_id`, `organization_id`, `source_relation`, and `_fivetran_start` .", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_date": {"name": "_fivetran_date", "description": "Date when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": "workday://models/workday_history/staging/stg_workday_history.yml", "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral", "enabled": true}, "created_at": 1712158227.573838, "relation_name": null, "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_workday__worker_position_organization_base') }}\n {% if var('employee_history_start_date',[]) %}\n where cast(_fivetran_start as {{ dbt.type_timestamp() }}) >= \"{{ var('employee_history_start_date') }}\"\n {% endif %} \n),\n\nfill_columns as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_workday__worker_position_organization_base')),\n staging_columns=get_worker_position_organization_history_columns()\n )\n }}\n\n {{ \n fivetran_utils.source_relation(\n union_schema_variable='workday_union_schemas', \n union_database_variable='workday_union_databases'\n ) \n }}\n\n from base\n),\n\nfinal as (\n\n select \n {{ dbt_utils.generate_surrogate_key(['worker_id', 'position_id', 'organization_id', 'source_relation', '_fivetran_start']) }} as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as {{ dbt.type_timestamp() }}) as _fivetran_start,\n cast(_fivetran_end as {{ dbt.type_timestamp() }}) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}, {"name": "stg_workday__worker_position_organization_base", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.workday.get_worker_position_organization_history_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.source_relation", "macro.dbt_utils.generate_surrogate_key", "macro.dbt.type_timestamp"], "nodes": ["model.workday.stg_workday__worker_position_organization_base"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday__worker_position_organization_history.sql", "compiled": true, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__employee_history": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__employee_history", "resource_type": "model", "package_name": "workday", "path": "workday_history/intermediate/int_workday__employee_history.sql", "original_file_path": "models/workday_history/intermediate/int_workday__employee_history.sql", "unique_id": "model.workday.int_workday__employee_history", "fqn": ["workday", "workday_history", "intermediate", "int_workday__employee_history"], "alias": "int_workday__employee_history", "checksum": {"name": "sha256", "checksum": "5c18f885ead273db1df9a2203e804797db6e3cfcb3f0e3554b6f6309ef440998"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "view", "enabled": true}, "created_at": 1712158226.836603, "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"", "raw_code": "{{ config(enabled=var('employee_history_enabled', False)) }}\n\nwith worker_history as (\n\n select *\n from {{ ref('stg_workday__worker_history') }}\n),\n\nworker_position_history as (\n\n select *\n from {{ ref('stg_workday__worker_position_history') }}\n),\n\npersonal_information_history as (\n\n select *\n from {{ ref('stg_workday__personal_information_history') }}\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead({{ dbt.dateadd('microsecond', -1, '_fivetran_start') }} ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as {{ dbt.type_timestamp() }}),\n cast('9999-12-31 23:59:59.999000' as {{ dbt.type_timestamp() }})) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select {{ dbt_utils.generate_surrogate_key(['worker_id', 'source_relation', 'position_id', 'position_start_date']) }} as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select {{ dbt_utils.generate_surrogate_key(['employee_id', '_fivetran_date']) }} as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}, {"name": "stg_workday__worker_position_history", "package": null, "version": null}, {"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.type_timestamp", "macro.dbt_utils.generate_surrogate_key"], "nodes": ["model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history", "model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/intermediate/int_workday__employee_history.sql", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n), worker_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_history\n),\n\nworker_position_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_history\n),\n\npersonal_information_history as (\n\n select *\n from __dbt__cte__stg_workday__personal_information_history\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select md5(cast(coalesce(cast(employee_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_position_enriched": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_position_enriched", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_position_enriched.sql", "original_file_path": "models/intermediate/int_workday__worker_position_enriched.sql", "unique_id": "model.workday.int_workday__worker_position_enriched", "fqn": ["workday", "intermediate", "int_workday__worker_position_enriched"], "alias": "int_workday__worker_position_enriched", "checksum": {"name": "sha256", "checksum": "0bcb8eaaab77feebef76105a810b2f955a424dab91401003170763a691f1bc6d"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712158226.843637, "relation_name": null, "raw_code": "with worker_position_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker_position') }}\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then {{ dbt.datediff('position_start_date', 'current_date', 'day') }}\n else {{ dbt.datediff('position_start_date', 'position_end_date', 'day') }}\n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_position_enriched.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__personal_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__personal_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__personal_details.sql", "original_file_path": "models/intermediate/int_workday__personal_details.sql", "unique_id": "model.workday.int_workday__personal_details", "fqn": ["workday", "intermediate", "int_workday__personal_details"], "alias": "int_workday__personal_details", "checksum": {"name": "sha256", "checksum": "594516db9541d923dcc1958d6ed5747fb91aee48aaa01e0acf8fcbd2fb1a8950"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712158226.849098, "relation_name": null, "raw_code": "with worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from {{ ref('stg_workday__personal_information') }}\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from {{ ref('stg_workday__person_name') }}\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from {{ ref('stg_workday__person_contact_email_address') }}\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n {{ fivetran_utils.string_agg('distinct ethnicity_code', \"', '\" ) }} as ethnicity_codes\n from {{ ref('stg_workday__personal_information_ethnicity') }}\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from {{ ref('stg_workday__military_service') }}\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}, {"name": "stg_workday__person_name", "package": null, "version": null}, {"name": "stg_workday__person_contact_email_address", "package": null, "version": null}, {"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}, {"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.fivetran_utils.string_agg"], "nodes": ["model.workday.stg_workday__personal_information", "model.workday.stg_workday__person_name", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__personal_information_ethnicity", "model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__personal_details.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_details": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_details", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_details.sql", "original_file_path": "models/intermediate/int_workday__worker_details.sql", "unique_id": "model.workday.int_workday__worker_details", "fqn": ["workday", "intermediate", "int_workday__worker_details"], "alias": "int_workday__worker_details", "checksum": {"name": "sha256", "checksum": "6004df52c6e8acb2f9eb07f0e02e5fb9f694a9f8c3cb3d129916e686039ffd7a"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712158226.852781, "relation_name": null, "raw_code": "with worker_data as (\n\n select \n *,\n {{ dbt.current_timestamp() }} as current_date\n from {{ ref('stg_workday__worker') }}\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then {{ dbt.datediff('hire_date', 'current_date', 'day') }}\n else {{ dbt.datediff('hire_date', 'termination_date', 'day') }}\n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.current_timestamp", "macro.dbt.datediff"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_details.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "model.workday.int_workday__worker_employee_enhanced": {"database": "postgres", "schema": "workday_integration_tests_workday", "name": "int_workday__worker_employee_enhanced", "resource_type": "model", "package_name": "workday", "path": "intermediate/int_workday__worker_employee_enhanced.sql", "original_file_path": "models/intermediate/int_workday__worker_employee_enhanced.sql", "unique_id": "model.workday.int_workday__worker_employee_enhanced", "fqn": ["workday", "intermediate", "int_workday__worker_employee_enhanced"], "alias": "int_workday__worker_employee_enhanced", "checksum": {"name": "sha256", "checksum": "b304988457480f06f3bbc052fb27d7d6af37592d243606c4acf783558786aa1d"}, "config": {"enabled": true, "alias": null, "schema": "workday", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "ephemeral", "incremental_strategy": null, "persist_docs": {}, "post-hook": [], "pre-hook": [], "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "on_configuration_change": "apply", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "contract": {"enforced": false, "alias_types": true}, "access": "protected"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"schema": "workday", "materialized": "ephemeral"}, "created_at": 1712158226.856701, "relation_name": null, "raw_code": "with int_worker_base as (\n\n select * \n from {{ ref('int_workday__worker_details') }} \n),\n\nint_worker_personal_details as (\n\n select * \n from {{ ref('int_workday__personal_details') }} \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from {{ ref('int_workday__worker_position_enriched') }} \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "language": "sql", "refs": [{"name": "int_workday__worker_details", "package": null, "version": null}, {"name": "int_workday__personal_details", "package": null, "version": null}, {"name": "int_workday__worker_position_enriched", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": [], "nodes": ["model.workday.int_workday__worker_details", "model.workday.int_workday__personal_details", "model.workday.int_workday__worker_position_enriched"]}, "compiled_path": "target/compiled/workday/models/intermediate/int_workday__worker_employee_enhanced.sql", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_details", "sql": " __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n)"}, {"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__personal_details", "sql": " __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n)"}, {"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}, {"id": "model.workday.int_workday__worker_position_enriched", "sql": " __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "access": "protected", "constraints": [], "version": null, "latest_version": null, "deprecation_date": null}, "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "employee_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__employee_overview_employee_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__employee_overview_employee_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.unique_workday__employee_overview_employee_id.b01e19996c", "fqn": ["workday", "unique_workday__employee_overview_employee_id"], "alias": "unique_workday__employee_overview_employee_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.267275, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/unique_workday__employee_overview_employee_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is not null\ngroup by employee_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "employee_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_overview_employee_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_overview_employee_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "fqn": ["workday", "not_null_workday__employee_overview_employee_id"], "alias": "not_null_workday__employee_overview_employee_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.2684789, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__employee_overview_employee_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__employee_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_overview_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_overview_worker_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "fqn": ["workday", "not_null_workday__employee_overview_worker_id"], "alias": "not_null_workday__employee_overview_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.269411, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__employee_overview_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.workday__employee_overview", "attached_node": "model.workday.workday__employee_overview"}, "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__job_overview_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__job_overview_job_profile_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "fqn": ["workday", "not_null_workday__job_overview_job_profile_id"], "alias": "not_null_workday__job_overview_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.2709, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__job_overview_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('workday__job_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656"}, "created_at": 1712158227.271927, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656\") }}", "language": "sql", "refs": [{"name": "workday__job_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__job_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_fd1fd88d13da04a4a93c7c9712fde656.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__job_overview", "attached_node": "model.workday.workday__job_overview"}, "test.workday.not_null_workday__position_overview_position_id.603beb3f22": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__position_overview_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__position_overview_position_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "fqn": ["workday", "not_null_workday__position_overview_position_id"], "alias": "not_null_workday__position_overview_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.279319, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__position_overview_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('workday__position_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e"}, "created_at": 1712158227.280473, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e\") }}", "language": "sql", "refs": [{"name": "workday__position_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__position_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_19d7304dc170fd11d99d58fa0666294e.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__position_overview", "attached_node": "model.workday.workday__position_overview"}, "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "fqn": ["workday", "not_null_workday__organization_overview_organization_id"], "alias": "not_null_workday__organization_overview_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.283208, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__organization_overview_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__organization_overview_organization_role_id.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "fqn": ["workday", "not_null_workday__organization_overview_organization_role_id"], "alias": "not_null_workday__organization_overview_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.2841349, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/not_null_workday__organization_overview_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('workday__organization_overview')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "original_file_path": "models/workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "fqn": ["workday", "dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1"}, "created_at": 1712158227.285079, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1\") }}", "language": "sql", "refs": [{"name": "workday__organization_overview", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__organization_overview"]}, "compiled_path": "target/compiled/workday/models/workday.yml/dbt_utils_unique_combination_o_6a1676b7f7536fc12e49d925c29c69f1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.workday__organization_overview", "attached_node": "model.workday.workday__organization_overview"}, "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "fqn": ["workday", "staging", "not_null_stg_workday__job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.413882, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id"], "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1"}, "created_at": 1712158227.4150589, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_e3c849c2fc4ab71ebeb8387d01d386b1.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id\n from __dbt__cte__stg_workday__job_profile\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_profile", "sql": " __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_profile", "attached_node": "model.workday.stg_workday__job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_family_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.417928, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_profile_job_profile_id"], "alias": "not_null_stg_workday__job_family_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.419064, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_profile_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id"], "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378"}, "created_at": 1712158227.420228, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_687e466c168eb554e7505109993ad378.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from __dbt__cte__stg_workday__job_family_job_profile\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_profile", "sql": " __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_profile", "attached_node": "model.workday.stg_workday__job_family_job_profile"}, "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.423445, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id"], "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd"}, "created_at": 1712158227.4244611, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_8c4bbdfb0e3b262b877b3ee051a456cd.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id\n from __dbt__cte__stg_workday__job_family\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family", "sql": " __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family", "attached_node": "model.workday.stg_workday__job_family"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_id"], "alias": "not_null_stg_workday__job_family_job_family_group_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.427701, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_job_family_group_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af"}, "created_at": 1712158227.428708, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_fami_c0a4daa8ee8fbab4cd5d40cfe44484af.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4"}, "created_at": 1712158227.43007, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_abd343132a10cb21fdac5aa2f7f027f4.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from __dbt__cte__stg_workday__job_family_job_family_group\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_job_family_group", "sql": " __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_job_family_group", "attached_node": "model.workday.stg_workday__job_family_job_family_group"}, "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_group_id", "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__job_family_group_job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__job_family_group_job_family_group_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "fqn": ["workday", "staging", "not_null_stg_workday__job_family_group_job_family_group_id"], "alias": "not_null_stg_workday__job_family_group_job_family_group_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.43304, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__job_family_group_job_family_group_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_group\nwhere job_family_group_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_group_id", "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_group_id"], "model": "{{ get_where_subquery(ref('stg_workday__job_family_group')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id"], "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5"}, "created_at": 1712158227.43395, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5\") }}", "language": "sql", "refs": [{"name": "stg_workday__job_family_group", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__job_family_group"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_0d5a68eb7f7a6eca3c69f9765e8245e5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_group_id\n from __dbt__cte__stg_workday__job_family_group\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__job_family_group", "sql": " __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__job_family_group", "attached_node": "model.workday.stg_workday__job_family_group"}, "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_id"], "alias": "not_null_stg_workday__organization_role_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.4371488, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_organization_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_organization_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_organization_role_id"], "alias": "not_null_stg_workday__organization_role_organization_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.438136, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_organization_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_role_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_role_id", "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "organization_role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id"], "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908"}, "created_at": 1712158227.439317, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_59895b9f0fc91ae384647edc8727b908.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from __dbt__cte__stg_workday__organization_role\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role", "sql": " __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role", "attached_node": "model.workday.stg_workday__organization_role"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_worker_code", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_worker_code", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_worker_code"], "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda"}, "created_at": 1712158227.442612, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organiza_0783852f549eb5adccc96839860dacda.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_worker_code\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_worker_code is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_worker_code", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_organization_id"], "alias": "not_null_stg_workday__organization_role_worker_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.443574, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "role_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_role_worker_role_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_role_worker_role_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "fqn": ["workday", "staging", "not_null_stg_workday__organization_role_worker_role_id"], "alias": "not_null_stg_workday__organization_role_worker_role_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.4445398, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_role_worker_role_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select role_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere role_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "role_id", "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_worker_code", "organization_id", "role_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_role_worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id"], "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a"}, "created_at": 1712158227.4456708, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_role_worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_role_worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_6e794cc0ac3401d5d54e8752f043a72a.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from __dbt__cte__stg_workday__organization_role_worker\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_role_worker", "sql": " __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_role_worker", "attached_node": "model.workday.stg_workday__organization_role_worker"}, "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_family_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_job_family_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_job_family_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_job_family_id"], "alias": "not_null_stg_workday__organization_job_family_job_family_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.448266, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_job_family_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere job_family_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_family_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_job_family_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_job_family_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "fqn": ["workday", "staging", "not_null_stg_workday__organization_job_family_organization_id"], "alias": "not_null_stg_workday__organization_job_family_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.449356, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_job_family_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_family_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization_job_family')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id"], "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456"}, "created_at": 1712158227.450888, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization_job_family", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization_job_family"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c7d681ee4f556f503a1ef56336da4456.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from __dbt__cte__stg_workday__organization_job_family\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization_job_family", "sql": " __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization_job_family", "attached_node": "model.workday.stg_workday__organization_job_family"}, "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "fqn": ["workday", "staging", "not_null_stg_workday__organization_organization_id"], "alias": "not_null_stg_workday__organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.453674, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id"], "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5"}, "created_at": 1712158227.4548008, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5\") }}", "language": "sql", "refs": [{"name": "stg_workday__organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1a475c490ede95cbc66c26dc8aa2ded5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id\n from __dbt__cte__stg_workday__organization\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__organization", "sql": " __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__organization", "attached_node": "model.workday.stg_workday__organization"}, "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_organization_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_organization_id"], "alias": "not_null_stg_workday__position_organization_organization_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.45715, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_organization_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "fqn": ["workday", "staging", "not_null_stg_workday__position_organization_position_id"], "alias": "not_null_stg_workday__position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.458236, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "organization_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id"], "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc"}, "created_at": 1712158227.459286, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_1dcef4f0ffa993a9cdcc81a7b54e5dfc.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from __dbt__cte__stg_workday__position_organization\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_organization", "sql": " __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_organization", "attached_node": "model.workday.stg_workday__position_organization"}, "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "fqn": ["workday", "staging", "not_null_stg_workday__position_position_id"], "alias": "not_null_stg_workday__position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.462524, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id"], "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32"}, "created_at": 1712158227.463555, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32\") }}", "language": "sql", "refs": [{"name": "stg_workday__position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_56256b3f4ad97a96cbfec5c5131e6b32.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id\n from __dbt__cte__stg_workday__position\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position", "sql": " __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position", "attached_node": "model.workday.stg_workday__position"}, "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_profile_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_job_profile_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_job_profile_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_job_profile_id"], "alias": "not_null_stg_workday__position_job_profile_job_profile_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.4659631, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_job_profile_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere job_profile_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "job_profile_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__position_job_profile_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__position_job_profile_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "fqn": ["workday", "staging", "not_null_stg_workday__position_job_profile_position_id"], "alias": "not_null_stg_workday__position_job_profile_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.467077, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__position_job_profile_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "job_profile_id", "position_id"], "model": "{{ get_where_subquery(ref('stg_workday__position_job_profile')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id"], "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62"}, "created_at": 1712158227.467981, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62\") }}", "language": "sql", "refs": [{"name": "stg_workday__position_job_profile", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__position_job_profile"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_7040778b997fa6202660b8c836d5ef62.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from __dbt__cte__stg_workday__position_job_profile\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__position_job_profile", "sql": " __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__position_job_profile", "attached_node": "model.workday.stg_workday__position_job_profile"}, "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "fqn": ["workday", "staging", "not_null_stg_workday__worker_worker_id"], "alias": "not_null_stg_workday__worker_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.470855, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33"}, "created_at": 1712158227.471891, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_fecd80881ef8302856b8e8b0c6cecb33.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__worker\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker", "sql": " __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker", "attached_node": "model.workday.stg_workday__worker"}, "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_worker_id"], "alias": "not_null_stg_workday__personal_information_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.474797, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13"}, "created_at": 1712158227.47598, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_dd394e30bffba2e2c399ddf7b9de2e13.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__personal_information\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information", "sql": " __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information", "attached_node": "model.workday.stg_workday__personal_information"}, "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_worker_id"], "alias": "not_null_stg_workday__person_name_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.4793768, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_name\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_name_type", "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_name_person_name_type", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_name_person_name_type.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "fqn": ["workday", "staging", "not_null_stg_workday__person_name_person_name_type"], "alias": "not_null_stg_workday__person_name_person_name_type", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.4803278, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_name_person_name_type.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_name_type\nfrom __dbt__cte__stg_workday__person_name\nwhere person_name_type is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_name_type", "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_name_type"], "model": "{{ get_where_subquery(ref('stg_workday__person_name')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type"], "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574"}, "created_at": 1712158227.481278, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_name", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_name"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_44cc9ea0a6775c0a350964ebfc21b574.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from __dbt__cte__stg_workday__person_name\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_name", "sql": " __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_name", "attached_node": "model.workday.stg_workday__person_name"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_worker_id"], "alias": "not_null_stg_workday__personal_information_ethnicity_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.484203, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_information_ethnicity_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "ethnicity_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_ethnicity_ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "fqn": ["workday", "staging", "not_null_stg_workday__personal_information_ethnicity_ethnicity_id"], "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5"}, "created_at": 1712158227.485109, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__personal_e65829867ddf84c220ea148ba5494da5.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select ethnicity_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere ethnicity_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "ethnicity_id", "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "ethnicity_id"], "model": "{{ get_where_subquery(ref('stg_workday__personal_information_ethnicity')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id"], "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5"}, "created_at": 1712158227.486031, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_ethnicity", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_ethnicity"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_ffb3ce643c74c9f7d528c6e3811e50a5.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_ethnicity", "sql": " __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__personal_information_ethnicity", "attached_node": "model.workday.stg_workday__personal_information_ethnicity"}, "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__military_service_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__military_service_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "fqn": ["workday", "staging", "not_null_stg_workday__military_service_worker_id"], "alias": "not_null_stg_workday__military_service_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.488708, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__military_service_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__military_service\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__military_service')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id"], "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9"}, "created_at": 1712158227.489711, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9\") }}", "language": "sql", "refs": [{"name": "stg_workday__military_service", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__military_service"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_4ed209a16d6006f56687bce05216daf9.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__military_service\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__military_service", "sql": " __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__military_service", "attached_node": "model.workday.stg_workday__military_service"}, "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "person_contact_email_address_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_person_contact_email_address_id"], "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08"}, "created_at": 1712158227.492213, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_c_74359aa56eef2ed577a1adb5458ccb08.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_contact_email_address_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere person_contact_email_address_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "person_contact_email_address_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__person_contact_email_address_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__person_contact_email_address_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "fqn": ["workday", "staging", "not_null_stg_workday__person_contact_email_address_worker_id"], "alias": "not_null_stg_workday__person_contact_email_address_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.493549, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__person_contact_email_address_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "person_contact_email_address_id"], "model": "{{ get_where_subquery(ref('stg_workday__person_contact_email_address')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id"], "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb"}, "created_at": 1712158227.494726, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb\") }}", "language": "sql", "refs": [{"name": "stg_workday__person_contact_email_address", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__person_contact_email_address"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_60ecbd731515397eb7045adcbc31b8fb.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from __dbt__cte__stg_workday__person_contact_email_address\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__person_contact_email_address", "sql": " __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__person_contact_email_address", "attached_node": "model.workday.stg_workday__person_contact_email_address"}, "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_position_id"], "alias": "not_null_stg_workday__worker_position_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.497313, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_worker_id"], "alias": "not_null_stg_workday__worker_position_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.4982378, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "position_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id"], "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7"}, "created_at": 1712158227.49916, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3ad453cb34c5956fe70257654beec9d7.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from __dbt__cte__stg_workday__worker_position\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position", "sql": " __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position", "attached_node": "model.workday.stg_workday__worker_position"}, "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "leave_request_event_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_leave_request_event_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_leave_request_event_id"], "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308"}, "created_at": 1712158227.5015209, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_l_c2bd4624d54474d8cc43b5b9a29cf308.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select leave_request_event_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere leave_request_event_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "leave_request_event_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_leave_status_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_leave_status_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "fqn": ["workday", "staging", "not_null_stg_workday__worker_leave_status_worker_id"], "alias": "not_null_stg_workday__worker_leave_status_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.502523, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_leave_status_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "leave_request_event_id", "worker_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_leave_status')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id"], "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f"}, "created_at": 1712158227.503762, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_leave_status", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_leave_status"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_c584e5c8d592358916f69a681935716f.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from __dbt__cte__stg_workday__worker_leave_status\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_leave_status", "sql": " __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_leave_status", "attached_node": "model.workday.stg_workday__worker_leave_status"}, "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_position_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_position_id"], "alias": "not_null_stg_workday__worker_position_organization_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.5065, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_organization_worker_id.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_worker_id"], "alias": "not_null_stg_workday__worker_position_organization_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.5074549, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_position_organization_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "fqn": ["workday", "staging", "not_null_stg_workday__worker_position_organization_organization_id"], "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23"}, "created_at": 1712158227.5083861, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/not_null_stg_workday__worker_p_90dbe3fb66cda8c3c13fbdcf1b2f4d23.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["source_relation", "worker_id", "position_id", "organization_id"], "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization')) }}"}, "namespace": "dbt_utils"}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id", "resource_type": "test", "package_name": "workday", "path": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "original_file_path": "models/staging/stg_workday.yml", "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "fqn": ["workday", "staging", "dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id"], "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926"}, "created_at": 1712158227.50959, "relation_name": null, "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization"]}, "compiled_path": "target/compiled/workday/models/staging/stg_workday.yml/dbt_utils_unique_combination_o_3204ed06ee9feaa711c97af18a025926.sql", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from __dbt__cte__stg_workday__worker_position_organization\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization", "sql": " __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": null, "file_key_name": "models.stg_workday__worker_position_organization", "attached_node": "model.workday.stg_workday__worker_position_organization"}, "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "employee_day_id", "model": "{{ get_where_subquery(ref('workday__employee_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__employee_daily_history_employee_day_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__employee_daily_history_employee_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269", "fqn": ["workday", "workday_history", "unique_workday__employee_daily_history_employee_day_id"], "alias": "unique_workday__employee_daily_history_employee_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.5217621, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__employee_daily_history_employee_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is not null\ngroup by employee_day_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_day_id", "file_key_name": "models.workday__employee_daily_history", "attached_node": "model.workday.workday__employee_daily_history"}, "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "employee_day_id", "model": "{{ get_where_subquery(ref('workday__employee_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__employee_daily_history_employee_day_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__employee_daily_history_employee_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "fqn": ["workday", "workday_history", "not_null_workday__employee_daily_history_employee_day_id"], "alias": "not_null_workday__employee_daily_history_employee_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.522819, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__employee_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__employee_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__employee_daily_history_employee_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "employee_day_id", "file_key_name": "models.workday__employee_daily_history", "attached_node": "model.workday.workday__employee_daily_history"}, "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__monthly_summary_metrics_month", "resource_type": "test", "package_name": "workday", "path": "unique_workday__monthly_summary_metrics_month.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab", "fqn": ["workday", "workday_history", "unique_workday__monthly_summary_metrics_month"], "alias": "unique_workday__monthly_summary_metrics_month", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.561027, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__monthly_summary"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__monthly_summary_metrics_month.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n metrics_month as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is not null\ngroup by metrics_month\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metrics_month", "file_key_name": "models.workday__monthly_summary", "attached_node": "model.workday.workday__monthly_summary"}, "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "metrics_month", "model": "{{ get_where_subquery(ref('workday__monthly_summary')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__monthly_summary_metrics_month", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__monthly_summary_metrics_month.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "fqn": ["workday", "workday_history", "not_null_workday__monthly_summary_metrics_month"], "alias": "not_null_workday__monthly_summary_metrics_month", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.561996, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__monthly_summary", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__monthly_summary"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__monthly_summary_metrics_month.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metrics_month\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "metrics_month", "file_key_name": "models.workday__monthly_summary", "attached_node": "model.workday.workday__monthly_summary"}, "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "wpo_day_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_workday__worker_position_org_daily_history_wpo_day_id", "resource_type": "test", "package_name": "workday", "path": "unique_workday__worker_position_org_daily_history_wpo_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21", "fqn": ["workday", "workday_history", "unique_workday__worker_position_org_daily_history_wpo_day_id"], "alias": "unique_workday__worker_position_org_daily_history_wpo_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.5629818, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/unique_workday__worker_position_org_daily_history_wpo_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\nselect\n wpo_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is not null\ngroup by wpo_day_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "wpo_day_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "wpo_day_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_wpo_day_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_wpo_day_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_wpo_day_id"], "alias": "not_null_workday__worker_position_org_daily_history_wpo_day_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.56442, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_wpo_day_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect wpo_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "wpo_day_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_worker_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_worker_id"], "alias": "not_null_workday__worker_position_org_daily_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.565472, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_position_org_daily_history_position_id.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_position_id"], "alias": "not_null_workday__worker_position_org_daily_history_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.5664299, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_position_org_daily_history_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('workday__worker_position_org_daily_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_workday__worker_position_org_daily_history_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632.sql", "original_file_path": "models/workday_history/workday_history.yml", "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "fqn": ["workday", "workday_history", "not_null_workday__worker_position_org_daily_history_organization_id"], "alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632"}, "created_at": 1712158227.567374, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632\") }}", "language": "sql", "refs": [{"name": "workday__worker_position_org_daily_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.workday__worker_position_org_daily_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/workday_history.yml/not_null_workday__worker_posit_f00304a8628e430ed7c21d43d8c23632.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.workday__worker_position_org_daily_history", "attached_node": "model.workday.workday__worker_position_org_daily_history"}, "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__personal_information_history_history_unique_key"], "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2"}, "created_at": 1712158227.574344, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__personal_i_acccbe4c15b5fb4d1446e98ff69015e2.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__personal_information_history_history_unique_key"], "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3"}, "created_at": 1712158227.575368, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3\") }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__personal_43beec0d9761e57841678ed565c671d3.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__personal_information_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__personal_information_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__personal_information_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__personal_information_history_worker_id"], "alias": "not_null_stg_workday__personal_information_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.576365, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__personal_information_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__personal_information_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__personal_information_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__personal_information_history", "sql": " __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__personal_information_history", "attached_node": "model.workday.stg_workday__personal_information_history"}, "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_history_history_unique_key"], "alias": "unique_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.577653, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_history_history_unique_key"], "alias": "not_null_stg_workday__worker_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.5788212, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_history_worker_id"], "alias": "not_null_stg_workday__worker_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.57976, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_history", "sql": " __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_history", "attached_node": "model.workday.stg_workday__worker_history"}, "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_position_history_history_unique_key.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_position_history_history_unique_key"], "alias": "unique_stg_workday__worker_position_history_history_unique_key", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.580674, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_position_history_history_unique_key.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9"}, "created_at": 1712158227.581556, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_c944587cb69904dc149ec54bf0f489e9.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_worker_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_worker_id"], "alias": "not_null_stg_workday__worker_position_history_worker_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.5824482, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_position_history_worker_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_position_history_position_id.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_history_position_id"], "alias": "not_null_stg_workday__worker_position_history_position_id", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1712158227.583508, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_position_history_position_id.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_history", "sql": " __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_history", "attached_node": "model.workday.stg_workday__worker_position_history"}, "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "unique_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "fqn": ["workday", "workday_history", "staging", "unique_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22"}, "created_at": 1712158227.584884, "relation_name": null, "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/unique_stg_workday__worker_pos_1a68f337fa0582521a7db4f909dbfc22.sql", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "history_unique_key", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_history_unique_key", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_history_unique_key"], "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6"}, "created_at": 1712158227.585875, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_518901ce1a15646095927d6a041af3d6.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "history_unique_key", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "worker_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_worker_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_worker_id"], "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a"}, "created_at": 1712158227.5867882, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_e71f2575b8bdd1b669d2663f9b8d436a.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere worker_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "worker_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "position_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_position_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_position_id"], "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441"}, "created_at": 1712158227.587915, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_0ecc03f267616c4f7fc29bef1bd47441.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere position_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "position_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}, "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "organization_id", "model": "{{ get_where_subquery(ref('stg_workday__worker_position_organization_history')) }}"}, "namespace": null}, "database": "postgres", "schema": "workday_integration_tests_dbt_test__audit", "name": "not_null_stg_workday__worker_position_organization_history_organization_id", "resource_type": "test", "package_name": "workday", "path": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "original_file_path": "models/workday_history/staging/stg_workday_history.yml", "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "fqn": ["workday", "workday_history", "staging", "not_null_stg_workday__worker_position_organization_history_organization_id"], "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "checksum": {"name": "none", "checksum": ""}, "config": {"enabled": true, "alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "group": null, "materialized": "test", "severity": "ERROR", "store_failures": null, "store_failures_as": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "tags": [], "description": "", "columns": {}, "meta": {}, "group": null, "docs": {"show": true, "node_color": null}, "patch_path": null, "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0"}, "created_at": 1712158227.588872, "relation_name": null, "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0\") }}", "language": "sql", "refs": [{"name": "stg_workday__worker_position_organization_history", "package": null, "version": null}], "sources": [], "metrics": [], "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.workday.stg_workday__worker_position_organization_history"]}, "compiled_path": "target/compiled/workday/models/workday_history/staging/stg_workday_history.yml/not_null_stg_workday__worker_p_99bb646f526b3826c22dee3fd24856d0.sql", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere organization_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [{"id": "model.workday.stg_workday__worker_position_organization_history", "sql": " __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n)"}], "contract": {"enforced": false, "alias_types": true, "checksum": null}, "column_name": "organization_id", "file_key_name": "models.stg_workday__worker_position_organization_history", "attached_node": "model.workday.stg_workday__worker_position_organization_history"}}, "sources": {"source.workday.workday.job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_profile", "fqn": ["workday", "staging", "workday", "job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes.", "columns": {"id": {"name": "id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_job_description": {"name": "additional_job_description", "description": "Additional details or information about the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Brief description of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_job_code_in_name": {"name": "include_job_code_in_name", "description": "Flag indicating whether to include the job code in the job profile name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_id": {"name": "job_category_id", "description": "Identifier for the job category.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_code": {"name": "job_profile_code", "description": "Code assigned to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "level": {"name": "level", "description": "Level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level": {"name": "management_level", "description": "Management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "private_title": {"name": "private_title", "description": "Private title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "public_job": {"name": "public_job", "description": "Flag indicating whether the job is public.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "referral_payment_plan": {"name": "referral_payment_plan", "description": "Referral payment plan associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "title": {"name": "title", "description": "Title associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_code": {"name": "union_code", "description": "Code associated with the union related to the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "union_membership_requirement": {"name": "union_membership_requirement", "description": "Flag indicating whether union membership is a requirement for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_award_source_code": {"name": "work_study_award_source_code", "description": "Code associated with the source of work study awards.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "description": "Code associated with work study requirement options.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "created_at": 1712158227.590966}, "source.workday.workday.job_family_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_profile", "fqn": ["workday", "staging", "workday", "job_family_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job profiles in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "created_at": 1712158227.591094}, "source.workday.workday.job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family", "fqn": ["workday", "staging", "workday", "job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_code": {"name": "job_family_code", "description": "Code assigned to the job family", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "created_at": 1712158227.591187}, "source.workday.workday.job_family_job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_job_family_group", "fqn": ["workday", "staging", "workday", "job_family_job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the relationship between job families and job family groups in the Workday dataset.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "created_at": 1712158227.591265}, "source.workday.workday.job_family_group": {"database": "postgres", "schema": "workday_integration_tests", "name": "job_family_group", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.job_family_group", "fqn": ["workday", "staging", "workday", "job_family_group"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_job_family_group_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics.", "columns": {"id": {"name": "id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_code": {"name": "job_family_group_code", "description": "Code assigned to the job family group for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "summary": {"name": "summary", "description": "Summary or overview of the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "created_at": 1712158227.591346}, "source.workday.workday.organization_role": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role", "fqn": ["workday", "staging", "workday", "organization_role"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_role_code": {"name": "organization_role_code", "description": "Code assigned to the organization role for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "created_at": 1712158227.591421}, "source.workday.workday.organization_role_worker": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_role_worker", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_role_worker", "fqn": ["workday", "staging", "workday", "organization_role_worker"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_role_worker_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill.", "columns": {"associated_worker_id": {"name": "associated_worker_id", "description": "Identifier for the worker associated with the organization role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "role_id": {"name": "role_id", "description": "Identifier for the specific role.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "created_at": 1712158227.5915048}, "source.workday.workday.organization_job_family": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization_job_family", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization_job_family", "fqn": ["workday", "staging", "workday", "organization_job_family"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_job_family_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between different organizational entities and the job families they are linked to.", "columns": {"job_family_id": {"name": "job_family_id", "description": "Identifier for the job family.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_family_group_id": {"name": "job_family_group_id", "description": "Identifier for the job family group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "created_at": 1712158227.591585}, "source.workday.workday.organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.organization", "fqn": ["workday", "staging", "workday", "organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Identifier for the organization.", "columns": {"id": {"name": "id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "code": {"name": "code", "description": "Code assigned to the organization for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "The description of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_url": {"name": "external_url", "description": "External URL associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive": {"name": "inactive", "description": "Flag indicating whether this is inactive.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "inactive_date": {"name": "inactive_date", "description": "Date when the organization becomes inactive", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_manager_in_name": {"name": "include_manager_in_name", "description": "Flag indicating whether to include the manager in the organization name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "include_organization_code_in_name": {"name": "include_organization_code_in_name", "description": "Flag indicating whether to include the organization code in the name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_updated_date_time": {"name": "last_updated_date_time", "description": "Date and time when the organization record was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location": {"name": "location", "description": "Location associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "manager_id": {"name": "manager_id", "description": "Identifier for the manager associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_code": {"name": "organization_code", "description": "Code associated with the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_owner_id": {"name": "organization_owner_id", "description": "Identifier for the owner of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "staffing_model": {"name": "staffing_model", "description": "Staffing model associated with the organization", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "sub_type": {"name": "sub_type", "description": "Subtype or classification of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "superior_organization_id": {"name": "superior_organization_id", "description": "Identifier for the superior organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "description": "Availability date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "description": "Earliest hire date for supervisory positions within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_time_type": {"name": "supervisory_position_time_type", "description": "Time type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "description": "Worker type associated with supervisory positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "top_level_organization_id": {"name": "top_level_organization_id", "description": "Identifier for the top-level organization, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "visibility": {"name": "visibility", "description": "Visibility level of the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "created_at": 1712158227.591694}, "source.workday.workday.position_organization": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_organization", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_organization", "fqn": ["workday", "staging", "workday", "position_organization"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_organization_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the organizations to which they belong.", "columns": {"organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "Type or category of the position within the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "created_at": 1712158227.591771}, "source.workday.workday.position": {"database": "postgres", "schema": "workday_integration_tests", "name": "position", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position", "fqn": ["workday", "staging", "workday", "position"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Resource for understanding the details and attributes associated with each position.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_eligible": {"name": "academic_tenure_eligible", "description": "Flag indicating whether the position is eligible for academic tenure.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "availability_date": {"name": "availability_date", "description": "Date when the organization becomes available.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_hire": {"name": "available_for_hire", "description": "Flag indicating whether the organization is available for hiring.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_overlap": {"name": "available_for_overlap", "description": "Flag indicating whether the position is available for overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "available_for_recruiting": {"name": "available_for_recruiting", "description": "Flag indicating whether the position is available for recruiting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Flag indicating whether the position is closed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_code": {"name": "compensation_grade_code", "description": "Code associated with the compensation grade of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "description": "Code associated with the compensation grade profile of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_package_code": {"name": "compensation_package_code", "description": "Code associated with the compensation package of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_step_code": {"name": "compensation_step_code", "description": "Code associated with the compensation step of the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_hire_date": {"name": "earliest_hire_date", "description": "Earliest date when the position can be filled.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "earliest_overlap_date": {"name": "earliest_overlap_date", "description": "Earliest date when the position can overlap with other positions.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hiring_freeze": {"name": "hiring_freeze", "description": "Flag indicating whether the organization is under a hiring freeze.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description": {"name": "job_description", "description": "Detailed description of the job associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_description_summary": {"name": "job_description_summary", "description": "Summary or overview of the job description for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_posting_title": {"name": "job_posting_title", "description": "Title used for job postings associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_code": {"name": "position_code", "description": "Code associated with the position for reference and categorization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_time_type_code": {"name": "position_time_type_code", "description": "Code indicating the time type associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis": {"name": "primary_compensation_basis", "description": "Primary basis of compensation for the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "description": "Change in the amount of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "description": "Change in the percentage of the primary compensation basis.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "supervisory_organization_id": {"name": "supervisory_organization_id", "description": "Identifier for the supervisory organization associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "description": "Identifier for the worker filling the position, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_position_id": {"name": "worker_position_id", "description": "Identifier for the worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_type_code": {"name": "worker_type_code", "description": "Code indicating the type of worker associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "created_at": 1712158227.591875}, "source.workday.workday.position_job_profile": {"database": "postgres", "schema": "workday_integration_tests", "name": "position_job_profile", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.position_job_profile", "fqn": ["workday", "staging", "workday", "position_job_profile"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_position_job_profile_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Captures the associations between specific positions and the job profiles they are linked to.", "columns": {"job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "description": "Code indicating the difficulty level in filling the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_critical_job": {"name": "is_critical_job", "description": "Flag indicating whether the position is considered critical based on the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_category_code": {"name": "job_category_code", "description": "Code indicating the category of the job profile associated with the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "name": {"name": "name", "description": "Name associated with the job profile linked to the position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "created_at": 1712158227.592108}, "source.workday.workday.worker_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_history", "fqn": ["workday", "staging", "workday", "worker_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker.", "columns": {"id": {"name": "id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_tenure_date": {"name": "academic_tenure_date", "description": "Date when academic tenure is achieved.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active": {"name": "active", "description": "Flag indicating the current active status of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "active_status_date": {"name": "active_status_date", "description": "Date when the active status was last updated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "description": "Currency used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "description": "Frequency of currency for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual compensation summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_currency": {"name": "annual_summary_currency", "description": "Currency used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_frequency": {"name": "annual_summary_frequency", "description": "Frequency of currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "description": "Primary compensation basis used for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "description": "Total base pay in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "description": "Total salary and allowances in the currency for annual summaries.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_service_date": {"name": "benefits_service_date", "description": "Date when the worker's benefits service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "company_service_date": {"name": "company_service_date", "description": "Date when the worker's service with the company started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_effective_date": {"name": "compensation_effective_date", "description": "Effective date when changes to the worker's compensation take effect.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_id": {"name": "compensation_grade_id", "description": "Identifier for the compensation grade.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "description": "Unique identifier for the compensation grade profile associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_date": {"name": "continuous_service_date", "description": "Date when the worker's continuous service with the organization started.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_assignment_details": {"name": "contract_assignment_details", "description": "Details of the worker's contract assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_currency_code": {"name": "contract_currency_code", "description": "Currency code used for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_end_date": {"name": "contract_end_date", "description": "Date when the worker's contract is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_frequency_name": {"name": "contract_frequency_name", "description": "Frequency of payment for the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_pay_rate": {"name": "contract_pay_rate", "description": "Pay rate associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "contract_vendor_name": {"name": "contract_vendor_name", "description": "Name of the vendor associated with the worker's contract.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_entered_workforce": {"name": "date_entered_workforce", "description": "Date when the worker entered the workforce.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "days_unemployed": {"name": "days_unemployed", "description": "Number of days the worker has been unemployed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_hire": {"name": "eligible_for_hire", "description": "Flag indicating whether the worker is eligible for hire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "description": "Flag indicating whether the worker is eligible for rehire based on the latest termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_currency": {"name": "employee_compensation_currency", "description": "Currency code used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_frequency": {"name": "employee_compensation_frequency", "description": "Frequency of payment for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "description": "Primary compensation basis used for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "description": "Total base pay for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "description": "Total salary and allowances for the worker's employee compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_date_of_return": {"name": "expected_date_of_return", "description": "Expected date of the worker's return.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_retirement_date": {"name": "expected_retirement_date", "description": "Expected date of the worker's retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "has_international_assignment": {"name": "has_international_assignment", "description": "Flag indicating whether the worker has an international assignment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_date": {"name": "hire_date", "description": "The date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_reason": {"name": "hire_reason", "description": "The reason for hiring the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hire_rescinded": {"name": "hire_rescinded", "description": "Flag indicating whether the worker's hire was rescinded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_currency": {"name": "hourly_frequency_currency", "description": "Currency code used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "description": "Frequency of payment for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "description": "Total base pay for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's hourly compensation.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_datefor_which_paid": {"name": "last_datefor_which_paid", "description": "Last date for which the worker was paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_termination_reason": {"name": "local_termination_reason", "description": "The reason for local termination of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "description": "Number of months of continuous prior employment.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "not_returning": {"name": "not_returning", "description": "Flag indicating whether the worker is not returning.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "original_hire_date": {"name": "original_hire_date", "description": "The original date when the worker was hired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "description": "Currency code used for the worker's pay group frequency.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "description": "Frequency of payment for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "description": "Primary compensation basis used for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "description": "Total base pay for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "description": "Total salary and allowances for the worker's pay group.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_category": {"name": "primary_termination_category", "description": "The primary termination category for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_termination_reason": {"name": "primary_termination_reason", "description": "The primary termination reason for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_end_date": {"name": "probation_end_date", "description": "The date when the worker's probation ends.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "probation_start_date": {"name": "probation_start_date", "description": "The date when the worker's probation starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "reason_reference_id": {"name": "reason_reference_id", "description": "The reference ID for the termination reason.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regrettable_termination": {"name": "regrettable_termination", "description": "Flag indicating whether the worker's termination is regrettable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rehire": {"name": "rehire", "description": "Flag indicating whether the worker is eligible for rehire.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "resignation_date": {"name": "resignation_date", "description": "The date when the worker resigned.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retired": {"name": "retired", "description": "Flag indicating whether the worker is retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_date": {"name": "retirement_date", "description": "The date when the worker retired.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "retirement_eligibility_date": {"name": "retirement_eligibility_date", "description": "The date when the worker becomes eligible for retirement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "return_unknown": {"name": "return_unknown", "description": "Flag indicating whether the worker's return status is unknown.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "seniority_date": {"name": "seniority_date", "description": "The date when the worker's seniority is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "severance_date": {"name": "severance_date", "description": "The date when the worker's severance is recorded.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "terminated": {"name": "terminated", "description": "Flag indicating whether the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_date": {"name": "termination_date", "description": "The date when the worker is terminated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_involuntary": {"name": "termination_involuntary", "description": "Flag indicating whether the termination is involuntary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "termination_last_day_of_work": {"name": "termination_last_day_of_work", "description": "The last day of work for the worker during termination.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "time_off_service_date": {"name": "time_off_service_date", "description": "The date when the worker's time-off service starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "universal_id": {"name": "universal_id", "description": "The universal ID associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "user_id": {"name": "user_id", "description": "The identifier for the user associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "vesting_date": {"name": "vesting_date", "description": "The date when the worker's vesting starts.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_code": {"name": "worker_code", "description": "The code associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "created_at": 1712158227.592281}, "source.workday.workday.personal_information_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_history", "fqn": ["workday", "staging", "workday", "personal_information_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "The personal information associated with each worker.", "columns": {"id": {"name": "id", "description": "The identifier for each personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of personal information record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_nationality": {"name": "additional_nationality", "description": "Additional nationality associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "blood_type": {"name": "blood_type", "description": "The blood type of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "citizenship_status": {"name": "citizenship_status", "description": "The citizenship status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth": {"name": "city_of_birth", "description": "The city of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "city_of_birth_code": {"name": "city_of_birth_code", "description": "The city of birth code of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country_of_birth": {"name": "country_of_birth", "description": "The country of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_birth": {"name": "date_of_birth", "description": "The date of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_death": {"name": "date_of_death", "description": "The date of death of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "gender": {"name": "gender", "description": "The gender of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hispanic_or_latino": {"name": "hispanic_or_latino", "description": "lag indicating whether the individual is Hispanic or Latino.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_locality": {"name": "hukou_locality", "description": "The locality associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_postal_code": {"name": "hukou_postal_code", "description": "The postal code associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_region": {"name": "hukou_region", "description": "The region associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_subregion": {"name": "hukou_subregion", "description": "The subregion associated with the Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hukou_type": {"name": "hukou_type", "description": "The type of Hukou.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_date": {"name": "last_medical_exam_date", "description": "The date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "description": "The validity date of the last medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_hukou": {"name": "local_hukou", "description": "Flag indicating whether the Hukou is local.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status": {"name": "marital_status", "description": "The marital status of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "marital_status_date": {"name": "marital_status_date", "description": "The date of the marital status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "medical_exam_notes": {"name": "medical_exam_notes", "description": "Notes from the medical exam.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region": {"name": "native_region", "description": "The native region of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "native_region_code": {"name": "native_region_code", "description": "The code of the native region.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personnel_file_agency": {"name": "personnel_file_agency", "description": "The agency associated with the personnel file.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "political_affiliation": {"name": "political_affiliation", "description": "The political affiliation of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_nationality": {"name": "primary_nationality", "description": "The primary nationality of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth": {"name": "region_of_birth", "description": "The region of birth of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "region_of_birth_code": {"name": "region_of_birth_code", "description": "The code of the region of birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religion": {"name": "religion", "description": "The religion of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_benefit": {"name": "social_benefit", "description": "The social benefit associated with the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tobacco_use": {"name": "tobacco_use", "description": "Flag indicating whether the individual uses tobacco.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "created_at": 1712158227.5923982}, "source.workday.workday.person_name": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_name", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_name", "fqn": ["workday", "staging", "workday", "person_name"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_name_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the name information for an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "type": {"name": "type", "description": "The type or category of the person name (e.g., legal name, preferred name).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_suffix": {"name": "academic_suffix", "description": "The academic suffix, if applicable (e.g., PhD, MD).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "additional_name_type": {"name": "additional_name_type", "description": "Additional type or category for the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "country": {"name": "country", "description": "The country associated with the person name.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "The first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "description": "The full name as used in Singapore and Malaysia.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "hereditary_suffix": {"name": "hereditary_suffix", "description": "The hereditary suffix, if applicable (e.g., Jr, Sr).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "honorary_suffix": {"name": "honorary_suffix", "description": "The honorary suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "The last name or surname of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name": {"name": "local_first_name", "description": "The local or native first name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_first_name_2": {"name": "local_first_name_2", "description": "Additional local or native first name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name": {"name": "local_last_name", "description": "The local or native last name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_last_name_2": {"name": "local_last_name_2", "description": "Additional local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name": {"name": "local_middle_name", "description": "The local or native middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_middle_name_2": {"name": "local_middle_name_2", "description": "Additional local or native middle name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name": {"name": "local_secondary_last_name", "description": "Secondary local or native last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "description": "Additional secondary local or native last name, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "middle_name": {"name": "middle_name", "description": "The middle name of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_salutation": {"name": "prefix_salutation", "description": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title": {"name": "prefix_title", "description": "The prefix or title associated with the name (e.g., Professor).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "prefix_title_code": {"name": "prefix_title_code", "description": "The code associated with the prefix or title.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "professional_suffix": {"name": "professional_suffix", "description": "The professional suffix, if applicable (e.g., Esq., CPA).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "religious_suffix": {"name": "religious_suffix", "description": "The religious suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "royal_suffix": {"name": "royal_suffix", "description": "The royal suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "secondary_last_name": {"name": "secondary_last_name", "description": "Secondary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix": {"name": "social_suffix", "description": "The social suffix, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_suffix_id": {"name": "social_suffix_id", "description": "The identifier for the social suffix.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "tertiary_last_name": {"name": "tertiary_last_name", "description": "Tertiary last name or surname, if applicable.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "created_at": 1712158227.59251}, "source.workday.workday.personal_information_ethnicity": {"database": "postgres", "schema": "workday_integration_tests", "name": "personal_information_ethnicity", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.personal_information_ethnicity", "fqn": ["workday", "staging", "workday", "personal_information_ethnicity"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_personal_information_ethnicity_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about the ethnicity of an individual in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_code": {"name": "ethnicity_code", "description": "The code representing the ethnicity of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "ethnicity_id": {"name": "ethnicity_id", "description": "The identifier associated with the ethnicity.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "created_at": 1712158227.5925848}, "source.workday.workday.military_service": {"database": "postgres", "schema": "workday_integration_tests", "name": "military_service", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.military_service", "fqn": ["workday", "staging", "workday", "military_service"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_military_service_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents information about an individual's military service in the Workday system.", "columns": {"index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "discharge_date": {"name": "discharge_date", "description": "The date on which the individual was discharged from military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "notes": {"name": "notes", "description": "Additional notes or comments related to the military service record.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "rank": {"name": "rank", "description": "The rank achieved by the individual during military service.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service": {"name": "service", "description": "The specific military service branch in which the individual served.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "service_type": {"name": "service_type", "description": "The type or category of military service (e.g., active duty, reserve, etc.).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the individual's military service (e.g., active, inactive, retired).", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "status_begin_date": {"name": "status_begin_date", "description": "The date on which the current military service status began.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "created_at": 1712158227.592694}, "source.workday.workday.person_contact_email_address": {"database": "postgres", "schema": "workday_integration_tests", "name": "person_contact_email_address", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.person_contact_email_address", "fqn": ["workday", "staging", "workday", "person_contact_email_address"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_person_contact_email_address_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the email addresses associated with a person in the Workday system.", "columns": {"id": {"name": "id", "description": "Unique identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "personal_info_system_id": {"name": "personal_info_system_id", "description": "The system ID associated with the personal information of the individual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "The actual email address of the person.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_code": {"name": "email_code", "description": "A code or label associated with the type or purpose of the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "email_comment": {"name": "email_comment", "description": "Any additional comments or notes related to the email address.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "created_at": 1712158227.592771}, "source.workday.workday.worker_position_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_history", "fqn": ["workday", "staging", "workday", "worker_position_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the positions held by workers in the Workday system", "columns": {"position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "description": "The end date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "description": "The start date of the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "description": "The work percentage of the year in the annual work period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "description": "The end date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "description": "The start date of the disbursement plan period in academic pay setup data.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_display_language": {"name": "business_site_summary_display_language", "description": "The display language of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_local": {"name": "business_site_summary_local", "description": "Local information related to the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location": {"name": "business_site_summary_location", "description": "The location of the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_location_type": {"name": "business_site_summary_location_type", "description": "The type of location for the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_name": {"name": "business_site_summary_name", "description": "The name associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "description": "The time profile associated with the business site summary.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "business_title": {"name": "business_title", "description": "The business title associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "critical_job": {"name": "critical_job", "description": "Flag indicating whether the job is critical.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "default_weekly_hours": {"name": "default_weekly_hours", "description": "The default weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "difficulty_to_fill": {"name": "difficulty_to_fill", "description": "Indication of the difficulty level in filling the job.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "effective_date": {"name": "effective_date", "description": "Date when the job profile becomes effective.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "employee_type": {"name": "employee_type", "description": "The type of employee associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_date": {"name": "end_date", "description": "The end date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "end_employment_date": {"name": "end_employment_date", "description": "Date when the worker's employment is scheduled to end.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "exclude_from_head_count": {"name": "exclude_from_head_count", "description": "Flag indicating whether the position is excluded from headcount.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_assignment_end_date": {"name": "expected_assignment_end_date", "description": "The expected end date of the assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "external_employee": {"name": "external_employee", "description": "Flag indicating whether the worker is an external employee.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "federal_withholding_fein": {"name": "federal_withholding_fein", "description": "The Federal Employer Identification Number (FEIN) for federal withholding.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "frequency": {"name": "frequency", "description": "The frequency associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "description": "The full-time equivalent (FTE) percentage associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "headcount_restriction_code": {"name": "headcount_restriction_code", "description": "The code associated with headcount restriction for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "home_country": {"name": "home_country", "description": "The home country of the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "host_country": {"name": "host_country", "description": "The host country associated with the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "international_assignment_type": {"name": "international_assignment_type", "description": "The type of international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_primary_job": {"name": "is_primary_job", "description": "Flag indicating whether the job is the primary job for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_exempt": {"name": "job_exempt", "description": "Indicates whether the job is exempt from certain regulations.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "job_profile_id": {"name": "job_profile_id", "description": "Identifier for the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "management_level_code": {"name": "management_level_code", "description": "Code indicating the management level associated with the job profile.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_fte": {"name": "paid_fte", "description": "The paid full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_group": {"name": "pay_group", "description": "The pay group associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate": {"name": "pay_rate", "description": "The pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_rate_type": {"name": "pay_rate_type", "description": "The type of pay rate associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "pay_through_date": {"name": "pay_through_date", "description": "The date through which the worker is paid.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_entity": {"name": "payroll_entity", "description": "The payroll entity associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_file_number": {"name": "payroll_file_number", "description": "The file number associated with payroll for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "description": "The regular paid equivalent hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "description": "The scheduled weekly hours associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_paid_fte": {"name": "specify_paid_fte", "description": "Flag indicating whether to specify paid FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "specify_working_fte": {"name": "specify_working_fte", "description": "Flag indicating whether to specify working FTE for the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_date": {"name": "start_date", "description": "The start date of the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "start_international_assignment_reason": {"name": "start_international_assignment_reason", "description": "The reason for starting an international assignment associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_hours_profile": {"name": "work_hours_profile", "description": "The work hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift": {"name": "work_shift", "description": "The work shift associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_shift_required": {"name": "work_shift_required", "description": "Flag indicating whether a work shift is required.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_space": {"name": "work_space", "description": "The work space associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "description": "The classification of worker hours profile associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_fte": {"name": "working_fte", "description": "The working full-time equivalent (FTE) associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_frequency": {"name": "working_time_frequency", "description": "The frequency of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_unit": {"name": "working_time_unit", "description": "The unit of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "working_time_value": {"name": "working_time_value", "description": "The value of working time associated with the worker position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "created_at": 1712158227.592913}, "source.workday.workday.worker_leave_status": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_leave_status", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_leave_status", "fqn": ["workday", "staging", "workday", "worker_leave_status"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_leave_status_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Represents the leave status of workers in the Workday system.", "columns": {"leave_request_event_id": {"name": "leave_request_event_id", "description": "The unique identifier for the leave request event.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Indicates if the record was soft-deleted by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_notification_date": {"name": "adoption_notification_date", "description": "The date of adoption notification.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "adoption_placement_date": {"name": "adoption_placement_date", "description": "The date of adoption placement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "age_of_dependent": {"name": "age_of_dependent", "description": "The age of the dependent associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "benefits_effect": {"name": "benefits_effect", "description": "The effect of leave on benefits.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "caesarean_section_birth": {"name": "caesarean_section_birth", "description": "Indicator for Caesarean section birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_birth_date": {"name": "child_birth_date", "description": "The date of child birth.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "child_sdate_of_death": {"name": "child_sdate_of_death", "description": "The start date of child death.>", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "description": "The effect of leave on continuous service accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "description": "The date when the baby arrived home from the hospital.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_child_entered_country": {"name": "date_child_entered_country", "description": "The date when the child entered the country.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_recall": {"name": "date_of_recall", "description": "The date of recall.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the type of leave", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "estimated_leave_end_date": {"name": "estimated_leave_end_date", "description": "The estimated end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "expected_due_date": {"name": "expected_due_date", "description": "The expected due date.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "first_day_of_work": {"name": "first_day_of_work", "description": "The date when the worker started their first day of work.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "last_date_for_which_paid": {"name": "last_date_for_which_paid", "description": "The last date being paid before leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_end_date": {"name": "leave_end_date", "description": "The end date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_entitlement_override": {"name": "leave_entitlement_override", "description": "Override for leave entitlement.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_last_day_of_work": {"name": "leave_last_day_of_work", "description": "The last day of work associated with the leave status.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_of_absence_type": {"name": "leave_of_absence_type", "description": "The type of leave of absence.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_percentage": {"name": "leave_percentage", "description": "The percentage of leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_return_event": {"name": "leave_return_event", "description": "The event associated with the return from leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_start_date": {"name": "leave_start_date", "description": "The start date of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_status_code": {"name": "leave_status_code", "description": "The code indicating the status of the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "leave_type_reason": {"name": "leave_type_reason", "description": "The reason for the leave type.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "location_during_leave": {"name": "location_during_leave", "description": "The location during the leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "multiple_child_indicator": {"name": "multiple_child_indicator", "description": "Indicator for multiple children.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "description": "The number of babies adopted by the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_child_dependents": {"name": "number_of_child_dependents", "description": "The number of child dependents.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_births": {"name": "number_of_previous_births", "description": "The number of previous births.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "description": "The number of previous maternity leaves.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "on_leave": {"name": "on_leave", "description": "Indicator for whether the worker is on leave.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "description": "The effect of leave on paid time off accrual.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "payroll_effect": {"name": "payroll_effect", "description": "The effect of leave on payroll.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "single_parent_indicator": {"name": "single_parent_indicator", "description": "Indicator for a single parent.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "social_security_disability_code": {"name": "social_security_disability_code", "description": "The code indicating social security disability.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stock_vesting_effect": {"name": "stock_vesting_effect", "description": "The effect of leave on stock vesting.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "stop_payment_date": {"name": "stop_payment_date", "description": "The date when stop payment occurs.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "week_of_confinement": {"name": "week_of_confinement", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "work_related": {"name": "work_related", "description": "Indicator for whether the leave is work-related.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "created_at": 1712158227.593032}, "source.workday.workday.worker_position_organization_history": {"database": "postgres", "schema": "workday_integration_tests", "name": "worker_position_organization_history", "resource_type": "source", "package_name": "workday", "path": "models/staging/src_workday.yml", "original_file_path": "models/staging/src_workday.yml", "unique_id": "source.workday.workday.worker_position_organization_history", "fqn": ["workday", "staging", "workday", "worker_position_organization_history"], "source_name": "workday", "source_description": "", "loader": "", "identifier": "workday_worker_position_organization_history_data", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": null, "freshness": {"warn_after": {"count": null, "period": null}, "error_after": {"count": null, "period": null}, "filter": null}, "external": null, "description": "Ties together workers to the positions and organizations they hold in the Workday system.", "columns": {"source_relation": {"name": "source_relation", "description": "The record's source if the unioning functionality is used. Otherwise this field will be empty.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "position_id": {"name": "position_id", "description": "Identifier for the specific position.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "worker_id": {"name": "worker_id", "description": "Unique identifier for the worker.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_active": {"name": "_fivetran_active", "description": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_start": {"name": "_fivetran_start", "description": "Timestamp when the record was first created or modified in the source.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_end": {"name": "_fivetran_end", "description": "Timestamp marking the end of a record being active.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp the record was synced by Fivetran.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "index": {"name": "index", "description": "An index for a particular identifier.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "description": "Date a group's pay is assigned to be processed.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "organization_id": {"name": "organization_id", "description": "Identifier for the organization.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "primary_business_site": {"name": "primary_business_site", "description": "Primary location a worker's business is situated.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}, "is_used_in_change_organization_assignments": {"name": "is_used_in_change_organization_assignments", "description": "If a worker has opted to change these organization assignments.", "meta": {}, "data_type": null, "constraints": [], "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "created_at": 1712158227.5931158}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"name": "postgres__current_timestamp", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.3859022, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"name": "postgres__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.3864489, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"name": "postgres__snapshot_get_time", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.3865778, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"name": "postgres__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.386692, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"name": "postgres__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.3868742, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog_relations": {"name": "postgres__get_catalog_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog_relations", "macro_sql": "{% macro postgres__get_catalog_relations(information_schema, relations) -%}\n {%- call statement('catalog', fetch_result=True) -%}\n\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n when 'm' then 'MATERIALIZED VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n where (\n {%- for relation in relations -%}\n {%- if relation.identifier -%}\n (upper(sch.nspname) = upper('{{ relation.schema }}') and\n upper(tbl.relname) = upper('{{ relation.identifier }}'))\n {%- else-%}\n upper(sch.nspname) = upper('{{ relation.schema }}')\n {%- endif -%}\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p', 'm') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table, [m]aterialized view. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.390514, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"name": "postgres__get_catalog", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "unique_id": "macro.dbt_postgres.postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n {%- set relations = [] -%}\n {%- for schema in schemas -%}\n {%- set dummy = relations.append({'schema': schema}) -%}\n {%- endfor -%}\n {{ return(postgres__get_catalog_relations(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.391343, "supported_languages": null}, "macro.dbt_postgres.postgres__get_relations": {"name": "postgres__get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres__get_relations", "macro_sql": "{% macro postgres__get_relations() -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v', 'm')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.392722, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"name": "postgres_get_relations", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "unique_id": "macro.dbt_postgres.postgres_get_relations", "macro_sql": "{% macro postgres_get_relations() %}\n {{ return(postgres__get_relations()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.393016, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"name": "postgres__create_table_as", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {% endif -%}\n {% if contract_config.enforced and (not temporary) -%}\n {{ get_table_columns_and_constraints() }} ;\n insert into {{ relation }} (\n {{ adapter.dispatch('get_column_names', 'dbt')() }}\n )\n {%- set sql = get_select_subquery(sql) %}\n {% else %}\n as\n {% endif %}\n (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.default__get_column_names", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4141881, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"name": "postgres__get_create_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.414783, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"name": "postgres__create_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.415103, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"name": "postgres__drop_schema", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4154088, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"name": "postgres__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.415879, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"name": "postgres__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n matviewname as name,\n schemaname as schema,\n 'materialized_view' as type\n from pg_matviews\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.416306, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"name": "postgres__information_schema_name", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.416478, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"name": "postgres__list_schemas", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.416814, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"name": "postgres__check_schema_exists", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.417234, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"name": "postgres__make_relation_with_suffix", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.418367, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"name": "postgres__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.418591, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"name": "postgres__make_temp_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.418915, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"name": "postgres__make_backup_relation", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.419295, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"name": "postgres_escape_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.419737, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"name": "postgres__alter_relation_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.420358, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"name": "postgres__alter_column_comment", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4215438, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"name": "postgres__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.421964, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"name": "postgres__copy_grants", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.422094, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_indexes_sql": {"name": "postgres__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_show_indexes_sql", "macro_sql": "{% macro postgres__get_show_indexes_sql(relation) %}\n select\n i.relname as name,\n m.amname as method,\n ix.indisunique as \"unique\",\n array_to_string(array_agg(a.attname), ',') as column_names\n from pg_index ix\n join pg_class i\n on i.oid = ix.indexrelid\n join pg_am m\n on m.oid=i.relam\n join pg_class t\n on t.oid = ix.indrelid\n join pg_namespace n\n on n.oid = t.relnamespace\n join pg_attribute a\n on a.attrelid = t.oid\n and a.attnum = ANY(ix.indkey)\n where t.relname = '{{ relation.identifier }}'\n and n.nspname = '{{ relation.schema }}'\n and t.relkind in ('r', 'm')\n group by 1, 2, 3\n order by 1, 2, 3\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.422278, "supported_languages": null}, "macro.dbt_postgres.postgres__get_drop_index_sql": {"name": "postgres__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "unique_id": "macro.dbt_postgres.postgres__get_drop_index_sql", "macro_sql": "\n\n\n{%- macro postgres__get_drop_index_sql(relation, index_name) -%}\n drop index if exists \"{{ relation.schema }}\".\"{{ index_name }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.422417, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"name": "postgres__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.422833, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"name": "postgres__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.423559, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_materialized_view": {"name": "postgres__drop_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_materialized_view", "macro_sql": "{% macro postgres__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4237518, "supported_languages": null}, "macro.dbt_postgres.postgres__describe_materialized_view": {"name": "postgres__describe_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/describe.sql", "original_file_path": "macros/relations/materialized_view/describe.sql", "unique_id": "macro.dbt_postgres.postgres__describe_materialized_view", "macro_sql": "{% macro postgres__describe_materialized_view(relation) %}\n -- for now just get the indexes, we don't need the name or the query yet\n {% set _indexes = run_query(get_show_indexes_sql(relation)) %}\n {% do return({'indexes': _indexes}) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.424066, "supported_languages": null}, "macro.dbt_postgres.postgres__refresh_materialized_view": {"name": "postgres__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt_postgres.postgres__refresh_materialized_view", "macro_sql": "{% macro postgres__refresh_materialized_view(relation) %}\n refresh materialized view {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.424203, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_materialized_view_sql": {"name": "postgres__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_materialized_view_sql", "macro_sql": "{% macro postgres__get_rename_materialized_view_sql(relation, new_name) %}\n alter materialized view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.424372, "supported_languages": null}, "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql": {"name": "postgres__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n\n -- apply a full refresh immediately if needed\n {% if configuration_changes.requires_full_refresh %}\n\n {{ get_replace_sql(existing_relation, relation, sql) }}\n\n -- otherwise apply individual changes as needed\n {% else %}\n\n {{ postgres__update_indexes_on_materialized_view(relation, configuration_changes.indexes) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_sql", "macro.dbt_postgres.postgres__update_indexes_on_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.425164, "supported_languages": null}, "macro.dbt_postgres.postgres__update_indexes_on_materialized_view": {"name": "postgres__update_indexes_on_materialized_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__update_indexes_on_materialized_view", "macro_sql": "\n\n\n{%- macro postgres__update_indexes_on_materialized_view(relation, index_changes) -%}\n {{- log(\"Applying UPDATE INDEXES to: \" ~ relation) -}}\n\n {%- for _index_change in index_changes -%}\n {%- set _index = _index_change.context -%}\n\n {%- if _index_change.action == \"drop\" -%}\n\n {{ postgres__get_drop_index_sql(relation, _index.name) }};\n\n {%- elif _index_change.action == \"create\" -%}\n\n {{ postgres__get_create_index_sql(relation, _index.as_node_config) }}\n\n {%- endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql", "macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.42562, "supported_languages": null}, "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes": {"name": "postgres__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt_postgres.postgres__get_materialized_view_configuration_changes", "macro_sql": "{% macro postgres__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {% set _existing_materialized_view = postgres__describe_materialized_view(existing_relation) %}\n {% set _configuration_changes = existing_relation.get_materialized_view_config_change_collection(_existing_materialized_view, new_config) %}\n {% do return(_configuration_changes) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__describe_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.425896, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql": {"name": "postgres__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt_postgres.postgres__get_create_materialized_view_as_sql", "macro_sql": "{% macro postgres__get_create_materialized_view_as_sql(relation, sql) %}\n create materialized view if not exists {{ relation }} as {{ sql }};\n\n {% for _index_dict in config.get('indexes', []) -%}\n {{- get_create_index_sql(relation, _index_dict) -}}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.42625, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_table": {"name": "postgres__drop_table", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_table", "macro_sql": "{% macro postgres__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4263868, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_table_sql": {"name": "postgres__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_table_sql", "macro_sql": "{% macro postgres__get_replace_table_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace table {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.427171, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_table_sql": {"name": "postgres__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_table_sql", "macro_sql": "{% macro postgres__get_rename_table_sql(relation, new_name) %}\n alter table {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.427341, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_view": {"name": "postgres__drop_view", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt_postgres.postgres__drop_view", "macro_sql": "{% macro postgres__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.427466, "supported_languages": null}, "macro.dbt_postgres.postgres__get_replace_view_sql": {"name": "postgres__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt_postgres.postgres__get_replace_view_sql", "macro_sql": "{% macro postgres__get_replace_view_sql(relation, sql) -%}\n\n {%- set sql_header = config.get('sql_header', none) -%}\n {{ sql_header if sql_header is not none }}\n\n create or replace view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.427979, "supported_languages": null}, "macro.dbt_postgres.postgres__get_rename_view_sql": {"name": "postgres__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt_postgres.postgres__get_rename_view_sql", "macro_sql": "{% macro postgres__get_rename_view_sql(relation, new_name) %}\n alter view {{ relation }} rename to {{ new_name }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.428148, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"name": "postgres__dateadd", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt_postgres.postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4283478, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"name": "postgres__listagg", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt_postgres.postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4291892, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"name": "postgres__datediff", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt_postgres.postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4321952, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"name": "postgres__any_value", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt_postgres.postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.432362, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"name": "postgres__last_day", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt_postgres.postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.432832, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"name": "postgres__split_part", "resource_type": "macro", "package_name": "dbt_postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt_postgres.postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4332108, "supported_languages": null}, "macro.dbt.run_hooks": {"name": "run_hooks", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.434562, "supported_languages": null}, "macro.dbt.make_hook_config": {"name": "make_hook_config", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4351308, "supported_languages": null}, "macro.dbt.before_begin": {"name": "before_begin", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.435314, "supported_languages": null}, "macro.dbt.in_transaction": {"name": "in_transaction", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.435453, "supported_languages": null}, "macro.dbt.after_commit": {"name": "after_commit", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "unique_id": "macro.dbt.after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4355898, "supported_languages": null}, "macro.dbt.set_sql_header": {"name": "set_sql_header", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.435981, "supported_languages": null}, "macro.dbt.should_full_refresh": {"name": "should_full_refresh", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.436286, "supported_languages": null}, "macro.dbt.should_store_failures": {"name": "should_store_failures", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "unique_id": "macro.dbt.should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4369102, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"name": "snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.437428, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"name": "default__snapshot_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "unique_id": "macro.dbt.default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.437834, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"name": "strategy_dispatch", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.44155, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"name": "snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.441741, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"name": "default__snapshot_hash_arguments", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4419599, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"name": "snapshot_timestamp_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4428768, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"name": "snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4430878, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"name": "default__snapshot_string_as_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.443278, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"name": "snapshot_check_all_get_existing_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n {#-- N.B. The whitespace below is necessary to avoid edge case issue with comments --#}\n {#-- See: https://github.com/dbt-labs/dbt-core/issues/6781 --#}\n select {{ check_cols_config | join(', ') }} from (\n {{ node['compiled_code'] }}\n ) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.444774, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"name": "snapshot_check_strategy", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "unique_id": "macro.dbt.snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.446611, "supported_languages": null}, "macro.dbt.create_columns": {"name": "create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.450943, "supported_languages": null}, "macro.dbt.default__create_columns": {"name": "default__create_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4515111, "supported_languages": null}, "macro.dbt.post_snapshot": {"name": "post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.451967, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"name": "default__post_snapshot", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4521742, "supported_languages": null}, "macro.dbt.get_true_sql": {"name": "get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4523818, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"name": "default__get_true_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.452511, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"name": "snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.452776, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"name": "default__snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.453963, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"name": "build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.454554, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"name": "default__build_snapshot_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.454832, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"name": "build_snapshot_staging_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "unique_id": "macro.dbt.build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.455263, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"name": "materialization_snapshot_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "unique_id": "macro.dbt.materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.461751, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"name": "materialization_test_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "unique_id": "macro.dbt.materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% set store_failures_as = config.get('store_failures_as') %}\n -- if `--store-failures` is invoked via command line and `store_failures_as` is not set,\n -- config.get('store_failures_as', 'table') returns None, not 'table'\n {% if store_failures_as == none %}{% set store_failures_as = 'table' %}{% endif %}\n {% if store_failures_as not in ['table', 'view'] %}\n {{ exceptions.raise_compiler_error(\n \"'\" ~ store_failures_as ~ \"' is not a valid value for `store_failures_as`. \"\n \"Accepted values are: ['ephemeral', 'table', 'view']\"\n ) }}\n {% endif %}\n\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type=store_failures_as) -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ get_create_sql(target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.get_create_sql", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4649012, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"name": "get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4653592, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"name": "default__get_test_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "unique_id": "macro.dbt.default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.465642, "supported_languages": null}, "macro.dbt.get_where_subquery": {"name": "get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.465986, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"name": "default__get_where_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "unique_id": "macro.dbt.default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.46633, "supported_languages": null}, "macro.dbt.materialization_materialized_view_default": {"name": "materialization_materialized_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialization_materialized_view_default", "macro_sql": "{% materialization materialized_view, default %}\n {% set existing_relation = load_cached_relation(this) %}\n {% set target_relation = this.incorporate(type=this.MaterializedView) %}\n {% set intermediate_relation = make_intermediate_relation(target_relation) %}\n {% set backup_relation_type = target_relation.MaterializedView if existing_relation is none else existing_relation.type %}\n {% set backup_relation = make_backup_relation(target_relation, backup_relation_type) %}\n\n {{ materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) }}\n\n {% set build_sql = materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% if build_sql == '' %}\n {{ materialized_view_execute_no_op(target_relation) }}\n {% else %}\n {{ materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) }}\n {% endif %}\n\n {{ materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.materialized_view_setup", "macro.dbt.materialized_view_get_build_sql", "macro.dbt.materialized_view_execute_no_op", "macro.dbt.materialized_view_execute_build_sql", "macro.dbt.materialized_view_teardown"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.470691, "supported_languages": ["sql"]}, "macro.dbt.materialized_view_setup": {"name": "materialized_view_setup", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_setup", "macro_sql": "{% macro materialized_view_setup(backup_relation, intermediate_relation, pre_hooks) %}\n\n -- backup_relation and intermediate_relation should not already exist in the database\n -- it's possible these exist because of a previous run that exited unexpectedly\n {% set preexisting_backup_relation = load_cached_relation(backup_relation) %}\n {% set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.471176, "supported_languages": null}, "macro.dbt.materialized_view_teardown": {"name": "materialized_view_teardown", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_teardown", "macro_sql": "{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}\n\n -- drop the temp relations if they exist to leave the database clean for the next run\n {{ drop_relation_if_exists(backup_relation) }}\n {{ drop_relation_if_exists(intermediate_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.471431, "supported_languages": null}, "macro.dbt.materialized_view_get_build_sql": {"name": "materialized_view_get_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_get_build_sql", "macro_sql": "{% macro materialized_view_get_build_sql(existing_relation, target_relation, backup_relation, intermediate_relation) %}\n\n {% set full_refresh_mode = should_full_refresh() %}\n\n -- determine the scenario we're in: create, full_refresh, alter, refresh data\n {% if existing_relation is none %}\n {% set build_sql = get_create_materialized_view_as_sql(target_relation, sql) %}\n {% elif full_refresh_mode or not existing_relation.is_materialized_view %}\n {% set build_sql = get_replace_sql(existing_relation, target_relation, sql) %}\n {% else %}\n\n -- get config options\n {% set on_configuration_change = config.get('on_configuration_change') %}\n {% set configuration_changes = get_materialized_view_configuration_changes(existing_relation, config) %}\n\n {% if configuration_changes is none %}\n {% set build_sql = refresh_materialized_view(target_relation) %}\n\n {% elif on_configuration_change == 'apply' %}\n {% set build_sql = get_alter_materialized_view_as_sql(target_relation, configuration_changes, sql, existing_relation, backup_relation, intermediate_relation) %}\n {% elif on_configuration_change == 'continue' %}\n {% set build_sql = '' %}\n {{ exceptions.warn(\"Configuration changes were identified and `on_configuration_change` was set to `continue` for `\" ~ target_relation ~ \"`\") }}\n {% elif on_configuration_change == 'fail' %}\n {{ exceptions.raise_fail_fast_error(\"Configuration changes were identified and `on_configuration_change` was set to `fail` for `\" ~ target_relation ~ \"`\") }}\n\n {% else %}\n -- this only happens if the user provides a value other than `apply`, 'skip', 'fail'\n {{ exceptions.raise_compiler_error(\"Unexpected configuration scenario\") }}\n\n {% endif %}\n\n {% endif %}\n\n {% do return(build_sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.get_create_materialized_view_as_sql", "macro.dbt.get_replace_sql", "macro.dbt.get_materialized_view_configuration_changes", "macro.dbt.refresh_materialized_view", "macro.dbt.get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.472675, "supported_languages": null}, "macro.dbt.materialized_view_execute_no_op": {"name": "materialized_view_execute_no_op", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_no_op", "macro_sql": "{% macro materialized_view_execute_no_op(target_relation) %}\n {% do store_raw_result(\n name=\"main\",\n message=\"skip \" ~ target_relation,\n code=\"skip\",\n rows_affected=\"-1\"\n ) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.472904, "supported_languages": null}, "macro.dbt.materialized_view_execute_build_sql": {"name": "materialized_view_execute_build_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/materialized_view.sql", "original_file_path": "macros/materializations/models/materialized_view.sql", "unique_id": "macro.dbt.materialized_view_execute_build_sql", "macro_sql": "{% macro materialized_view_execute_build_sql(build_sql, existing_relation, target_relation, post_hooks) %}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set grant_config = config.get('grants') %}\n\n {% call statement(name=\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.473525, "supported_languages": null}, "macro.dbt.materialization_view_default": {"name": "materialization_view_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/view.sql", "original_file_path": "macros/materializations/models/view.sql", "unique_id": "macro.dbt.materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.476919, "supported_languages": ["sql"]}, "macro.dbt.materialization_table_default": {"name": "materialization_table_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/table.sql", "original_file_path": "macros/materializations/models/table.sql", "unique_id": "macro.dbt.materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n /* Do the equivalent of rename_if_exists. 'existing_relation' could have been dropped\n since the variable was first set. */\n {% set existing_relation = load_cached_relation(existing_relation) %}\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4795818, "supported_languages": ["sql"]}, "macro.dbt.get_quoted_csv": {"name": "get_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4811678, "supported_languages": null}, "macro.dbt.diff_columns": {"name": "diff_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.481717, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"name": "diff_column_data_types", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.482412, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"name": "get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.482652, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"name": "default__get_merge_update_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "unique_id": "macro.dbt.default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.483308, "supported_languages": null}, "macro.dbt.get_merge_sql": {"name": "get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n -- back compat for old kwarg name\n {% set incremental_predicates = kwargs.get('predicates', incremental_predicates) %}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.489063, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"name": "default__get_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, incremental_predicates=none) -%}\n {%- set predicates = [] if incremental_predicates is none else [] + incremental_predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{\"(\" ~ predicates | join(\") and (\") ~ \")\"}}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.49079, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"name": "get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns, incremental_predicates) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4911082, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"name": "default__get_delete_insert_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns, incremental_predicates) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last}}\n {% endfor %}\n {% if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {% endif %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n )\n {%- if incremental_predicates %}\n {% for predicate in incremental_predicates %}\n and {{ predicate }}\n {% endfor %}\n {%- endif -%};\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.492008, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"name": "get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.492256, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"name": "default__get_insert_overwrite_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.492854, "supported_languages": null}, "macro.dbt.is_incremental": {"name": "is_incremental", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "unique_id": "macro.dbt.is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.493448, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"name": "get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.494237, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"name": "default__get_incremental_append_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4944499, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"name": "get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.494619, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"name": "default__get_incremental_delete_insert_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.494882, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"name": "get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.495138, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"name": "default__get_incremental_merge_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.495401, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"name": "get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.495584, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"name": "default__get_incremental_insert_overwrite_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"incremental_predicates\"])) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.49582, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"name": "get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.495989, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"name": "default__get_incremental_default_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.4961221, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"name": "get_insert_into_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "unique_id": "macro.dbt.get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.496369, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"name": "materialization_incremental_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "unique_id": "macro.dbt.materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('predicates', none) or config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'incremental_predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.500799, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"name": "incremental_validate_on_schema_change", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.505833, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"name": "check_for_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.506939, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"name": "sync_column_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.508012, "supported_languages": null}, "macro.dbt.process_schema_changes": {"name": "process_schema_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "unique_id": "macro.dbt.process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.508781, "supported_languages": null}, "macro.dbt.can_clone_table": {"name": "can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.can_clone_table", "macro_sql": "{% macro can_clone_table() %}\n {{ return(adapter.dispatch('can_clone_table', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__can_clone_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.509011, "supported_languages": null}, "macro.dbt.default__can_clone_table": {"name": "default__can_clone_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/can_clone_table.sql", "original_file_path": "macros/materializations/models/clone/can_clone_table.sql", "unique_id": "macro.dbt.default__can_clone_table", "macro_sql": "{% macro default__can_clone_table() %}\n {{ return(False) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5091178, "supported_languages": null}, "macro.dbt.create_or_replace_clone": {"name": "create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.create_or_replace_clone", "macro_sql": "{% macro create_or_replace_clone(this_relation, defer_relation) %}\n {{ return(adapter.dispatch('create_or_replace_clone', 'dbt')(this_relation, defer_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_or_replace_clone"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5093818, "supported_languages": null}, "macro.dbt.default__create_or_replace_clone": {"name": "default__create_or_replace_clone", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/create_or_replace_clone.sql", "original_file_path": "macros/materializations/models/clone/create_or_replace_clone.sql", "unique_id": "macro.dbt.default__create_or_replace_clone", "macro_sql": "{% macro default__create_or_replace_clone(this_relation, defer_relation) %}\n create or replace table {{ this_relation }} clone {{ defer_relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.509504, "supported_languages": null}, "macro.dbt.materialization_clone_default": {"name": "materialization_clone_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/models/clone/clone.sql", "original_file_path": "macros/materializations/models/clone/clone.sql", "unique_id": "macro.dbt.materialization_clone_default", "macro_sql": "{%- materialization clone, default -%}\n\n {%- set relations = {'relations': []} -%}\n\n {%- if not defer_relation -%}\n -- nothing to do\n {{ log(\"No relation found in state manifest for \" ~ model.unique_id, info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n\n {%- if existing_relation and not flags.FULL_REFRESH -%}\n -- noop!\n {{ log(\"Relation \" ~ existing_relation ~ \" already exists\", info=True) }}\n {{ return(relations) }}\n {%- endif -%}\n\n {%- set other_existing_relation = load_cached_relation(defer_relation) -%}\n\n -- If this is a database that can do zero-copy cloning of tables, and the other relation is a table, then this will be a table\n -- Otherwise, this will be a view\n\n {% set can_clone_table = can_clone_table() %}\n\n {%- if other_existing_relation and other_existing_relation.type == 'table' and can_clone_table -%}\n\n {%- set target_relation = this.incorporate(type='table') -%}\n {% if existing_relation is not none and not existing_relation.is_table %}\n {{ log(\"Dropping relation \" ~ existing_relation ~ \" because it is of type \" ~ existing_relation.type) }}\n {{ drop_relation_if_exists(existing_relation) }}\n {% endif %}\n\n -- as a general rule, data platforms that can clone tables can also do atomic 'create or replace'\n {% call statement('main') %}\n {% if target_relation and defer_relation and target_relation == defer_relation %}\n {{ log(\"Target relation and defer relation are the same, skipping clone for relation: \" ~ target_relation) }}\n {% else %}\n {{ create_or_replace_clone(target_relation, defer_relation) }}\n {% endif %}\n\n {% endcall %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n {% do persist_docs(target_relation, model) %}\n\n {{ return({'relations': [target_relation]}) }}\n\n {%- else -%}\n\n {%- set target_relation = this.incorporate(type='view') -%}\n\n -- reuse the view materialization\n -- TODO: support actual dispatch for materialization macros\n -- Tracking ticket: https://github.com/dbt-labs/dbt-core/issues/7799\n {% set search_name = \"materialization_view_\" ~ adapter.type() %}\n {% if not search_name in context %}\n {% set search_name = \"materialization_view_default\" %}\n {% endif %}\n {% set materialization_macro = context[search_name] %}\n {% set relations = materialization_macro() %}\n {{ return(relations) }}\n\n {%- endif -%}\n\n{%- endmaterialization -%}", "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.can_clone_table", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_or_replace_clone", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.513063, "supported_languages": ["sql"]}, "macro.dbt.materialization_seed_default": {"name": "materialization_seed_default", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "unique_id": "macro.dbt.materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparison later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.516175, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"name": "create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.520403, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"name": "default__create_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.521336, "supported_languages": null}, "macro.dbt.reset_csv_table": {"name": "reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5216541, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"name": "default__reset_csv_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5221918, "supported_languages": null}, "macro.dbt.get_csv_sql": {"name": "get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.522411, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"name": "default__get_csv_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5225432, "supported_languages": null}, "macro.dbt.get_binding_char": {"name": "get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5226738, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"name": "default__get_binding_char", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.522791, "supported_languages": null}, "macro.dbt.get_batch_size": {"name": "get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.522948, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"name": "default__get_batch_size", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5230799, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"name": "get_seed_column_quoted_csv", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.523542, "supported_languages": null}, "macro.dbt.load_csv_rows": {"name": "load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.52371, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"name": "default__load_csv_rows", "resource_type": "macro", "package_name": "dbt", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "unique_id": "macro.dbt.default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.52487, "supported_languages": null}, "macro.dbt.generate_alias_name": {"name": "generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5252879, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"name": "default__generate_alias_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "unique_id": "macro.dbt.default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name -%}\n\n {{ custom_alias_name | trim }}\n\n {%- elif node.version -%}\n\n {{ return(node.name ~ \"_v\" ~ (node.version | replace(\".\", \"_\"))) }}\n\n {%- else -%}\n\n {{ node.name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.525631, "supported_languages": null}, "macro.dbt.generate_schema_name": {"name": "generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.526112, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"name": "default__generate_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.526355, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"name": "generate_schema_name_for_env", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "unique_id": "macro.dbt.generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.526624, "supported_languages": null}, "macro.dbt.generate_database_name": {"name": "generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5269911, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"name": "default__generate_database_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "unique_id": "macro.dbt.default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.52722, "supported_languages": null}, "macro.dbt.get_drop_sql": {"name": "get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.get_drop_sql", "macro_sql": "{%- macro get_drop_sql(relation) -%}\n {{- log('Applying DROP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.528279, "supported_languages": null}, "macro.dbt.default__get_drop_sql": {"name": "default__get_drop_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__get_drop_sql", "macro_sql": "{%- macro default__get_drop_sql(relation) -%}\n\n {%- if relation.is_view -%}\n {{ drop_view(relation) }}\n\n {%- elif relation.is_table -%}\n {{ drop_table(relation) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ drop_materialized_view(relation) }}\n\n {%- else -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.drop_view", "macro.dbt.drop_table", "macro.dbt.drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5286589, "supported_languages": null}, "macro.dbt.drop_relation": {"name": "drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.528843, "supported_languages": null}, "macro.dbt.default__drop_relation": {"name": "default__drop_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n {{ get_drop_sql(relation) }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5290391, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"name": "drop_relation_if_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop.sql", "original_file_path": "macros/relations/drop.sql", "unique_id": "macro.dbt.drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5292459, "supported_languages": null}, "macro.dbt.get_replace_sql": {"name": "get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.get_replace_sql", "macro_sql": "{% macro get_replace_sql(existing_relation, target_relation, sql) %}\n {{- log('Applying REPLACE to: ' ~ existing_relation) -}}\n {{- adapter.dispatch('get_replace_sql', 'dbt')(existing_relation, target_relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.530097, "supported_languages": null}, "macro.dbt.default__get_replace_sql": {"name": "default__get_replace_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/replace.sql", "original_file_path": "macros/relations/replace.sql", "unique_id": "macro.dbt.default__get_replace_sql", "macro_sql": "{% macro default__get_replace_sql(existing_relation, target_relation, sql) %}\n\n {# /* use a create or replace statement if possible */ #}\n\n {% set is_replaceable = existing_relation.type == target_relation_type and existing_relation.can_be_replaced %}\n\n {% if is_replaceable and existing_relation.is_view %}\n {{ get_replace_view_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_table %}\n {{ get_replace_table_sql(target_relation, sql) }}\n\n {% elif is_replaceable and existing_relation.is_materialized_view %}\n {{ get_replace_materialized_view_sql(target_relation, sql) }}\n\n {# /* a create or replace statement is not possible, so try to stage and/or backup to be safe */ #}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one using a backup */ #}\n {%- elif target_relation.can_be_renamed and existing_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* create target_relation as an intermediate relation, then swap it out with the existing one without using a backup */ #}\n {%- elif target_relation.can_be_renamed -%}\n {{ get_create_intermediate_sql(target_relation, sql) }};\n {{ get_drop_sql(existing_relation) }};\n {{ get_rename_intermediate_sql(target_relation) }}\n\n {# /* create target_relation in place by first backing up the existing relation */ #}\n {%- elif existing_relation.can_be_renamed -%}\n {{ get_create_backup_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }};\n {{ get_drop_backup_sql(existing_relation) }}\n\n {# /* no renaming is allowed, so just drop and create */ #}\n {%- else -%}\n {{ get_drop_sql(existing_relation) }};\n {{ get_create_sql(target_relation, sql) }}\n\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_replace_view_sql", "macro.dbt.get_replace_table_sql", "macro.dbt.get_replace_materialized_view_sql", "macro.dbt.get_create_intermediate_sql", "macro.dbt.get_create_backup_sql", "macro.dbt.get_rename_intermediate_sql", "macro.dbt.get_drop_backup_sql", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.53148, "supported_languages": null}, "macro.dbt.get_create_intermediate_sql": {"name": "get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.get_create_intermediate_sql", "macro_sql": "{%- macro get_create_intermediate_sql(relation, sql) -%}\n {{- log('Applying CREATE INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_intermediate_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5319061, "supported_languages": null}, "macro.dbt.default__get_create_intermediate_sql": {"name": "default__get_create_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_intermediate.sql", "original_file_path": "macros/relations/create_intermediate.sql", "unique_id": "macro.dbt.default__get_create_intermediate_sql", "macro_sql": "{%- macro default__get_create_intermediate_sql(relation, sql) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n -- drop any pre-existing intermediate\n {{ get_drop_sql(intermediate_relation) }};\n\n {{ get_create_sql(intermediate_relation, sql) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5321531, "supported_languages": null}, "macro.dbt.get_drop_backup_sql": {"name": "get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.get_drop_backup_sql", "macro_sql": "{%- macro get_drop_backup_sql(relation) -%}\n {{- log('Applying DROP BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_drop_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_drop_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.532448, "supported_languages": null}, "macro.dbt.default__get_drop_backup_sql": {"name": "default__get_drop_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/drop_backup.sql", "original_file_path": "macros/relations/drop_backup.sql", "unique_id": "macro.dbt.default__get_drop_backup_sql", "macro_sql": "{%- macro default__get_drop_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n {{ get_drop_sql(backup_relation) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.532635, "supported_languages": null}, "macro.dbt.get_rename_sql": {"name": "get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.get_rename_sql", "macro_sql": "{%- macro get_rename_sql(relation, new_name) -%}\n {{- log('Applying RENAME to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_sql', 'dbt')(relation, new_name) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.533259, "supported_languages": null}, "macro.dbt.default__get_rename_sql": {"name": "default__get_rename_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__get_rename_sql", "macro_sql": "{%- macro default__get_rename_sql(relation, new_name) -%}\n\n {%- if relation.is_view -%}\n {{ get_rename_view_sql(relation, new_name) }}\n\n {%- elif relation.is_table -%}\n {{ get_rename_table_sql(relation, new_name) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_rename_materialized_view_sql(relation, new_name) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_rename_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.get_rename_view_sql", "macro.dbt.get_rename_table_sql", "macro.dbt.get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5336618, "supported_languages": null}, "macro.dbt.rename_relation": {"name": "rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.533859, "supported_languages": null}, "macro.dbt.default__rename_relation": {"name": "default__rename_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename.sql", "original_file_path": "macros/relations/rename.sql", "unique_id": "macro.dbt.default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.534123, "supported_languages": null}, "macro.dbt.get_create_backup_sql": {"name": "get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.get_create_backup_sql", "macro_sql": "{%- macro get_create_backup_sql(relation) -%}\n {{- log('Applying CREATE BACKUP to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_backup_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_backup_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.534443, "supported_languages": null}, "macro.dbt.default__get_create_backup_sql": {"name": "default__get_create_backup_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create_backup.sql", "original_file_path": "macros/relations/create_backup.sql", "unique_id": "macro.dbt.default__get_create_backup_sql", "macro_sql": "{%- macro default__get_create_backup_sql(relation) -%}\n\n -- get the standard backup name\n {% set backup_relation = make_backup_relation(relation, relation.type) %}\n\n -- drop any pre-existing backup\n {{ get_drop_sql(backup_relation) }};\n\n {{ get_rename_sql(relation, backup_relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_backup_relation", "macro.dbt.get_drop_sql", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.534698, "supported_languages": null}, "macro.dbt.get_create_sql": {"name": "get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.get_create_sql", "macro_sql": "{%- macro get_create_sql(relation, sql) -%}\n {{- log('Applying CREATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_create_sql', 'dbt')(relation, sql) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_create_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.535135, "supported_languages": null}, "macro.dbt.default__get_create_sql": {"name": "default__get_create_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/create.sql", "original_file_path": "macros/relations/create.sql", "unique_id": "macro.dbt.default__get_create_sql", "macro_sql": "{%- macro default__get_create_sql(relation, sql) -%}\n\n {%- if relation.is_view -%}\n {{ get_create_view_as_sql(relation, sql) }}\n\n {%- elif relation.is_table -%}\n {{ get_create_table_as_sql(False, relation, sql) }}\n\n {%- elif relation.is_materialized_view -%}\n {{ get_create_materialized_view_as_sql(relation, sql) }}\n\n {%- else -%}\n {{- exceptions.raise_compiler_error(\"`get_create_sql` has not been implemented for: \" ~ relation.type ) -}}\n\n {%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.get_create_view_as_sql", "macro.dbt.get_create_table_as_sql", "macro.dbt.get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.535543, "supported_languages": null}, "macro.dbt.get_rename_intermediate_sql": {"name": "get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.get_rename_intermediate_sql", "macro_sql": "{%- macro get_rename_intermediate_sql(relation) -%}\n {{- log('Applying RENAME INTERMEDIATE to: ' ~ relation) -}}\n {{- adapter.dispatch('get_rename_intermediate_sql', 'dbt')(relation) -}}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": ["macro.dbt.default__get_rename_intermediate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5359519, "supported_languages": null}, "macro.dbt.default__get_rename_intermediate_sql": {"name": "default__get_rename_intermediate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/rename_intermediate.sql", "original_file_path": "macros/relations/rename_intermediate.sql", "unique_id": "macro.dbt.default__get_rename_intermediate_sql", "macro_sql": "{%- macro default__get_rename_intermediate_sql(relation) -%}\n\n -- get the standard intermediate name\n {% set intermediate_relation = make_intermediate_relation(relation) %}\n\n {{ get_rename_sql(intermediate_relation, relation.identifier) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.make_intermediate_relation", "macro.dbt.get_rename_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.536185, "supported_languages": null}, "macro.dbt.drop_materialized_view": {"name": "drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.drop_materialized_view", "macro_sql": "{% macro drop_materialized_view(relation) -%}\n {{ return(adapter.dispatch('drop_materialized_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5364711, "supported_languages": null}, "macro.dbt.default__drop_materialized_view": {"name": "default__drop_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/drop.sql", "original_file_path": "macros/relations/materialized_view/drop.sql", "unique_id": "macro.dbt.default__drop_materialized_view", "macro_sql": "{% macro default__drop_materialized_view(relation) -%}\n drop materialized view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5365682, "supported_languages": null}, "macro.dbt.get_replace_materialized_view_sql": {"name": "get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.get_replace_materialized_view_sql", "macro_sql": "{% macro get_replace_materialized_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_materialized_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_replace_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.536814, "supported_languages": null}, "macro.dbt.default__get_replace_materialized_view_sql": {"name": "default__get_replace_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/replace.sql", "original_file_path": "macros/relations/materialized_view/replace.sql", "unique_id": "macro.dbt.default__get_replace_materialized_view_sql", "macro_sql": "{% macro default__get_replace_materialized_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5369432, "supported_languages": null}, "macro.dbt.refresh_materialized_view": {"name": "refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.refresh_materialized_view", "macro_sql": "{% macro refresh_materialized_view(relation) %}\n {{- log('Applying REFRESH to: ' ~ relation) -}}\n {{- adapter.dispatch('refresh_materialized_view', 'dbt')(relation) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__refresh_materialized_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.537225, "supported_languages": null}, "macro.dbt.default__refresh_materialized_view": {"name": "default__refresh_materialized_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/refresh.sql", "original_file_path": "macros/relations/materialized_view/refresh.sql", "unique_id": "macro.dbt.default__refresh_materialized_view", "macro_sql": "{% macro default__refresh_materialized_view(relation) %}\n {{ exceptions.raise_compiler_error(\"`refresh_materialized_view` has not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5374238, "supported_languages": null}, "macro.dbt.get_rename_materialized_view_sql": {"name": "get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.get_rename_materialized_view_sql", "macro_sql": "{% macro get_rename_materialized_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_materialized_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_materialized_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.537664, "supported_languages": null}, "macro.dbt.default__get_rename_materialized_view_sql": {"name": "default__get_rename_materialized_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/rename.sql", "original_file_path": "macros/relations/materialized_view/rename.sql", "unique_id": "macro.dbt.default__get_rename_materialized_view_sql", "macro_sql": "{% macro default__get_rename_materialized_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_materialized_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.537793, "supported_languages": null}, "macro.dbt.get_alter_materialized_view_as_sql": {"name": "get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_alter_materialized_view_as_sql", "macro_sql": "{% macro get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{- log('Applying ALTER to: ' ~ relation) -}}\n {{- adapter.dispatch('get_alter_materialized_view_as_sql', 'dbt')(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n ) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_alter_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.538334, "supported_languages": null}, "macro.dbt.default__get_alter_materialized_view_as_sql": {"name": "default__get_alter_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_alter_materialized_view_as_sql", "macro_sql": "{% macro default__get_alter_materialized_view_as_sql(\n relation,\n configuration_changes,\n sql,\n existing_relation,\n backup_relation,\n intermediate_relation\n) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.538495, "supported_languages": null}, "macro.dbt.get_materialized_view_configuration_changes": {"name": "get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.get_materialized_view_configuration_changes", "macro_sql": "{% macro get_materialized_view_configuration_changes(existing_relation, new_config) %}\n /* {#\n It's recommended that configuration changes be formatted as follows:\n {\"\": [{\"action\": \"\", \"context\": ...}]}\n\n For example:\n {\n \"indexes\": [\n {\"action\": \"drop\", \"context\": \"index_abc\"},\n {\"action\": \"create\", \"context\": {\"columns\": [\"column_1\", \"column_2\"], \"type\": \"hash\", \"unique\": True}},\n ],\n }\n\n Either way, `get_materialized_view_configuration_changes` needs to align with `get_alter_materialized_view_as_sql`.\n #} */\n {{- log('Determining configuration changes on: ' ~ existing_relation) -}}\n {%- do return(adapter.dispatch('get_materialized_view_configuration_changes', 'dbt')(existing_relation, new_config)) -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_materialized_view_configuration_changes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.538751, "supported_languages": null}, "macro.dbt.default__get_materialized_view_configuration_changes": {"name": "default__get_materialized_view_configuration_changes", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/alter.sql", "original_file_path": "macros/relations/materialized_view/alter.sql", "unique_id": "macro.dbt.default__get_materialized_view_configuration_changes", "macro_sql": "{% macro default__get_materialized_view_configuration_changes(existing_relation, new_config) %}\n {{ exceptions.raise_compiler_error(\"Materialized views have not been implemented for this adapter.\") }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5388858, "supported_languages": null}, "macro.dbt.get_create_materialized_view_as_sql": {"name": "get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.get_create_materialized_view_as_sql", "macro_sql": "{% macro get_create_materialized_view_as_sql(relation, sql) -%}\n {{- adapter.dispatch('get_create_materialized_view_as_sql', 'dbt')(relation, sql) -}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_materialized_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.539131, "supported_languages": null}, "macro.dbt.default__get_create_materialized_view_as_sql": {"name": "default__get_create_materialized_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/materialized_view/create.sql", "original_file_path": "macros/relations/materialized_view/create.sql", "unique_id": "macro.dbt.default__get_create_materialized_view_as_sql", "macro_sql": "{% macro default__get_create_materialized_view_as_sql(relation, sql) -%}\n {{ exceptions.raise_compiler_error(\n \"`get_create_materialized_view_as_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.539257, "supported_languages": null}, "macro.dbt.get_table_columns_and_constraints": {"name": "get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_table_columns_and_constraints", "macro_sql": "{%- macro get_table_columns_and_constraints() -%}\n {{ adapter.dispatch('get_table_columns_and_constraints', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.540145, "supported_languages": null}, "macro.dbt.default__get_table_columns_and_constraints": {"name": "default__get_table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_table_columns_and_constraints", "macro_sql": "{% macro default__get_table_columns_and_constraints() -%}\n {{ return(table_columns_and_constraints()) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.table_columns_and_constraints"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.540253, "supported_languages": null}, "macro.dbt.table_columns_and_constraints": {"name": "table_columns_and_constraints", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.table_columns_and_constraints", "macro_sql": "{% macro table_columns_and_constraints() %}\n {# loop through user_provided_columns to create DDL with data types and constraints #}\n {%- set raw_column_constraints = adapter.render_raw_columns_constraints(raw_columns=model['columns']) -%}\n {%- set raw_model_constraints = adapter.render_raw_model_constraints(raw_constraints=model['constraints']) -%}\n (\n {% for c in raw_column_constraints -%}\n {{ c }}{{ \",\" if not loop.last or raw_model_constraints }}\n {% endfor %}\n {% for c in raw_model_constraints -%}\n {{ c }}{{ \",\" if not loop.last }}\n {% endfor -%}\n )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.540726, "supported_languages": null}, "macro.dbt.get_assert_columns_equivalent": {"name": "get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.get_assert_columns_equivalent", "macro_sql": "\n\n{%- macro get_assert_columns_equivalent(sql) -%}\n {{ adapter.dispatch('get_assert_columns_equivalent', 'dbt')(sql) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.540879, "supported_languages": null}, "macro.dbt.default__get_assert_columns_equivalent": {"name": "default__get_assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__get_assert_columns_equivalent", "macro_sql": "{% macro default__get_assert_columns_equivalent(sql) -%}\n {{ return(assert_columns_equivalent(sql)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.541007, "supported_languages": null}, "macro.dbt.assert_columns_equivalent": {"name": "assert_columns_equivalent", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.assert_columns_equivalent", "macro_sql": "{% macro assert_columns_equivalent(sql) %}\n\n {#-- First ensure the user has defined 'columns' in yaml specification --#}\n {%- set user_defined_columns = model['columns'] -%}\n {%- if not user_defined_columns -%}\n {{ exceptions.raise_contract_error([], []) }}\n {%- endif -%}\n\n {#-- Obtain the column schema provided by sql file. #}\n {%- set sql_file_provided_columns = get_column_schema_from_query(sql, config.get('sql_header', none)) -%}\n {#--Obtain the column schema provided by the schema file by generating an 'empty schema' query from the model's columns. #}\n {%- set schema_file_provided_columns = get_column_schema_from_query(get_empty_schema_sql(user_defined_columns)) -%}\n\n {#-- create dictionaries with name and formatted data type and strings for exception #}\n {%- set sql_columns = format_columns(sql_file_provided_columns) -%}\n {%- set yaml_columns = format_columns(schema_file_provided_columns) -%}\n\n {%- if sql_columns|length != yaml_columns|length -%}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n\n {%- for sql_col in sql_columns -%}\n {%- set yaml_col = [] -%}\n {%- for this_col in yaml_columns -%}\n {%- if this_col['name'] == sql_col['name'] -%}\n {%- do yaml_col.append(this_col) -%}\n {%- break -%}\n {%- endif -%}\n {%- endfor -%}\n {%- if not yaml_col -%}\n {#-- Column with name not found in yaml #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- if sql_col['formatted'] != yaml_col[0]['formatted'] -%}\n {#-- Column data types don't match #}\n {%- do exceptions.raise_contract_error(yaml_columns, sql_columns) -%}\n {%- endif -%}\n {%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_column_schema_from_query", "macro.dbt.get_empty_schema_sql", "macro.dbt.format_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.542457, "supported_languages": null}, "macro.dbt.format_columns": {"name": "format_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.format_columns", "macro_sql": "{% macro format_columns(columns) %}\n {% set formatted_columns = [] %}\n {% for column in columns %}\n {%- set formatted_column = adapter.dispatch('format_column', 'dbt')(column) -%}\n {%- do formatted_columns.append(formatted_column) -%}\n {% endfor %}\n {{ return(formatted_columns) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__format_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.542838, "supported_languages": null}, "macro.dbt.default__format_column": {"name": "default__format_column", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/column/columns_spec_ddl.sql", "original_file_path": "macros/relations/column/columns_spec_ddl.sql", "unique_id": "macro.dbt.default__format_column", "macro_sql": "{% macro default__format_column(column) -%}\n {% set data_type = column.dtype %}\n {% set formatted = column.column.lower() ~ \" \" ~ data_type %}\n {{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.543253, "supported_languages": null}, "macro.dbt.drop_table": {"name": "drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.drop_table", "macro_sql": "{% macro drop_table(relation) -%}\n {{ return(adapter.dispatch('drop_table', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.543535, "supported_languages": null}, "macro.dbt.default__drop_table": {"name": "default__drop_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/drop.sql", "original_file_path": "macros/relations/table/drop.sql", "unique_id": "macro.dbt.default__drop_table", "macro_sql": "{% macro default__drop_table(relation) -%}\n drop table if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.543635, "supported_languages": null}, "macro.dbt.get_replace_table_sql": {"name": "get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.get_replace_table_sql", "macro_sql": "{% macro get_replace_table_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_table_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.543882, "supported_languages": null}, "macro.dbt.default__get_replace_table_sql": {"name": "default__get_replace_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/replace.sql", "original_file_path": "macros/relations/table/replace.sql", "unique_id": "macro.dbt.default__get_replace_table_sql", "macro_sql": "{% macro default__get_replace_table_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.544019, "supported_languages": null}, "macro.dbt.get_rename_table_sql": {"name": "get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.get_rename_table_sql", "macro_sql": "{% macro get_rename_table_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_table_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_table_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.544269, "supported_languages": null}, "macro.dbt.default__get_rename_table_sql": {"name": "default__get_rename_table_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/rename.sql", "original_file_path": "macros/relations/table/rename.sql", "unique_id": "macro.dbt.default__get_rename_table_sql", "macro_sql": "{% macro default__get_rename_table_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_table_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.544408, "supported_languages": null}, "macro.dbt.get_create_table_as_sql": {"name": "get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.545183, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"name": "default__get_create_table_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.545354, "supported_languages": null}, "macro.dbt.create_table_as": {"name": "create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.545744, "supported_languages": null}, "macro.dbt.default__create_table_as": {"name": "default__create_table_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced and (not temporary) %}\n {{ get_assert_columns_equivalent(sql) }}\n {{ get_table_columns_and_constraints() }}\n {%- set sql = get_select_subquery(sql) %}\n {% endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent", "macro.dbt.get_table_columns_and_constraints", "macro.dbt.get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.546771, "supported_languages": null}, "macro.dbt.default__get_column_names": {"name": "default__get_column_names", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_column_names", "macro_sql": "{% macro default__get_column_names() %}\n {#- loop through user_provided_columns to get column names -#}\n {%- set user_provided_columns = model['columns'] -%}\n {%- for i in user_provided_columns %}\n {%- set col = user_provided_columns[i] -%}\n {%- set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] -%}\n {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.547276, "supported_languages": null}, "macro.dbt.get_select_subquery": {"name": "get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.get_select_subquery", "macro_sql": "{% macro get_select_subquery(sql) %}\n {{ return(adapter.dispatch('get_select_subquery', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_select_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.547476, "supported_languages": null}, "macro.dbt.default__get_select_subquery": {"name": "default__get_select_subquery", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/table/create.sql", "original_file_path": "macros/relations/table/create.sql", "unique_id": "macro.dbt.default__get_select_subquery", "macro_sql": "{% macro default__get_select_subquery(sql) %}\n select {{ adapter.dispatch('get_column_names', 'dbt')() }}\n from (\n {{ sql }}\n ) as model_subq\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_column_names"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5476549, "supported_languages": null}, "macro.dbt.drop_view": {"name": "drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.drop_view", "macro_sql": "{% macro drop_view(relation) -%}\n {{ return(adapter.dispatch('drop_view', 'dbt')(relation)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_view"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5479329, "supported_languages": null}, "macro.dbt.default__drop_view": {"name": "default__drop_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/drop.sql", "original_file_path": "macros/relations/view/drop.sql", "unique_id": "macro.dbt.default__drop_view", "macro_sql": "{% macro default__drop_view(relation) -%}\n drop view if exists {{ relation }} cascade\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.548034, "supported_languages": null}, "macro.dbt.get_replace_view_sql": {"name": "get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.get_replace_view_sql", "macro_sql": "{% macro get_replace_view_sql(relation, sql) %}\n {{- adapter.dispatch('get_replace_view_sql', 'dbt')(relation, sql) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_replace_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.548853, "supported_languages": null}, "macro.dbt.default__get_replace_view_sql": {"name": "default__get_replace_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__get_replace_view_sql", "macro_sql": "{% macro default__get_replace_view_sql(relation, sql) %}\n {{ exceptions.raise_compiler_error(\n \"`get_replace_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.549001, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"name": "create_or_replace_view", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.550206, "supported_languages": null}, "macro.dbt.handle_existing_table": {"name": "handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.550415, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"name": "default__handle_existing_table", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/replace.sql", "original_file_path": "macros/relations/view/replace.sql", "unique_id": "macro.dbt.default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5506291, "supported_languages": null}, "macro.dbt.get_rename_view_sql": {"name": "get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.get_rename_view_sql", "macro_sql": "{% macro get_rename_view_sql(relation, new_name) %}\n {{- adapter.dispatch('get_rename_view_sql', 'dbt')(relation, new_name) -}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_rename_view_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.550886, "supported_languages": null}, "macro.dbt.default__get_rename_view_sql": {"name": "default__get_rename_view_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/rename.sql", "original_file_path": "macros/relations/view/rename.sql", "unique_id": "macro.dbt.default__get_rename_view_sql", "macro_sql": "{% macro default__get_rename_view_sql(relation, new_name) %}\n {{ exceptions.raise_compiler_error(\n \"`get_rename_view_sql` has not been implemented for this adapter.\"\n ) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.551019, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"name": "get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.551399, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"name": "default__get_create_view_as_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.551548, "supported_languages": null}, "macro.dbt.create_view_as": {"name": "create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.551716, "supported_languages": null}, "macro.dbt.default__create_view_as": {"name": "default__create_view_as", "resource_type": "macro", "package_name": "dbt", "path": "macros/relations/view/create.sql", "original_file_path": "macros/relations/view/create.sql", "unique_id": "macro.dbt.default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }}\n {% set contract_config = config.get('contract') %}\n {% if contract_config.enforced %}\n {{ get_assert_columns_equivalent(sql) }}\n {%- endif %}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.get_assert_columns_equivalent"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.552223, "supported_languages": null}, "macro.dbt.default__test_relationships": {"name": "default__test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "unique_id": "macro.dbt.default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5525918, "supported_languages": null}, "macro.dbt.default__test_not_null": {"name": "default__test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "unique_id": "macro.dbt.default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5528839, "supported_languages": null}, "macro.dbt.default__test_unique": {"name": "default__test_unique", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "unique_id": "macro.dbt.default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.553115, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"name": "default__test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "unique_id": "macro.dbt.default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5537589, "supported_languages": null}, "macro.dbt.statement": {"name": "statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.555337, "supported_languages": null}, "macro.dbt.noop_statement": {"name": "noop_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.555893, "supported_languages": null}, "macro.dbt.run_query": {"name": "run_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "unique_id": "macro.dbt.run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.556175, "supported_languages": null}, "macro.dbt.convert_datetime": {"name": "convert_datetime", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5582778, "supported_languages": null}, "macro.dbt.dates_in_range": {"name": "dates_in_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partition start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5598478, "supported_languages": null}, "macro.dbt.partition_range": {"name": "partition_range", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.560954, "supported_languages": null}, "macro.dbt.py_current_timestring": {"name": "py_current_timestring", "resource_type": "macro", "package_name": "dbt", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "unique_id": "macro.dbt.py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5613801, "supported_languages": null}, "macro.dbt.except": {"name": "except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.561703, "supported_languages": null}, "macro.dbt.default__except": {"name": "default__except", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "unique_id": "macro.dbt.default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.561821, "supported_languages": null}, "macro.dbt.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.562655, "supported_languages": null}, "macro.dbt.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.563295, "supported_languages": null}, "macro.dbt.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.56353, "supported_languages": null}, "macro.dbt.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_spine.sql", "original_file_path": "macros/utils/date_spine.sql", "unique_id": "macro.dbt.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n {# call as follows:\n\n date_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n ) #}\n\n\n with rawdata as (\n\n {{dbt.generate_series(\n dbt.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.generate_series", "macro.dbt.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.563921, "supported_languages": null}, "macro.dbt.replace": {"name": "replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5643818, "supported_languages": null}, "macro.dbt.default__replace": {"name": "default__replace", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "unique_id": "macro.dbt.default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.564553, "supported_languages": null}, "macro.dbt.concat": {"name": "concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.564811, "supported_languages": null}, "macro.dbt.default__concat": {"name": "default__concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "unique_id": "macro.dbt.default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5649369, "supported_languages": null}, "macro.dbt.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.565731, "supported_languages": null}, "macro.dbt.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.566158, "supported_languages": null}, "macro.dbt.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.566345, "supported_languages": null}, "macro.dbt.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/generate_series.sql", "original_file_path": "macros/utils/generate_series.sql", "unique_id": "macro.dbt.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5670578, "supported_languages": null}, "macro.dbt.length": {"name": "length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5673962, "supported_languages": null}, "macro.dbt.default__length": {"name": "default__length", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "unique_id": "macro.dbt.default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.567509, "supported_languages": null}, "macro.dbt.dateadd": {"name": "dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.567838, "supported_languages": null}, "macro.dbt.default__dateadd": {"name": "default__dateadd", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "unique_id": "macro.dbt.default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.568117, "supported_languages": null}, "macro.dbt.intersect": {"name": "intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.568359, "supported_languages": null}, "macro.dbt.default__intersect": {"name": "default__intersect", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "unique_id": "macro.dbt.default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5687602, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"name": "escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.569001, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"name": "default__escape_single_quotes", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "unique_id": "macro.dbt.default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.569126, "supported_languages": null}, "macro.dbt.right": {"name": "right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5694022, "supported_languages": null}, "macro.dbt.default__right": {"name": "default__right", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "unique_id": "macro.dbt.default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.569532, "supported_languages": null}, "macro.dbt.listagg": {"name": "listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.57009, "supported_languages": null}, "macro.dbt.default__listagg": {"name": "default__listagg", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "unique_id": "macro.dbt.default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.570461, "supported_languages": null}, "macro.dbt.datediff": {"name": "datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.570753, "supported_languages": null}, "macro.dbt.default__datediff": {"name": "default__datediff", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "unique_id": "macro.dbt.default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.570901, "supported_languages": null}, "macro.dbt.safe_cast": {"name": "safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.571157, "supported_languages": null}, "macro.dbt.default__safe_cast": {"name": "default__safe_cast", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "unique_id": "macro.dbt.default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.571286, "supported_languages": null}, "macro.dbt.hash": {"name": "hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5715158, "supported_languages": null}, "macro.dbt.default__hash": {"name": "default__hash", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "unique_id": "macro.dbt.default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.571658, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"name": "cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.571872, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"name": "default__cast_bool_to_text", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "unique_id": "macro.dbt.default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5720131, "supported_languages": null}, "macro.dbt.any_value": {"name": "any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5722308, "supported_languages": null}, "macro.dbt.default__any_value": {"name": "default__any_value", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "unique_id": "macro.dbt.default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.572326, "supported_languages": null}, "macro.dbt.position": {"name": "position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.572583, "supported_languages": null}, "macro.dbt.default__position": {"name": "default__position", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "unique_id": "macro.dbt.default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5727072, "supported_languages": null}, "macro.dbt.string_literal": {"name": "string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.572924, "supported_languages": null}, "macro.dbt.default__string_literal": {"name": "default__string_literal", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "unique_id": "macro.dbt.default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.573078, "supported_languages": null}, "macro.dbt.type_string": {"name": "type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.573924, "supported_languages": null}, "macro.dbt.default__type_string": {"name": "default__type_string", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.574062, "supported_languages": null}, "macro.dbt.type_timestamp": {"name": "type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5742102, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"name": "default__type_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.574351, "supported_languages": null}, "macro.dbt.type_float": {"name": "type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.574498, "supported_languages": null}, "macro.dbt.default__type_float": {"name": "default__type_float", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.574632, "supported_languages": null}, "macro.dbt.type_numeric": {"name": "type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.574774, "supported_languages": null}, "macro.dbt.default__type_numeric": {"name": "default__type_numeric", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.574935, "supported_languages": null}, "macro.dbt.type_bigint": {"name": "type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.575076, "supported_languages": null}, "macro.dbt.default__type_bigint": {"name": "default__type_bigint", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.575209, "supported_languages": null}, "macro.dbt.type_int": {"name": "type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.575356, "supported_languages": null}, "macro.dbt.default__type_int": {"name": "default__type_int", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.57549, "supported_languages": null}, "macro.dbt.type_boolean": {"name": "type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.575636, "supported_languages": null}, "macro.dbt.default__type_boolean": {"name": "default__type_boolean", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "unique_id": "macro.dbt.default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.575766, "supported_languages": null}, "macro.dbt.array_concat": {"name": "array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5760279, "supported_languages": null}, "macro.dbt.default__array_concat": {"name": "default__array_concat", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "unique_id": "macro.dbt.default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.576156, "supported_languages": null}, "macro.dbt.bool_or": {"name": "bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5763898, "supported_languages": null}, "macro.dbt.default__bool_or": {"name": "default__bool_or", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "unique_id": "macro.dbt.default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.576482, "supported_languages": null}, "macro.dbt.last_day": {"name": "last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.576858, "supported_languages": null}, "macro.dbt.default_last_day": {"name": "default_last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.57711, "supported_languages": null}, "macro.dbt.default__last_day": {"name": "default__last_day", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "unique_id": "macro.dbt.default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.577247, "supported_languages": null}, "macro.dbt.split_part": {"name": "split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.57792, "supported_languages": null}, "macro.dbt.default__split_part": {"name": "default__split_part", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt.default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.57813, "supported_languages": null}, "macro.dbt._split_part_negative": {"name": "_split_part_negative", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "unique_id": "macro.dbt._split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 + {{ part_number }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5784059, "supported_languages": null}, "macro.dbt.date_trunc": {"name": "date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.578722, "supported_languages": null}, "macro.dbt.default__date_trunc": {"name": "default__date_trunc", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "unique_id": "macro.dbt.default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.578858, "supported_languages": null}, "macro.dbt.array_construct": {"name": "array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5792398, "supported_languages": null}, "macro.dbt.default__array_construct": {"name": "default__array_construct", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "unique_id": "macro.dbt.default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.579489, "supported_languages": null}, "macro.dbt.array_append": {"name": "array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.579766, "supported_languages": null}, "macro.dbt.default__array_append": {"name": "default__array_append", "resource_type": "macro", "package_name": "dbt", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "unique_id": "macro.dbt.default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.579905, "supported_languages": null}, "macro.dbt.create_schema": {"name": "create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5802639, "supported_languages": null}, "macro.dbt.default__create_schema": {"name": "default__create_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.580439, "supported_languages": null}, "macro.dbt.drop_schema": {"name": "drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5805929, "supported_languages": null}, "macro.dbt.default__drop_schema": {"name": "default__drop_schema", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "unique_id": "macro.dbt.default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5808508, "supported_languages": null}, "macro.dbt.current_timestamp": {"name": "current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.581335, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"name": "default__current_timestamp", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.581474, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"name": "snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5816152, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"name": "default__snapshot_get_time", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.58171, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"name": "current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.58196, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"name": "default__current_timestamp_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.58203, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"name": "current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.582186, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"name": "default__current_timestamp_in_utc_backcompat", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.582344, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"name": "get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5831082, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"name": "default__get_create_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.583235, "supported_languages": null}, "macro.dbt.create_indexes": {"name": "create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.583381, "supported_languages": null}, "macro.dbt.default__create_indexes": {"name": "default__create_indexes", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.583764, "supported_languages": null}, "macro.dbt.get_drop_index_sql": {"name": "get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_drop_index_sql", "macro_sql": "{% macro get_drop_index_sql(relation, index_name) -%}\n {{ adapter.dispatch('get_drop_index_sql', 'dbt')(relation, index_name) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_drop_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.583935, "supported_languages": null}, "macro.dbt.default__get_drop_index_sql": {"name": "default__get_drop_index_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_drop_index_sql", "macro_sql": "{% macro default__get_drop_index_sql(relation, index_name) -%}\n {{ exceptions.raise_compiler_error(\"`get_drop_index_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5840619, "supported_languages": null}, "macro.dbt.get_show_indexes_sql": {"name": "get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.get_show_indexes_sql", "macro_sql": "{% macro get_show_indexes_sql(relation) -%}\n {{ adapter.dispatch('get_show_indexes_sql', 'dbt')(relation) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_indexes_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.584203, "supported_languages": null}, "macro.dbt.default__get_show_indexes_sql": {"name": "default__get_show_indexes_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "unique_id": "macro.dbt.default__get_show_indexes_sql", "macro_sql": "{% macro default__get_show_indexes_sql(relation) -%}\n {{ exceptions.raise_compiler_error(\"`get_show_indexes_sql has not been implemented for this adapter.\") }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.584322, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"name": "make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.586087, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"name": "default__make_intermediate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.586265, "supported_languages": null}, "macro.dbt.make_temp_relation": {"name": "make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5864692, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"name": "default__make_temp_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.586737, "supported_languages": null}, "macro.dbt.make_backup_relation": {"name": "make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5869582, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"name": "default__make_backup_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.587245, "supported_languages": null}, "macro.dbt.truncate_relation": {"name": "truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5875242, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"name": "default__truncate_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.587847, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"name": "get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5880902, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"name": "default__get_or_create_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5886238, "supported_languages": null}, "macro.dbt.load_cached_relation": {"name": "load_cached_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.588896, "supported_languages": null}, "macro.dbt.load_relation": {"name": "load_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "unique_id": "macro.dbt.load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.589045, "supported_languages": null}, "macro.dbt.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.589479, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "unique_id": "macro.dbt.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.589874, "supported_languages": null}, "macro.dbt.validate_sql": {"name": "validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.validate_sql", "macro_sql": "{% macro validate_sql(sql) -%}\n {{ return(adapter.dispatch('validate_sql', 'dbt')(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__validate_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.590143, "supported_languages": null}, "macro.dbt.default__validate_sql": {"name": "default__validate_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/validate_sql.sql", "original_file_path": "macros/adapters/validate_sql.sql", "unique_id": "macro.dbt.default__validate_sql", "macro_sql": "{% macro default__validate_sql(sql) -%}\n {% call statement('validate_sql') -%}\n explain {{ sql }}\n {% endcall %}\n {{ return(load_result('validate_sql')) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.59038, "supported_languages": null}, "macro.dbt.copy_grants": {"name": "copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.592042, "supported_languages": null}, "macro.dbt.default__copy_grants": {"name": "default__copy_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.592148, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"name": "support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.592312, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"name": "default__support_multiple_grantees_per_dcl_statement", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.592416, "supported_languages": null}, "macro.dbt.should_revoke": {"name": "should_revoke", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.592735, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"name": "get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.592903, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"name": "default__get_show_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.593002, "supported_languages": null}, "macro.dbt.get_grant_sql": {"name": "get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.593246, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"name": "default__get_grant_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5935428, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"name": "get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.593792, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"name": "default__get_revoke_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.594075, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"name": "get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.59434, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"name": "default__get_dcl_statement_list", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.595038, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"name": "call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5952268, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"name": "default__call_dcl_statements", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5954611, "supported_languages": null}, "macro.dbt.apply_grants": {"name": "apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.595679, "supported_languages": null}, "macro.dbt.default__apply_grants": {"name": "default__apply_grants", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "unique_id": "macro.dbt.default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.5967329, "supported_languages": null}, "macro.dbt.get_show_sql": {"name": "get_show_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_show_sql", "macro_sql": "{% macro get_show_sql(compiled_code, sql_header, limit) -%}\n {%- if sql_header -%}\n {{ sql_header }}\n {%- endif -%}\n {%- if limit is not none -%}\n {{ get_limit_subquery_sql(compiled_code, limit) }}\n {%- else -%}\n {{ compiled_code }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.597256, "supported_languages": null}, "macro.dbt.get_limit_subquery_sql": {"name": "get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.get_limit_subquery_sql", "macro_sql": "{% macro get_limit_subquery_sql(sql, limit) %}\n {{ adapter.dispatch('get_limit_subquery_sql', 'dbt')(sql, limit) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_limit_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.597435, "supported_languages": null}, "macro.dbt.default__get_limit_subquery_sql": {"name": "default__get_limit_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/show.sql", "original_file_path": "macros/adapters/show.sql", "unique_id": "macro.dbt.default__get_limit_subquery_sql", "macro_sql": "{% macro default__get_limit_subquery_sql(sql, limit) %}\n select *\n from (\n {{ sql }}\n ) as model_limit_subq\n limit {{ limit }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.597682, "supported_languages": null}, "macro.dbt.alter_column_comment": {"name": "alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.598367, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"name": "default__alter_column_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.598529, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"name": "alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.598712, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"name": "default__alter_relation_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.598871, "supported_languages": null}, "macro.dbt.persist_docs": {"name": "persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.599128, "supported_languages": null}, "macro.dbt.default__persist_docs": {"name": "default__persist_docs", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "unique_id": "macro.dbt.default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.599573, "supported_languages": null}, "macro.dbt.get_catalog_relations": {"name": "get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog_relations", "macro_sql": "{% macro get_catalog_relations(information_schema, relations) -%}\n {{ return(adapter.dispatch('get_catalog_relations', 'dbt')(information_schema, relations)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.602466, "supported_languages": null}, "macro.dbt.default__get_catalog_relations": {"name": "default__get_catalog_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog_relations", "macro_sql": "{% macro default__get_catalog_relations(information_schema, relations) -%}\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog_relations not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.602731, "supported_languages": null}, "macro.dbt.get_catalog": {"name": "get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6029491, "supported_languages": null}, "macro.dbt.default__get_catalog": {"name": "default__get_catalog", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.603316, "supported_languages": null}, "macro.dbt.information_schema_name": {"name": "information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.603495, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"name": "default__information_schema_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.603648, "supported_languages": null}, "macro.dbt.list_schemas": {"name": "list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.603819, "supported_languages": null}, "macro.dbt.default__list_schemas": {"name": "default__list_schemas", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.604064, "supported_languages": null}, "macro.dbt.check_schema_exists": {"name": "check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.604258, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"name": "default__check_schema_exists", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.604535, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"name": "list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6047082, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"name": "default__list_relations_without_caching", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6048598, "supported_languages": null}, "macro.dbt.get_relations": {"name": "get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relations", "macro_sql": "{% macro get_relations() %}\n {{ return(adapter.dispatch('get_relations', 'dbt')()) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6050181, "supported_languages": null}, "macro.dbt.default__get_relations": {"name": "default__get_relations", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relations", "macro_sql": "{% macro default__get_relations() %}\n {{ exceptions.raise_not_implemented(\n 'get_relations macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.605164, "supported_languages": null}, "macro.dbt.get_relation_last_modified": {"name": "get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.get_relation_last_modified", "macro_sql": "{% macro get_relation_last_modified(information_schema, relations) %}\n {{ return(adapter.dispatch('get_relation_last_modified', 'dbt')(information_schema, relations)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_relation_last_modified"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.605356, "supported_languages": null}, "macro.dbt.default__get_relation_last_modified": {"name": "default__get_relation_last_modified", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "unique_id": "macro.dbt.default__get_relation_last_modified", "macro_sql": "{% macro default__get_relation_last_modified(information_schema, relations) %}\n {{ exceptions.raise_not_implemented(\n 'get_relation_last_modified macro not implemented for adapter ' + adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.605514, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"name": "get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.607774, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"name": "default__get_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.608052, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"name": "sql_convert_columns_in_relation", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.608531, "supported_languages": null}, "macro.dbt.get_empty_subquery_sql": {"name": "get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_subquery_sql", "macro_sql": "{% macro get_empty_subquery_sql(select_sql, select_sql_header=none) -%}\n {{ return(adapter.dispatch('get_empty_subquery_sql', 'dbt')(select_sql, select_sql_header)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.60875, "supported_languages": null}, "macro.dbt.default__get_empty_subquery_sql": {"name": "default__get_empty_subquery_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_subquery_sql", "macro_sql": "{% macro default__get_empty_subquery_sql(select_sql, select_sql_header=none) %}\n {%- if select_sql_header is not none -%}\n {{ select_sql_header }}\n {%- endif -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.60895, "supported_languages": null}, "macro.dbt.get_empty_schema_sql": {"name": "get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_empty_schema_sql", "macro_sql": "{% macro get_empty_schema_sql(columns) -%}\n {{ return(adapter.dispatch('get_empty_schema_sql', 'dbt')(columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_empty_schema_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.609123, "supported_languages": null}, "macro.dbt.default__get_empty_schema_sql": {"name": "default__get_empty_schema_sql", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_empty_schema_sql", "macro_sql": "{% macro default__get_empty_schema_sql(columns) %}\n {%- set col_err = [] -%}\n {%- set col_naked_numeric = [] -%}\n select\n {% for i in columns %}\n {%- set col = columns[i] -%}\n {%- if col['data_type'] is not defined -%}\n {%- do col_err.append(col['name']) -%}\n {#-- If this column's type is just 'numeric' then it is missing precision/scale, raise a warning --#}\n {%- elif col['data_type'].strip().lower() in ('numeric', 'decimal', 'number') -%}\n {%- do col_naked_numeric.append(col['name']) -%}\n {%- endif -%}\n {% set col_name = adapter.quote(col['name']) if col.get('quote') else col['name'] %}\n cast(null as {{ col['data_type'] }}) as {{ col_name }}{{ \", \" if not loop.last }}\n {%- endfor -%}\n {%- if (col_err | length) > 0 -%}\n {{ exceptions.column_type_missing(column_names=col_err) }}\n {%- elif (col_naked_numeric | length) > 0 -%}\n {{ exceptions.warn(\"Detected columns with numeric type and unspecified precision/scale, this can lead to unintended rounding: \" ~ col_naked_numeric ~ \"`\") }}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6103308, "supported_languages": null}, "macro.dbt.get_column_schema_from_query": {"name": "get_column_schema_from_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_column_schema_from_query", "macro_sql": "{% macro get_column_schema_from_query(select_sql, select_sql_header=none) -%}\n {% set columns = [] %}\n {# -- Using an 'empty subquery' here to get the same schema as the given select_sql statement, without necessitating a data scan.#}\n {% set sql = get_empty_subquery_sql(select_sql, select_sql_header) %}\n {% set column_schema = adapter.get_column_schema_from_query(sql) %}\n {{ return(column_schema) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.610637, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"name": "get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.610802, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"name": "default__get_columns_in_query", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n {{ get_empty_subquery_sql(select_sql) }}\n {% endcall %}\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.get_empty_subquery_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.61111, "supported_languages": null}, "macro.dbt.alter_column_type": {"name": "alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6113222, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"name": "default__alter_column_type", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.61186, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"name": "alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.612088, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"name": "default__alter_relation_add_remove_columns", "resource_type": "macro", "package_name": "dbt", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.612774, "supported_languages": null}, "macro.dbt.resolve_model_name": {"name": "resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.resolve_model_name", "macro_sql": "{% macro resolve_model_name(input_model_name) %}\n {{ return(adapter.dispatch('resolve_model_name', 'dbt')(input_model_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.default__resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.614225, "supported_languages": null}, "macro.dbt.default__resolve_model_name": {"name": "default__resolve_model_name", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.default__resolve_model_name", "macro_sql": "\n\n{%- macro default__resolve_model_name(input_model_name) -%}\n {{ input_model_name | string | replace('\"', '\\\"') }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.614364, "supported_languages": null}, "macro.dbt.build_ref_function": {"name": "build_ref_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {% set _ref_args = [_ref.get('package'), _ref['name']] if _ref.get('package') else [_ref['name'],] %}\n {%- set resolved = ref(*_ref_args, v=_ref.get('version')) -%}\n {%- if _ref.get('version') -%}\n {% do _ref_args.extend([\"v\" ~ _ref['version']]) %}\n {%- endif -%}\n {%- do ref_dict.update({_ref_args | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef ref(*args, **kwargs):\n refs = {{ ref_dict | tojson }}\n key = '.'.join(args)\n version = kwargs.get(\"v\") or kwargs.get(\"version\")\n if version:\n key += f\".v{version}\"\n dbt_load_df_function = kwargs.get(\"dbt_load_df_function\")\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.615087, "supported_languages": null}, "macro.dbt.build_source_function": {"name": "build_source_function", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join('.'): resolve_model_name(resolved)}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = '.'.join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.resolve_model_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.61549, "supported_languages": null}, "macro.dbt.build_config_dict": {"name": "build_config_dict", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {% set config_dbt_used = zip(model.config.config_keys_used, model.config.config_keys_defaults) | list %}\n {%- for key, default in config_dbt_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == \"language\" -%}\n {%- set value = \"python\" -%}\n {%- endif -%}\n {%- set value = model.config.get(key, default) -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.616011, "supported_languages": null}, "macro.dbt.py_script_postfix": {"name": "py_script_postfix", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = \"{{ this.database }}\"\n schema = \"{{ this.schema }}\"\n identifier = \"{{ this.identifier }}\"\n {% set this_relation_name = resolve_model_name(this) %}\n def __repr__(self):\n return '{{ this_relation_name }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args, **kwargs: ref(*args, **kwargs, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.resolve_model_name", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.616431, "supported_languages": null}, "macro.dbt.py_script_comment": {"name": "py_script_comment", "resource_type": "macro", "package_name": "dbt", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "unique_id": "macro.dbt.py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6165, "supported_languages": null}, "macro.dbt.test_unique": {"name": "test_unique", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6169448, "supported_languages": null}, "macro.dbt.test_not_null": {"name": "test_not_null", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.617153, "supported_languages": null}, "macro.dbt.test_accepted_values": {"name": "test_accepted_values", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.617408, "supported_languages": null}, "macro.dbt.test_relationships": {"name": "test_relationships", "resource_type": "macro", "package_name": "dbt", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "unique_id": "macro.dbt.test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.617652, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"name": "get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6181068, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"name": "default__get_url_host", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "unique_id": "macro.dbt_utils.default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6186292, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"name": "get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.619093, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"name": "default__get_url_path", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "unique_id": "macro.dbt_utils.default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6198258, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"name": "get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.620148, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"name": "default__get_url_parameter", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "unique_id": "macro.dbt_utils.default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.620548, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"name": "test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.621742, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"name": "default__test_fewer_rows_than", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6226938, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"name": "test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6235101, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"name": "default__test_equal_rowcount", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "unique_id": "macro.dbt_utils.default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.624628, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"name": "test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.625298, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"name": "default__test_relationships_where", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "unique_id": "macro.dbt_utils.default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.625611, "supported_languages": null}, "macro.dbt_utils.test_recency": {"name": "test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.626246, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"name": "default__test_recency", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "unique_id": "macro.dbt_utils.default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6270301, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"name": "test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6274529, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"name": "default__test_not_constant", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "unique_id": "macro.dbt_utils.default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.627878, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"name": "test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.62866, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"name": "default__test_accepted_range", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "unique_id": "macro.dbt_utils.default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.629241, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"name": "test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.629795, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"name": "default__test_not_accepted_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "unique_id": "macro.dbt_utils.default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.630156, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"name": "test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.630762, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"name": "default__test_at_least_one", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "unique_id": "macro.dbt_utils.default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% set pruned_cols = [column_name] %}\n\n{% if group_by_columns|length() > 0 %}\n\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n {% set pruned_cols = group_by_columns %}\n\n {% if column_name not in pruned_cols %}\n {% do pruned_cols.append(column_name) %}\n {% endif %}\n\n{% endif %}\n\n{% set select_pruned_cols = pruned_cols|join(' ,') %}\n\nselect *\nfrom (\n with pruned_rows as (\n select\n {{ select_pruned_cols }}\n from {{ model }}\n where {{ column_name }} is not null\n limit 1\n )\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from pruned_rows\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.631573, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"name": "test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.632121, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"name": "default__test_unique_combination_of_columns", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.632688, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"name": "test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.633193, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"name": "default__test_cardinality_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "unique_id": "macro.dbt_utils.default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.633503, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"name": "test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.633877, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"name": "default__test_expression_is_true", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "unique_id": "macro.dbt_utils.default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6342, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"name": "test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.634806, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"name": "default__test_not_null_proportion", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "unique_id": "macro.dbt_utils.default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.63572, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"name": "test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.63671, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"name": "default__test_sequential_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "unique_id": "macro.dbt_utils.default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.637588, "supported_languages": null}, "macro.dbt_utils.test_equality": {"name": "test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.63851, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"name": "default__test_equality", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "unique_id": "macro.dbt_utils.default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.639387, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"name": "test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6398542, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"name": "default__test_not_empty_string", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "unique_id": "macro.dbt_utils.default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6401181, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"name": "test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.64324, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"name": "default__test_mutually_exclusive_ranges", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.64474, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"name": "pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6450372, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"name": "default__pretty_log_format", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "unique_id": "macro.dbt_utils.default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6451972, "supported_languages": null}, "macro.dbt_utils._is_relation": {"name": "_is_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "unique_id": "macro.dbt_utils._is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6456242, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"name": "pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.645887, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"name": "default__pretty_time", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "unique_id": "macro.dbt_utils.default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.646243, "supported_languages": null}, "macro.dbt_utils.log_info": {"name": "log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6465092, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"name": "default__log_info", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "unique_id": "macro.dbt_utils.default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6466901, "supported_languages": null}, "macro.dbt_utils.slugify": {"name": "slugify", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "unique_id": "macro.dbt_utils.slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.647299, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"name": "_is_ephemeral", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "unique_id": "macro.dbt_utils._is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.650221, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"name": "get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.651465, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"name": "default__get_intervals_between", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.653945, "supported_languages": null}, "macro.dbt_utils.date_spine": {"name": "date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.654743, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"name": "default__date_spine", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "unique_id": "macro.dbt_utils.default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.662388, "supported_languages": null}, "macro.dbt_utils.safe_subtract": {"name": "safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.safe_subtract", "macro_sql": "{%- macro safe_subtract(field_list) -%}\n {{ return(adapter.dispatch('safe_subtract', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_subtract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.663288, "supported_languages": null}, "macro.dbt_utils.default__safe_subtract": {"name": "default__safe_subtract", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_subtract.sql", "original_file_path": "macros/sql/safe_subtract.sql", "unique_id": "macro.dbt_utils.default__safe_subtract", "macro_sql": "\n\n{%- macro default__safe_subtract(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_subtract` macro takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' -\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6647391, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"name": "nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.665272, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"name": "default__nullcheck_table", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "unique_id": "macro.dbt_utils.default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.666199, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"name": "get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.667238, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"name": "default__get_relations_by_pattern", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.668426, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"name": "get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6692438, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"name": "default__get_powers_of_two", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.669634, "supported_languages": null}, "macro.dbt_utils.generate_series": {"name": "generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.669811, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"name": "default__generate_series", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "unique_id": "macro.dbt_utils.default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.670305, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"name": "get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.67093, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"name": "default__get_relations_by_prefix", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.671711, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"name": "get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.672093, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"name": "default__get_tables_by_prefix_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6723552, "supported_languages": null}, "macro.dbt_utils.star": {"name": "star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.673553, "supported_languages": null}, "macro.dbt_utils.default__star": {"name": "default__star", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "unique_id": "macro.dbt_utils.default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6755352, "supported_languages": null}, "macro.dbt_utils.unpivot": {"name": "unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.676925, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"name": "default__unpivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "unique_id": "macro.dbt_utils.default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6784132, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"name": "safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.678696, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"name": "default__safe_divide", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "unique_id": "macro.dbt_utils.default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.678815, "supported_languages": null}, "macro.dbt_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6815, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"name": "default__union_relations", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "unique_id": "macro.dbt_utils.default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6846569, "supported_languages": null}, "macro.dbt_utils.group_by": {"name": "group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.684961, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"name": "default__group_by", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "unique_id": "macro.dbt_utils.default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.685195, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"name": "deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.68591, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"name": "default__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6861088, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"name": "redshift__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6862888, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"name": "postgres__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6866, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"name": "snowflake__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.686836, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"name": "bigquery__deduplicate", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "unique_id": "macro.dbt_utils.bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6870122, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"name": "surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.687434, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"name": "default__surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "unique_id": "macro.dbt_utils.default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.687878, "supported_languages": null}, "macro.dbt_utils.safe_add": {"name": "safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.688302, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"name": "default__safe_add", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "unique_id": "macro.dbt_utils.default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.688846, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"name": "nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.689184, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"name": "default__nullcheck", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "unique_id": "macro.dbt_utils.default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6895092, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"name": "get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.69099, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"name": "default__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6913202, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"name": "bigquery__get_tables_by_pattern_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.692071, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"name": "_bigquery__get_matching_schemata", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.692661, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"name": "get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6937962, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"name": "default__get_column_values", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "unique_id": "macro.dbt_utils.default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.695172, "supported_languages": null}, "macro.dbt_utils.pivot": {"name": "pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.6961422, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"name": "default__pivot", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "unique_id": "macro.dbt_utils.default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.696948, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"name": "get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.697397, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"name": "default__get_filtered_columns_in_relation", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.698074, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"name": "width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.698773, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"name": "default__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.699187, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"name": "snowflake__width_bucket", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "unique_id": "macro.dbt_utils.snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.699361, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"name": "get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.699719, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"name": "default__get_query_results_as_dict", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.700277, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"name": "generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.700688, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"name": "default__generate_surrogate_key", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "unique_id": "macro.dbt_utils.default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}\n {%- set default_null_value = \"\" -%}\n{%- else -%}\n {%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}\n{%- endif -%}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7015622, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"name": "get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.702114, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"name": "default__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.702283, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"name": "postgres__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7024739, "supported_languages": null}, "macro.dbt_utils.databricks__get_table_types_sql": {"name": "databricks__get_table_types_sql", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "unique_id": "macro.dbt_utils.databricks__get_table_types_sql", "macro_sql": "{% macro databricks__get_table_types_sql() %}\n case table_type\n when 'MANAGED' then 'table'\n when 'BASE TABLE' then 'table'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.70264, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"name": "get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.703149, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"name": "default__get_single_value", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "unique_id": "macro.dbt_utils.default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7039921, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"name": "degrees_to_radians", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.705007, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"name": "haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7052832, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"name": "default__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7058518, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"name": "bigquery__haversine_distance", "resource_type": "macro", "package_name": "dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "unique_id": "macro.dbt_utils.bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.70661, "supported_languages": null}, "macro.workday.get_person_contact_email_address_columns": {"name": "get_person_contact_email_address_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_contact_email_address_columns.sql", "original_file_path": "macros/get_person_contact_email_address_columns.sql", "unique_id": "macro.workday.get_person_contact_email_address_columns", "macro_sql": "{% macro get_person_contact_email_address_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email_address\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_comment\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.707477, "supported_languages": null}, "macro.workday.get_military_service_columns": {"name": "get_military_service_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_military_service_columns.sql", "original_file_path": "macros/get_military_service_columns.sql", "unique_id": "macro.workday.get_military_service_columns", "macro_sql": "{% macro get_military_service_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"discharge_date\", \"datatype\": \"date\"},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"rank\", \"datatype\": dbt.type_string()},\n {\"name\": \"service\", \"datatype\": dbt.type_string()},\n {\"name\": \"service_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"status_begin_date\", \"datatype\": \"date\"}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7086458, "supported_languages": null}, "macro.workday.get_position_job_profile_columns": {"name": "get_position_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_job_profile_columns.sql", "original_file_path": "macros/get_position_job_profile_columns.sql", "unique_id": "macro.workday.get_position_job_profile_columns", "macro_sql": "{% macro get_position_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.709737, "supported_languages": null}, "macro.workday.get_job_family_job_family_group_columns": {"name": "get_job_family_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_job_family_group_columns", "macro_sql": "{% macro get_job_family_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.710293, "supported_languages": null}, "macro.workday.get_worker_history_columns": {"name": "get_worker_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_history_columns.sql", "original_file_path": "macros/get_worker_history_columns.sql", "unique_id": "macro.workday.get_worker_history_columns", "macro_sql": "{% macro get_worker_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_date\", \"datatype\": \"date\"},\n {\"name\": \"active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"active_status_date\", \"datatype\": \"date\"},\n {\"name\": \"annual_currency_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_currency_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_currency_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_summary_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"annual_summary_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_service_date\", \"datatype\": \"date\"},\n {\"name\": \"company_service_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_effective_date\", \"datatype\": \"date\"},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"continuous_service_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_assignment_details\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_currency_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_end_date\", \"datatype\": \"date\"},\n {\"name\": \"contract_frequency_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"contract_pay_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"contract_vendor_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_entered_workforce\", \"datatype\": \"date\"},\n {\"name\": \"days_unemployed\", \"datatype\": dbt.type_float()},\n {\"name\": \"eligible_for_hire\", \"datatype\": dbt.type_string()},\n {\"name\": \"eligible_for_rehire_on_latest_termination\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_compensation_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"employee_compensation_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_date_of_return\", \"datatype\": \"date\"},\n {\"name\": \"expected_retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"has_international_assignment\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hire_date\", \"datatype\": \"date\"},\n {\"name\": \"hire_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"hire_rescinded\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"hourly_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"hourly_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_datefor_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"local_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"months_continuous_prior_employment\", \"datatype\": dbt.type_float()},\n {\"name\": \"not_returning\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"original_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"pay_group_frequency_currency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_group_frequency_primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_base_pay\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group_frequency_total_salary_and_allowances\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"primary_termination_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_termination_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"probation_end_date\", \"datatype\": \"date\"},\n {\"name\": \"probation_start_date\", \"datatype\": \"date\"},\n {\"name\": \"reason_reference_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regrettable_termination\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"rehire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"resignation_date\", \"datatype\": \"date\"},\n {\"name\": \"retired\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"retirement_date\", \"datatype\": \"date\"},\n {\"name\": \"retirement_eligibility_date\", \"datatype\": \"date\"},\n {\"name\": \"return_unknown\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"seniority_date\", \"datatype\": \"date\"},\n {\"name\": \"severance_date\", \"datatype\": \"date\"},\n {\"name\": \"terminated\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_date\", \"datatype\": \"date\"},\n {\"name\": \"termination_involuntary\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"termination_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"time_off_service_date\", \"datatype\": \"date\"},\n {\"name\": \"universal_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"user_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"vesting_date\", \"datatype\": \"date\"},\n {\"name\": \"worker_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7224672, "supported_languages": null}, "macro.workday.get_job_family_group_columns": {"name": "get_job_family_group_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_group_columns.sql", "original_file_path": "macros/get_job_family_group_columns.sql", "unique_id": "macro.workday.get_job_family_group_columns", "macro_sql": "{% macro get_job_family_group_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_group_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7233448, "supported_languages": null}, "macro.workday.get_worker_leave_status_columns": {"name": "get_worker_leave_status_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_leave_status_columns.sql", "original_file_path": "macros/get_worker_leave_status_columns.sql", "unique_id": "macro.workday.get_worker_leave_status_columns", "macro_sql": "{% macro get_worker_leave_status_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"adoption_notification_date\", \"datatype\": \"date\"},\n {\"name\": \"adoption_placement_date\", \"datatype\": \"date\"},\n {\"name\": \"age_of_dependent\", \"datatype\": dbt.type_float()},\n {\"name\": \"benefits_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"caesarean_section_birth\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"child_birth_date\", \"datatype\": \"date\"},\n {\"name\": \"child_sdate_of_death\", \"datatype\": \"date\"},\n {\"name\": \"continuous_service_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"date_baby_arrived_home_from_hospital\", \"datatype\": \"date\"},\n {\"name\": \"date_child_entered_country\", \"datatype\": \"date\"},\n {\"name\": \"date_of_recall\", \"datatype\": \"date\"},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimated_leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"expected_due_date\", \"datatype\": \"date\"},\n {\"name\": \"first_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"last_date_for_which_paid\", \"datatype\": \"date\"},\n {\"name\": \"leave_end_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_entitlement_override\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_last_day_of_work\", \"datatype\": \"date\"},\n {\"name\": \"leave_of_absence_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"leave_request_event_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_return_event\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_start_date\", \"datatype\": \"date\"},\n {\"name\": \"leave_status_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"leave_type_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_during_leave\", \"datatype\": dbt.type_string()},\n {\"name\": \"multiple_child_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"number_of_babies_adopted_children\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_child_dependents\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_births\", \"datatype\": dbt.type_float()},\n {\"name\": \"number_of_previous_maternity_leaves\", \"datatype\": dbt.type_float()},\n {\"name\": \"on_leave\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"paid_time_off_accrual_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"payroll_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"single_parent_indicator\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"social_security_disability_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"stock_vesting_effect\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"stop_payment_date\", \"datatype\": \"date\"},\n {\"name\": \"week_of_confinement\", \"datatype\": \"date\"},\n {\"name\": \"work_related\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.72846, "supported_languages": null}, "macro.workday.get_organization_role_worker_columns": {"name": "get_organization_role_worker_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_worker_columns.sql", "original_file_path": "macros/get_organization_role_worker_columns.sql", "unique_id": "macro.workday.get_organization_role_worker_columns", "macro_sql": "{% macro get_organization_role_worker_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"associated_worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7291992, "supported_languages": null}, "macro.workday.get_job_profile_columns": {"name": "get_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_profile_columns.sql", "original_file_path": "macros/get_job_profile_columns.sql", "unique_id": "macro.workday.get_job_profile_columns", "macro_sql": "{% macro get_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_job_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_category_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"level\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level\", \"datatype\": dbt.type_string()},\n {\"name\": \"private_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"public_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"referral_payment_plan\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"union_membership_requirement\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_study_award_source_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_study_requirement_option_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7319958, "supported_languages": null}, "macro.workday.get_organization_role_columns": {"name": "get_organization_role_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_role_columns.sql", "original_file_path": "macros/get_organization_role_columns.sql", "unique_id": "macro.workday.get_organization_role_columns", "macro_sql": "{% macro get_organization_role_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_role_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"role_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.732703, "supported_languages": null}, "macro.workday.get_person_name_columns": {"name": "get_person_name_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_person_name_columns.sql", "original_file_path": "macros/get_person_name_columns.sql", "unique_id": "macro.workday.get_person_name_columns", "macro_sql": "{% macro get_person_name_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"additional_name_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name_singapore_malaysia\", \"datatype\": dbt.type_string()},\n {\"name\": \"hereditary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"honorary_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_first_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_middle_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"local_secondary_last_name_2\", \"datatype\": dbt.type_string()},\n {\"name\": \"middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_salutation\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"prefix_title_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"professional_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"religious_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"royal_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"secondary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_suffix_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"tertiary_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7361448, "supported_languages": null}, "macro.workday.get_job_family_job_profile_columns": {"name": "get_job_family_job_profile_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_job_profile_columns.sql", "original_file_path": "macros/get_job_family_job_profile_columns.sql", "unique_id": "macro.workday.get_job_family_job_profile_columns", "macro_sql": "{% macro get_job_family_job_profile_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.736709, "supported_languages": null}, "macro.workday.get_worker_position_history_columns": {"name": "get_worker_position_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_history_columns.sql", "original_file_path": "macros/get_worker_position_history_columns.sql", "unique_id": "macro.workday.get_worker_position_history_columns", "macro_sql": "{% macro get_worker_position_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_pay_setup_data_annual_work_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_annual_work_period_work_percent_of_year\", \"datatype\": dbt.type_float()},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_end_date\", \"datatype\": \"date\"},\n {\"name\": \"academic_pay_setup_data_disbursement_plan_period_start_date\", \"datatype\": \"date\"},\n {\"name\": \"business_site_summary_display_language\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_local\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_location_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_site_summary_scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"business_site_summary_time_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"business_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"default_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"difficulty_to_fill\", \"datatype\": dbt.type_string()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"employee_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"end_date\", \"datatype\": \"date\"},\n {\"name\": \"end_employment_date\", \"datatype\": \"date\"},\n {\"name\": \"exclude_from_head_count\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"expected_assignment_end_date\", \"datatype\": \"date\"},\n {\"name\": \"external_employee\", \"datatype\": dbt.type_string()},\n {\"name\": \"federal_withholding_fein\", \"datatype\": dbt.type_string()},\n {\"name\": \"frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_time_equivalent_percentage\", \"datatype\": dbt.type_float()},\n {\"name\": \"headcount_restriction_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"host_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"international_assignment_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_primary_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_exempt\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_profile_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"management_level_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"paid_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"pay_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_rate_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"pay_through_date\", \"datatype\": \"date\"},\n {\"name\": \"payroll_entity\", \"datatype\": dbt.type_string()},\n {\"name\": \"payroll_file_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"regular_paid_equivalent_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"scheduled_weekly_hours\", \"datatype\": dbt.type_float()},\n {\"name\": \"specify_paid_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"specify_working_fte\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"start_date\", \"datatype\": \"date\"},\n {\"name\": \"start_international_assignment_reason\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_hours_profile\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"work_space\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_hours_profile_classification\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_fte\", \"datatype\": dbt.type_float()},\n {\"name\": \"working_time_frequency\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_unit\", \"datatype\": dbt.type_string()},\n {\"name\": \"working_time_value\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7447, "supported_languages": null}, "macro.workday.get_personal_information_ethnicity_columns": {"name": "get_personal_information_ethnicity_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_ethnicity_columns.sql", "original_file_path": "macros/get_personal_information_ethnicity_columns.sql", "unique_id": "macro.workday.get_personal_information_ethnicity_columns", "macro_sql": "{% macro get_personal_information_ethnicity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ethnicity_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"ethnicity_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"personal_info_system_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7455082, "supported_languages": null}, "macro.workday.get_personal_information_history_columns": {"name": "get_personal_information_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_personal_information_history_columns.sql", "original_file_path": "macros/get_personal_information_history_columns.sql", "unique_id": "macro.workday.get_personal_information_history_columns", "macro_sql": "{% macro get_personal_information_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"additional_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"blood_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"citizenship_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"city_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_birth\", \"datatype\": \"date\"},\n {\"name\": \"date_of_death\", \"datatype\": \"date\"},\n {\"name\": \"gender\", \"datatype\": dbt.type_string()},\n {\"name\": \"hispanic_or_latino\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"hukou_locality\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_postal_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_subregion\", \"datatype\": dbt.type_string()},\n {\"name\": \"hukou_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"last_medical_exam_date\", \"datatype\": \"date\"},\n {\"name\": \"last_medical_exam_valid_to\", \"datatype\": \"date\"},\n {\"name\": \"local_hukou\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"marital_status\", \"datatype\": dbt.type_string()},\n {\"name\": \"marital_status_date\", \"datatype\": \"date\"},\n {\"name\": \"medical_exam_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region\", \"datatype\": dbt.type_string()},\n {\"name\": \"native_region_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"personnel_file_agency\", \"datatype\": dbt.type_string()},\n {\"name\": \"political_affiliation\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_nationality\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth\", \"datatype\": dbt.type_string()},\n {\"name\": \"region_of_birth_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"religion\", \"datatype\": dbt.type_string()},\n {\"name\": \"social_benefit\", \"datatype\": dbt.type_string()},\n {\"name\": \"tobacco_use\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.749441, "supported_languages": null}, "macro.workday.get_worker_position_organization_history_columns": {"name": "get_worker_position_organization_history_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_worker_position_organization_history_columns.sql", "original_file_path": "macros/get_worker_position_organization_history_columns.sql", "unique_id": "macro.workday.get_worker_position_organization_history_columns", "macro_sql": "{% macro get_worker_position_organization_history_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_active\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_start\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_end\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"index\", \"datatype\": dbt.type_int()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_of_pay_group_assignment\", \"datatype\": \"date\"},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_business_site\", \"datatype\": dbt.type_string()},\n {\"name\": \"used_in_change_organization_assignments\", \"datatype\": dbt.type_boolean()},\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7506208, "supported_languages": null}, "macro.workday.get_organization_job_family_columns": {"name": "get_organization_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_job_family_columns.sql", "original_file_path": "macros/get_organization_job_family_columns.sql", "unique_id": "macro.workday.get_organization_job_family_columns", "macro_sql": "{% macro get_organization_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"job_family_group_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_family_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.751235, "supported_languages": null}, "macro.workday.get_job_family_columns": {"name": "get_job_family_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_job_family_columns.sql", "original_file_path": "macros/get_job_family_columns.sql", "unique_id": "macro.workday.get_job_family_columns", "macro_sql": "{% macro get_job_family_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"job_family_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"summary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.752235, "supported_languages": null}, "macro.workday.get_organization_columns": {"name": "get_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_organization_columns.sql", "original_file_path": "macros/get_organization_columns.sql", "unique_id": "macro.workday.get_organization_columns", "macro_sql": "{% macro get_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"availability_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"code\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"external_url\", \"datatype\": dbt.type_string()},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"inactive\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"inactive_date\", \"datatype\": \"date\"},\n {\"name\": \"include_manager_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"include_organization_code_in_name\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"last_updated_date_time\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"location\", \"datatype\": dbt.type_string()},\n {\"name\": \"manager_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"organization_owner_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"staffing_model\", \"datatype\": dbt.type_string()},\n {\"name\": \"sub_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"superior_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_availability_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"supervisory_position_time_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"supervisory_position_worker_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"top_level_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"visibility\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7556539, "supported_languages": null}, "macro.workday.get_position_organization_columns": {"name": "get_position_organization_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_organization_columns.sql", "original_file_path": "macros/get_position_organization_columns.sql", "unique_id": "macro.workday.get_position_organization_columns", "macro_sql": "{% macro get_position_organization_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.756385, "supported_languages": null}, "macro.workday.get_position_columns": {"name": "get_position_columns", "resource_type": "macro", "package_name": "workday", "path": "macros/get_position_columns.sql", "original_file_path": "macros/get_position_columns.sql", "unique_id": "macro.workday.get_position_columns", "macro_sql": "{% macro get_position_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"academic_tenure_eligible\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"availability_date\", \"datatype\": \"date\"},\n {\"name\": \"available_for_hire\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_overlap\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"available_for_recruiting\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"closed\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"compensation_grade_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_grade_profile_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_package_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"compensation_step_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"critical_job\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"difficulty_to_fill_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"earliest_hire_date\", \"datatype\": \"date\"},\n {\"name\": \"earliest_overlap_date\", \"datatype\": \"date\"},\n {\"name\": \"effective_date\", \"datatype\": \"date\"},\n {\"name\": \"hiring_freeze\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_description_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"job_posting_title\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"position_time_type_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"primary_compensation_basis\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_amount_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"primary_compensation_basis_percent_change\", \"datatype\": dbt.type_float()},\n {\"name\": \"supervisory_organization_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"work_shift_required\", \"datatype\": dbt.type_boolean()},\n {\"name\": \"worker_for_filled_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_position_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"worker_type_code\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_boolean", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7600799, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"name": "enabled_vars", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "unique_id": "macro.fivetran_utils.enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.76053, "supported_languages": null}, "macro.fivetran_utils.percentile": {"name": "percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.76146, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"name": "default__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.761674, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"name": "redshift__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.761832, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"name": "bigquery__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.761986, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"name": "postgres__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.762135, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"name": "spark__percentile", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "unique_id": "macro.fivetran_utils.spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7622871, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"name": "pivot_json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "unique_id": "macro.fivetran_utils.pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7630348, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"name": "persist_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.763714, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"name": "json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.765006, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"name": "default__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.765255, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"name": "redshift__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.765495, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"name": "bigquery__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.765805, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"name": "postgres__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7661068, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"name": "snowflake__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.766357, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"name": "spark__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.766593, "supported_languages": null}, "macro.fivetran_utils.sqlserver__json_parse": {"name": "sqlserver__json_parse", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "unique_id": "macro.fivetran_utils.sqlserver__json_parse", "macro_sql": "{% macro sqlserver__json_parse(string, string_path) %}\n\n json_value({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.766906, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"name": "max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.76724, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"name": "default__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.767336, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"name": "snowflake__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.767423, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"name": "bigquery__max_bool", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "unique_id": "macro.fivetran_utils.bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.767512, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"name": "calculated_fields", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "unique_id": "macro.fivetran_utils.calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.768018, "supported_languages": null}, "macro.fivetran_utils.drop_schemas_automation": {"name": "drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.drop_schemas_automation", "macro_sql": "{% macro drop_schemas_automation(drop_target_schema=true) %}\n {{ return(adapter.dispatch('drop_schemas_automation', 'fivetran_utils')(drop_target_schema)) }}\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__drop_schemas_automation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7686641, "supported_languages": null}, "macro.fivetran_utils.default__drop_schemas_automation": {"name": "default__drop_schemas_automation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/drop_schemas_automation.sql", "original_file_path": "macros/drop_schemas_automation.sql", "unique_id": "macro.fivetran_utils.default__drop_schemas_automation", "macro_sql": "{% macro default__drop_schemas_automation(drop_target_schema=true) %}\n\n{% set fetch_list_sql %}\n {% if target.type not in ('databricks', 'spark') %}\n select schema_name\n from \n {{ wrap_in_quotes(target.database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like '{{ target.schema | lower }}{%- if not drop_target_schema -%}_{%- endif -%}%'\n {% else %}\n SHOW SCHEMAS LIKE '{{ target.schema }}{%- if not drop_target_schema -%}_{%- endif -%}*'\n {% endif %}\n{% endset %}\n\n{% set results = run_query(fetch_list_sql) %}\n\n{% if execute %}\n {% set results_list = results.columns[0].values() %}\n{% else %}\n {% set results_list = [] %}\n{% endif %}\n\n{% for schema_to_drop in results_list %}\n {% do adapter.drop_schema(api.Relation.create(database=target.database, schema=schema_to_drop)) %}\n {{ print('Schema ' ~ schema_to_drop ~ ' successfully dropped from the ' ~ target.database ~ ' database.\\n')}}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.wrap_in_quotes", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7696, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"name": "seed_data_helper", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "unique_id": "macro.fivetran_utils.seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.770124, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"name": "fill_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.770813, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"name": "string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7712462, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"name": "default__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.771366, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"name": "snowflake__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.771529, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"name": "redshift__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7717462, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"name": "spark__string_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "unique_id": "macro.fivetran_utils.spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.771935, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"name": "timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.774604, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"name": "default__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.774775, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"name": "redshift__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7749288, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"name": "bigquery__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.775072, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"name": "postgres__timestamp_diff", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.776844, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"name": "try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.777757, "supported_languages": null}, "macro.fivetran_utils.default__try_cast": {"name": "default__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.default__try_cast", "macro_sql": "{% macro default__try_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7780101, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"name": "redshift__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.778283, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"name": "postgres__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.778551, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"name": "snowflake__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.778676, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"name": "bigquery__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.77879, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"name": "spark__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.778914, "supported_languages": null}, "macro.fivetran_utils.sqlserver__try_cast": {"name": "sqlserver__try_cast", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "unique_id": "macro.fivetran_utils.sqlserver__try_cast", "macro_sql": "{% macro sqlserver__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7790232, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"name": "source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.779489, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"name": "default__source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "unique_id": "macro.fivetran_utils.default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.780017, "supported_languages": null}, "macro.fivetran_utils.first_value": {"name": "first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7804701, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"name": "default__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7806568, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"name": "redshift__first_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "unique_id": "macro.fivetran_utils.redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.780859, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"name": "add_dbt_source_relation", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "unique_id": "macro.fivetran_utils.add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.78125, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"name": "add_pass_through_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "unique_id": "macro.fivetran_utils.add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.782599, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"name": "union_relations", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.786462, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"name": "union_tables", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "unique_id": "macro.fivetran_utils.union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.786895, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"name": "snowflake_seed_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "unique_id": "macro.fivetran_utils.snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7872791, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"name": "fill_staging_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.788695, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"name": "quote_column", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "unique_id": "macro.fivetran_utils.quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark', 'databricks') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.789365, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"name": "json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.789964, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"name": "default__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.790119, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"name": "snowflake__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.790268, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"name": "redshift__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.790422, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"name": "bigquery__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.790563, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"name": "postgres__json_extract", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "unique_id": "macro.fivetran_utils.postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.790699, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"name": "collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.791432, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"name": "default__collect_freshness", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "unique_id": "macro.fivetran_utils.default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n\n {% if dbt_version.split('.') | map('int') | list >= [1, 5, 0] %}\n {{ return(load_result('collect_freshness')) }}\n {% else %}\n {{ return(load_result('collect_freshness').table) }}\n {% endif %}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7928572, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"name": "timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.793584, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"name": "default__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7937548, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"name": "bigquery__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.793906, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"name": "redshift__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.7941198, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"name": "postgres__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.794569, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"name": "spark__timestamp_add", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "unique_id": "macro.fivetran_utils.spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.794762, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"name": "ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.795112, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"name": "default__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.795331, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"name": "snowflake__ceiling", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "unique_id": "macro.fivetran_utils.snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.795441, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"name": "remove_prefix_from_columns", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.796146, "supported_languages": null}, "macro.fivetran_utils.fivetran_date_spine": {"name": "fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.fivetran_date_spine", "macro_sql": "{% macro fivetran_date_spine(datepart, start_date, end_date) -%}\n\n{{ return(adapter.dispatch('fivetran_date_spine', 'fivetran_utils') (datepart, start_date, end_date)) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__fivetran_date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.797319, "supported_languages": null}, "macro.fivetran_utils.default__fivetran_date_spine": {"name": "default__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.default__fivetran_date_spine", "macro_sql": "{% macro default__fivetran_date_spine(datepart, start_date, end_date) %}\n\n {{ dbt_utils.date_spine(datepart, start_date, end_date) }}\n \n{% endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.797479, "supported_languages": null}, "macro.fivetran_utils.sqlserver__fivetran_date_spine": {"name": "sqlserver__fivetran_date_spine", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/fivetran_date_spine.sql", "original_file_path": "macros/fivetran_date_spine.sql", "unique_id": "macro.fivetran_utils.sqlserver__fivetran_date_spine", "macro_sql": "{% macro sqlserver__fivetran_date_spine(datepart, start_date, end_date) -%}\n\n {% set date_spine_query %}\n with\n\n l0 as (\n\n select c\n from (select 1 union all select 1) as d(c)\n\n ),\n l1 as (\n\n select\n 1 as c\n from l0 as a\n cross join l0 as b\n\n ),\n\n l2 as (\n\n select 1 as c\n from l1 as a\n cross join l1 as b\n ),\n\n l3 as (\n\n select 1 as c\n from l2 as a\n cross join l2 as b\n ),\n\n l4 as (\n\n select 1 as c\n from l3 as a\n cross join l3 as b\n ),\n\n l5 as (\n\n select 1 as c\n from l4 as a\n cross join l4 as b\n ),\n\n nums as (\n\n select row_number() over (order by (select null)) as rownum\n from l5\n ),\n\n rawdata as (\n\n select top ({{dbt.datediff(start_date, end_date, datepart)}}) rownum -1 as n\n from nums\n order by rownum\n ),\n\n all_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n 'n',\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n ),\n\n filtered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n )\n\n select * from filtered\n order by 1\n\n {% endset %}\n\n {% set results = run_query(date_spine_query) %}\n\n {% if execute %}\n\n {% set results_list = results.columns[0].values() %}\n \n {% else %}\n\n {% set results_list = [] %}\n\n {% endif %}\n\n {%- for date_field in results_list %}\n select cast('{{ date_field }}' as date) as date_{{datepart}} {{ 'union all ' if not loop.last else '' }}\n {% endfor -%}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.dbt.datediff", "macro.dbt.dateadd", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.798239, "supported_languages": null}, "macro.fivetran_utils.union_data": {"name": "union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.union_data", "macro_sql": "{%- macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.801294, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"name": "default__union_data", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "unique_id": "macro.fivetran_utils.default__union_data", "macro_sql": "{%- macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) -%}\n\n{%- if var(union_schema_variable, none) -%}\n\n {%- set relations = [] -%}\n \n {%- if var(union_schema_variable) is string -%}\n {%- set trimmed = var(union_schema_variable)|trim('[')|trim(']') -%}\n {%- set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") -%}\n {%- else -%}\n {%- set schemas = var(union_schema_variable) -%}\n {%- endif -%}\n\n {%- for schema in var(union_schema_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n \n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- elif var(union_database_variable, none) -%}\n\n {%- set relations = [] -%}\n\n {%- for database in var(union_database_variable) -%}\n {%- set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {%- set relation_exists=relation is not none -%}\n\n {%- if relation_exists -%}\n {%- do relations.append(relation) -%}\n {%- endif -%}\n\n {%- endfor -%}\n\n {%- if relations != [] -%}\n {{ dbt_utils.union_relations(relations) }}\n {%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n {%- endif -%}\n\n{%- else -%}\n {% set exception_schemas = {\"linkedin_company_pages\": \"linkedin_pages\", \"instagram_business_pages\": \"instagram_business\"} %}\n {% set relation = namespace(value=\"\") %}\n {% if default_schema in exception_schemas.keys() %}\n {% for corrected_schema_name in exception_schemas.items() %} \n {% if default_schema in corrected_schema_name %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = corrected_schema_name[1] + \"_\" + table_identifier + \"_identifier\" %}\n {%- set relation.value=adapter.get_relation(\n database=source(corrected_schema_name[1], table_identifier).database,\n schema=source(corrected_schema_name[1], table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n {% endfor %}\n {% else %}\n {# In order for this macro to effectively work within upstream integration tests (mainly used by the Fivetran dbt package maintainers), this identifier variable selection is required to use the macro with different identifier names. #}\n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifier\" %}\n {# Unfortunately the Twitter Organic identifiers were misspelled. As such, we will need to account for this in the model. This will be adjusted in the Twitter Organic package, but to ensure backwards compatibility, this needs to be included. #}\n {% if var(identifier_var, none) is none %} \n {% set identifier_var = default_schema + \"_\" + table_identifier + \"_identifer\" %}\n {% endif %}\n {%- set relation.value=adapter.get_relation(\n database=source(default_schema, table_identifier).database,\n schema=source(default_schema, table_identifier).schema,\n identifier=var(identifier_var, table_identifier)\n ) -%}\n {% endif %}\n{%- set table_exists=relation.value is not none -%}\n\n{%- if table_exists -%}\n select * \n from {{ relation.value }}\n{%- else -%}\n {% if execute and not var('fivetran__remove_empty_table_warnings', false) -%}\n {{ exceptions.warn(\"\\n\\nPlease be aware: The \" ~ table_identifier|upper ~ \" table was not found in your \" ~ default_schema|upper ~ \" schema(s). The Fivetran dbt package will create a completely empty \" ~ table_identifier|upper ~ \" staging model as to not break downstream transformations. To turn off these warnings, set the `fivetran__remove_empty_table_warnings` variable to TRUE (see https://github.com/fivetran/dbt_fivetran_utils/tree/releases/v0.4.latest#union_data-source for details).\\n\") }}\n {% endif -%}\n select \n cast(null as {{ dbt.type_string() }}) as _dbt_source_relation\n limit 0\n{%- endif -%}\n{%- endif -%}\n\n{%- endmacro -%}", "depends_on": {"macros": ["macro.dbt_utils.union_relations", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.8057349, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"name": "dummy_coalesce_value", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "unique_id": "macro.fivetran_utils.dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.807044, "supported_languages": null}, "macro.fivetran_utils.extract_url_parameter": {"name": "extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.extract_url_parameter", "macro_sql": "{% macro extract_url_parameter(field, url_parameter) -%}\n\n{{ adapter.dispatch('extract_url_parameter', 'fivetran_utils') (field, url_parameter) }}\n\n{% endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__extract_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.807359, "supported_languages": null}, "macro.fivetran_utils.default__extract_url_parameter": {"name": "default__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.default__extract_url_parameter", "macro_sql": "{% macro default__extract_url_parameter(field, url_parameter) -%}\n\n{{ dbt_utils.get_url_parameter(field, url_parameter) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.dbt_utils.get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.8074958, "supported_languages": null}, "macro.fivetran_utils.spark__extract_url_parameter": {"name": "spark__extract_url_parameter", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/extract_url_parameter.sql", "original_file_path": "macros/extract_url_parameter.sql", "unique_id": "macro.fivetran_utils.spark__extract_url_parameter", "macro_sql": "{% macro spark__extract_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"=([^&]+)'\" -%}\nnullif(regexp_extract({{ field }}, {{ formatted_url_parameter }}, 1), '')\n\n{%- endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.807905, "supported_languages": null}, "macro.fivetran_utils.wrap_in_quotes": {"name": "wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.wrap_in_quotes", "macro_sql": "{%- macro wrap_in_quotes(object_to_quote) -%}\n\n{{ return(adapter.dispatch('wrap_in_quotes', 'fivetran_utils')(object_to_quote)) }}\n\n{%- endmacro -%}\n\n", "depends_on": {"macros": ["macro.fivetran_utils.postgres__wrap_in_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.8083332, "supported_languages": null}, "macro.fivetran_utils.default__wrap_in_quotes": {"name": "default__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.default__wrap_in_quotes", "macro_sql": "{%- macro default__wrap_in_quotes(object_to_quote) -%}\n{# bigquery, spark, databricks #}\n `{{ object_to_quote }}`\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.808439, "supported_languages": null}, "macro.fivetran_utils.snowflake__wrap_in_quotes": {"name": "snowflake__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.snowflake__wrap_in_quotes", "macro_sql": "{%- macro snowflake__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote | upper }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.808542, "supported_languages": null}, "macro.fivetran_utils.redshift__wrap_in_quotes": {"name": "redshift__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.redshift__wrap_in_quotes", "macro_sql": "{%- macro redshift__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}\n\n", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.808634, "supported_languages": null}, "macro.fivetran_utils.postgres__wrap_in_quotes": {"name": "postgres__wrap_in_quotes", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/wrap_in_quotes.sql", "original_file_path": "macros/wrap_in_quotes.sql", "unique_id": "macro.fivetran_utils.postgres__wrap_in_quotes", "macro_sql": "{%- macro postgres__wrap_in_quotes(object_to_quote) -%}\n \"{{ object_to_quote }}\"\n{%- endmacro -%}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.8087208, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"name": "array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.808987, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"name": "default__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.809092, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"name": "redshift__array_agg", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "unique_id": "macro.fivetran_utils.redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.809181, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"name": "empty_variable_warning", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "unique_id": "macro.fivetran_utils.empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.809589, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"name": "enabled_vars_one_true", "resource_type": "macro", "package_name": "fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "unique_id": "macro.fivetran_utils.enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1712158225.809949, "supported_languages": null}}, "docs": {"doc.dbt.__overview__": {"name": "__overview__", "resource_type": "doc", "package_name": "dbt", "path": "overview.md", "original_file_path": "docs/overview.md", "unique_id": "doc.dbt.__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "doc.workday._fivetran_deleted": {"name": "_fivetran_deleted", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_deleted", "block_contents": "Indicates if the record was soft-deleted by Fivetran."}, "doc.workday._fivetran_synced": {"name": "_fivetran_synced", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_synced", "block_contents": "Timestamp the record was synced by Fivetran."}, "doc.workday._fivetran_start": {"name": "_fivetran_start", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_start", "block_contents": "Timestamp when the record was first created or modified in the source."}, "doc.workday._fivetran_end": {"name": "_fivetran_end", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_end", "block_contents": "Timestamp marking the end of a record being active."}, "doc.workday._fivetran_date": {"name": "_fivetran_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_date", "block_contents": "Date when the record was first created or modified in the source."}, "doc.workday._fivetran_active": {"name": "_fivetran_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday._fivetran_active", "block_contents": "TRUE if it is the currently active record. FALSE if it is a historical version of the record. Only one version of the record can be TRUE."}, "doc.workday.source_relation": {"name": "source_relation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.source_relation", "block_contents": "The record's source if the unioning functionality is used. Otherwise this field will be empty."}, "doc.workday.academic_pay_setup_data_annual_work_period_end_date": {"name": "academic_pay_setup_data_annual_work_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_end_date", "block_contents": "The end date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_start_date": {"name": "academic_pay_setup_data_annual_work_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_start_date", "block_contents": "The start date of the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year": {"name": "academic_pay_setup_data_annual_work_period_work_percent_of_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_annual_work_period_work_percent_of_year", "block_contents": "The work percentage of the year in the annual work period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date": {"name": "academic_pay_setup_data_disbursement_plan_period_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_end_date", "block_contents": "The end date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date": {"name": "academic_pay_setup_data_disbursement_plan_period_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_pay_setup_data_disbursement_plan_period_start_date", "block_contents": "The start date of the disbursement plan period in academic pay setup data."}, "doc.workday.academic_suffix": {"name": "academic_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_suffix", "block_contents": "The academic suffix, if applicable (e.g., PhD, MD)."}, "doc.workday.academic_tenure_date": {"name": "academic_tenure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_date", "block_contents": "Date when academic tenure is achieved."}, "doc.workday.academic_tenure_eligible": {"name": "academic_tenure_eligible", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.academic_tenure_eligible", "block_contents": "Flag indicating whether the position is eligible for academic tenure."}, "doc.workday.active": {"name": "active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active", "block_contents": "Flag indicating the current active status of the worker."}, "doc.workday.active_status_date": {"name": "active_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.active_status_date", "block_contents": "Date when the active status was last updated."}, "doc.workday.additional_job_description": {"name": "additional_job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_job_description", "block_contents": "Additional details or information about the job."}, "doc.workday.additional_name_type": {"name": "additional_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_name_type", "block_contents": "Additional type or category for the person name."}, "doc.workday.additional_nationality": {"name": "additional_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.additional_nationality", "block_contents": "Additional nationality associated with the individual."}, "doc.workday.adoption_notification_date": {"name": "adoption_notification_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_notification_date", "block_contents": "The date of adoption notification."}, "doc.workday.adoption_placement_date": {"name": "adoption_placement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.adoption_placement_date", "block_contents": "The date of adoption placement."}, "doc.workday.age_of_dependent": {"name": "age_of_dependent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.age_of_dependent", "block_contents": "The age of the dependent associated with the leave status."}, "doc.workday.annual_currency_summary_currency": {"name": "annual_currency_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_currency", "block_contents": "Currency used for annual compensation summaries."}, "doc.workday.annual_currency_summary_frequency": {"name": "annual_currency_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_frequency", "block_contents": "Frequency of currency for annual compensation summaries."}, "doc.workday.annual_currency_summary_primary_compensation_basis": {"name": "annual_currency_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual compensation summaries."}, "doc.workday.annual_currency_summary_total_base_pay": {"name": "annual_currency_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_currency_summary_total_salary_and_allowances": {"name": "annual_currency_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_currency_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.annual_summary_currency": {"name": "annual_summary_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_currency", "block_contents": "Currency used for annual summaries."}, "doc.workday.annual_summary_frequency": {"name": "annual_summary_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_frequency", "block_contents": "Frequency of currency for annual summaries."}, "doc.workday.annual_summary_primary_compensation_basis": {"name": "annual_summary_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_primary_compensation_basis", "block_contents": "Primary compensation basis used for annual summaries."}, "doc.workday.annual_summary_total_base_pay": {"name": "annual_summary_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_base_pay", "block_contents": "Total base pay in the currency for annual summaries."}, "doc.workday.annual_summary_total_salary_and_allowances": {"name": "annual_summary_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.annual_summary_total_salary_and_allowances", "block_contents": "Total salary and allowances in the currency for annual summaries."}, "doc.workday.associated_worker_id": {"name": "associated_worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.associated_worker_id", "block_contents": "Identifier for the worker associated with the organization role."}, "doc.workday.availability_date": {"name": "availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.availability_date", "block_contents": "Date when the organization becomes available."}, "doc.workday.available_for_hire": {"name": "available_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_hire", "block_contents": "Flag indicating whether the organization is available for hiring."}, "doc.workday.available_for_overlap": {"name": "available_for_overlap", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_overlap", "block_contents": "Flag indicating whether the position is available for overlap with other positions."}, "doc.workday.available_for_recruiting": {"name": "available_for_recruiting", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.available_for_recruiting", "block_contents": "Flag indicating whether the position is available for recruiting."}, "doc.workday.benefits_effect": {"name": "benefits_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_effect", "block_contents": "The effect of leave on benefits."}, "doc.workday.benefits_service_date": {"name": "benefits_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.benefits_service_date", "block_contents": "Date when the worker's benefits service starts."}, "doc.workday.blood_type": {"name": "blood_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.blood_type", "block_contents": "The blood type of the individual."}, "doc.workday.business_site_summary_display_language": {"name": "business_site_summary_display_language", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_display_language", "block_contents": "The display language of the business site summary."}, "doc.workday.business_site_summary_local": {"name": "business_site_summary_local", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_local", "block_contents": "Local information related to the business site summary."}, "doc.workday.business_site_summary_location": {"name": "business_site_summary_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location", "block_contents": "The location of the business site summary."}, "doc.workday.business_site_summary_location_type": {"name": "business_site_summary_location_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_location_type", "block_contents": "The type of location for the business site summary."}, "doc.workday.business_site_summary_name": {"name": "business_site_summary_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_name", "block_contents": "The name associated with the business site summary."}, "doc.workday.business_site_summary_scheduled_weekly_hours": {"name": "business_site_summary_scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the business site summary."}, "doc.workday.business_site_summary_time_profile": {"name": "business_site_summary_time_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_site_summary_time_profile", "block_contents": "The time profile associated with the business site summary."}, "doc.workday.business_title": {"name": "business_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.business_title", "block_contents": "The business title associated with the worker position."}, "doc.workday.caesarean_section_birth": {"name": "caesarean_section_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.caesarean_section_birth", "block_contents": "Indicator for Caesarean section birth."}, "doc.workday.child_birth_date": {"name": "child_birth_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_birth_date", "block_contents": "The date of child birth."}, "doc.workday.child_sdate_of_death": {"name": "child_sdate_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.child_sdate_of_death", "block_contents": "The start date of child death.>"}, "doc.workday.citizenship_status": {"name": "citizenship_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.citizenship_status", "block_contents": "The citizenship status of the individual."}, "doc.workday.city_of_birth": {"name": "city_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth", "block_contents": "The city of birth of the individual."}, "doc.workday.city_of_birth_code": {"name": "city_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.city_of_birth_code", "block_contents": "The city of birth code of the individual."}, "doc.workday.closed": {"name": "closed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.closed", "block_contents": "Flag indicating whether the position is closed."}, "doc.workday.code": {"name": "code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.code", "block_contents": "Code assigned to the organization for reference and categorization."}, "doc.workday.company_service_date": {"name": "company_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.company_service_date", "block_contents": "Date when the worker's service with the company started."}, "doc.workday.compensation_effective_date": {"name": "compensation_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_effective_date", "block_contents": "Effective date when changes to the worker's compensation take effect."}, "doc.workday.compensation_grade_code": {"name": "compensation_grade_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_code", "block_contents": "Code associated with the compensation grade of the position."}, "doc.workday.compensation_grade_id": {"name": "compensation_grade_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_id", "block_contents": "Identifier for the compensation grade."}, "doc.workday.compensation_grade_profile_code": {"name": "compensation_grade_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_code", "block_contents": "Code associated with the compensation grade profile of the position."}, "doc.workday.compensation_grade_profile_id": {"name": "compensation_grade_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_grade_profile_id", "block_contents": "Unique identifier for the compensation grade profile associated with the worker."}, "doc.workday.compensation_package_code": {"name": "compensation_package_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_package_code", "block_contents": "Code associated with the compensation package of the position."}, "doc.workday.compensation_step_code": {"name": "compensation_step_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.compensation_step_code", "block_contents": "Code associated with the compensation step of the position."}, "doc.workday.continuous_service_accrual_effect": {"name": "continuous_service_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_accrual_effect", "block_contents": "The effect of leave on continuous service accrual."}, "doc.workday.continuous_service_date": {"name": "continuous_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.continuous_service_date", "block_contents": "Date when the worker's continuous service with the organization started."}, "doc.workday.contract_assignment_details": {"name": "contract_assignment_details", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_assignment_details", "block_contents": "Details of the worker's contract assignment."}, "doc.workday.contract_currency_code": {"name": "contract_currency_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_currency_code", "block_contents": "Currency code used for the worker's contract."}, "doc.workday.contract_end_date": {"name": "contract_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_end_date", "block_contents": "Date when the worker's contract is scheduled to end."}, "doc.workday.contract_frequency_name": {"name": "contract_frequency_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_frequency_name", "block_contents": "Frequency of payment for the worker's contract."}, "doc.workday.contract_pay_rate": {"name": "contract_pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_pay_rate", "block_contents": "Pay rate associated with the worker's contract."}, "doc.workday.contract_vendor_name": {"name": "contract_vendor_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.contract_vendor_name", "block_contents": "Name of the vendor associated with the worker's contract."}, "doc.workday.country": {"name": "country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country", "block_contents": "The country associated with the person name."}, "doc.workday.country_of_birth": {"name": "country_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.country_of_birth", "block_contents": "The country of birth of the individual."}, "doc.workday.critical_job": {"name": "critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.critical_job", "block_contents": "Flag indicating whether the job is critical."}, "doc.workday.date_baby_arrived_home_from_hospital": {"name": "date_baby_arrived_home_from_hospital", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_baby_arrived_home_from_hospital", "block_contents": "The date when the baby arrived home from the hospital."}, "doc.workday.date_child_entered_country": {"name": "date_child_entered_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_child_entered_country", "block_contents": "The date when the child entered the country."}, "doc.workday.date_entered_workforce": {"name": "date_entered_workforce", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_entered_workforce", "block_contents": "Date when the worker entered the workforce."}, "doc.workday.date_of_birth": {"name": "date_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_birth", "block_contents": "The date of birth of the individual."}, "doc.workday.date_of_death": {"name": "date_of_death", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_death", "block_contents": "The date of death of the individual."}, "doc.workday.date_of_recall": {"name": "date_of_recall", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_recall", "block_contents": "The date of recall."}, "doc.workday.days_employed": {"name": "days_employed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_employed", "block_contents": "The number of days the employee held their position."}, "doc.workday.days_as_worker": {"name": "days_as_worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_as_worker", "block_contents": "Number of days since the worker has been created."}, "doc.workday.days_unemployed": {"name": "days_unemployed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.days_unemployed", "block_contents": "Number of days the worker has been unemployed."}, "doc.workday.default_weekly_hours": {"name": "default_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.default_weekly_hours", "block_contents": "The default weekly hours associated with the worker position."}, "doc.workday.departure_date": {"name": "departure_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.departure_date", "block_contents": "The departure date for the employee."}, "doc.workday.difficulty_to_fill": {"name": "difficulty_to_fill", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill", "block_contents": "Indication of the difficulty level in filling the job."}, "doc.workday.difficulty_to_fill_code": {"name": "difficulty_to_fill_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.difficulty_to_fill_code", "block_contents": "Code indicating the difficulty level in filling the position."}, "doc.workday.discharge_date": {"name": "discharge_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.discharge_date", "block_contents": "The date on which the individual was discharged from military service."}, "doc.workday.earliest_hire_date": {"name": "earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_hire_date", "block_contents": "Earliest date when the position can be filled."}, "doc.workday.earliest_overlap_date": {"name": "earliest_overlap_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.earliest_overlap_date", "block_contents": "Earliest date when the position can overlap with other positions."}, "doc.workday.effective_date": {"name": "effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.effective_date", "block_contents": "Date when the job profile becomes effective."}, "doc.workday.eligible_for_hire": {"name": "eligible_for_hire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_hire", "block_contents": "Flag indicating whether the worker is eligible for hire."}, "doc.workday.eligible_for_rehire_on_latest_termination": {"name": "eligible_for_rehire_on_latest_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.eligible_for_rehire_on_latest_termination", "block_contents": "Flag indicating whether the worker is eligible for rehire based on the latest termination."}, "doc.workday.email_address": {"name": "email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_address", "block_contents": "The actual email address of the person."}, "doc.workday.email_code": {"name": "email_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_code", "block_contents": "A code or label associated with the type or purpose of the email address."}, "doc.workday.email_comment": {"name": "email_comment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.email_comment", "block_contents": "Any additional comments or notes related to the email address."}, "doc.workday.employee_id": {"name": "employee_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_id", "block_contents": "Surrogate key on `worker_id`, `source_relation`, `position_id`, `position_start_date` to create unique identifier for a Workday employee."}, "doc.workday.employed_five_years": {"name": "employed_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_five_years", "block_contents": "Tracks whether a worker was employed at least five years."}, "doc.workday.employed_one_year": {"name": "employed_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_one_year", "block_contents": "Tracks whether a worker was employed at least one year."}, "doc.workday.employed_ten_years": {"name": "employed_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_ten_years", "block_contents": "Tracks whether a worker was employed at least ten years."}, "doc.workday.employed_thirty_years": {"name": "employed_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_thirty_years", "block_contents": "Tracks whether a worker was employed at least thirty years."}, "doc.workday.employed_twenty_years": {"name": "employed_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employed_twenty_years", "block_contents": "Tracks whether a worker was employed at least twenty years."}, "doc.workday.employee_compensation_currency": {"name": "employee_compensation_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_currency", "block_contents": "Currency code used for the worker's employee compensation."}, "doc.workday.employee_compensation_frequency": {"name": "employee_compensation_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_frequency", "block_contents": "Frequency of payment for the worker's employee compensation."}, "doc.workday.employee_compensation_primary_compensation_basis": {"name": "employee_compensation_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's employee compensation."}, "doc.workday.employee_compensation_total_base_pay": {"name": "employee_compensation_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_base_pay", "block_contents": "Total base pay for the worker's employee compensation."}, "doc.workday.employee_compensation_total_salary_and_allowances": {"name": "employee_compensation_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_compensation_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's employee compensation."}, "doc.workday.employee_type": {"name": "employee_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.employee_type", "block_contents": "The type of employee associated with the worker position."}, "doc.workday.end_date": {"name": "end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_date", "block_contents": "The end date of the worker position."}, "doc.workday.end_employment_date": {"name": "end_employment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.end_employment_date", "block_contents": "Date when the worker's employment is scheduled to end."}, "doc.workday.estimated_leave_end_date": {"name": "estimated_leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.estimated_leave_end_date", "block_contents": "The estimated end date of the leave."}, "doc.workday.ethnicity_code": {"name": "ethnicity_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_code", "block_contents": "The code representing the ethnicity of the individual."}, "doc.workday.ethnicity_codes": {"name": "ethnicity_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_codes", "block_contents": "String aggregation of all ethnicity codes associated with an individual."}, "doc.workday.ethnicity_id": {"name": "ethnicity_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.ethnicity_id", "block_contents": "The identifier associated with the ethnicity."}, "doc.workday.exclude_from_head_count": {"name": "exclude_from_head_count", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.exclude_from_head_count", "block_contents": "Flag indicating whether the position is excluded from headcount."}, "doc.workday.expected_assignment_end_date": {"name": "expected_assignment_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_assignment_end_date", "block_contents": "The expected end date of the assignment associated with the worker position."}, "doc.workday.expected_date_of_return": {"name": "expected_date_of_return", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_date_of_return", "block_contents": "Expected date of the worker's return."}, "doc.workday.expected_due_date": {"name": "expected_due_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_due_date", "block_contents": "The expected due date."}, "doc.workday.expected_retirement_date": {"name": "expected_retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.expected_retirement_date", "block_contents": "Expected date of the worker's retirement."}, "doc.workday.external_employee": {"name": "external_employee", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_employee", "block_contents": "Flag indicating whether the worker is an external employee."}, "doc.workday.external_url": {"name": "external_url", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.external_url", "block_contents": "External URL associated with the organization."}, "doc.workday.federal_withholding_fein": {"name": "federal_withholding_fein", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.federal_withholding_fein", "block_contents": "The Federal Employer Identification Number (FEIN) for federal withholding."}, "doc.workday.first_day_of_work": {"name": "first_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_day_of_work", "block_contents": "The date when the worker started their first day of work."}, "doc.workday.first_name": {"name": "first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.first_name", "block_contents": "The first name of the individual."}, "doc.workday.frequency": {"name": "frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.frequency", "block_contents": "The frequency associated with the worker position."}, "doc.workday.fte_percent": {"name": "fte_percent", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.fte_percent", "block_contents": "The percentage of hours, the employee's scheduled hours divided by the employer's hours for a full-time workweek"}, "doc.workday.full_name_singapore_malaysia": {"name": "full_name_singapore_malaysia", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_name_singapore_malaysia", "block_contents": "The full name as used in Singapore and Malaysia."}, "doc.workday.full_time_equivalent_percentage": {"name": "full_time_equivalent_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.full_time_equivalent_percentage", "block_contents": "The full-time equivalent (FTE) percentage associated with the worker position."}, "doc.workday.gender": {"name": "gender", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.gender", "block_contents": "The gender of the individual."}, "doc.workday.has_international_assignment": {"name": "has_international_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.has_international_assignment", "block_contents": "Flag indicating whether the worker has an international assignment."}, "doc.workday.headcount_restriction_code": {"name": "headcount_restriction_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.headcount_restriction_code", "block_contents": "The code associated with headcount restriction for the worker position."}, "doc.workday.hereditary_suffix": {"name": "hereditary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hereditary_suffix", "block_contents": "The hereditary suffix, if applicable (e.g., Jr, Sr)."}, "doc.workday.hire_date": {"name": "hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_date", "block_contents": "The date when the worker was hired."}, "doc.workday.hire_reason": {"name": "hire_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_reason", "block_contents": "The reason for hiring the worker."}, "doc.workday.hire_rescinded": {"name": "hire_rescinded", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hire_rescinded", "block_contents": "Flag indicating whether the worker's hire was rescinded."}, "doc.workday.hiring_freeze": {"name": "hiring_freeze", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hiring_freeze", "block_contents": "Flag indicating whether the organization is under a hiring freeze."}, "doc.workday.hispanic_or_latino": {"name": "hispanic_or_latino", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hispanic_or_latino", "block_contents": "lag indicating whether the individual is Hispanic or Latino."}, "doc.workday.home_country": {"name": "home_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.home_country", "block_contents": "The home country of the worker."}, "doc.workday.honorary_suffix": {"name": "honorary_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.honorary_suffix", "block_contents": "The honorary suffix, if applicable."}, "doc.workday.host_country": {"name": "host_country", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.host_country", "block_contents": "The host country associated with the worker."}, "doc.workday.hourly_frequency_currency": {"name": "hourly_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_currency", "block_contents": "Currency code used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_frequency": {"name": "hourly_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_frequency", "block_contents": "Frequency of payment for the worker's hourly compensation."}, "doc.workday.hourly_frequency_primary_compensation_basis": {"name": "hourly_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_base_pay": {"name": "hourly_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_base_pay", "block_contents": "Total base pay for the worker's hourly compensation."}, "doc.workday.hourly_frequency_total_salary_and_allowances": {"name": "hourly_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hourly_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's hourly compensation."}, "doc.workday.hukou_locality": {"name": "hukou_locality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_locality", "block_contents": "The locality associated with the Hukou."}, "doc.workday.hukou_postal_code": {"name": "hukou_postal_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_postal_code", "block_contents": "The postal code associated with the Hukou."}, "doc.workday.hukou_region": {"name": "hukou_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_region", "block_contents": "The region associated with the Hukou."}, "doc.workday.hukou_subregion": {"name": "hukou_subregion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_subregion", "block_contents": "The subregion associated with the Hukou."}, "doc.workday.hukou_type": {"name": "hukou_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.hukou_type", "block_contents": "The type of Hukou."}, "doc.workday.id": {"name": "id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.id", "block_contents": "Unique identifier."}, "doc.workday.inactive": {"name": "inactive", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive", "block_contents": "Flag indicating whether this is inactive."}, "doc.workday.inactive_date": {"name": "inactive_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.inactive_date", "block_contents": "Date when the organization becomes inactive"}, "doc.workday.include_job_code_in_name": {"name": "include_job_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_job_code_in_name", "block_contents": "Flag indicating whether to include the job code in the job profile name."}, "doc.workday.include_manager_in_name": {"name": "include_manager_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_manager_in_name", "block_contents": "Flag indicating whether to include the manager in the organization name."}, "doc.workday.include_organization_code_in_name": {"name": "include_organization_code_in_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.include_organization_code_in_name", "block_contents": "Flag indicating whether to include the organization code in the name."}, "doc.workday.index": {"name": "index", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.index", "block_contents": "An index for a particular identifier."}, "doc.workday.international_assignment_type": {"name": "international_assignment_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.international_assignment_type", "block_contents": "The type of international assignment associated with the worker position."}, "doc.workday.is_critical_job": {"name": "is_critical_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_critical_job", "block_contents": "Flag indicating whether the position is considered critical based on the job profile."}, "doc.workday.is_current_employee_five_years": {"name": "is_current_employee_five_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_five_years", "block_contents": "Tracks whether a worker is active for more than five years."}, "doc.workday.is_current_employee_one_year": {"name": "is_current_employee_one_year", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_one_year", "block_contents": "Tracks whether a worker is active for more than a year."}, "doc.workday.is_current_employee_ten_years": {"name": "is_current_employee_ten_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_ten_years", "block_contents": "Tracks whether a worker is active for more than ten years."}, "doc.workday.is_current_employee_thirty_years": {"name": "is_current_employee_thirty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_thirty_years", "block_contents": "Tracks whether a worker is active for more than thirty years."}, "doc.workday.is_current_employee_twenty_years": {"name": "is_current_employee_twenty_years", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_current_employee_twenty_years", "block_contents": "Tracks whether a worker is active for more than twenty years."}, "doc.workday.is_employed": {"name": "is_employed", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_employed", "block_contents": "Is the worker currently employed?"}, "doc.workday.is_military_service": {"name": "is_military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_military_service", "block_contents": "Whether the employee served in the military."}, "doc.workday.is_primary_job": {"name": "is_primary_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_primary_job", "block_contents": "Flag indicating whether the job is the primary job for the worker."}, "doc.workday.is_regrettable_termination": {"name": "is_regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_regrettable_termination", "block_contents": "Has the worker been regrettably terminated?"}, "doc.workday.is_terminated": {"name": "is_terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_terminated", "block_contents": "Has the worker been terminated?"}, "doc.workday.is_user_active": {"name": "is_user_active", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.is_user_active", "block_contents": "Is the user currently active."}, "doc.workday.job_category_code": {"name": "job_category_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_code", "block_contents": "Code indicating the category of the job profile associated with the position."}, "doc.workday.job_category_id": {"name": "job_category_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_category_id", "block_contents": "Identifier for the job category."}, "doc.workday.job_description": {"name": "job_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description", "block_contents": "Detailed description of the job associated with the position."}, "doc.workday.job_description_summary": {"name": "job_description_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_description_summary", "block_contents": "Summary or overview of the job description for the position."}, "doc.workday.job_exempt": {"name": "job_exempt", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_exempt", "block_contents": "Indicates whether the job is exempt from certain regulations."}, "doc.workday.job_family": {"name": "job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family", "block_contents": "Each record provides essential information about a specific job family, contributing to the organizational hierarchy and classification of roles."}, "doc.workday.job_family_code": {"name": "job_family_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_code", "block_contents": "Code assigned to the job family"}, "doc.workday.job_family_codes": {"name": "job_family_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_codes", "block_contents": "String array of all job family codes assigned to a job profile."}, "doc.workday.job_family_group": {"name": "job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group", "block_contents": "Each record corresponds to a specific group of related job families, providing an organizational structure for roles with similar characteristics."}, "doc.workday.job_family_group_code": {"name": "job_family_group_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_code", "block_contents": "Code assigned to the job family group for reference and categorization."}, "doc.workday.job_family_group_codes": {"name": "job_family_group_codes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_codes", "block_contents": "String array of all job family group codes assigned to a job profile."}, "doc.workday.job_family_group_id": {"name": "job_family_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_id", "block_contents": "Identifier for the job family group."}, "doc.workday.job_family_group_summary": {"name": "job_family_group_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summary", "block_contents": "The summary of the job family group."}, "doc.workday.job_family_group_summaries": {"name": "job_family_group_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_group_summaries", "block_contents": "String array of all job family group summaries assigned to a job profile."}, "doc.workday.job_family_id": {"name": "job_family_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_id", "block_contents": "Identifier for the job family."}, "doc.workday.job_family_job_family_group": {"name": "job_family_job_family_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_family_group", "block_contents": "Represents the relationship between job families and job family groups in the Workday dataset."}, "doc.workday.job_family_job_profile": {"name": "job_family_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_job_profile", "block_contents": "Represents the relationship between job families and job profiles in the Workday dataset."}, "doc.workday.job_family_summary": {"name": "job_family_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summary", "block_contents": "The summary of the job family."}, "doc.workday.job_family_summaries": {"name": "job_family_summaries", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_family_summaries", "block_contents": "String array of all job family summaries assigned to a job profile."}, "doc.workday.job_group_id": {"name": "job_group_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_group_id", "block_contents": "The unique identifier for the job group."}, "doc.workday.job_posting_title": {"name": "job_posting_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_posting_title", "block_contents": "Title used for job postings associated with the position."}, "doc.workday.job_private_title": {"name": "job_private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_private_title", "block_contents": "The private title associated with the job."}, "doc.workday.job_profile": {"name": "job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile", "block_contents": "Each record represents a job profile, providing details on roles, responsibilities, and associated attributes."}, "doc.workday.job_profile_code": {"name": "job_profile_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_code", "block_contents": "Code assigned to the job profile."}, "doc.workday.job_profile_description": {"name": "job_profile_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_description", "block_contents": "Brief description of the job profile."}, "doc.workday.job_profile_id": {"name": "job_profile_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_profile_id", "block_contents": "Identifier for the job profile."}, "doc.workday.job_summary": {"name": "job_summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_summary", "block_contents": "The summary of the job."}, "doc.workday.job_title": {"name": "job_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.job_title", "block_contents": "The title of the job for the worker."}, "doc.workday.last_date_for_which_paid": {"name": "last_date_for_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_date_for_which_paid", "block_contents": "The last date being paid before leave."}, "doc.workday.last_datefor_which_paid": {"name": "last_datefor_which_paid", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_datefor_which_paid", "block_contents": "Last date for which the worker was paid."}, "doc.workday.last_medical_exam_date": {"name": "last_medical_exam_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_date", "block_contents": "The date of the last medical exam."}, "doc.workday.last_medical_exam_valid_to": {"name": "last_medical_exam_valid_to", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_medical_exam_valid_to", "block_contents": "The validity date of the last medical exam."}, "doc.workday.last_name": {"name": "last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_name", "block_contents": "The last name or surname of the individual."}, "doc.workday.last_updated_date_time": {"name": "last_updated_date_time", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.last_updated_date_time", "block_contents": "Date and time when the organization record was last updated."}, "doc.workday.leave_description": {"name": "leave_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_description", "block_contents": "Description of the type of leave"}, "doc.workday.leave_end_date": {"name": "leave_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_end_date", "block_contents": "The end date of the leave."}, "doc.workday.leave_entitlement_override": {"name": "leave_entitlement_override", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_entitlement_override", "block_contents": "Override for leave entitlement."}, "doc.workday.leave_last_day_of_work": {"name": "leave_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_last_day_of_work", "block_contents": "The last day of work associated with the leave status."}, "doc.workday.leave_of_absence_type": {"name": "leave_of_absence_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_of_absence_type", "block_contents": "The type of leave of absence."}, "doc.workday.leave_percentage": {"name": "leave_percentage", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_percentage", "block_contents": "The percentage of leave."}, "doc.workday.leave_request_event_id": {"name": "leave_request_event_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_request_event_id", "block_contents": "The unique identifier for the leave request event."}, "doc.workday.leave_return_event": {"name": "leave_return_event", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_return_event", "block_contents": "The event associated with the return from leave."}, "doc.workday.leave_start_date": {"name": "leave_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_start_date", "block_contents": "The start date of the leave."}, "doc.workday.leave_status_code": {"name": "leave_status_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_status_code", "block_contents": "The code indicating the status of the leave."}, "doc.workday.leave_type_reason": {"name": "leave_type_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.leave_type_reason", "block_contents": "The reason for the leave type."}, "doc.workday.level": {"name": "level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.level", "block_contents": "Level associated with the job profile."}, "doc.workday.local_first_name": {"name": "local_first_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name", "block_contents": "The local or native first name of the individual."}, "doc.workday.local_first_name_2": {"name": "local_first_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_first_name_2", "block_contents": "Additional local or native first name, if applicable."}, "doc.workday.local_hukou": {"name": "local_hukou", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_hukou", "block_contents": "Flag indicating whether the Hukou is local."}, "doc.workday.local_last_name": {"name": "local_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name", "block_contents": "The local or native last name of the individual."}, "doc.workday.local_last_name_2": {"name": "local_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_last_name_2", "block_contents": "Additional local or native last name, if applicable."}, "doc.workday.local_middle_name": {"name": "local_middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name", "block_contents": "The local or native middle name of the individual."}, "doc.workday.local_middle_name_2": {"name": "local_middle_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_middle_name_2", "block_contents": "Additional local or native middle name, if applicable."}, "doc.workday.local_secondary_last_name": {"name": "local_secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name", "block_contents": "Secondary local or native last name or surname, if applicable."}, "doc.workday.local_secondary_last_name_2": {"name": "local_secondary_last_name_2", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_secondary_last_name_2", "block_contents": "Additional secondary local or native last name, if applicable."}, "doc.workday.local_termination_reason": {"name": "local_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.local_termination_reason", "block_contents": "The reason for local termination of the worker."}, "doc.workday.location": {"name": "location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location", "block_contents": "Location associated with the organization."}, "doc.workday.location_during_leave": {"name": "location_during_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.location_during_leave", "block_contents": "The location during the leave."}, "doc.workday.management_level": {"name": "management_level", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level", "block_contents": "Management level associated with the job profile."}, "doc.workday.management_level_code": {"name": "management_level_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.management_level_code", "block_contents": "Code indicating the management level associated with the job profile."}, "doc.workday.manager_id": {"name": "manager_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.manager_id", "block_contents": "Identifier for the manager associated with the organization."}, "doc.workday.marital_status": {"name": "marital_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status", "block_contents": "The marital status of the individual."}, "doc.workday.marital_status_date": {"name": "marital_status_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.marital_status_date", "block_contents": "The date of the marital status."}, "doc.workday.medical_exam_notes": {"name": "medical_exam_notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.medical_exam_notes", "block_contents": "Notes from the medical exam."}, "doc.workday.middle_name": {"name": "middle_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.middle_name", "block_contents": "The middle name of the individual."}, "doc.workday.military_service": {"name": "military_service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_service", "block_contents": "Represents information about an individual's military service in the Workday system."}, "doc.workday.military_status": {"name": "military_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.military_status", "block_contents": "The military status of the worker."}, "doc.workday.months_continuous_prior_employment": {"name": "months_continuous_prior_employment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.months_continuous_prior_employment", "block_contents": "Number of months of continuous prior employment."}, "doc.workday.position_location": {"name": "position_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_location", "block_contents": "The position location of the employee."}, "doc.workday.position_effective_date": {"name": "position_effective_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_effective_date", "block_contents": "The position effective date for the employee."}, "doc.workday.position_end_date": {"name": "position_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_end_date", "block_contents": "The position end date for this employee."}, "doc.workday.position_start_date": {"name": "position_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_start_date", "block_contents": "The position start date for this employee."}, "doc.workday.multiple_child_indicator": {"name": "multiple_child_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.multiple_child_indicator", "block_contents": "Indicator for multiple children."}, "doc.workday.native_region": {"name": "native_region", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region", "block_contents": "The native region of the individual."}, "doc.workday.native_region_code": {"name": "native_region_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.native_region_code", "block_contents": "The code of the native region."}, "doc.workday.not_returning": {"name": "not_returning", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.not_returning", "block_contents": "Flag indicating whether the worker is not returning."}, "doc.workday.notes": {"name": "notes", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.notes", "block_contents": "Additional notes or comments related to the military service record."}, "doc.workday.number_of_babies_adopted_children": {"name": "number_of_babies_adopted_children", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_babies_adopted_children", "block_contents": "The number of babies adopted by the worker."}, "doc.workday.number_of_child_dependents": {"name": "number_of_child_dependents", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_child_dependents", "block_contents": "The number of child dependents."}, "doc.workday.number_of_previous_births": {"name": "number_of_previous_births", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_births", "block_contents": "The number of previous births."}, "doc.workday.number_of_previous_maternity_leaves": {"name": "number_of_previous_maternity_leaves", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.number_of_previous_maternity_leaves", "block_contents": "The number of previous maternity leaves."}, "doc.workday.on_leave": {"name": "on_leave", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.on_leave", "block_contents": "Indicator for whether the worker is on leave."}, "doc.workday.organization": {"name": "organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization", "block_contents": "Identifier for the organization."}, "doc.workday.organization_code": {"name": "organization_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_code", "block_contents": "Code associated with the organization."}, "doc.workday.organization_description": {"name": "organization_description", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_description", "block_contents": "The description of the organization."}, "doc.workday.organization_id": {"name": "organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_id", "block_contents": "Identifier for the organization."}, "doc.workday.organization_job_family": {"name": "organization_job_family", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_job_family", "block_contents": "Captures the associations between different organizational entities and the job families they are linked to."}, "doc.workday.organization_location": {"name": "organization_location", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_location", "block_contents": "The location of the organization."}, "doc.workday.organization_name": {"name": "organization_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_name", "block_contents": "Name of the organization."}, "doc.workday.organization_owner_id": {"name": "organization_owner_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_owner_id", "block_contents": "Identifier for the owner of the organization."}, "doc.workday.organization_role": {"name": "organization_role", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role", "block_contents": "Captures the associations between different organizational entities and the roles assigned to them, providing valuable insights into organizational roles and responsibilities."}, "doc.workday.organization_role_code": {"name": "organization_role_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_code", "block_contents": "Code assigned to the organization role for reference and categorization."}, "doc.workday.organization_role_id": {"name": "organization_role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_id", "block_contents": "The role id associated with the organization."}, "doc.workday.organization_role_worker": {"name": "organization_role_worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_role_worker", "block_contents": "Captures the linkages between individual workers, the organizations to which they belong, and the roles they fulfill."}, "doc.workday.organization_sub_type": {"name": "organization_sub_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_sub_type", "block_contents": "Subtype or classification of the organization."}, "doc.workday.organization_type": {"name": "organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_type", "block_contents": "Type or category of the organization."}, "doc.workday.organization_worker_code": {"name": "organization_worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.organization_worker_code", "block_contents": "The worker code associated with the organization."}, "doc.workday.original_hire_date": {"name": "original_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.original_hire_date", "block_contents": "The original date when the worker was hired."}, "doc.workday.paid_fte": {"name": "paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_fte", "block_contents": "The paid full-time equivalent (FTE) associated with the worker position."}, "doc.workday.paid_time_off_accrual_effect": {"name": "paid_time_off_accrual_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.paid_time_off_accrual_effect", "block_contents": "The effect of leave on paid time off accrual."}, "doc.workday.pay_group": {"name": "pay_group", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group", "block_contents": "The pay group associated with the worker position."}, "doc.workday.pay_group_frequency_currency": {"name": "pay_group_frequency_currency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_currency", "block_contents": "Currency code used for the worker's pay group frequency."}, "doc.workday.pay_group_frequency_frequency": {"name": "pay_group_frequency_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_frequency", "block_contents": "Frequency of payment for the worker's pay group."}, "doc.workday.pay_group_frequency_primary_compensation_basis": {"name": "pay_group_frequency_primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_primary_compensation_basis", "block_contents": "Primary compensation basis used for the worker's pay group."}, "doc.workday.pay_group_frequency_total_base_pay": {"name": "pay_group_frequency_total_base_pay", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_base_pay", "block_contents": "Total base pay for the worker's pay group."}, "doc.workday.pay_group_frequency_total_salary_and_allowances": {"name": "pay_group_frequency_total_salary_and_allowances", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_group_frequency_total_salary_and_allowances", "block_contents": "Total salary and allowances for the worker's pay group."}, "doc.workday.pay_rate": {"name": "pay_rate", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate", "block_contents": "The pay rate associated with the worker position."}, "doc.workday.pay_rate_type": {"name": "pay_rate_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_rate_type", "block_contents": "The type of pay rate associated with the worker position."}, "doc.workday.pay_through_date": {"name": "pay_through_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.pay_through_date", "block_contents": "The date through which the worker is paid."}, "doc.workday.payroll_effect": {"name": "payroll_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_effect", "block_contents": "The effect of leave on payroll."}, "doc.workday.payroll_entity": {"name": "payroll_entity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_entity", "block_contents": "The payroll entity associated with the worker position."}, "doc.workday.payroll_file_number": {"name": "payroll_file_number", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.payroll_file_number", "block_contents": "The file number associated with payroll for the worker position."}, "doc.workday.person_contact_email_address": {"name": "person_contact_email_address", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address", "block_contents": "Represents the email addresses associated with a person in the Workday system."}, "doc.workday.person_contact_email_address_id": {"name": "person_contact_email_address_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_contact_email_address_id", "block_contents": "The identifier of the personal contact email address."}, "doc.workday.person_name": {"name": "person_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name", "block_contents": "Represents the name information for an individual in the Workday system."}, "doc.workday.person_name_type": {"name": "person_name_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.person_name_type", "block_contents": "The type or category of the person name (e.g., legal name, preferred name)."}, "doc.workday.personal_info_system_id": {"name": "personal_info_system_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_info_system_id", "block_contents": "The system ID associated with the personal information of the individual."}, "doc.workday.personal_information": {"name": "personal_information", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information", "block_contents": "The personal information associated with each worker."}, "doc.workday.personal_information_ethnicity": {"name": "personal_information_ethnicity", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_ethnicity", "block_contents": "Represents information about the ethnicity of an individual in the Workday system."}, "doc.workday.personal_information_id": {"name": "personal_information_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_id", "block_contents": "The identifier for each personal information record."}, "doc.workday.personal_information_type": {"name": "personal_information_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personal_information_type", "block_contents": "The type of personal information record."}, "doc.workday.personnel_file_agency": {"name": "personnel_file_agency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.personnel_file_agency", "block_contents": "The agency associated with the personnel file."}, "doc.workday.political_affiliation": {"name": "political_affiliation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.political_affiliation", "block_contents": "The political affiliation of the individual."}, "doc.workday.position": {"name": "position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position", "block_contents": "Resource for understanding the details and attributes associated with each position."}, "doc.workday.position_code": {"name": "position_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_code", "block_contents": "Code associated with the position for reference and categorization."}, "doc.workday.position_days": {"name": "position_days", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_days", "block_contents": "The days the worker held positions at the company."}, "doc.workday.position_id": {"name": "position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_id", "block_contents": "Identifier for the specific position."}, "doc.workday.position_job_profile": {"name": "position_job_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile", "block_contents": "Captures the associations between specific positions and the job profiles they are linked to."}, "doc.workday.position_job_profile_name": {"name": "position_job_profile_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_job_profile_name", "block_contents": "Name associated with the job profile linked to the position."}, "doc.workday.position_organization": {"name": "position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization", "block_contents": "Captures the associations between specific positions and the organizations to which they belong."}, "doc.workday.position_organization_type": {"name": "position_organization_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_organization_type", "block_contents": "Type or category of the position within the organization."}, "doc.workday.position_time_type_code": {"name": "position_time_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.position_time_type_code", "block_contents": "Code indicating the time type associated with the position."}, "doc.workday.prefix_salutation": {"name": "prefix_salutation", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_salutation", "block_contents": "The prefix or salutation before the name (e.g., Mr., Ms., Dr.)."}, "doc.workday.prefix_title": {"name": "prefix_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title", "block_contents": "The prefix or title associated with the name (e.g., Professor)."}, "doc.workday.prefix_title_code": {"name": "prefix_title_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.prefix_title_code", "block_contents": "The code associated with the prefix or title."}, "doc.workday.primary_compensation_basis": {"name": "primary_compensation_basis", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis", "block_contents": "Primary basis of compensation for the position."}, "doc.workday.primary_compensation_basis_amount_change": {"name": "primary_compensation_basis_amount_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_amount_change", "block_contents": "Change in the amount of the primary compensation basis."}, "doc.workday.primary_compensation_basis_percent_change": {"name": "primary_compensation_basis_percent_change", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_compensation_basis_percent_change", "block_contents": "Change in the percentage of the primary compensation basis."}, "doc.workday.primary_nationality": {"name": "primary_nationality", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_nationality", "block_contents": "The primary nationality of the individual."}, "doc.workday.primary_termination_category": {"name": "primary_termination_category", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_category", "block_contents": "The primary termination category for the worker."}, "doc.workday.primary_termination_reason": {"name": "primary_termination_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_termination_reason", "block_contents": "The primary termination reason for the worker."}, "doc.workday.private_title": {"name": "private_title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.private_title", "block_contents": "Private title associated with the job profile."}, "doc.workday.probation_end_date": {"name": "probation_end_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_end_date", "block_contents": "The date when the worker's probation ends."}, "doc.workday.probation_start_date": {"name": "probation_start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.probation_start_date", "block_contents": "The date when the worker's probation starts."}, "doc.workday.professional_suffix": {"name": "professional_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.professional_suffix", "block_contents": "The professional suffix, if applicable (e.g., Esq., CPA)."}, "doc.workday.public_job": {"name": "public_job", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.public_job", "block_contents": "Flag indicating whether the job is public."}, "doc.workday.rank": {"name": "rank", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rank", "block_contents": "The rank achieved by the individual during military service."}, "doc.workday.reason_reference_id": {"name": "reason_reference_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.reason_reference_id", "block_contents": "The reference ID for the termination reason."}, "doc.workday.referral_payment_plan": {"name": "referral_payment_plan", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.referral_payment_plan", "block_contents": "Referral payment plan associated with the job profile."}, "doc.workday.region_of_birth": {"name": "region_of_birth", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth", "block_contents": "The region of birth of the individual."}, "doc.workday.region_of_birth_code": {"name": "region_of_birth_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.region_of_birth_code", "block_contents": "The code of the region of birth."}, "doc.workday.regrettable_termination": {"name": "regrettable_termination", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regrettable_termination", "block_contents": "Flag indicating whether the worker's termination is regrettable."}, "doc.workday.regular_paid_equivalent_hours": {"name": "regular_paid_equivalent_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.regular_paid_equivalent_hours", "block_contents": "The regular paid equivalent hours associated with the worker position."}, "doc.workday.rehire": {"name": "rehire", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.rehire", "block_contents": "Flag indicating whether the worker is eligible for rehire."}, "doc.workday.religion": {"name": "religion", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religion", "block_contents": "The religion of the individual."}, "doc.workday.religious_suffix": {"name": "religious_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.religious_suffix", "block_contents": "The religious suffix, if applicable."}, "doc.workday.resignation_date": {"name": "resignation_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.resignation_date", "block_contents": "The date when the worker resigned."}, "doc.workday.retired": {"name": "retired", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retired", "block_contents": "Flag indicating whether the worker is retired."}, "doc.workday.retirement_date": {"name": "retirement_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_date", "block_contents": "The date when the worker retired."}, "doc.workday.retirement_eligibility_date": {"name": "retirement_eligibility_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.retirement_eligibility_date", "block_contents": "The date when the worker becomes eligible for retirement."}, "doc.workday.return_unknown": {"name": "return_unknown", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.return_unknown", "block_contents": "Flag indicating whether the worker's return status is unknown."}, "doc.workday.role_id": {"name": "role_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.role_id", "block_contents": "Identifier for the specific role."}, "doc.workday.royal_suffix": {"name": "royal_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.royal_suffix", "block_contents": "The royal suffix, if applicable."}, "doc.workday.scheduled_weekly_hours": {"name": "scheduled_weekly_hours", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.scheduled_weekly_hours", "block_contents": "The scheduled weekly hours associated with the worker position."}, "doc.workday.secondary_last_name": {"name": "secondary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.secondary_last_name", "block_contents": "Secondary last name or surname, if applicable."}, "doc.workday.seniority_date": {"name": "seniority_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.seniority_date", "block_contents": "The date when the worker's seniority is recorded."}, "doc.workday.service": {"name": "service", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service", "block_contents": "The specific military service branch in which the individual served."}, "doc.workday.service_type": {"name": "service_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.service_type", "block_contents": "The type or category of military service (e.g., active duty, reserve, etc.)."}, "doc.workday.severance_date": {"name": "severance_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.severance_date", "block_contents": "The date when the worker's severance is recorded."}, "doc.workday.single_parent_indicator": {"name": "single_parent_indicator", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.single_parent_indicator", "block_contents": "Indicator for a single parent."}, "doc.workday.social_benefit": {"name": "social_benefit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_benefit", "block_contents": "The social benefit associated with the individual."}, "doc.workday.social_security_disability_code": {"name": "social_security_disability_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_security_disability_code", "block_contents": "The code indicating social security disability."}, "doc.workday.social_suffix": {"name": "social_suffix", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix", "block_contents": "The social suffix, if applicable."}, "doc.workday.social_suffix_id": {"name": "social_suffix_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.social_suffix_id", "block_contents": "The identifier for the social suffix."}, "doc.workday.specify_paid_fte": {"name": "specify_paid_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_paid_fte", "block_contents": "Flag indicating whether to specify paid FTE for the worker position."}, "doc.workday.specify_working_fte": {"name": "specify_working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.specify_working_fte", "block_contents": "Flag indicating whether to specify working FTE for the worker position."}, "doc.workday.staffing_model": {"name": "staffing_model", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.staffing_model", "block_contents": "Staffing model associated with the organization"}, "doc.workday.start_date": {"name": "start_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_date", "block_contents": "The start date of the worker position."}, "doc.workday.start_international_assignment_reason": {"name": "start_international_assignment_reason", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.start_international_assignment_reason", "block_contents": "The reason for starting an international assignment associated with the worker position."}, "doc.workday.status": {"name": "status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status", "block_contents": "The status of the individual's military service (e.g., active, inactive, retired)."}, "doc.workday.status_begin_date": {"name": "status_begin_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.status_begin_date", "block_contents": "The date on which the current military service status began."}, "doc.workday.stock_vesting_effect": {"name": "stock_vesting_effect", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stock_vesting_effect", "block_contents": "The effect of leave on stock vesting."}, "doc.workday.stop_payment_date": {"name": "stop_payment_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.stop_payment_date", "block_contents": "The date when stop payment occurs."}, "doc.workday.summary": {"name": "summary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.summary", "block_contents": "Summary or overview of the job profile."}, "doc.workday.superior_organization_id": {"name": "superior_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.superior_organization_id", "block_contents": "Identifier for the superior organization, if applicable."}, "doc.workday.supervisory_organization_id": {"name": "supervisory_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_organization_id", "block_contents": "Identifier for the supervisory organization associated with the position."}, "doc.workday.supervisory_position_availability_date": {"name": "supervisory_position_availability_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_availability_date", "block_contents": "Availability date for supervisory positions within the organization."}, "doc.workday.supervisory_position_earliest_hire_date": {"name": "supervisory_position_earliest_hire_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_earliest_hire_date", "block_contents": "Earliest hire date for supervisory positions within the organization."}, "doc.workday.supervisory_position_time_type": {"name": "supervisory_position_time_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_time_type", "block_contents": "Time type associated with supervisory positions."}, "doc.workday.supervisory_position_worker_type": {"name": "supervisory_position_worker_type", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.supervisory_position_worker_type", "block_contents": "Worker type associated with supervisory positions."}, "doc.workday.terminated": {"name": "terminated", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.terminated", "block_contents": "Flag indicating whether the worker is terminated."}, "doc.workday.termination_date": {"name": "termination_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_date", "block_contents": "The date when the worker is terminated."}, "doc.workday.termination_involuntary": {"name": "termination_involuntary", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_involuntary", "block_contents": "Flag indicating whether the termination is involuntary."}, "doc.workday.termination_last_day_of_work": {"name": "termination_last_day_of_work", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.termination_last_day_of_work", "block_contents": "The last day of work for the worker during termination."}, "doc.workday.tertiary_last_name": {"name": "tertiary_last_name", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tertiary_last_name", "block_contents": "Tertiary last name or surname, if applicable."}, "doc.workday.time_off_service_date": {"name": "time_off_service_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.time_off_service_date", "block_contents": "The date when the worker's time-off service starts."}, "doc.workday.title": {"name": "title", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.title", "block_contents": "Title associated with the job profile."}, "doc.workday.tobacco_use": {"name": "tobacco_use", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.tobacco_use", "block_contents": "Flag indicating whether the individual uses tobacco."}, "doc.workday.top_level_organization_id": {"name": "top_level_organization_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.top_level_organization_id", "block_contents": "Identifier for the top-level organization, if applicable."}, "doc.workday.union_code": {"name": "union_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_code", "block_contents": "Code associated with the union related to the job profile."}, "doc.workday.union_membership_requirement": {"name": "union_membership_requirement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.union_membership_requirement", "block_contents": "Flag indicating whether union membership is a requirement for the job profile."}, "doc.workday.universal_id": {"name": "universal_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.universal_id", "block_contents": "The universal ID associated with the worker."}, "doc.workday.user_id": {"name": "user_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.user_id", "block_contents": "The identifier for the user associated with the worker."}, "doc.workday.vesting_date": {"name": "vesting_date", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.vesting_date", "block_contents": "The date when the worker's vesting starts."}, "doc.workday.visibility": {"name": "visibility", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.visibility", "block_contents": "Visibility level of the organization."}, "doc.workday.week_of_confinement": {"name": "week_of_confinement", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.week_of_confinement", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_hours_profile": {"name": "work_hours_profile", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_hours_profile", "block_contents": "The work hours profile associated with the worker position."}, "doc.workday.work_related": {"name": "work_related", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_related", "block_contents": "Indicator for whether the leave is work-related."}, "doc.workday.work_shift": {"name": "work_shift", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift", "block_contents": "The work shift associated with the worker position."}, "doc.workday.work_shift_required": {"name": "work_shift_required", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_shift_required", "block_contents": "Flag indicating whether a work shift is required."}, "doc.workday.work_space": {"name": "work_space", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_space", "block_contents": "The work space associated with the worker position."}, "doc.workday.work_study_award_source_code": {"name": "work_study_award_source_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_award_source_code", "block_contents": "Code associated with the source of work study awards."}, "doc.workday.work_study_requirement_option_code": {"name": "work_study_requirement_option_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.work_study_requirement_option_code", "block_contents": "Code associated with work study requirement options."}, "doc.workday.workday__employee_overview": {"name": "workday__employee_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__employee_overview", "block_contents": "Each record represents an employee with enriched personal information and the positions they hold. This helps measure employee demographic and geographical distribution, overall retention and turnover, and compensation analysis of their employees."}, "doc.workday.workday__job_overview": {"name": "workday__job_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__job_overview", "block_contents": "Each record represents a job with enriched details on job profiles and job families. This allows users to understand recruitment patterns and details within a job and job groupings."}, "doc.workday.workday__role_overview": {"name": "workday__role_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__role_overview", "block_contents": "Each record represents a role in an organization, enhanced with additional organizational details."}, "doc.workday.workday__organization_overview": {"name": "workday__organization_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__organization_overview", "block_contents": "Each record represents organization, organization roles, as well as positions and workers tied to these organizations. This allows end users to slice organizational data at any grain to better analyze organizational structures."}, "doc.workday.workday__position_overview": {"name": "workday__position_overview", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.workday__position_overview", "block_contents": "Each record represents a position with enriched data on positions. This allows end users to understand position availabilities, vacancies, cost to optimize hiring efforts."}, "doc.workday.worker": {"name": "worker", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker", "block_contents": "This table serves as a central repository for details related to the employment status, compensation, and other key attributes of each worker."}, "doc.workday.worker_code": {"name": "worker_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_code", "block_contents": "The code associated with the worker."}, "doc.workday.worker_for_filled_position_id": {"name": "worker_for_filled_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_for_filled_position_id", "block_contents": "Identifier for the worker filling the position, if applicable."}, "doc.workday.worker_hours_profile_classification": {"name": "worker_hours_profile_classification", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_hours_profile_classification", "block_contents": "The classification of worker hours profile associated with the worker position."}, "doc.workday.worker_id": {"name": "worker_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_id", "block_contents": "Unique identifier for the worker."}, "doc.workday.worker_leave_status": {"name": "worker_leave_status", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_leave_status", "block_contents": "Represents the leave status of workers in the Workday system."}, "doc.workday.worker_levels": {"name": "worker_levels", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_levels", "block_contents": "The number of levels the worker has worked at."}, "doc.workday.worker_position": {"name": "worker_position", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position", "block_contents": "Represents the positions held by workers in the Workday system"}, "doc.workday.worker_position_organization": {"name": "worker_position_organization", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_organization", "block_contents": "Ties together workers to the positions and organizations they hold in the Workday system."}, "doc.workday.worker_position_id": {"name": "worker_position_id", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_position_id", "block_contents": "Identifier for the worker associated with the position."}, "doc.workday.worker_positions": {"name": "worker_positions", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_positions", "block_contents": "The number of positions the worker has held"}, "doc.workday.worker_type_code": {"name": "worker_type_code", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.worker_type_code", "block_contents": "Code indicating the type of worker associated with the position."}, "doc.workday.working_fte": {"name": "working_fte", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_fte", "block_contents": "The working full-time equivalent (FTE) associated with the worker position."}, "doc.workday.working_time_frequency": {"name": "working_time_frequency", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_frequency", "block_contents": "The frequency of working time associated with the worker position."}, "doc.workday.working_time_unit": {"name": "working_time_unit", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_unit", "block_contents": "The unit of working time associated with the worker position."}, "doc.workday.working_time_value": {"name": "working_time_value", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.working_time_value", "block_contents": "The value of working time associated with the worker position."}, "doc.workday.date_of_pay_group_assignment": {"name": "date_of_pay_group_assignment", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.date_of_pay_group_assignment", "block_contents": "Date a group's pay is assigned to be processed."}, "doc.workday.primary_business_site": {"name": "primary_business_site", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.primary_business_site", "block_contents": "Primary location a worker's business is situated."}, "doc.workday.used_in_change_organization_assignments": {"name": "used_in_change_organization_assignments", "resource_type": "doc", "package_name": "workday", "path": "docs.md", "original_file_path": "models/docs.md", "unique_id": "doc.workday.used_in_change_organization_assignments", "block_contents": "If a worker has opted to change these organization assignments."}}, "exposures": {}, "metrics": {}, "groups": {}, "selectors": {}, "disabled": {}, "parent_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.workday__job_overview": ["model.workday.stg_workday__job_family", "model.workday.stg_workday__job_family_group", "model.workday.stg_workday__job_family_job_family_group", "model.workday.stg_workday__job_family_job_profile", "model.workday.stg_workday__job_profile"], "model.workday.workday__position_overview": ["model.workday.stg_workday__position", "model.workday.stg_workday__position_job_profile"], "model.workday.workday__organization_overview": ["model.workday.stg_workday__organization", "model.workday.stg_workday__organization_role", "model.workday.stg_workday__worker_position_organization"], "model.workday.stg_workday__position": ["model.workday.stg_workday__position_base"], "model.workday.stg_workday__job_family_group": ["model.workday.stg_workday__job_family_group_base"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "model.workday.stg_workday__organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "model.workday.stg_workday__organization_role": ["model.workday.stg_workday__organization_role_base"], "model.workday.stg_workday__worker_position": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "model.workday.stg_workday__position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "model.workday.stg_workday__worker_position_organization": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.stg_workday__job_profile": ["model.workday.stg_workday__job_profile_base"], "model.workday.stg_workday__position_organization": ["model.workday.stg_workday__position_organization_base"], "model.workday.stg_workday__worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "model.workday.stg_workday__person_name": ["model.workday.stg_workday__person_name_base"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "model.workday.stg_workday__organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "model.workday.stg_workday__job_family": ["model.workday.stg_workday__job_family_base"], "model.workday.stg_workday__military_service": ["model.workday.stg_workday__military_service_base"], "model.workday.stg_workday__personal_information": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "model.workday.stg_workday__worker": ["model.workday.stg_workday__worker_base"], "model.workday.stg_workday__organization": ["model.workday.stg_workday__organization_base"], "model.workday.stg_workday__job_family_job_family_group_base": ["source.workday.workday.job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["source.workday.workday.personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["source.workday.workday.job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["source.workday.workday.worker_position_organization_history"], "model.workday.stg_workday__position_base": ["source.workday.workday.position"], "model.workday.stg_workday__person_contact_email_address_base": ["source.workday.workday.person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["source.workday.workday.organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["source.workday.workday.job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["source.workday.workday.position_organization"], "model.workday.stg_workday__organization_role_base": ["source.workday.workday.organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["source.workday.workday.worker_leave_status"], "model.workday.stg_workday__job_family_base": ["source.workday.workday.job_family"], "model.workday.stg_workday__job_profile_base": ["source.workday.workday.job_profile"], "model.workday.stg_workday__organization_base": ["source.workday.workday.organization"], "model.workday.stg_workday__organization_role_worker_base": ["source.workday.workday.organization_role_worker"], "model.workday.stg_workday__worker_base": ["source.workday.workday.worker_history"], "model.workday.stg_workday__position_job_profile_base": ["source.workday.workday.position_job_profile"], "model.workday.stg_workday__worker_position_base": ["source.workday.workday.worker_position_history"], "model.workday.stg_workday__person_name_base": ["source.workday.workday.person_name"], "model.workday.stg_workday__military_service_base": ["source.workday.workday.military_service"], "model.workday.stg_workday__personal_information_base": ["source.workday.workday.personal_information_history"], "model.workday.workday__monthly_summary": ["model.workday.workday__employee_daily_history"], "model.workday.workday__employee_daily_history": ["model.workday.int_workday__employee_history"], "model.workday.workday__worker_position_org_daily_history": ["model.workday.stg_workday__worker_position_organization_base", "model.workday.stg_workday__worker_position_organization_history"], "model.workday.stg_workday__worker_position_history": ["model.workday.stg_workday__worker_position_base"], "model.workday.stg_workday__worker_history": ["model.workday.stg_workday__worker_base"], "model.workday.stg_workday__personal_information_history": ["model.workday.stg_workday__personal_information_base"], "model.workday.stg_workday__worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base"], "model.workday.int_workday__employee_history": ["model.workday.stg_workday__personal_information_history", "model.workday.stg_workday__worker_history", "model.workday.stg_workday__worker_position_history"], "model.workday.int_workday__worker_position_enriched": ["model.workday.stg_workday__worker_position"], "model.workday.int_workday__personal_details": ["model.workday.stg_workday__military_service", "model.workday.stg_workday__person_contact_email_address", "model.workday.stg_workday__person_name", "model.workday.stg_workday__personal_information", "model.workday.stg_workday__personal_information_ethnicity"], "model.workday.int_workday__worker_details": ["model.workday.stg_workday__worker"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.int_workday__personal_details", "model.workday.int_workday__worker_details", "model.workday.int_workday__worker_position_enriched"], "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": ["model.workday.workday__employee_overview"], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": ["model.workday.workday__job_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": ["model.workday.workday__job_overview"], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": ["model.workday.workday__position_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": ["model.workday.workday__position_overview"], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": ["model.workday.workday__organization_overview"], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": ["model.workday.workday__organization_overview"], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": ["model.workday.workday__organization_overview"], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": ["model.workday.stg_workday__job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": ["model.workday.stg_workday__job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": ["model.workday.stg_workday__job_family_job_profile"], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": ["model.workday.stg_workday__job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": ["model.workday.stg_workday__job_family"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": ["model.workday.stg_workday__job_family_job_family_group"], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": ["model.workday.stg_workday__job_family_group"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": ["model.workday.stg_workday__job_family_group"], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": ["model.workday.stg_workday__organization_role"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": ["model.workday.stg_workday__organization_role"], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": ["model.workday.stg_workday__organization_role_worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": ["model.workday.stg_workday__organization_role_worker"], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": ["model.workday.stg_workday__organization_job_family"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": ["model.workday.stg_workday__organization_job_family"], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": ["model.workday.stg_workday__organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": ["model.workday.stg_workday__organization"], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": ["model.workday.stg_workday__position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": ["model.workday.stg_workday__position_organization"], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": ["model.workday.stg_workday__position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": ["model.workday.stg_workday__position"], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": ["model.workday.stg_workday__position_job_profile"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": ["model.workday.stg_workday__position_job_profile"], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": ["model.workday.stg_workday__worker"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": ["model.workday.stg_workday__worker"], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": ["model.workday.stg_workday__personal_information"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": ["model.workday.stg_workday__personal_information"], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": ["model.workday.stg_workday__person_name"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": ["model.workday.stg_workday__person_name"], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": ["model.workday.stg_workday__personal_information_ethnicity"], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": ["model.workday.stg_workday__military_service"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": ["model.workday.stg_workday__military_service"], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": ["model.workday.stg_workday__person_contact_email_address"], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": ["model.workday.stg_workday__worker_position"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": ["model.workday.stg_workday__worker_position"], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": ["model.workday.stg_workday__worker_leave_status"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": ["model.workday.stg_workday__worker_leave_status"], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": ["model.workday.stg_workday__worker_position_organization"], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": ["model.workday.stg_workday__worker_position_organization"], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": ["model.workday.stg_workday__worker_position_organization"], "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": ["model.workday.workday__employee_daily_history"], "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": ["model.workday.workday__employee_daily_history"], "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": ["model.workday.workday__monthly_summary"], "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": ["model.workday.workday__monthly_summary"], "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": ["model.workday.workday__worker_position_org_daily_history"], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": ["model.workday.stg_workday__personal_information_history"], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": ["model.workday.stg_workday__personal_information_history"], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": ["model.workday.stg_workday__worker_history"], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": ["model.workday.stg_workday__worker_history"], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": ["model.workday.stg_workday__worker_position_history"], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": ["model.workday.stg_workday__worker_position_history"], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": ["model.workday.stg_workday__worker_position_organization_history"], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": ["model.workday.stg_workday__worker_position_organization_history"], "source.workday.workday.job_profile": [], "source.workday.workday.job_family_job_profile": [], "source.workday.workday.job_family": [], "source.workday.workday.job_family_job_family_group": [], "source.workday.workday.job_family_group": [], "source.workday.workday.organization_role": [], "source.workday.workday.organization_role_worker": [], "source.workday.workday.organization_job_family": [], "source.workday.workday.organization": [], "source.workday.workday.position_organization": [], "source.workday.workday.position": [], "source.workday.workday.position_job_profile": [], "source.workday.workday.worker_history": [], "source.workday.workday.personal_information_history": [], "source.workday.workday.person_name": [], "source.workday.workday.personal_information_ethnicity": [], "source.workday.workday.military_service": [], "source.workday.workday.person_contact_email_address": [], "source.workday.workday.worker_position_history": [], "source.workday.workday.worker_leave_status": [], "source.workday.workday.worker_position_organization_history": []}, "child_map": {"seed.workday_integration_tests.workday_job_family_job_family_group_data": [], "seed.workday_integration_tests.workday_personal_information_history_data": [], "seed.workday_integration_tests.workday_personal_information_ethnicity_data": [], "seed.workday_integration_tests.workday_job_family_group_data": [], "seed.workday_integration_tests.workday_worker_history_data": [], "seed.workday_integration_tests.workday_worker_leave_status_data": [], "seed.workday_integration_tests.workday_worker_position_organization_history_data": [], "seed.workday_integration_tests.workday_job_family_data": [], "seed.workday_integration_tests.workday_worker_position_history_data": [], "seed.workday_integration_tests.workday_person_name_data": [], "seed.workday_integration_tests.workday_organization_role_data": [], "seed.workday_integration_tests.workday_military_service_data": [], "seed.workday_integration_tests.workday_position_data": [], "seed.workday_integration_tests.workday_organization_data": [], "seed.workday_integration_tests.workday_position_organization_data": [], "seed.workday_integration_tests.workday_job_profile_data": [], "seed.workday_integration_tests.workday_person_contact_email_address_data": [], "seed.workday_integration_tests.workday_organization_job_family_data": [], "seed.workday_integration_tests.workday_job_family_job_profile_data": [], "seed.workday_integration_tests.workday_position_job_profile_data": [], "seed.workday_integration_tests.workday_organization_role_worker_data": [], "model.workday.workday__employee_overview": ["test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "test.workday.unique_workday__employee_overview_employee_id.b01e19996c"], "model.workday.workday__job_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857"], "model.workday.workday__position_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "test.workday.not_null_workday__position_overview_position_id.603beb3f22"], "model.workday.workday__organization_overview": ["test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412"], "model.workday.stg_workday__position": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e"], "model.workday.stg_workday__job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009"], "model.workday.stg_workday__job_family_job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c"], "model.workday.stg_workday__organization_role_worker": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72"], "model.workday.stg_workday__organization_role": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f"], "model.workday.stg_workday__worker_position": ["model.workday.int_workday__worker_position_enriched", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d"], "model.workday.stg_workday__person_contact_email_address": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755"], "model.workday.stg_workday__position_job_profile": ["model.workday.workday__position_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7"], "model.workday.stg_workday__worker_position_organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b"], "model.workday.stg_workday__job_profile": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa"], "model.workday.stg_workday__position_organization": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7"], "model.workday.stg_workday__worker_leave_status": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61"], "model.workday.stg_workday__person_name": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90"], "model.workday.stg_workday__personal_information_ethnicity": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd"], "model.workday.stg_workday__organization_job_family": ["test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e"], "model.workday.stg_workday__job_family": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f"], "model.workday.stg_workday__military_service": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38"], "model.workday.stg_workday__personal_information": ["model.workday.int_workday__personal_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1"], "model.workday.stg_workday__job_family_job_family_group": ["model.workday.workday__job_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b"], "model.workday.stg_workday__worker": ["model.workday.int_workday__worker_details", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "test.workday.not_null_stg_workday__worker_worker_id.8dae310560"], "model.workday.stg_workday__organization": ["model.workday.workday__organization_overview", "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7"], "model.workday.stg_workday__job_family_job_family_group_base": ["model.workday.stg_workday__job_family_job_family_group"], "model.workday.stg_workday__personal_information_ethnicity_base": ["model.workday.stg_workday__personal_information_ethnicity"], "model.workday.stg_workday__job_family_group_base": ["model.workday.stg_workday__job_family_group"], "model.workday.stg_workday__worker_position_organization_base": ["model.workday.stg_workday__worker_position_organization", "model.workday.stg_workday__worker_position_organization_history", "model.workday.workday__worker_position_org_daily_history"], "model.workday.stg_workday__position_base": ["model.workday.stg_workday__position"], "model.workday.stg_workday__person_contact_email_address_base": ["model.workday.stg_workday__person_contact_email_address"], "model.workday.stg_workday__organization_job_family_base": ["model.workday.stg_workday__organization_job_family"], "model.workday.stg_workday__job_family_job_profile_base": ["model.workday.stg_workday__job_family_job_profile"], "model.workday.stg_workday__position_organization_base": ["model.workday.stg_workday__position_organization"], "model.workday.stg_workday__organization_role_base": ["model.workday.stg_workday__organization_role"], "model.workday.stg_workday__worker_leave_status_base": ["model.workday.stg_workday__worker_leave_status"], "model.workday.stg_workday__job_family_base": ["model.workday.stg_workday__job_family"], "model.workday.stg_workday__job_profile_base": ["model.workday.stg_workday__job_profile"], "model.workday.stg_workday__organization_base": ["model.workday.stg_workday__organization"], "model.workday.stg_workday__organization_role_worker_base": ["model.workday.stg_workday__organization_role_worker"], "model.workday.stg_workday__worker_base": ["model.workday.stg_workday__worker", "model.workday.stg_workday__worker_history"], "model.workday.stg_workday__position_job_profile_base": ["model.workday.stg_workday__position_job_profile"], "model.workday.stg_workday__worker_position_base": ["model.workday.stg_workday__worker_position", "model.workday.stg_workday__worker_position_history"], "model.workday.stg_workday__person_name_base": ["model.workday.stg_workday__person_name"], "model.workday.stg_workday__military_service_base": ["model.workday.stg_workday__military_service"], "model.workday.stg_workday__personal_information_base": ["model.workday.stg_workday__personal_information", "model.workday.stg_workday__personal_information_history"], "model.workday.workday__monthly_summary": ["test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab"], "model.workday.workday__employee_daily_history": ["model.workday.workday__monthly_summary", "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269"], "model.workday.workday__worker_position_org_daily_history": ["test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21"], "model.workday.stg_workday__worker_position_history": ["model.workday.int_workday__employee_history", "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879"], "model.workday.stg_workday__worker_history": ["model.workday.int_workday__employee_history", "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72"], "model.workday.stg_workday__personal_information_history": ["model.workday.int_workday__employee_history", "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc"], "model.workday.stg_workday__worker_position_organization_history": ["model.workday.workday__worker_position_org_daily_history", "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398"], "model.workday.int_workday__employee_history": ["model.workday.workday__employee_daily_history"], "model.workday.int_workday__worker_position_enriched": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__personal_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_details": ["model.workday.int_workday__worker_employee_enhanced"], "model.workday.int_workday__worker_employee_enhanced": ["model.workday.workday__employee_overview"], "test.workday.unique_workday__employee_overview_employee_id.b01e19996c": [], "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78": [], "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97": [], "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c": [], "test.workday.not_null_workday__position_overview_position_id.603beb3f22": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587": [], "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31": [], "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412": [], "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5": [], "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8": [], "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7": [], "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b": [], "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a": [], "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168": [], "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7": [], "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca": [], "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5": [], "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4": [], "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617": [], "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b": [], "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5": [], "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad": [], "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63": [], "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83": [], "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51": [], "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb": [], "test.workday.not_null_stg_workday__worker_worker_id.8dae310560": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8": [], "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6": [], "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90": [], "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd": [], "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3": [], "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff": [], "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279": [], "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696": [], "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611": [], "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3": [], "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761": [], "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd": [], "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d": [], "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b": [], "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1": [], "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244": [], "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269": [], "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d": [], "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab": [], "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58": [], "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21": [], "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4": [], "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb": [], "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163": [], "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c": [], "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc": [], "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e": [], "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58": [], "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72": [], "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638": [], "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5": [], "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879": [], "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e": [], "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d": [], "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9": [], "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398": [], "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf": [], "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3": [], "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5": [], "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d": [], "source.workday.workday.job_profile": ["model.workday.stg_workday__job_profile_base"], "source.workday.workday.job_family_job_profile": ["model.workday.stg_workday__job_family_job_profile_base"], "source.workday.workday.job_family": ["model.workday.stg_workday__job_family_base"], "source.workday.workday.job_family_job_family_group": ["model.workday.stg_workday__job_family_job_family_group_base"], "source.workday.workday.job_family_group": ["model.workday.stg_workday__job_family_group_base"], "source.workday.workday.organization_role": ["model.workday.stg_workday__organization_role_base"], "source.workday.workday.organization_role_worker": ["model.workday.stg_workday__organization_role_worker_base"], "source.workday.workday.organization_job_family": ["model.workday.stg_workday__organization_job_family_base"], "source.workday.workday.organization": ["model.workday.stg_workday__organization_base"], "source.workday.workday.position_organization": ["model.workday.stg_workday__position_organization_base"], "source.workday.workday.position": ["model.workday.stg_workday__position_base"], "source.workday.workday.position_job_profile": ["model.workday.stg_workday__position_job_profile_base"], "source.workday.workday.worker_history": ["model.workday.stg_workday__worker_base"], "source.workday.workday.personal_information_history": ["model.workday.stg_workday__personal_information_base"], "source.workday.workday.person_name": ["model.workday.stg_workday__person_name_base"], "source.workday.workday.personal_information_ethnicity": ["model.workday.stg_workday__personal_information_ethnicity_base"], "source.workday.workday.military_service": ["model.workday.stg_workday__military_service_base"], "source.workday.workday.person_contact_email_address": ["model.workday.stg_workday__person_contact_email_address_base"], "source.workday.workday.worker_position_history": ["model.workday.stg_workday__worker_position_base"], "source.workday.workday.worker_leave_status": ["model.workday.stg_workday__worker_leave_status_base"], "source.workday.workday.worker_position_organization_history": ["model.workday.stg_workday__worker_position_organization_base"]}, "group_map": {}, "saved_queries": {}, "semantic_models": {}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json index 074af9a..4f945bf 100644 --- a/docs/run_results.json +++ b/docs/run_results.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v5.json", "dbt_version": "1.7.8", "generated_at": "2024-04-02T23:44:57.807306Z", "invocation_id": "cc500e2b-b7c4-44e8-b9fd-9ae8c4aa2439", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.662918Z", "completed_at": "2024-04-02T23:44:48.667351Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.670002Z", "completed_at": "2024-04-02T23:44:48.670060Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.06273818016052246, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.612249Z", "completed_at": "2024-04-02T23:44:48.667842Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.670372Z", "completed_at": "2024-04-02T23:44:48.670376Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.06996393203735352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.659346Z", "completed_at": "2024-04-02T23:44:48.668330Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.670641Z", "completed_at": "2024-04-02T23:44:48.670644Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.06618595123291016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.656186Z", "completed_at": "2024-04-02T23:44:48.668727Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.670908Z", "completed_at": "2024-04-02T23:44:48.670911Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0692129135131836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.678031Z", "completed_at": "2024-04-02T23:44:48.691779Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.693516Z", "completed_at": "2024-04-02T23:44:48.693524Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.020138263702392578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.681877Z", "completed_at": "2024-04-02T23:44:48.692679Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.695511Z", "completed_at": "2024-04-02T23:44:48.695517Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.022124052047729492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__military_service_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.687351Z", "completed_at": "2024-04-02T23:44:48.693223Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.696200Z", "completed_at": "2024-04-02T23:44:48.696206Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.022367238998413086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.684528Z", "completed_at": "2024-04-02T23:44:48.694181Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.697763Z", "completed_at": "2024-04-02T23:44:48.697770Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.025568008422851562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.703646Z", "completed_at": "2024-04-02T23:44:48.711593Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.717969Z", "completed_at": "2024-04-02T23:44:48.717977Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.020074129104614258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.708514Z", "completed_at": "2024-04-02T23:44:48.717679Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.720002Z", "completed_at": "2024-04-02T23:44:48.720006Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0189208984375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.711851Z", "completed_at": "2024-04-02T23:44:48.718297Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.720966Z", "completed_at": "2024-04-02T23:44:48.720970Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.019448041915893555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.714674Z", "completed_at": "2024-04-02T23:44:48.719486Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.722292Z", "completed_at": "2024-04-02T23:44:48.722296Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01589488983154297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_name_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.724591Z", "completed_at": "2024-04-02T23:44:48.732401Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.739109Z", "completed_at": "2024-04-02T23:44:48.739117Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01853203773498535, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.729030Z", "completed_at": "2024-04-02T23:44:48.738734Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.741257Z", "completed_at": "2024-04-02T23:44:48.741260Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.018342971801757812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.733040Z", "completed_at": "2024-04-02T23:44:48.739507Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.742144Z", "completed_at": "2024-04-02T23:44:48.742147Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.016323089599609375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.736055Z", "completed_at": "2024-04-02T23:44:48.740670Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.743470Z", "completed_at": "2024-04-02T23:44:48.743477Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01688218116760254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.746387Z", "completed_at": "2024-04-02T23:44:48.753302Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.760742Z", "completed_at": "2024-04-02T23:44:48.760748Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.018751859664916992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.750782Z", "completed_at": "2024-04-02T23:44:48.760361Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.762573Z", "completed_at": "2024-04-02T23:44:48.762577Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.017873048782348633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.753926Z", "completed_at": "2024-04-02T23:44:48.761077Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.763432Z", "completed_at": "2024-04-02T23:44:48.763435Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01577281951904297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_leave_status_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.756758Z", "completed_at": "2024-04-02T23:44:48.762081Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.764727Z", "completed_at": "2024-04-02T23:44:48.764733Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016149044036865234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.767254Z", "completed_at": "2024-04-02T23:44:48.771957Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.777481Z", "completed_at": "2024-04-02T23:44:48.777488Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014492988586425781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.772289Z", "completed_at": "2024-04-02T23:44:48.773589Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.777748Z", "completed_at": "2024-04-02T23:44:48.777751Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012478828430175781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.774185Z", "completed_at": "2024-04-02T23:44:48.775189Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.778271Z", "completed_at": "2024-04-02T23:44:48.778275Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.009619951248168945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.775994Z", "completed_at": "2024-04-02T23:44:48.776968Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.779649Z", "completed_at": "2024-04-02T23:44:48.779652Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01009678840637207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.784407Z", "completed_at": "2024-04-02T23:44:48.785715Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.794011Z", "completed_at": "2024-04-02T23:44:48.794017Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.013282060623168945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.786231Z", "completed_at": "2024-04-02T23:44:48.789958Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.794263Z", "completed_at": "2024-04-02T23:44:48.794266Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013468027114868164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.790729Z", "completed_at": "2024-04-02T23:44:48.791681Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.794761Z", "completed_at": "2024-04-02T23:44:48.794764Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013691902160644531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_military_service_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.792516Z", "completed_at": "2024-04-02T23:44:48.793482Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.796197Z", "completed_at": "2024-04-02T23:44:48.796204Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.013998985290527344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.800746Z", "completed_at": "2024-04-02T23:44:48.801926Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.870942Z", "completed_at": "2024-04-02T23:44:48.870955Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.07423210144042969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.802319Z", "completed_at": "2024-04-02T23:44:48.803326Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.871343Z", "completed_at": "2024-04-02T23:44:48.871350Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.07446789741516113, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.804058Z", "completed_at": "2024-04-02T23:44:48.806252Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.872001Z", "completed_at": "2024-04-02T23:44:48.872007Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.07473397254943848, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.807232Z", "completed_at": "2024-04-02T23:44:48.870086Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.873606Z", "completed_at": "2024-04-02T23:44:48.873610Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.07499408721923828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.877998Z", "completed_at": "2024-04-02T23:44:48.879153Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.883939Z", "completed_at": "2024-04-02T23:44:48.883944Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00979304313659668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_name_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.879419Z", "completed_at": "2024-04-02T23:44:48.880383Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.884172Z", "completed_at": "2024-04-02T23:44:48.884175Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01003885269165039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.880882Z", "completed_at": "2024-04-02T23:44:48.881821Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.884778Z", "completed_at": "2024-04-02T23:44:48.884784Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.010372161865234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.882542Z", "completed_at": "2024-04-02T23:44:48.883456Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.886443Z", "completed_at": "2024-04-02T23:44:48.886447Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.010887861251831055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.891605Z", "completed_at": "2024-04-02T23:44:48.892998Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.898875Z", "completed_at": "2024-04-02T23:44:48.898881Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011053085327148438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.893367Z", "completed_at": "2024-04-02T23:44:48.895305Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.899108Z", "completed_at": "2024-04-02T23:44:48.899110Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.011123895645141602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.895952Z", "completed_at": "2024-04-02T23:44:48.896859Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.899523Z", "completed_at": "2024-04-02T23:44:48.899526Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.011286020278930664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.897545Z", "completed_at": "2024-04-02T23:44:48.898425Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.900770Z", "completed_at": "2024-04-02T23:44:48.900774Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.011753082275390625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.905786Z", "completed_at": "2024-04-02T23:44:48.906943Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.921032Z", "completed_at": "2024-04-02T23:44:48.921039Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.018917083740234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:48.907304Z", "completed_at": "2024-04-02T23:44:48.908214Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:48.921290Z", "completed_at": "2024-04-02T23:44:48.921293Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.019083023071289062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.652076Z", "completed_at": "2024-04-02T23:44:55.667999Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.668641Z", "completed_at": "2024-04-02T23:44:55.668649Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.017765283584594727, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from __dbt__cte__stg_workday__job_family_job_family_group\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.670453Z", "completed_at": "2024-04-02T23:44:55.677467Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.678043Z", "completed_at": "2024-04-02T23:44:55.678050Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.008748054504394531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.680084Z", "completed_at": "2024-04-02T23:44:55.684123Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.684651Z", "completed_at": "2024-04-02T23:44:55.684656Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.005898952484130859, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.686702Z", "completed_at": "2024-04-02T23:44:55.691657Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.692156Z", "completed_at": "2024-04-02T23:44:55.692162Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.006756305694580078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from __dbt__cte__stg_workday__job_family_job_profile\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.693910Z", "completed_at": "2024-04-02T23:44:55.697364Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.697872Z", "completed_at": "2024-04-02T23:44:55.697879Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.005042076110839844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.699593Z", "completed_at": "2024-04-02T23:44:55.702869Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.703312Z", "completed_at": "2024-04-02T23:44:55.703317Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.004689931869506836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.705000Z", "completed_at": "2024-04-02T23:44:55.710077Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.710529Z", "completed_at": "2024-04-02T23:44:55.710535Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.006653785705566406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_group_id\n from __dbt__cte__stg_workday__job_family_group\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.712212Z", "completed_at": "2024-04-02T23:44:55.715484Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.715919Z", "completed_at": "2024-04-02T23:44:55.715923Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.004787921905517578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_group\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.717750Z", "completed_at": "2024-04-02T23:44:55.722316Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.722848Z", "completed_at": "2024-04-02T23:44:55.722854Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.006396055221557617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id\n from __dbt__cte__stg_workday__job_family\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.724469Z", "completed_at": "2024-04-02T23:44:55.727940Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.728359Z", "completed_at": "2024-04-02T23:44:55.728363Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0048220157623291016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.730169Z", "completed_at": "2024-04-02T23:44:55.745416Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.745854Z", "completed_at": "2024-04-02T23:44:55.745860Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.016927003860473633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__job_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), job_profile_data as (\n\n select * \n from __dbt__cte__stg_workday__job_profile\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_profile\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from __dbt__cte__stg_workday__job_family\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_family_group\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from __dbt__cte__stg_workday__job_family_group\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.747655Z", "completed_at": "2024-04-02T23:44:55.752075Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.752573Z", "completed_at": "2024-04-02T23:44:55.752580Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.006314992904663086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id\n from __dbt__cte__stg_workday__job_profile\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.754282Z", "completed_at": "2024-04-02T23:44:55.757948Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.758464Z", "completed_at": "2024-04-02T23:44:55.758471Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.005241870880126953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.760186Z", "completed_at": "2024-04-02T23:44:55.767646Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.770303Z", "completed_at": "2024-04-02T23:44:55.770309Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.011644840240478516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__military_service\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.771511Z", "completed_at": "2024-04-02T23:44:55.785672Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.786874Z", "completed_at": "2024-04-02T23:44:55.786883Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.018695354461669922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__military_service\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.775728Z", "completed_at": "2024-04-02T23:44:55.785979Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.787481Z", "completed_at": "2024-04-02T23:44:55.787486Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01911187171936035, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id\n from __dbt__cte__stg_workday__organization\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.782734Z", "completed_at": "2024-04-02T23:44:55.787185Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.789575Z", "completed_at": "2024-04-02T23:44:55.789580Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.008890151977539062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.792084Z", "completed_at": "2024-04-02T23:44:55.804253Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.805222Z", "completed_at": "2024-04-02T23:44:55.805229Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0160367488861084, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from __dbt__cte__stg_workday__organization_job_family\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.796731Z", "completed_at": "2024-04-02T23:44:55.804918Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.806578Z", "completed_at": "2024-04-02T23:44:55.806582Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016479969024658203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.800810Z", "completed_at": "2024-04-02T23:44:55.805711Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.807844Z", "completed_at": "2024-04-02T23:44:55.807847Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01263570785522461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.810371Z", "completed_at": "2024-04-02T23:44:55.820932Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.825595Z", "completed_at": "2024-04-02T23:44:55.825607Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.018410921096801758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from __dbt__cte__stg_workday__organization_role\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.816714Z", "completed_at": "2024-04-02T23:44:55.825204Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.827308Z", "completed_at": "2024-04-02T23:44:55.827315Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.018691062927246094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.821324Z", "completed_at": "2024-04-02T23:44:55.827027Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.829086Z", "completed_at": "2024-04-02T23:44:55.829090Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013830184936523438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_role_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.830629Z", "completed_at": "2024-04-02T23:44:55.840502Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.845697Z", "completed_at": "2024-04-02T23:44:55.845703Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017895936965942383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from __dbt__cte__stg_workday__organization_role_worker\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.836759Z", "completed_at": "2024-04-02T23:44:55.845449Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.846952Z", "completed_at": "2024-04-02T23:44:55.846955Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.017778873443603516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.840902Z", "completed_at": "2024-04-02T23:44:55.846186Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.848395Z", "completed_at": "2024-04-02T23:44:55.848401Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013607978820800781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_worker_code\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_worker_code is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.851318Z", "completed_at": "2024-04-02T23:44:55.860254Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.865448Z", "completed_at": "2024-04-02T23:44:55.865460Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017926931381225586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select role_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.855609Z", "completed_at": "2024-04-02T23:44:55.864976Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.867146Z", "completed_at": "2024-04-02T23:44:55.867151Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01775217056274414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from __dbt__cte__stg_workday__person_name\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.860627Z", "completed_at": "2024-04-02T23:44:55.866123Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.868664Z", "completed_at": "2024-04-02T23:44:55.868668Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.014687061309814453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_name_type\nfrom __dbt__cte__stg_workday__person_name\nwhere person_name_type is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.870940Z", "completed_at": "2024-04-02T23:44:55.881236Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.885606Z", "completed_at": "2024-04-02T23:44:55.885614Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017441987991333008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_name\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.875652Z", "completed_at": "2024-04-02T23:44:55.885290Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.886919Z", "completed_at": "2024-04-02T23:44:55.886923Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01755690574645996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from __dbt__cte__stg_workday__person_contact_email_address\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.881649Z", "completed_at": "2024-04-02T23:44:55.886665Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.888567Z", "completed_at": "2024-04-02T23:44:55.888572Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.014356851577758789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_contact_email_address_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere person_contact_email_address_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.890250Z", "completed_at": "2024-04-02T23:44:55.899704Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.903687Z", "completed_at": "2024-04-02T23:44:55.903694Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016258955001831055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.895124Z", "completed_at": "2024-04-02T23:44:55.903946Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.905534Z", "completed_at": "2024-04-02T23:44:55.905537Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016846656799316406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__personal_information\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.900104Z", "completed_at": "2024-04-02T23:44:55.904963Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.907090Z", "completed_at": "2024-04-02T23:44:55.907096Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013509273529052734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.908588Z", "completed_at": "2024-04-02T23:44:55.919111Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.925860Z", "completed_at": "2024-04-02T23:44:55.925870Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.020606279373168945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.915290Z", "completed_at": "2024-04-02T23:44:55.925390Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.927476Z", "completed_at": "2024-04-02T23:44:55.927480Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.014812946319580078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.919478Z", "completed_at": "2024-04-02T23:44:55.927088Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.929139Z", "completed_at": "2024-04-02T23:44:55.929142Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.015184879302978516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.942424Z", "completed_at": "2024-04-02T23:44:55.952778Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.954603Z", "completed_at": "2024-04-02T23:44:55.954611Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.02538299560546875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.947313Z", "completed_at": "2024-04-02T23:44:55.954318Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.959281Z", "completed_at": "2024-04-02T23:44:55.959289Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01837015151977539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select ethnicity_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere ethnicity_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.956046Z", "completed_at": "2024-04-02T23:44:55.961248Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.967202Z", "completed_at": "2024-04-02T23:44:55.967209Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.017212867736816406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.962356Z", "completed_at": "2024-04-02T23:44:55.971500Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.973566Z", "completed_at": "2024-04-02T23:44:55.973574Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.014055252075195312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id\n from __dbt__cte__stg_workday__position\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.967560Z", "completed_at": "2024-04-02T23:44:55.973141Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.982064Z", "completed_at": "2024-04-02T23:44:55.982073Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.021322011947631836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.974977Z", "completed_at": "2024-04-02T23:44:55.984072Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.990756Z", "completed_at": "2024-04-02T23:44:55.990764Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.022241830825805664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__position_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), position_data as (\n\n select *\n from __dbt__cte__stg_workday__position\n),\n\nposition_job_profile_data as (\n\n select *\n from __dbt__cte__stg_workday__position_job_profile\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.985099Z", "completed_at": "2024-04-02T23:44:55.995375Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:55.996999Z", "completed_at": "2024-04-02T23:44:55.997003Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.014423131942749023, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from __dbt__cte__stg_workday__position_job_profile\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.991139Z", "completed_at": "2024-04-02T23:44:55.996745Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.001452Z", "completed_at": "2024-04-02T23:44:56.001458Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.017847776412963867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:55.998142Z", "completed_at": "2024-04-02T23:44:56.003728Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.009660Z", "completed_at": "2024-04-02T23:44:56.009669Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01762080192565918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.004469Z", "completed_at": "2024-04-02T23:44:56.014373Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.016376Z", "completed_at": "2024-04-02T23:44:56.016383Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.014693737030029297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from __dbt__cte__stg_workday__position_organization\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.010005Z", "completed_at": "2024-04-02T23:44:56.015574Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.017793Z", "completed_at": "2024-04-02T23:44:56.017797Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.018846988677978516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.018072Z", "completed_at": "2024-04-02T23:44:56.024332Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.029359Z", "completed_at": "2024-04-02T23:44:56.029366Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01742100715637207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.025080Z", "completed_at": "2024-04-02T23:44:56.033699Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.035496Z", "completed_at": "2024-04-02T23:44:56.035503Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013309955596923828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.029660Z", "completed_at": "2024-04-02T23:44:56.035185Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.041100Z", "completed_at": "2024-04-02T23:44:56.041110Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.017455101013183594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.037000Z", "completed_at": "2024-04-02T23:44:56.043159Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.061688Z", "completed_at": "2024-04-02T23:44:56.061695Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0871129035949707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.062030Z", "completed_at": "2024-04-02T23:44:56.124236Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.129696Z", "completed_at": "2024-04-02T23:44:56.129707Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.08704280853271484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__worker\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.125994Z", "completed_at": "2024-04-02T23:44:56.136097Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.137517Z", "completed_at": "2024-04-02T23:44:56.137522Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01835799217224121, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.131071Z", "completed_at": "2024-04-02T23:44:56.137277Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.142643Z", "completed_at": "2024-04-02T23:44:56.142652Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.018407821655273438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from __dbt__cte__stg_workday__worker_leave_status\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.137765Z", "completed_at": "2024-04-02T23:44:56.143381Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.145511Z", "completed_at": "2024-04-02T23:44:56.145517Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013410091400146484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select leave_request_event_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere leave_request_event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.146191Z", "completed_at": "2024-04-02T23:44:56.160779Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.162169Z", "completed_at": "2024-04-02T23:44:56.162176Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.02287912368774414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.162620Z", "completed_at": "2024-04-02T23:44:56.168955Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.173640Z", "completed_at": "2024-04-02T23:44:56.173647Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01620316505432129, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from __dbt__cte__stg_workday__worker_position\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.170239Z", "completed_at": "2024-04-02T23:44:56.178156Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.179778Z", "completed_at": "2024-04-02T23:44:56.179785Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0162808895111084, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.173939Z", "completed_at": "2024-04-02T23:44:56.178883Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.184207Z", "completed_at": "2024-04-02T23:44:56.184220Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016269207000732422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.180051Z", "completed_at": "2024-04-02T23:44:56.186505Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.188257Z", "completed_at": "2024-04-02T23:44:56.188261Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.043637990951538086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.188503Z", "completed_at": "2024-04-02T23:44:56.241242Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.252593Z", "completed_at": "2024-04-02T23:44:56.252614Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.06693100929260254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.191422Z", "completed_at": "2024-04-02T23:44:56.253233Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.259405Z", "completed_at": "2024-04-02T23:44:56.259413Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.07315587997436523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__employee_history", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n), worker_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_history\n),\n\nworker_position_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_history\n),\n\npersonal_information_history as (\n\n select *\n from __dbt__cte__stg_workday__personal_information_history\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select md5(cast(coalesce(cast(employee_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.254080Z", "completed_at": "2024-04-02T23:44:56.260978Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.265881Z", "completed_at": "2024-04-02T23:44:56.265886Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.014534950256347656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.261611Z", "completed_at": "2024-04-02T23:44:56.266917Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.271705Z", "completed_at": "2024-04-02T23:44:56.271710Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01279592514038086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.267235Z", "completed_at": "2024-04-02T23:44:56.272184Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.277178Z", "completed_at": "2024-04-02T23:44:56.277185Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012689828872680664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.272932Z", "completed_at": "2024-04-02T23:44:56.278477Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.287621Z", "completed_at": "2024-04-02T23:44:56.287631Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01721811294555664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.279507Z", "completed_at": "2024-04-02T23:44:56.294347Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.295757Z", "completed_at": "2024-04-02T23:44:56.295763Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.019192934036254883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__organization_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), organization_data as (\n\n select * \n from __dbt__cte__stg_workday__organization\n),\n\norganization_role_data as (\n\n select * \n from __dbt__cte__stg_workday__organization_role\n),\n\nworker_position_organization as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_organization\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.288977Z", "completed_at": "2024-04-02T23:44:56.296249Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.301036Z", "completed_at": "2024-04-02T23:44:56.301041Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01480412483215332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from __dbt__cte__stg_workday__worker_position_organization\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.296954Z", "completed_at": "2024-04-02T23:44:56.302394Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.307537Z", "completed_at": "2024-04-02T23:44:56.307543Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013018131256103516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.303524Z", "completed_at": "2024-04-02T23:44:56.312288Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.313841Z", "completed_at": "2024-04-02T23:44:56.313848Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.016226768493652344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.308680Z", "completed_at": "2024-04-02T23:44:56.313602Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.317973Z", "completed_at": "2024-04-02T23:44:56.317978Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.011770248413085938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.314091Z", "completed_at": "2024-04-02T23:44:56.319161Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.321218Z", "completed_at": "2024-04-02T23:44:56.321224Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013247966766357422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.321528Z", "completed_at": "2024-04-02T23:44:56.340554Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.341988Z", "completed_at": "2024-04-02T23:44:56.341994Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.03181719779968262, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.354861Z", "completed_at": "2024-04-02T23:44:56.367323Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.368103Z", "completed_at": "2024-04-02T23:44:56.368111Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.015833139419555664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.357956Z", "completed_at": "2024-04-02T23:44:56.367891Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.369917Z", "completed_at": "2024-04-02T23:44:56.369922Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01684880256652832, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.372325Z", "completed_at": "2024-04-02T23:44:56.389789Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.390418Z", "completed_at": "2024-04-02T23:44:56.390425Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.019778013229370117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.375773Z", "completed_at": "2024-04-02T23:44:56.391297Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.391755Z", "completed_at": "2024-04-02T23:44:56.391758Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.020192861557006836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n), employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from __dbt__cte__int_workday__worker_employee_enhanced \n)\n\nselect * \nfrom employee_surrogate_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.397913Z", "completed_at": "2024-04-02T23:44:56.401256Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.401785Z", "completed_at": "2024-04-02T23:44:56.401791Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.008652925491333008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.394366Z", "completed_at": "2024-04-02T23:44:56.402678Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.404089Z", "completed_at": "2024-04-02T23:44:56.404094Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.014352083206176758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.404349Z", "completed_at": "2024-04-02T23:44:56.408257Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.408847Z", "completed_at": "2024-04-02T23:44:56.408853Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006183147430419922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__employee_overview_employee_id.b01e19996c", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is not null\ngroup by employee_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.479796Z", "completed_at": "2024-04-02T23:44:56.484940Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.486021Z", "completed_at": "2024-04-02T23:44:56.486028Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01695728302001953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.476827Z", "completed_at": "2024-04-02T23:44:56.485213Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.486289Z", "completed_at": "2024-04-02T23:44:56.486296Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01791214942932129, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.493163Z", "completed_at": "2024-04-02T23:44:56.496712Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.497858Z", "completed_at": "2024-04-02T23:44:56.497867Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00990915298461914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.489617Z", "completed_at": "2024-04-02T23:44:56.497058Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.498120Z", "completed_at": "2024-04-02T23:44:56.498123Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.010812044143676758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.500410Z", "completed_at": "2024-04-02T23:44:56.504588Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:56.505027Z", "completed_at": "2024-04-02T23:44:56.505033Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.0056188106536865234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.342449Z", "completed_at": "2024-04-02T23:44:57.559117Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.559604Z", "completed_at": "2024-04-02T23:44:57.559611Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.3466367721557617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_daily_history", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n\n\n \n \n\n \n \n\n\n\n\n\nwith spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 6972\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2005-03-01' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-02'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:57.691895Z", "completed_at": "2024-04-02T23:44:57.725673Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.726513Z", "completed_at": "2024-04-02T23:44:57.726529Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.038146018981933594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__monthly_summary", "compiled": true, "compiled_code": " \n\nwith row_month_partition as (\n\n select *, \n cast(date_trunc('month', date_day) as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n),\n\nend_of_month_history as (\n \n select *,\n now() as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when date_month = cast(date_trunc('month', position_effective_date) as date) then 1 else 0 end) as new_employees,\n sum(case when date_month = cast(date_trunc('month', termination_date) as date) then 1 else 0 end) as churned_employees,\n sum(case when (date_month = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = cast(date_trunc('month', end_employment_date) as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and (cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:57.718995Z", "completed_at": "2024-04-02T23:44:57.727944Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.730328Z", "completed_at": "2024-04-02T23:44:57.730335Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.04093170166015625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is not null\ngroup by employee_day_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:57.712103Z", "completed_at": "2024-04-02T23:44:57.728363Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.730679Z", "completed_at": "2024-04-02T23:44:57.730686Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.04212307929992676, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:57.732476Z", "completed_at": "2024-04-02T23:44:57.741415Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.741987Z", "completed_at": "2024-04-02T23:44:57.741994Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.012644052505493164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metrics_month\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:57.737476Z", "completed_at": "2024-04-02T23:44:57.742852Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.743285Z", "completed_at": "2024-04-02T23:44:57.743288Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.0070269107818603516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab", "compiled": true, "compiled_code": "\n \n \n\nselect\n metrics_month as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is not null\ngroup by metrics_month\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:56.471224Z", "completed_at": "2024-04-02T23:44:57.674300Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.674769Z", "completed_at": "2024-04-02T23:44:57.674775Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 1.3049590587615967, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__worker_position_org_daily_history", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n\n\n \n \n\n \n \n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n), spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 6972\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2005-03-01' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-02'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nworker_position_org_history as (\n\n select * \n from __dbt__cte__stg_workday__worker_position_organization_history\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n _fivetran_start,\n _fivetran_end,\n _fivetran_active,\n _fivetran_date,\n history_unique_key,\n index,\n date_of_pay_group_assignment,\n primary_business_site,\n is_used_in_change_organization_assignments\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:57.776397Z", "completed_at": "2024-04-02T23:44:57.790302Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.794843Z", "completed_at": "2024-04-02T23:44:57.794851Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.021268129348754883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:57.781789Z", "completed_at": "2024-04-02T23:44:57.794156Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.796855Z", "completed_at": "2024-04-02T23:44:57.796865Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.022647857666015625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:57.785157Z", "completed_at": "2024-04-02T23:44:57.794547Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.797230Z", "completed_at": "2024-04-02T23:44:57.797235Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.019114017486572266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:57.790626Z", "completed_at": "2024-04-02T23:44:57.795076Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.797962Z", "completed_at": "2024-04-02T23:44:57.797968Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.019089937210083008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect wpo_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-02T23:44:57.800701Z", "completed_at": "2024-04-02T23:44:57.804319Z"}, {"name": "execute", "started_at": "2024-04-02T23:44:57.804832Z", "completed_at": "2024-04-02T23:44:57.804840Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.005922079086303711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21", "compiled": true, "compiled_code": "\n \n \n\nselect\n wpo_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is not null\ngroup by wpo_day_id\nhaving count(*) > 1\n\n\n", "relation_name": null}], "elapsed_time": 12.48839282989502, "args": {"which": "generate", "log_level_file": "debug", "log_file_max_bytes": 10485760, "partial_parse_file_diff": true, "quiet": false, "log_format_file": "debug", "print": true, "log_format": "default", "project_dir": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "compile": true, "warn_error_options": {"include": [], "exclude": []}, "macro_debugging": false, "write_json": true, "use_colors": true, "cache_selected_only": false, "profiles_dir": "/Users/avinash.kunnath/.dbt", "static_parser": true, "printer_width": 80, "use_colors_file": true, "select": [], "enable_legacy_logger": false, "indirect_selection": "eager", "introspect": true, "invocation_command": "dbt docs generate -t postgres", "vars": {}, "populate_cache": true, "defer": false, "strict_mode": false, "log_level": "info", "log_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests/logs", "version_check": true, "send_anonymous_usage_stats": true, "partial_parse": true, "show_resource_report": false, "empty_catalog": false, "exclude": [], "favor_state": false, "target": "postgres", "static": false}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v5.json", "dbt_version": "1.7.8", "generated_at": "2024-04-03T15:31:26.058119Z", "invocation_id": "9c69f9af-b538-4190-9c4d-01824c6af93c", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.322550Z", "completed_at": "2024-04-03T15:31:12.377894Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.380114Z", "completed_at": "2024-04-03T15:31:12.380148Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.06447839736938477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.368030Z", "completed_at": "2024-04-03T15:31:12.378254Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.380754Z", "completed_at": "2024-04-03T15:31:12.380758Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.06279516220092773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.370939Z", "completed_at": "2024-04-03T15:31:12.378563Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.381035Z", "completed_at": "2024-04-03T15:31:12.381039Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.06245565414428711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_family_group_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_family_group_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.374849Z", "completed_at": "2024-04-03T15:31:12.379260Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.382051Z", "completed_at": "2024-04-03T15:31:12.382061Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.07494807243347168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_family_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_family_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.404802Z", "completed_at": "2024-04-03T15:31:12.421729Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.424264Z", "completed_at": "2024-04-03T15:31:12.424277Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.025487899780273438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.409549Z", "completed_at": "2024-04-03T15:31:12.422582Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.424885Z", "completed_at": "2024-04-03T15:31:12.424890Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.02518916130065918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__military_service_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_military_service_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.413964Z", "completed_at": "2024-04-03T15:31:12.423307Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.426066Z", "completed_at": "2024-04-03T15:31:12.426078Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.02609109878540039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.418256Z", "completed_at": "2024-04-03T15:31:12.423886Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.427165Z", "completed_at": "2024-04-03T15:31:12.427171Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.02622222900390625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_job_family_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_job_family_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.432801Z", "completed_at": "2024-04-03T15:31:12.445752Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.447784Z", "completed_at": "2024-04-03T15:31:12.447793Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.019900083541870117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.436584Z", "completed_at": "2024-04-03T15:31:12.446226Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.448711Z", "completed_at": "2024-04-03T15:31:12.448715Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.02024698257446289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__organization_role_worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_organization_role_worker_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.440191Z", "completed_at": "2024-04-03T15:31:12.446830Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.449632Z", "completed_at": "2024-04-03T15:31:12.449636Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.019977092742919922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_contact_email_address_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_contact_email_address_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.443175Z", "completed_at": "2024-04-03T15:31:12.447075Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.449953Z", "completed_at": "2024-04-03T15:31:12.449956Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.019756078720092773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__person_name_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_person_name_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.456114Z", "completed_at": "2024-04-03T15:31:12.468904Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.470774Z", "completed_at": "2024-04-03T15:31:12.470782Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.019092082977294922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.459598Z", "completed_at": "2024-04-03T15:31:12.469581Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.471514Z", "completed_at": "2024-04-03T15:31:12.471517Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01920175552368164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__personal_information_ethnicity_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_personal_information_ethnicity_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.463188Z", "completed_at": "2024-04-03T15:31:12.470190Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.472749Z", "completed_at": "2024-04-03T15:31:12.472756Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.0197298526763916, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.465836Z", "completed_at": "2024-04-03T15:31:12.471026Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.474042Z", "completed_at": "2024-04-03T15:31:12.474046Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.026569843292236328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_job_profile_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_job_profile_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.484577Z", "completed_at": "2024-04-03T15:31:12.499477Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.520769Z", "completed_at": "2024-04-03T15:31:12.520777Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.04096484184265137, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_position_organization_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.488390Z", "completed_at": "2024-04-03T15:31:12.520108Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.523121Z", "completed_at": "2024-04-03T15:31:12.523128Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.041912078857421875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.509179Z", "completed_at": "2024-04-03T15:31:12.522518Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.525549Z", "completed_at": "2024-04-03T15:31:12.525556Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.039856910705566406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.491512Z", "completed_at": "2024-04-03T15:31:12.522843Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.525957Z", "completed_at": "2024-04-03T15:31:12.525964Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.04440903663635254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_leave_status_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_leave_status_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.546705Z", "completed_at": "2024-04-03T15:31:12.547966Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.553036Z", "completed_at": "2024-04-03T15:31:12.553045Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.02549004554748535, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.548617Z", "completed_at": "2024-04-03T15:31:12.549641Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.553611Z", "completed_at": "2024-04-03T15:31:12.553615Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.014596939086914062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.530180Z", "completed_at": "2024-04-03T15:31:12.549949Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.553874Z", "completed_at": "2024-04-03T15:31:12.553876Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.03170204162597656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.stg_workday__worker_position_organization_base", "compiled": true, "compiled_code": "\n \n \n \n \n \n select * \n from \"postgres\".\"workday_integration_tests\".\"workday_worker_position_organization_history_data\"", "relation_name": "\"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.550664Z", "completed_at": "2024-04-03T15:31:12.551830Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.554899Z", "completed_at": "2024-04-03T15:31:12.554905Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.012807130813598633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_group_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.562920Z", "completed_at": "2024-04-03T15:31:12.564183Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.570099Z", "completed_at": "2024-04-03T15:31:12.570106Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.011845111846923828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_family_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.564796Z", "completed_at": "2024-04-03T15:31:12.566611Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.570612Z", "completed_at": "2024-04-03T15:31:12.570616Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.011542081832885742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.566889Z", "completed_at": "2024-04-03T15:31:12.567797Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.570870Z", "completed_at": "2024-04-03T15:31:12.570873Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.011526823043823242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_military_service_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.568340Z", "completed_at": "2024-04-03T15:31:12.569297Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.571666Z", "completed_at": "2024-04-03T15:31:12.571669Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011482000350952148, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.577059Z", "completed_at": "2024-04-03T15:31:12.578045Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.625268Z", "completed_at": "2024-04-03T15:31:12.625275Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.052232980728149414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_job_family_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.578527Z", "completed_at": "2024-04-03T15:31:12.579367Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.625818Z", "completed_at": "2024-04-03T15:31:12.625825Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.052587032318115234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.579595Z", "completed_at": "2024-04-03T15:31:12.581180Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.626086Z", "completed_at": "2024-04-03T15:31:12.626090Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.05279111862182617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_organization_role_worker_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.581650Z", "completed_at": "2024-04-03T15:31:12.624268Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.627162Z", "completed_at": "2024-04-03T15:31:12.627170Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.052977800369262695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_contact_email_address_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.632756Z", "completed_at": "2024-04-03T15:31:12.633873Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.638686Z", "completed_at": "2024-04-03T15:31:12.638692Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.009569883346557617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_person_name_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.634346Z", "completed_at": "2024-04-03T15:31:12.635218Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.639120Z", "completed_at": "2024-04-03T15:31:12.639124Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.009640216827392578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_ethnicity_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.635463Z", "completed_at": "2024-04-03T15:31:12.636301Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.639344Z", "completed_at": "2024-04-03T15:31:12.639346Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.009738922119140625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_personal_information_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.636830Z", "completed_at": "2024-04-03T15:31:12.637880Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.640160Z", "completed_at": "2024-04-03T15:31:12.640163Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009966850280761719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.644733Z", "completed_at": "2024-04-03T15:31:12.645872Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.652181Z", "completed_at": "2024-04-03T15:31:12.652188Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.011030912399291992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_job_profile_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.646337Z", "completed_at": "2024-04-03T15:31:12.648311Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.652734Z", "completed_at": "2024-04-03T15:31:12.652739Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.011228322982788086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_position_organization_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.648701Z", "completed_at": "2024-04-03T15:31:12.649632Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.653000Z", "completed_at": "2024-04-03T15:31:12.653003Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.011426925659179688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.650175Z", "completed_at": "2024-04-03T15:31:12.651220Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.653966Z", "completed_at": "2024-04-03T15:31:12.653970Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011847972869873047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_leave_status_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.659680Z", "completed_at": "2024-04-03T15:31:12.660898Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.674398Z", "completed_at": "2024-04-03T15:31:12.674406Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01903510093688965, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:12.661486Z", "completed_at": "2024-04-03T15:31:12.662491Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:12.675102Z", "completed_at": "2024-04-03T15:31:12.675107Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.018992185592651367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.workday_integration_tests.workday_worker_position_organization_history_data", "compiled": null, "compiled_code": null, "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:22.898270Z", "completed_at": "2024-04-03T15:31:22.918995Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:22.920272Z", "completed_at": "2024-04-03T15:31:22.920280Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.03316688537597656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_group_source_relation__job_family_group_id.c9dcd0e168", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_group_id\n from __dbt__cte__stg_workday__job_family_group\n group by source_relation, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:22.910574Z", "completed_at": "2024-04-03T15:31:22.919325Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:22.920580Z", "completed_at": "2024-04-03T15:31:22.920583Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.03234100341796875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_group_job_family_group_id.e25ebb9009", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_group\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:22.928369Z", "completed_at": "2024-04-03T15:31:22.931788Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:22.932264Z", "completed_at": "2024-04-03T15:31:22.932272Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009588956832885742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_id.0dbfcdcd3f", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:22.924009Z", "completed_at": "2024-04-03T15:31:22.933241Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:22.934614Z", "completed_at": "2024-04-03T15:31:22.934619Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016793012619018555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_source_relation__job_family_id.9678e90d0e", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id\n from __dbt__cte__stg_workday__job_family\n group by source_relation, job_family_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:22.934899Z", "completed_at": "2024-04-03T15:31:22.943728Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:22.944295Z", "completed_at": "2024-04-03T15:31:22.944300Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011121273040771484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_profile_source_relation__job_family_id__job_profile_id.fed96122e7", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_profile_id\n from __dbt__cte__stg_workday__job_family_job_profile\n group by source_relation, job_family_id, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:22.940678Z", "completed_at": "2024-04-03T15:31:22.944967Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:22.946133Z", "completed_at": "2024-04-03T15:31:22.946137Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.006610870361328125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_family_id.f5bbfef4e8", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:22.946997Z", "completed_at": "2024-04-03T15:31:22.955484Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:22.956230Z", "completed_at": "2024-04-03T15:31:22.956237Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.010918855667114258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_profile_job_profile_id.c7a636316c", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_family_job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:22.951648Z", "completed_at": "2024-04-03T15:31:22.956995Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:22.958036Z", "completed_at": "2024-04-03T15:31:22.958039Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.007548809051513672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_family_job_family_group_source_relation__job_family_id__job_family_group_id.b4f7618b5a", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, job_family_group_id\n from __dbt__cte__stg_workday__job_family_job_family_group\n group by source_relation, job_family_id, job_family_group_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:22.958898Z", "completed_at": "2024-04-03T15:31:22.967080Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:22.967620Z", "completed_at": "2024-04-03T15:31:22.967629Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.010312080383300781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_group_id.f105a73bde", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_group_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_group_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:22.963774Z", "completed_at": "2024-04-03T15:31:22.968522Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:22.969575Z", "completed_at": "2024-04-03T15:31:22.969579Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.010915756225585938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_family_job_family_group_job_family_id.589a75cf0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__job_family_job_family_group\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:22.969804Z", "completed_at": "2024-04-03T15:31:22.975274Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:22.980046Z", "completed_at": "2024-04-03T15:31:22.980052Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011701822280883789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_source_relation__organization_id.4aab1c6db5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id\n from __dbt__cte__stg_workday__organization\n group by source_relation, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:22.975577Z", "completed_at": "2024-04-03T15:31:22.981435Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:22.996800Z", "completed_at": "2024-04-03T15:31:22.996812Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.02274298667907715, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_organization_id.f11f86e5c7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:22.982118Z", "completed_at": "2024-04-03T15:31:23.002425Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.003055Z", "completed_at": "2024-04-03T15:31:23.003060Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.022678852081298828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__job_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_profile_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_code\n \n as \n \n job_family_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_id,\n inactive as is_inactive,\n job_family_code,\n summary as job_family_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_id,\n job_family_group_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__job_family_group as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_family_group_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n job_family_group_code\n \n as \n \n job_family_group_code\n \n, \n \n \n summary\n \n as \n \n summary\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n effective_date,\n id as job_family_group_id,\n inactive as is_inactive,\n job_family_group_code,\n summary as job_family_group_summary\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), job_profile_data as (\n\n select * \n from __dbt__cte__stg_workday__job_profile\n),\n\n\njob_family_profile_data as (\n\n select \n job_family_id,\n job_profile_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_profile\n),\n\njob_family_data as (\n\n select \n job_family_id,\n source_relation,\n job_family_code,\n job_family_summary\n from __dbt__cte__stg_workday__job_family\n),\n\njob_family_job_family_group_data as (\n\n select \n job_family_group_id,\n job_family_id,\n source_relation\n from __dbt__cte__stg_workday__job_family_job_family_group\n),\n\njob_family_group_data as (\n\n select \n job_family_group_id,\n source_relation,\n job_family_group_code,\n job_family_group_summary\n from __dbt__cte__stg_workday__job_family_group\n),\n\njob_data_enhanced as (\n\n select\n job_profile_data.job_profile_id,\n job_profile_data.source_relation,\n job_profile_data.job_profile_code, \n job_profile_data.job_title,\n job_profile_data.private_title,\n job_profile_data.job_summary,\n job_profile_data.job_description,\n \n string_agg(distinct job_family_data.job_family_code, ', ')\n\n as job_family_codes,\n \n string_agg(distinct job_family_data.job_family_summary, ', ')\n\n as job_family_summaries, \n \n string_agg(distinct job_family_group_data.job_family_group_code, ', ')\n\n as job_family_group_codes,\n \n string_agg(distinct job_family_group_data.job_family_group_summary, ', ')\n\n as job_family_group_summaries\n\n from job_profile_data \n left join job_family_profile_data \n on job_profile_data.job_profile_id = job_family_profile_data.job_profile_id\n and job_profile_data.source_relation = job_family_profile_data.source_relation\n left join job_family_data\n on job_family_profile_data.job_family_id = job_family_data.job_family_id\n and job_family_profile_data.source_relation = job_family_data.source_relation\n left join job_family_job_family_group_data\n on job_family_job_family_group_data.job_family_id = job_family_data.job_family_id\n and job_family_job_family_group_data.source_relation = job_family_data.source_relation\n left join job_family_group_data \n on job_family_job_family_group_data.job_family_group_id = job_family_group_data.job_family_group_id\n and job_family_job_family_group_data.source_relation = job_family_group_data.source_relation\n group by 1,2,3,4,5,6,7\n)\n\nselect *\nfrom job_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:22.998695Z", "completed_at": "2024-04-03T15:31:23.003285Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.004637Z", "completed_at": "2024-04-03T15:31:23.004640Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.007401943206787109, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__job_profile_source_relation__job_profile_id.cf214684ed", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id\n from __dbt__cte__stg_workday__job_profile\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.006159Z", "completed_at": "2024-04-03T15:31:23.015202Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.016113Z", "completed_at": "2024-04-03T15:31:23.016119Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011902093887329102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__job_profile_job_profile_id.1166250eaa", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n additional_job_description\n \n as \n \n additional_job_description\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n include_job_code_in_name\n \n as \n \n include_job_code_in_name\n \n, \n \n \n job_category_id\n \n as \n \n job_category_id\n \n, \n \n \n job_profile_code\n \n as \n \n job_profile_code\n \n, \n \n \n level\n \n as \n \n level\n \n, \n \n \n management_level\n \n as \n \n management_level\n \n, \n \n \n private_title\n \n as \n \n private_title\n \n, \n \n \n public_job\n \n as \n \n public_job\n \n, \n \n \n referral_payment_plan\n \n as \n \n referral_payment_plan\n \n, \n \n \n summary\n \n as \n \n summary\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n union_code\n \n as \n \n union_code\n \n, \n \n \n union_membership_requirement\n \n as \n \n union_membership_requirement\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_study_award_source_code\n \n as \n \n work_study_award_source_code\n \n, \n \n \n work_study_requirement_option_code\n \n as \n \n work_study_requirement_option_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n additional_job_description,\n compensation_grade_id,\n critical_job as is_critical_job,\n description as job_description,\n difficulty_to_fill,\n effective_date,\n id as job_profile_id,\n inactive as is_inactive,\n include_job_code_in_name as is_include_job_code_in_name,\n job_category_id,\n job_profile_code,\n level,\n management_level,\n private_title,\n public_job as is_public_job,\n referral_payment_plan,\n summary as job_summary,\n title as job_title,\n union_code,\n union_membership_requirement,\n work_shift_required as is_work_shift_required,\n work_study_award_source_code,\n work_study_requirement_option_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.010144Z", "completed_at": "2024-04-03T15:31:23.015434Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.016332Z", "completed_at": "2024-04-03T15:31:23.016336Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.007735729217529297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__military_service_source_relation__worker_id.77c49e46ff", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__military_service\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.019215Z", "completed_at": "2024-04-03T15:31:23.026294Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.027194Z", "completed_at": "2024-04-03T15:31:23.027200Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.00972294807434082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__military_service_worker_id.a196487e38", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__military_service\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.022370Z", "completed_at": "2024-04-03T15:31:23.026540Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.027420Z", "completed_at": "2024-04-03T15:31:23.027423Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.009834051132202148, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_job_family_source_relation__job_family_id__organization_id.56b8e9156b", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_family_id, organization_id\n from __dbt__cte__stg_workday__organization_job_family\n group by source_relation, job_family_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.033240Z", "completed_at": "2024-04-03T15:31:23.036285Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.036768Z", "completed_at": "2024-04-03T15:31:23.036773Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.007928848266601562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_organization_id.3fc5ce5e7e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.030230Z", "completed_at": "2024-04-03T15:31:23.036990Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.038177Z", "completed_at": "2024-04-03T15:31:23.038180Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.009801864624023438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_job_family_job_family_id.a2ab2ad617", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_job_family as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_job_family_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n job_family_group_id\n \n as \n \n job_family_group_id\n \n, \n \n \n job_family_id\n \n as \n \n job_family_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n job_family_group_id,\n job_family_id,\n organization_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_family_id\nfrom __dbt__cte__stg_workday__organization_job_family\nwhere job_family_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.039641Z", "completed_at": "2024-04-03T15:31:23.050585Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.051900Z", "completed_at": "2024-04-03T15:31:23.051904Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.014342069625854492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_worker_source_relation__organization_worker_code__organization_id__role_id.e5d078d6c4", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_worker_code, organization_id, role_id\n from __dbt__cte__stg_workday__organization_role_worker\n group by source_relation, organization_worker_code, organization_id, role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.047210Z", "completed_at": "2024-04-03T15:31:23.052145Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.056848Z", "completed_at": "2024-04-03T15:31:23.056852Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.011671066284179688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_id.b98960b9f5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.053267Z", "completed_at": "2024-04-03T15:31:23.058152Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.062300Z", "completed_at": "2024-04-03T15:31:23.062305Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01144719123840332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_organization_worker_code.ddc8d566ca", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_worker_code\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere organization_worker_code is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.058644Z", "completed_at": "2024-04-03T15:31:23.067206Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.068633Z", "completed_at": "2024-04-03T15:31:23.068638Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012575864791870117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_worker_role_id.1703a44b72", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role_worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n associated_worker_id\n \n as \n \n associated_worker_id\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n associated_worker_id as organization_worker_code,\n organization_id,\n role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select role_id\nfrom __dbt__cte__stg_workday__organization_role_worker\nwhere role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.063279Z", "completed_at": "2024-04-03T15:31:23.068960Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.074876Z", "completed_at": "2024-04-03T15:31:23.074882Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.013911008834838867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__organization_role_source_relation__organization_id__organization_role_id.4d7bc3feaf", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id\n from __dbt__cte__stg_workday__organization_role\n group by source_relation, organization_id, organization_role_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.070307Z", "completed_at": "2024-04-03T15:31:23.076337Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.080782Z", "completed_at": "2024-04-03T15:31:23.080788Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013224124908447266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_id.917651c7a7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.076859Z", "completed_at": "2024-04-03T15:31:23.081788Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.087192Z", "completed_at": "2024-04-03T15:31:23.087197Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012858867645263672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__organization_role_organization_role_id.2ea32fe93f", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_role_id\nfrom __dbt__cte__stg_workday__organization_role\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.082012Z", "completed_at": "2024-04-03T15:31:23.087650Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.091977Z", "completed_at": "2024-04-03T15:31:23.091981Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.012424230575561523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_contact_email_address_source_relation__worker_id__person_contact_email_address_id.ff90e55696", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_contact_email_address_id\n from __dbt__cte__stg_workday__person_contact_email_address\n group by source_relation, worker_id, person_contact_email_address_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.088337Z", "completed_at": "2024-04-03T15:31:23.093261Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.098188Z", "completed_at": "2024-04-03T15:31:23.098195Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.012251853942871094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_person_contact_email_address_id.b8e6adf279", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_contact_email_address_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere person_contact_email_address_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.093777Z", "completed_at": "2024-04-03T15:31:23.099349Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.106707Z", "completed_at": "2024-04-03T15:31:23.106716Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.015450716018676758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_contact_email_address_worker_id.9237f19755", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_contact_email_address\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.099585Z", "completed_at": "2024-04-03T15:31:23.107211Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.112608Z", "completed_at": "2024-04-03T15:31:23.112616Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.016262292861938477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__person_name_source_relation__worker_id__person_name_type.c4f63f27fd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, person_name_type\n from __dbt__cte__stg_workday__person_name\n group by source_relation, worker_id, person_name_type\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.108158Z", "completed_at": "2024-04-03T15:31:23.113479Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.118336Z", "completed_at": "2024-04-03T15:31:23.118341Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013098001480102539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_person_name_type.59eb1d6f63", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select person_name_type\nfrom __dbt__cte__stg_workday__person_name\nwhere person_name_type is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.114940Z", "completed_at": "2024-04-03T15:31:23.120191Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.126397Z", "completed_at": "2024-04-03T15:31:23.126405Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.017992019653320312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__person_name_worker_id.666b7b3a90", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__person_name\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.120521Z", "completed_at": "2024-04-03T15:31:23.126664Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.132069Z", "completed_at": "2024-04-03T15:31:23.132073Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.014472007751464844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_ethnicity_source_relation__worker_id__ethnicity_id.52eddf5fd3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, ethnicity_id\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by source_relation, worker_id, ethnicity_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.127050Z", "completed_at": "2024-04-03T15:31:23.132688Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.137541Z", "completed_at": "2024-04-03T15:31:23.137547Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.014986038208007812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_ethnicity_id.89c11054f2", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select ethnicity_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere ethnicity_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.134197Z", "completed_at": "2024-04-03T15:31:23.141028Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.145484Z", "completed_at": "2024-04-03T15:31:23.145489Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01699519157409668, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_ethnicity_worker_id.08e20915fd", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_ethnicity\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.141317Z", "completed_at": "2024-04-03T15:31:23.150135Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.151462Z", "completed_at": "2024-04-03T15:31:23.151466Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.019469022750854492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_history_unique_key.64bf86390e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.145755Z", "completed_at": "2024-04-03T15:31:23.151217Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.157736Z", "completed_at": "2024-04-03T15:31:23.157742Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013863801956176758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_history_worker_id.b9fdbd8e58", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.151711Z", "completed_at": "2024-04-03T15:31:23.158860Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.160896Z", "completed_at": "2024-04-03T15:31:23.160904Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.021933794021606445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__personal_information_history_history_unique_key.3dba27dafc", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__personal_information_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.172766Z", "completed_at": "2024-04-03T15:31:23.179998Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.184734Z", "completed_at": "2024-04-03T15:31:23.184740Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.025019168853759766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__personal_information_source_relation__worker_id.2d458129a6", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__personal_information\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.180487Z", "completed_at": "2024-04-03T15:31:23.185851Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.191262Z", "completed_at": "2024-04-03T15:31:23.191268Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.013005971908569336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__personal_information_worker_id.560ec905d1", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__personal_information\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.186149Z", "completed_at": "2024-04-03T15:31:23.192253Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.197131Z", "completed_at": "2024-04-03T15:31:23.197137Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.013793230056762695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_source_relation__position_id.a6b218cf83", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id\n from __dbt__cte__stg_workday__position\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.192473Z", "completed_at": "2024-04-03T15:31:23.197642Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.216381Z", "completed_at": "2024-04-03T15:31:23.216393Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.02650618553161621, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_position_id.8a8bc89d4e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.218912Z", "completed_at": "2024-04-03T15:31:23.227586Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.235085Z", "completed_at": "2024-04-03T15:31:23.235095Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.019129037857055664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_source_relation__worker_id.e1ce9c23d8", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id\n from __dbt__cte__stg_workday__worker\n group by source_relation, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.224333Z", "completed_at": "2024-04-03T15:31:23.235359Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.237178Z", "completed_at": "2024-04-03T15:31:23.237183Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.015164852142333984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_worker_id.8dae310560", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.227949Z", "completed_at": "2024-04-03T15:31:23.236179Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.237783Z", "completed_at": "2024-04-03T15:31:23.237787Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.014979839324951172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__position_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_tenure_eligible\n \n as \n \n academic_tenure_eligible\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n available_for_overlap\n \n as \n \n available_for_overlap\n \n, \n \n \n available_for_recruiting\n \n as \n \n available_for_recruiting\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n compensation_grade_code\n \n as \n \n compensation_grade_code\n \n, \n \n \n compensation_grade_profile_code\n \n as \n \n compensation_grade_profile_code\n \n, \n \n \n compensation_package_code\n \n as \n \n compensation_package_code\n \n, \n \n \n compensation_step_code\n \n as \n \n compensation_step_code\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n earliest_hire_date\n \n as \n \n earliest_hire_date\n \n, \n \n \n earliest_overlap_date\n \n as \n \n earliest_overlap_date\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n job_description\n \n as \n \n job_description\n \n, \n \n \n job_description_summary\n \n as \n \n job_description_summary\n \n, \n \n \n job_posting_title\n \n as \n \n job_posting_title\n \n, \n \n \n position_code\n \n as \n \n position_code\n \n, \n \n \n position_time_type_code\n \n as \n \n position_time_type_code\n \n, \n \n \n primary_compensation_basis\n \n as \n \n primary_compensation_basis\n \n, \n \n \n primary_compensation_basis_amount_change\n \n as \n \n primary_compensation_basis_amount_change\n \n, \n \n \n primary_compensation_basis_percent_change\n \n as \n \n primary_compensation_basis_percent_change\n \n, \n \n \n supervisory_organization_id\n \n as \n \n supervisory_organization_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n worker_for_filled_position_id\n \n as \n \n worker_for_filled_position_id\n \n, \n \n \n worker_position_id\n \n as \n \n worker_position_id\n \n, \n \n \n worker_type_code\n \n as \n \n worker_type_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_tenure_eligible as is_academic_tenure_eligible,\n availability_date,\n available_for_hire as is_available_for_hire,\n available_for_overlap as is_available_for_overlap,\n available_for_recruiting as is_available_for_recruiting,\n closed as is_closed,\n compensation_grade_code,\n compensation_grade_profile_code,\n compensation_package_code,\n compensation_step_code,\n critical_job as is_critical_job,\n difficulty_to_fill_code,\n earliest_hire_date,\n earliest_overlap_date,\n effective_date,\n hiring_freeze as is_hiring_freeze,\n id as position_id,\n job_description,\n job_description_summary,\n job_posting_title,\n position_code,\n position_time_type_code,\n primary_compensation_basis,\n primary_compensation_basis_amount_change,\n primary_compensation_basis_percent_change,\n supervisory_organization_id,\n work_shift_required as is_work_shift_required,\n worker_for_filled_position_id,\n worker_position_id,\n worker_type_code\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), position_data as (\n\n select *\n from __dbt__cte__stg_workday__position\n),\n\nposition_job_profile_data as (\n\n select *\n from __dbt__cte__stg_workday__position_job_profile\n),\n\nposition_data_enhanced as (\n\n select\n position_data.position_id,\n position_data.source_relation,\n position_data.position_code,\n position_data.job_posting_title,\n position_data.effective_date, \n position_data.is_closed,\n position_data.is_hiring_freeze,\n position_data.is_available_for_hire,\n position_data.availability_date,\n position_data.is_available_for_recruiting,\n position_data.earliest_hire_date,\n position_data.is_available_for_overlap,\n position_data.earliest_overlap_date,\n position_data.worker_for_filled_position_id,\n position_data.worker_type_code, \n position_data.position_time_type_code,\n position_data.supervisory_organization_id, \n position_job_profile_data.job_profile_id,\n position_data.compensation_package_code,\n position_data.compensation_grade_code,\n position_data.compensation_grade_profile_code\n from position_data\n left join position_job_profile_data \n on position_job_profile_data.position_id = position_data.position_id\n and position_job_profile_data.source_relation = position_data.source_relation\n)\n\nselect *\nfrom position_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.239470Z", "completed_at": "2024-04-03T15:31:23.245117Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.253092Z", "completed_at": "2024-04-03T15:31:23.253099Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01677083969116211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_job_profile_source_relation__job_profile_id__position_id.a1a5a991fb", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, job_profile_id, position_id\n from __dbt__cte__stg_workday__position_job_profile\n group by source_relation, job_profile_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.245586Z", "completed_at": "2024-04-03T15:31:23.253636Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.256083Z", "completed_at": "2024-04-03T15:31:23.256090Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.013374090194702148, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_job_profile_id.214e63eb51", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select job_profile_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.250102Z", "completed_at": "2024-04-03T15:31:23.255146Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.257787Z", "completed_at": "2024-04-03T15:31:23.257792Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.014269113540649414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_job_profile_position_id.edebffbee7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_job_profile as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_job_profile_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n difficulty_to_fill_code\n \n as \n \n difficulty_to_fill_code\n \n, \n \n \n is_critical_job\n \n as \n \n is_critical_job\n \n, \n \n \n job_category_code\n \n as \n \n job_category_code\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n difficulty_to_fill_code,\n is_critical_job,\n job_category_code,\n job_profile_id,\n management_level_code,\n name as position_job_profile_name,\n position_id,\n work_shift_required as is_work_shift_required\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_job_profile\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.259096Z", "completed_at": "2024-04-03T15:31:23.265044Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.272591Z", "completed_at": "2024-04-03T15:31:23.272598Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.016424894332885742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__position_organization_source_relation__organization_id__position_id.34a4df1e63", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, organization_id, position_id\n from __dbt__cte__stg_workday__position_organization\n group by source_relation, organization_id, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.265479Z", "completed_at": "2024-04-03T15:31:23.273416Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.275053Z", "completed_at": "2024-04-03T15:31:23.275056Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.012525081634521484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_organization_id.567af692ad", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.269134Z", "completed_at": "2024-04-03T15:31:23.273983Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.275514Z", "completed_at": "2024-04-03T15:31:23.275518Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.016236066818237305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__position_organization_position_id.f62eb486b7", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n position_id,\n type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__position_organization\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.276199Z", "completed_at": "2024-04-03T15:31:23.282693Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.329184Z", "completed_at": "2024-04-03T15:31:23.329190Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.05538797378540039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_history_unique_key.20bf1dd638", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.325642Z", "completed_at": "2024-04-03T15:31:23.354930Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.391798Z", "completed_at": "2024-04-03T15:31:23.391806Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.11050820350646973, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_history_history_unique_key.48173a6d72", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.283636Z", "completed_at": "2024-04-03T15:31:23.361672Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.392178Z", "completed_at": "2024-04-03T15:31:23.392188Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.11151409149169922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_history_worker_id.2cb7a23eb5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.331064Z", "completed_at": "2024-04-03T15:31:23.394122Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.395726Z", "completed_at": "2024-04-03T15:31:23.395730Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.06927490234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.int_workday__employee_history", "compiled": true, "compiled_code": "\n\nwith __dbt__cte__stg_workday__worker_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id, \n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n cast(end_employment_date as timestamp) as end_employment_date, \n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n cast(termination_date as timestamp) as termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select\n md5(cast(coalesce(cast(id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n id as worker_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender, \n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou, \n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fill_columns\n)\n\nselect *\nfrom final\n), worker_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_history\n),\n\nworker_position_history as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_history\n),\n\npersonal_information_history as (\n\n select *\n from __dbt__cte__stg_workday__personal_information_history\n),\n\nworker_start_records as (\n\n select worker_id,\n source_relation, \n _fivetran_start\n from worker_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start \n from worker_position_history\n union distinct\n select worker_id,\n source_relation, \n _fivetran_start\n from personal_information_history\n order by worker_id, source_relation, _fivetran_start \n),\n\nworker_history_end_values as (\n\n select *,\n lead(\n\n _fivetran_start + ((interval '1 microsecond') * (-1))\n\n ) over(partition by worker_id, source_relation order by _fivetran_start) as eventual_fivetran_end\n from worker_start_records \n),\n\nworker_history_scd as (\n\n select *,\n coalesce(cast(eventual_fivetran_end as timestamp),\n cast('9999-12-31 23:59:59.999000' as timestamp)) as _fivetran_end\n from worker_history_end_values\n),\n\nemployee_history_scd as (\n\n select \n worker_history_scd.worker_id,\n worker_history_scd.source_relation,\n worker_position_history.position_id,\n worker_history_scd._fivetran_start,\n worker_history_scd._fivetran_end,\n worker_history._fivetran_active as is_wh_fivetran_active,\n worker_position_history._fivetran_active as is_wph_fivetran_active,\n personal_information_history._fivetran_active as is_pih_fivetran_active, \n worker_history.academic_tenure_date,\n worker_history.is_active,\n worker_history.active_status_date,\n worker_history.annual_currency_summary_currency,\n worker_history.annual_currency_summary_frequency,\n worker_history.annual_currency_summary_primary_compensation_basis,\n worker_history.annual_currency_summary_total_base_pay,\n worker_history.annual_currency_summary_total_salary_and_allowances,\n worker_history.annual_summary_currency,\n worker_history.annual_summary_frequency,\n worker_history.annual_summary_primary_compensation_basis,\n worker_history.annual_summary_total_base_pay,\n worker_history.annual_summary_total_salary_and_allowances,\n worker_history.benefits_service_date,\n worker_history.company_service_date,\n worker_history.compensation_effective_date,\n worker_history.compensation_grade_id,\n worker_history.compensation_grade_profile_id,\n worker_history.continuous_service_date,\n worker_history.contract_assignment_details,\n worker_history.contract_currency_code,\n worker_history.contract_end_date,\n worker_history.contract_frequency_name,\n worker_history.contract_pay_rate,\n worker_history.contract_vendor_name,\n worker_history.date_entered_workforce,\n worker_history.days_unemployed,\n worker_history.eligible_for_hire,\n worker_history.eligible_for_rehire_on_latest_termination,\n worker_history.employee_compensation_currency,\n worker_history.employee_compensation_frequency,\n worker_history.employee_compensation_primary_compensation_basis,\n worker_history.employee_compensation_total_base_pay,\n worker_history.employee_compensation_total_salary_and_allowances,\n worker_history.end_employment_date, \n worker_history.expected_date_of_return,\n worker_history.expected_retirement_date,\n worker_history.first_day_of_work,\n worker_history.is_has_international_assignment,\n worker_history.hire_date,\n worker_history.hire_reason,\n worker_history.is_hire_rescinded,\n worker_history.home_country,\n worker_history.hourly_frequency_currency,\n worker_history.hourly_frequency_frequency,\n worker_history.hourly_frequency_primary_compensation_basis,\n worker_history.hourly_frequency_total_base_pay,\n worker_history.hourly_frequency_total_salary_and_allowances,\n worker_history.last_datefor_which_paid,\n worker_history.local_termination_reason,\n worker_history.months_continuous_prior_employment,\n worker_history.is_not_returning,\n worker_history.original_hire_date,\n worker_history.pay_group_frequency_currency,\n worker_history.pay_group_frequency_frequency,\n worker_history.pay_group_frequency_primary_compensation_basis,\n worker_history.pay_group_frequency_total_base_pay,\n worker_history.pay_group_frequency_total_salary_and_allowances,\n worker_history.pay_through_date,\n worker_history.primary_termination_category,\n worker_history.primary_termination_reason,\n worker_history.probation_end_date,\n worker_history.probation_start_date,\n worker_history.reason_reference_id,\n worker_history.is_regrettable_termination,\n worker_history.is_rehire,\n worker_history.resignation_date,\n worker_history.is_retired,\n worker_history.retirement_date,\n worker_history.retirement_eligibility_date,\n worker_history.is_return_unknown,\n worker_history.seniority_date,\n worker_history.severance_date,\n worker_history.is_terminated,\n worker_history.termination_date,\n worker_history.is_termination_involuntary,\n worker_history.termination_last_day_of_work,\n worker_history.time_off_service_date,\n worker_history.universal_id,\n worker_history.user_id,\n worker_history.vesting_date,\n worker_history.worker_code,\n worker_position_history.position_location,\n worker_position_history.is_exclude_from_head_count,\n worker_position_history.fte_percent,\n worker_position_history.is_job_exempt,\n worker_position_history.is_specify_paid_fte,\n worker_position_history.is_specify_working_fte,\n worker_position_history.is_work_shift_required,\n worker_position_history.academic_pay_setup_data_annual_work_period_end_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_start_date,\n worker_position_history.academic_pay_setup_data_annual_work_period_work_percent_of_year,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_end_date,\n worker_position_history.academic_pay_setup_data_disbursement_plan_period_start_date,\n worker_position_history.business_site_summary_display_language,\n worker_position_history.business_site_summary_local,\n worker_position_history.business_site_summary_location_type,\n worker_position_history.business_site_summary_name,\n worker_position_history.business_site_summary_scheduled_weekly_hours,\n worker_position_history.business_site_summary_time_profile,\n worker_position_history.business_title,\n worker_position_history.is_critical_job,\n worker_position_history.default_weekly_hours,\n worker_position_history.difficulty_to_fill,\n worker_position_history.position_effective_date,\n worker_position_history.employee_type,\n worker_position_history.position_end_date,\n worker_position_history.expected_assignment_end_date,\n worker_position_history.external_employee,\n worker_position_history.federal_withholding_fein,\n worker_position_history.frequency,\n worker_position_history.headcount_restriction_code,\n worker_position_history.host_country,\n worker_position_history.international_assignment_type,\n worker_position_history.is_primary_job,\n worker_position_history.job_profile_id,\n worker_position_history.management_level_code,\n worker_position_history.paid_fte,\n worker_position_history.pay_group,\n worker_position_history.pay_rate,\n worker_position_history.pay_rate_type,\n worker_position_history.payroll_entity,\n worker_position_history.payroll_file_number,\n worker_position_history.regular_paid_equivalent_hours,\n worker_position_history.scheduled_weekly_hours,\n worker_position_history.position_start_date,\n worker_position_history.start_international_assignment_reason,\n worker_position_history.work_hours_profile,\n worker_position_history.work_shift,\n worker_position_history.work_space,\n worker_position_history.worker_hours_profile_classification,\n worker_position_history.working_fte,\n worker_position_history.working_time_frequency,\n worker_position_history.working_time_unit,\n worker_position_history.working_time_value,\n personal_information_history.additional_nationality,\n personal_information_history.blood_type,\n personal_information_history.citizenship_status,\n personal_information_history.city_of_birth,\n personal_information_history.city_of_birth_code,\n personal_information_history.country_of_birth,\n personal_information_history.date_of_birth,\n personal_information_history.date_of_death,\n personal_information_history.gender, \n personal_information_history.is_hispanic_or_latino,\n personal_information_history.hukou_locality,\n personal_information_history.hukou_postal_code,\n personal_information_history.hukou_region,\n personal_information_history.hukou_subregion,\n personal_information_history.hukou_type,\n personal_information_history.last_medical_exam_date,\n personal_information_history.last_medical_exam_valid_to,\n personal_information_history.is_local_hukou, \n personal_information_history.marital_status,\n personal_information_history.marital_status_date,\n personal_information_history.medical_exam_notes,\n personal_information_history.native_region,\n personal_information_history.native_region_code,\n personal_information_history.personnel_file_agency,\n personal_information_history.political_affiliation,\n personal_information_history.primary_nationality,\n personal_information_history.region_of_birth,\n personal_information_history.region_of_birth_code,\n personal_information_history.religion,\n personal_information_history.social_benefit,\n personal_information_history.is_tobacco_use,\n personal_information_history.type\n\n from worker_history_scd\n\n left join worker_history \n on worker_history_scd.worker_id = worker_history.worker_id\n and worker_history_scd.source_relation = worker_history.source_relation\n and worker_history_scd._fivetran_start <= worker_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_history._fivetran_start\n\n left join worker_position_history \n on worker_history_scd.worker_id = worker_position_history.worker_id\n and worker_history_scd.source_relation = worker_position_history.source_relation\n and worker_history_scd._fivetran_start <= worker_position_history._fivetran_end\n and worker_history_scd._fivetran_end >= worker_position_history._fivetran_start\n\n left join personal_information_history\n on worker_history_scd.worker_id = personal_information_history.worker_id\n and worker_history_scd.source_relation = personal_information_history.source_relation\n and worker_history_scd._fivetran_start <= personal_information_history._fivetran_end\n and worker_history_scd._fivetran_end >= personal_information_history._fivetran_start\n\n),\n\nemployee_key as (\n\n select md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n cast(_fivetran_start as date) as _fivetran_date,\n employee_history_scd.*\n from employee_history_scd\n),\n\nhistory_surrogate_key as (\n\n select md5(cast(coalesce(cast(employee_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n employee_key.*\n from employee_key\n)\n\nselect * \nfrom history_surrogate_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.396137Z", "completed_at": "2024-04-03T15:31:23.404378Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.408488Z", "completed_at": "2024-04-03T15:31:23.408494Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.014544963836669922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_history_unique_key.a8e6e3f55e", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.400044Z", "completed_at": "2024-04-03T15:31:23.405110Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.409480Z", "completed_at": "2024-04-03T15:31:23.409483Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01495981216430664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_position_id.02ef0674c9", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.405374Z", "completed_at": "2024-04-03T15:31:23.410426Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.411987Z", "completed_at": "2024-04-03T15:31:23.411990Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.01245880126953125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_history_worker_id.b7059c600d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.412207Z", "completed_at": "2024-04-03T15:31:23.427124Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.428973Z", "completed_at": "2024-04-03T15:31:23.428980Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.023294925689697266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_history_history_unique_key.ff18ecb879", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date,\n _fivetran_active,\n business_site_summary_location as position_location,\n exclude_from_head_count as is_exclude_from_head_count,\n full_time_equivalent_percentage as fte_percent,\n job_exempt as is_job_exempt,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n work_shift_required as is_work_shift_required,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n cast(effective_date as timestamp) as position_effective_date,\n employee_type,\n cast(end_date as timestamp) as position_end_date,\n cast(end_employment_date as timestamp) as end_employment_date,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n cast(start_date as timestamp) as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_space,\n worker_hours_profile_classification,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.429259Z", "completed_at": "2024-04-03T15:31:23.434930Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.436563Z", "completed_at": "2024-04-03T15:31:23.436568Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.016013145446777344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_source_relation__position_id__worker_id.307e2e96c3", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, position_id, worker_id\n from __dbt__cte__stg_workday__worker_position\n group by source_relation, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.439980Z", "completed_at": "2024-04-03T15:31:23.445238Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.450842Z", "completed_at": "2024-04-03T15:31:23.450850Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01605391502380371, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_worker_id.98db71611d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.436806Z", "completed_at": "2024-04-03T15:31:23.445493Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.451127Z", "completed_at": "2024-04-03T15:31:23.451131Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01718282699584961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_position_id.4dfd73b611", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.445779Z", "completed_at": "2024-04-03T15:31:23.451943Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.453773Z", "completed_at": "2024-04-03T15:31:23.453776Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.010179996490478516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_leave_status_source_relation__leave_request_event_id__worker_id.19d4edcafd", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, leave_request_event_id, worker_id\n from __dbt__cte__stg_workday__worker_leave_status\n group by source_relation, leave_request_event_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.455220Z", "completed_at": "2024-04-03T15:31:23.463776Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.467158Z", "completed_at": "2024-04-03T15:31:23.467164Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.014435291290283203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_leave_request_event_id.a172377761", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select leave_request_event_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere leave_request_event_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.459904Z", "completed_at": "2024-04-03T15:31:23.466888Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.468439Z", "completed_at": "2024-04-03T15:31:23.468444Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.015338897705078125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_leave_status_worker_id.c899fb3a61", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_leave_status as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_leave_status_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n adoption_notification_date\n \n as \n \n adoption_notification_date\n \n, \n \n \n adoption_placement_date\n \n as \n \n adoption_placement_date\n \n, \n \n \n age_of_dependent\n \n as \n \n age_of_dependent\n \n, \n \n \n benefits_effect\n \n as \n \n benefits_effect\n \n, \n \n \n caesarean_section_birth\n \n as \n \n caesarean_section_birth\n \n, \n \n \n child_birth_date\n \n as \n \n child_birth_date\n \n, \n \n \n child_sdate_of_death\n \n as \n \n child_sdate_of_death\n \n, \n \n \n continuous_service_accrual_effect\n \n as \n \n continuous_service_accrual_effect\n \n, \n \n \n date_baby_arrived_home_from_hospital\n \n as \n \n date_baby_arrived_home_from_hospital\n \n, \n \n \n date_child_entered_country\n \n as \n \n date_child_entered_country\n \n, \n \n \n date_of_recall\n \n as \n \n date_of_recall\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n estimated_leave_end_date\n \n as \n \n estimated_leave_end_date\n \n, \n \n \n expected_due_date\n \n as \n \n expected_due_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n last_date_for_which_paid\n \n as \n \n last_date_for_which_paid\n \n, \n \n \n leave_end_date\n \n as \n \n leave_end_date\n \n, \n \n \n leave_entitlement_override\n \n as \n \n leave_entitlement_override\n \n, \n \n \n leave_last_day_of_work\n \n as \n \n leave_last_day_of_work\n \n, \n \n \n leave_of_absence_type\n \n as \n \n leave_of_absence_type\n \n, \n \n \n leave_percentage\n \n as \n \n leave_percentage\n \n, \n \n \n leave_request_event_id\n \n as \n \n leave_request_event_id\n \n, \n \n \n leave_return_event\n \n as \n \n leave_return_event\n \n, \n \n \n leave_start_date\n \n as \n \n leave_start_date\n \n, \n \n \n leave_status_code\n \n as \n \n leave_status_code\n \n, \n \n \n leave_type_reason\n \n as \n \n leave_type_reason\n \n, \n \n \n location_during_leave\n \n as \n \n location_during_leave\n \n, \n \n \n multiple_child_indicator\n \n as \n \n multiple_child_indicator\n \n, \n \n \n number_of_babies_adopted_children\n \n as \n \n number_of_babies_adopted_children\n \n, \n \n \n number_of_child_dependents\n \n as \n \n number_of_child_dependents\n \n, \n \n \n number_of_previous_births\n \n as \n \n number_of_previous_births\n \n, \n \n \n number_of_previous_maternity_leaves\n \n as \n \n number_of_previous_maternity_leaves\n \n, \n \n \n on_leave\n \n as \n \n on_leave\n \n, \n \n \n paid_time_off_accrual_effect\n \n as \n \n paid_time_off_accrual_effect\n \n, \n \n \n payroll_effect\n \n as \n \n payroll_effect\n \n, \n \n \n single_parent_indicator\n \n as \n \n single_parent_indicator\n \n, \n \n \n social_security_disability_code\n \n as \n \n social_security_disability_code\n \n, \n \n \n stock_vesting_effect\n \n as \n \n stock_vesting_effect\n \n, \n \n \n stop_payment_date\n \n as \n \n stop_payment_date\n \n, \n \n \n week_of_confinement\n \n as \n \n week_of_confinement\n \n, \n \n \n work_related\n \n as \n \n work_related\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n adoption_notification_date,\n adoption_placement_date,\n age_of_dependent,\n benefits_effect as is_benefits_effect,\n child_birth_date,\n child_sdate_of_death,\n continuous_service_accrual_effect as is_continuous_service_accrual_effect,\n date_baby_arrived_home_from_hospital,\n date_child_entered_country,\n date_of_recall,\n description,\n estimated_leave_end_date,\n expected_due_date,\n first_day_of_work,\n last_date_for_which_paid,\n leave_end_date,\n leave_entitlement_override,\n leave_last_day_of_work,\n leave_of_absence_type,\n leave_percentage,\n leave_request_event_id,\n leave_return_event,\n leave_start_date,\n leave_status_code,\n leave_type_reason,\n location_during_leave,\n multiple_child_indicator as is_multiple_child_indicator,\n number_of_babies_adopted_children,\n number_of_child_dependents,\n number_of_previous_births,\n number_of_previous_maternity_leaves,\n on_leave as is_on_leave,\n paid_time_off_accrual_effect as is_paid_time_off_accrual_effect,\n payroll_effect as is_payroll_effect,\n single_parent_indicator as is_single_parent_indicator,\n caesarean_section_birth as is_caesarean_section_birth,\n social_security_disability_code,\n stock_vesting_effect as is_stock_vesting_effect,\n stop_payment_date,\n week_of_confinement,\n work_related as is_work_related,\n worker_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_leave_status\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.464034Z", "completed_at": "2024-04-03T15:31:23.468186Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.469992Z", "completed_at": "2024-04-03T15:31:23.469996Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.007777690887451172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__job_overview_source_relation__job_profile_id.4c0858721c", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, job_profile_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\n group by source_relation, job_profile_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.471469Z", "completed_at": "2024-04-03T15:31:23.489204Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.489737Z", "completed_at": "2024-04-03T15:31:23.489746Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.020565032958984375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__job_overview_job_profile_id.dc998c6857", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect job_profile_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__job_overview\"\nwhere job_profile_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.475047Z", "completed_at": "2024-04-03T15:31:23.490713Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.492200Z", "completed_at": "2024-04-03T15:31:23.492204Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.027842044830322266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__organization_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n availability_date\n \n as \n \n availability_date\n \n, \n \n \n available_for_hire\n \n as \n \n available_for_hire\n \n, \n \n \n code\n \n as \n \n code\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n external_url\n \n as \n \n external_url\n \n, \n \n \n hiring_freeze\n \n as \n \n hiring_freeze\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n inactive\n \n as \n \n inactive\n \n, \n \n \n inactive_date\n \n as \n \n inactive_date\n \n, \n \n \n include_manager_in_name\n \n as \n \n include_manager_in_name\n \n, \n \n \n include_organization_code_in_name\n \n as \n \n include_organization_code_in_name\n \n, \n \n \n last_updated_date_time\n \n as \n \n last_updated_date_time\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n manager_id\n \n as \n \n manager_id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n organization_code\n \n as \n \n organization_code\n \n, \n \n \n organization_owner_id\n \n as \n \n organization_owner_id\n \n, \n \n \n staffing_model\n \n as \n \n staffing_model\n \n, \n \n \n sub_type\n \n as \n \n sub_type\n \n, \n \n \n superior_organization_id\n \n as \n \n superior_organization_id\n \n, \n \n \n supervisory_position_availability_date\n \n as \n \n supervisory_position_availability_date\n \n, \n \n \n supervisory_position_earliest_hire_date\n \n as \n \n supervisory_position_earliest_hire_date\n \n, \n \n \n supervisory_position_time_type\n \n as \n \n supervisory_position_time_type\n \n, \n \n \n supervisory_position_worker_type\n \n as \n \n supervisory_position_worker_type\n \n, \n \n \n top_level_organization_id\n \n as \n \n top_level_organization_id\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n visibility\n \n as \n \n visibility\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n availability_date,\n available_for_hire as is_available_for_hire,\n code,\n description as organization_description,\n external_url,\n hiring_freeze as is_hiring_freeze,\n id as organization_id,\n inactive as is_inactive,\n inactive_date,\n include_manager_in_name as is_include_manager_in_name,\n include_organization_code_in_name as is_include_organization_code_in_name,\n last_updated_date_time,\n location as organization_location,\n manager_id,\n name as organization_name,\n organization_code,\n organization_owner_id,\n staffing_model,\n sub_type as organization_sub_type,\n superior_organization_id,\n supervisory_position_availability_date,\n supervisory_position_earliest_hire_date,\n supervisory_position_time_type,\n supervisory_position_worker_type,\n top_level_organization_id,\n type as organization_type,\n visibility\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__organization_role as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__organization_role_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n organization_role_code\n \n as \n \n organization_role_code\n \n, \n \n \n role_id\n \n as \n \n role_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n organization_id,\n organization_role_code,\n role_id as organization_role_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), organization_data as (\n\n select * \n from __dbt__cte__stg_workday__organization\n),\n\norganization_role_data as (\n\n select * \n from __dbt__cte__stg_workday__organization_role\n),\n\nworker_position_organization as (\n\n select *\n from __dbt__cte__stg_workday__worker_position_organization\n),\n\norganization_roles as (\n\n select \n organization_role_data.organization_id,\n organization_role_data.source_relation,\n organization_role_data.organization_role_id,\n organization_role_data.organization_role_code,\n worker_position_organization.worker_id,\n worker_position_organization.position_id\n from organization_role_data\n left join worker_position_organization\n on organization_role_data.organization_id = worker_position_organization.organization_id \n and organization_role_data.source_relation = worker_position_organization.source_relation\n),\n\norganization_data_enhanced as (\n\n select \n organization_data.organization_id,\n organization_roles.organization_role_id,\n organization_roles.worker_id,\n organization_roles.position_id,\n organization_data.source_relation,\n organization_data.organization_code,\n organization_data.organization_name,\n organization_data.organization_type,\n organization_data.organization_sub_type,\n organization_data.superior_organization_id,\n organization_data.top_level_organization_id, \n organization_data.manager_id,\n organization_roles.organization_role_code\n from organization_data\n left join organization_roles \n on organization_roles.organization_id = organization_data.organization_id \n and organization_roles.source_relation = organization_data.source_relation\n)\n\nselect *\nfrom organization_data_enhanced", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.481407Z", "completed_at": "2024-04-03T15:31:23.491301Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.495996Z", "completed_at": "2024-04-03T15:31:23.496004Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.024908065795898438, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_stg_workday__worker_position_organization_source_relation__worker_id__position_id__organization_id.d63632b244", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), validation_errors as (\n\n select\n source_relation, worker_id, position_id, organization_id\n from __dbt__cte__stg_workday__worker_position_organization\n group by source_relation, worker_id, position_id, organization_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.492439Z", "completed_at": "2024-04-03T15:31:23.508360Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.512434Z", "completed_at": "2024-04-03T15:31:23.512442Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.022227048873901367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_organization_id.a79000dec1", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.501829Z", "completed_at": "2024-04-03T15:31:23.512701Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.514453Z", "completed_at": "2024-04-03T15:31:23.514456Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.014841794967651367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_position_id.196dd9786d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.508706Z", "completed_at": "2024-04-03T15:31:23.513932Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.515899Z", "completed_at": "2024-04-03T15:31:23.515905Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.015851974487304688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_worker_id.d8cf960f0b", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n position_id,\n worker_id,\n _fivetran_synced, \n index, \n date_of_pay_group_assignment,\n organization_id,\n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.517145Z", "completed_at": "2024-04-03T15:31:23.521740Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.534484Z", "completed_at": "2024-04-03T15:31:23.534493Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.02060103416442871, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__position_overview_source_relation__position_id.ab5c35f587", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, position_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\n group by source_relation, position_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.522022Z", "completed_at": "2024-04-03T15:31:23.534770Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.536572Z", "completed_at": "2024-04-03T15:31:23.536575Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01720714569091797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__position_overview_position_id.603beb3f22", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__position_overview\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.553800Z", "completed_at": "2024-04-03T15:31:23.557519Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.559032Z", "completed_at": "2024-04-03T15:31:23.559037Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.007995843887329102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.dbt_utils_unique_combination_of_columns_workday__organization_overview_source_relation__organization_id__organization_role_id__position_id__worker_id.75cff5f3e5", "compiled": true, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n source_relation, organization_id, organization_role_id, position_id, worker_id\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\n group by source_relation, organization_id, organization_role_id, position_id, worker_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.562071Z", "completed_at": "2024-04-03T15:31:23.568129Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.568636Z", "completed_at": "2024-04-03T15:31:23.568642Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00976109504699707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_id.5b1070ba31", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.565508Z", "completed_at": "2024-04-03T15:31:23.583545Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.584054Z", "completed_at": "2024-04-03T15:31:23.584060Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.01959705352783203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__organization_overview_organization_role_id.a909dac412", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_role_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__organization_overview\"\nwhere organization_role_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.570096Z", "completed_at": "2024-04-03T15:31:23.584896Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.585330Z", "completed_at": "2024-04-03T15:31:23.585334Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.01612687110900879, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_overview", "compiled": true, "compiled_code": "with __dbt__cte__stg_workday__worker as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_tenure_date\n \n as \n \n academic_tenure_date\n \n, \n \n \n active\n \n as \n \n active\n \n, \n \n \n active_status_date\n \n as \n \n active_status_date\n \n, \n \n \n annual_currency_summary_currency\n \n as \n \n annual_currency_summary_currency\n \n, \n \n \n annual_currency_summary_frequency\n \n as \n \n annual_currency_summary_frequency\n \n, \n \n \n annual_currency_summary_primary_compensation_basis\n \n as \n \n annual_currency_summary_primary_compensation_basis\n \n, \n \n \n annual_currency_summary_total_base_pay\n \n as \n \n annual_currency_summary_total_base_pay\n \n, \n \n \n annual_currency_summary_total_salary_and_allowances\n \n as \n \n annual_currency_summary_total_salary_and_allowances\n \n, \n \n \n annual_summary_currency\n \n as \n \n annual_summary_currency\n \n, \n \n \n annual_summary_frequency\n \n as \n \n annual_summary_frequency\n \n, \n \n \n annual_summary_primary_compensation_basis\n \n as \n \n annual_summary_primary_compensation_basis\n \n, \n \n \n annual_summary_total_base_pay\n \n as \n \n annual_summary_total_base_pay\n \n, \n \n \n annual_summary_total_salary_and_allowances\n \n as \n \n annual_summary_total_salary_and_allowances\n \n, \n \n \n benefits_service_date\n \n as \n \n benefits_service_date\n \n, \n \n \n company_service_date\n \n as \n \n company_service_date\n \n, \n \n \n compensation_effective_date\n \n as \n \n compensation_effective_date\n \n, \n \n \n compensation_grade_id\n \n as \n \n compensation_grade_id\n \n, \n \n \n compensation_grade_profile_id\n \n as \n \n compensation_grade_profile_id\n \n, \n \n \n continuous_service_date\n \n as \n \n continuous_service_date\n \n, \n \n \n contract_assignment_details\n \n as \n \n contract_assignment_details\n \n, \n \n \n contract_currency_code\n \n as \n \n contract_currency_code\n \n, \n \n \n contract_end_date\n \n as \n \n contract_end_date\n \n, \n \n \n contract_frequency_name\n \n as \n \n contract_frequency_name\n \n, \n \n \n contract_pay_rate\n \n as \n \n contract_pay_rate\n \n, \n \n \n contract_vendor_name\n \n as \n \n contract_vendor_name\n \n, \n \n \n date_entered_workforce\n \n as \n \n date_entered_workforce\n \n, \n \n \n days_unemployed\n \n as \n \n days_unemployed\n \n, \n \n \n eligible_for_hire\n \n as \n \n eligible_for_hire\n \n, \n \n \n eligible_for_rehire_on_latest_termination\n \n as \n \n eligible_for_rehire_on_latest_termination\n \n, \n \n \n employee_compensation_currency\n \n as \n \n employee_compensation_currency\n \n, \n \n \n employee_compensation_frequency\n \n as \n \n employee_compensation_frequency\n \n, \n \n \n employee_compensation_primary_compensation_basis\n \n as \n \n employee_compensation_primary_compensation_basis\n \n, \n \n \n employee_compensation_total_base_pay\n \n as \n \n employee_compensation_total_base_pay\n \n, \n \n \n employee_compensation_total_salary_and_allowances\n \n as \n \n employee_compensation_total_salary_and_allowances\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n expected_date_of_return\n \n as \n \n expected_date_of_return\n \n, \n \n \n expected_retirement_date\n \n as \n \n expected_retirement_date\n \n, \n \n \n first_day_of_work\n \n as \n \n first_day_of_work\n \n, \n \n \n has_international_assignment\n \n as \n \n has_international_assignment\n \n, \n \n \n hire_date\n \n as \n \n hire_date\n \n, \n \n \n hire_reason\n \n as \n \n hire_reason\n \n, \n \n \n hire_rescinded\n \n as \n \n hire_rescinded\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n hourly_frequency_currency\n \n as \n \n hourly_frequency_currency\n \n, \n \n \n hourly_frequency_frequency\n \n as \n \n hourly_frequency_frequency\n \n, \n \n \n hourly_frequency_primary_compensation_basis\n \n as \n \n hourly_frequency_primary_compensation_basis\n \n, \n \n \n hourly_frequency_total_base_pay\n \n as \n \n hourly_frequency_total_base_pay\n \n, \n \n \n hourly_frequency_total_salary_and_allowances\n \n as \n \n hourly_frequency_total_salary_and_allowances\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_datefor_which_paid\n \n as \n \n last_datefor_which_paid\n \n, \n \n \n local_termination_reason\n \n as \n \n local_termination_reason\n \n, \n \n \n months_continuous_prior_employment\n \n as \n \n months_continuous_prior_employment\n \n, \n \n \n not_returning\n \n as \n \n not_returning\n \n, \n \n \n original_hire_date\n \n as \n \n original_hire_date\n \n, \n \n \n pay_group_frequency_currency\n \n as \n \n pay_group_frequency_currency\n \n, \n \n \n pay_group_frequency_frequency\n \n as \n \n pay_group_frequency_frequency\n \n, \n \n \n pay_group_frequency_primary_compensation_basis\n \n as \n \n pay_group_frequency_primary_compensation_basis\n \n, \n \n \n pay_group_frequency_total_base_pay\n \n as \n \n pay_group_frequency_total_base_pay\n \n, \n \n \n pay_group_frequency_total_salary_and_allowances\n \n as \n \n pay_group_frequency_total_salary_and_allowances\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n primary_termination_category\n \n as \n \n primary_termination_category\n \n, \n \n \n primary_termination_reason\n \n as \n \n primary_termination_reason\n \n, \n \n \n probation_end_date\n \n as \n \n probation_end_date\n \n, \n \n \n probation_start_date\n \n as \n \n probation_start_date\n \n, \n \n \n reason_reference_id\n \n as \n \n reason_reference_id\n \n, \n \n \n regrettable_termination\n \n as \n \n regrettable_termination\n \n, \n \n \n rehire\n \n as \n \n rehire\n \n, \n \n \n resignation_date\n \n as \n \n resignation_date\n \n, \n \n \n retired\n \n as \n \n retired\n \n, \n \n \n retirement_date\n \n as \n \n retirement_date\n \n, \n \n \n retirement_eligibility_date\n \n as \n \n retirement_eligibility_date\n \n, \n \n \n return_unknown\n \n as \n \n return_unknown\n \n, \n \n \n seniority_date\n \n as \n \n seniority_date\n \n, \n \n \n severance_date\n \n as \n \n severance_date\n \n, \n \n \n terminated\n \n as \n \n terminated\n \n, \n \n \n termination_date\n \n as \n \n termination_date\n \n, \n \n \n termination_involuntary\n \n as \n \n termination_involuntary\n \n, \n \n \n termination_last_day_of_work\n \n as \n \n termination_last_day_of_work\n \n, \n \n \n time_off_service_date\n \n as \n \n time_off_service_date\n \n, \n \n \n universal_id\n \n as \n \n universal_id\n \n, \n \n \n user_id\n \n as \n \n user_id\n \n, \n \n \n vesting_date\n \n as \n \n vesting_date\n \n, \n \n \n worker_code\n \n as \n \n worker_code\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_tenure_date,\n active as is_active,\n active_status_date,\n annual_currency_summary_currency,\n annual_currency_summary_frequency,\n annual_currency_summary_primary_compensation_basis,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_total_salary_and_allowances,\n annual_summary_currency,\n annual_summary_frequency,\n annual_summary_primary_compensation_basis,\n annual_summary_total_base_pay,\n annual_summary_total_salary_and_allowances,\n benefits_service_date,\n company_service_date,\n compensation_effective_date,\n compensation_grade_id,\n compensation_grade_profile_id,\n continuous_service_date,\n contract_assignment_details,\n contract_currency_code,\n contract_end_date,\n contract_frequency_name,\n contract_pay_rate,\n contract_vendor_name,\n date_entered_workforce,\n days_unemployed,\n eligible_for_hire,\n eligible_for_rehire_on_latest_termination,\n employee_compensation_currency,\n employee_compensation_frequency,\n employee_compensation_primary_compensation_basis,\n employee_compensation_total_base_pay,\n employee_compensation_total_salary_and_allowances,\n end_employment_date,\n expected_date_of_return,\n expected_retirement_date,\n first_day_of_work,\n has_international_assignment as is_has_international_assignment,\n hire_date,\n hire_reason,\n hire_rescinded as is_hire_rescinded,\n home_country,\n hourly_frequency_currency,\n hourly_frequency_frequency,\n hourly_frequency_primary_compensation_basis,\n hourly_frequency_total_base_pay,\n hourly_frequency_total_salary_and_allowances,\n last_datefor_which_paid,\n local_termination_reason,\n months_continuous_prior_employment,\n not_returning as is_not_returning,\n original_hire_date,\n pay_group_frequency_currency,\n pay_group_frequency_frequency,\n pay_group_frequency_primary_compensation_basis,\n pay_group_frequency_total_base_pay,\n pay_group_frequency_total_salary_and_allowances,\n pay_through_date,\n primary_termination_category,\n primary_termination_reason,\n probation_end_date,\n probation_start_date,\n reason_reference_id,\n regrettable_termination as is_regrettable_termination,\n rehire as is_rehire,\n resignation_date,\n retired as is_retired,\n retirement_date,\n retirement_eligibility_date,\n return_unknown as is_return_unknown,\n seniority_date,\n severance_date,\n terminated as is_terminated,\n termination_date,\n termination_involuntary as is_termination_involuntary,\n termination_last_day_of_work,\n time_off_service_date,\n universal_id,\n user_id,\n vesting_date,\n worker_code\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_details as (\nwith worker_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker\n),\n\nworker_details as (\n\n select \n worker_id,\n source_relation,\n worker_code,\n user_id,\n universal_id,\n case when is_active then true else false end as is_user_active,\n case when hire_date <= current_date\n and (termination_date is null or termination_date > current_date)\n then true \n else false \n end as is_employed,\n hire_date,\n case when termination_date > current_date then null\n else termination_date \n end as departure_date, \n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n case\n when is_terminated and is_regrettable_termination then true\n when is_terminated and not is_regrettable_termination then false\n else null\n end as is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n from worker_data\n)\n\nselect * \nfrom worker_details\n), __dbt__cte__stg_workday__personal_information as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n additional_nationality\n \n as \n \n additional_nationality\n \n, \n \n \n blood_type\n \n as \n \n blood_type\n \n, \n \n \n citizenship_status\n \n as \n \n citizenship_status\n \n, \n \n \n city_of_birth\n \n as \n \n city_of_birth\n \n, \n \n \n city_of_birth_code\n \n as \n \n city_of_birth_code\n \n, \n \n \n country_of_birth\n \n as \n \n country_of_birth\n \n, \n \n \n date_of_birth\n \n as \n \n date_of_birth\n \n, \n \n \n date_of_death\n \n as \n \n date_of_death\n \n, \n \n \n gender\n \n as \n \n gender\n \n, \n \n \n hispanic_or_latino\n \n as \n \n hispanic_or_latino\n \n, \n \n \n hukou_locality\n \n as \n \n hukou_locality\n \n, \n \n \n hukou_postal_code\n \n as \n \n hukou_postal_code\n \n, \n \n \n hukou_region\n \n as \n \n hukou_region\n \n, \n \n \n hukou_subregion\n \n as \n \n hukou_subregion\n \n, \n \n \n hukou_type\n \n as \n \n hukou_type\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n last_medical_exam_date\n \n as \n \n last_medical_exam_date\n \n, \n \n \n last_medical_exam_valid_to\n \n as \n \n last_medical_exam_valid_to\n \n, \n \n \n local_hukou\n \n as \n \n local_hukou\n \n, \n \n \n marital_status\n \n as \n \n marital_status\n \n, \n \n \n marital_status_date\n \n as \n \n marital_status_date\n \n, \n \n \n medical_exam_notes\n \n as \n \n medical_exam_notes\n \n, \n \n \n native_region\n \n as \n \n native_region\n \n, \n \n \n native_region_code\n \n as \n \n native_region_code\n \n, \n \n \n personnel_file_agency\n \n as \n \n personnel_file_agency\n \n, \n \n \n political_affiliation\n \n as \n \n political_affiliation\n \n, \n \n \n primary_nationality\n \n as \n \n primary_nationality\n \n, \n \n \n region_of_birth\n \n as \n \n region_of_birth\n \n, \n \n \n region_of_birth_code\n \n as \n \n region_of_birth_code\n \n, \n \n \n religion\n \n as \n \n religion\n \n, \n \n \n social_benefit\n \n as \n \n social_benefit\n \n, \n \n \n tobacco_use\n \n as \n \n tobacco_use\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n id as worker_id,\n source_relation,\n _fivetran_synced,\n additional_nationality,\n blood_type,\n citizenship_status,\n city_of_birth,\n city_of_birth_code,\n country_of_birth,\n date_of_birth,\n date_of_death,\n gender,\n hispanic_or_latino as is_hispanic_or_latino,\n hukou_locality,\n hukou_postal_code,\n hukou_region,\n hukou_subregion,\n hukou_type,\n last_medical_exam_date,\n last_medical_exam_valid_to,\n local_hukou as is_local_hukou,\n marital_status,\n marital_status_date,\n medical_exam_notes,\n native_region,\n native_region_code,\n personnel_file_agency,\n political_affiliation,\n primary_nationality,\n region_of_birth,\n region_of_birth_code,\n religion,\n social_benefit,\n tobacco_use as is_tobacco_use,\n type\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_name as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_name_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n academic_suffix\n \n as \n \n academic_suffix\n \n, \n \n \n additional_name_type\n \n as \n \n additional_name_type\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n first_name\n \n as \n \n first_name\n \n, \n \n \n full_name_singapore_malaysia\n \n as \n \n full_name_singapore_malaysia\n \n, \n \n \n hereditary_suffix\n \n as \n \n hereditary_suffix\n \n, \n \n \n honorary_suffix\n \n as \n \n honorary_suffix\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n last_name\n \n as \n \n last_name\n \n, \n \n \n local_first_name\n \n as \n \n local_first_name\n \n, \n \n \n local_first_name_2\n \n as \n \n local_first_name_2\n \n, \n \n \n local_last_name\n \n as \n \n local_last_name\n \n, \n \n \n local_last_name_2\n \n as \n \n local_last_name_2\n \n, \n \n \n local_middle_name\n \n as \n \n local_middle_name\n \n, \n \n \n local_middle_name_2\n \n as \n \n local_middle_name_2\n \n, \n \n \n local_secondary_last_name\n \n as \n \n local_secondary_last_name\n \n, \n \n \n local_secondary_last_name_2\n \n as \n \n local_secondary_last_name_2\n \n, \n \n \n middle_name\n \n as \n \n middle_name\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n prefix_salutation\n \n as \n \n prefix_salutation\n \n, \n \n \n prefix_title\n \n as \n \n prefix_title\n \n, \n \n \n prefix_title_code\n \n as \n \n prefix_title_code\n \n, \n \n \n professional_suffix\n \n as \n \n professional_suffix\n \n, \n \n \n religious_suffix\n \n as \n \n religious_suffix\n \n, \n \n \n royal_suffix\n \n as \n \n royal_suffix\n \n, \n \n \n secondary_last_name\n \n as \n \n secondary_last_name\n \n, \n \n \n social_suffix\n \n as \n \n social_suffix\n \n, \n \n \n social_suffix_id\n \n as \n \n social_suffix_id\n \n, \n \n \n tertiary_last_name\n \n as \n \n tertiary_last_name\n \n, \n \n \n type\n \n as \n \n type\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n academic_suffix,\n additional_name_type,\n country,\n first_name,\n full_name_singapore_malaysia,\n hereditary_suffix,\n honorary_suffix,\n index,\n last_name,\n local_first_name,\n local_first_name_2,\n local_last_name,\n local_last_name_2,\n local_middle_name,\n local_middle_name_2,\n local_secondary_last_name,\n local_secondary_last_name_2,\n middle_name,\n prefix_salutation,\n prefix_title,\n prefix_title_code,\n professional_suffix,\n religious_suffix,\n royal_suffix,\n secondary_last_name,\n social_suffix,\n social_suffix_id,\n tertiary_last_name,\n type as person_name_type\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__person_contact_email_address as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__person_contact_email_address_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n email_address\n \n as \n \n email_address\n \n, \n \n \n email_code\n \n as \n \n email_code\n \n, \n \n \n email_comment\n \n as \n \n email_comment\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n email_address,\n email_code,\n email_comment,\n id as person_contact_email_address_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__personal_information_ethnicity as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__personal_information_ethnicity_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n ethnicity_code\n \n as \n \n ethnicity_code\n \n, \n \n \n ethnicity_id\n \n as \n \n ethnicity_id\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n ethnicity_code,\n ethnicity_id,\n index\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__stg_workday__military_service as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__military_service_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n discharge_date\n \n as \n \n discharge_date\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n notes\n \n as \n \n notes\n \n, \n \n \n personal_info_system_id\n \n as \n \n personal_info_system_id\n \n, \n \n \n rank\n \n as \n \n rank\n \n, \n \n \n service\n \n as \n \n service\n \n, \n \n \n service_type\n \n as \n \n service_type\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n status_begin_date\n \n as \n \n status_begin_date\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select\n personal_info_system_id as worker_id,\n source_relation,\n _fivetran_synced,\n discharge_date,\n index,\n notes,\n rank,\n service,\n service_type,\n status as military_status,\n status_begin_date\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__personal_details as (\nwith worker_personal_info_data as(\n\n select \n worker_id, \n source_relation,\n date_of_birth,\n gender,\n is_hispanic_or_latino\n from __dbt__cte__stg_workday__personal_information\n),\n\nworker_name as (\n\n select \n worker_id, \n source_relation,\n first_name,\n last_name\n from __dbt__cte__stg_workday__person_name\n where lower(person_name_type) = 'preferred'\n),\n\nworker_email as(\n\n select \n worker_id,\n source_relation,\n email_address\n from __dbt__cte__stg_workday__person_contact_email_address\n where lower(email_code) like '%work_primary%'\n),\n\nworker_ethnicity as (\n\n select \n worker_id,\n source_relation,\n \n string_agg(distinct ethnicity_code, ', ')\n\n as ethnicity_codes\n from __dbt__cte__stg_workday__personal_information_ethnicity\n group by 1, 2\n),\n\nworker_military as (\n\n select \n worker_id,\n source_relation,\n true as is_military_service,\n military_status \n from __dbt__cte__stg_workday__military_service\n),\n\nworker_personal_details as (\n\n select \n worker_personal_info_data.*,\n worker_name.first_name,\n worker_name.last_name,\n worker_email.email_address,\n worker_ethnicity.ethnicity_codes,\n worker_military.military_status\n from worker_personal_info_data\n left join worker_name \n on worker_personal_info_data.worker_id = worker_name.worker_id\n and worker_personal_info_data.source_relation = worker_name.source_relation\n left join worker_email \n on worker_personal_info_data.worker_id = worker_email.worker_id\n and worker_personal_info_data.source_relation = worker_email.source_relation\n left join worker_ethnicity \n on worker_personal_info_data.worker_id = worker_ethnicity.worker_id\n and worker_personal_info_data.source_relation = worker_ethnicity.source_relation\n left join worker_military\n on worker_personal_info_data.worker_id = worker_military.worker_id\n and worker_personal_info_data.source_relation = worker_military.source_relation\n)\n\nselect * \nfrom worker_personal_details\n), __dbt__cte__stg_workday__worker_position as (\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_base\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n academic_pay_setup_data_annual_work_period_end_date\n \n as \n \n academic_pay_setup_data_annual_work_period_end_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_start_date\n \n as \n \n academic_pay_setup_data_annual_work_period_start_date\n \n, \n \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n as \n \n academic_pay_setup_data_annual_work_period_work_percent_of_year\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_end_date\n \n, \n \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n as \n \n academic_pay_setup_data_disbursement_plan_period_start_date\n \n, \n \n \n business_site_summary_display_language\n \n as \n \n business_site_summary_display_language\n \n, \n \n \n business_site_summary_local\n \n as \n \n business_site_summary_local\n \n, \n \n \n business_site_summary_location\n \n as \n \n business_site_summary_location\n \n, \n \n \n business_site_summary_location_type\n \n as \n \n business_site_summary_location_type\n \n, \n \n \n business_site_summary_name\n \n as \n \n business_site_summary_name\n \n, \n \n \n business_site_summary_scheduled_weekly_hours\n \n as \n \n business_site_summary_scheduled_weekly_hours\n \n, \n \n \n business_site_summary_time_profile\n \n as \n \n business_site_summary_time_profile\n \n, \n \n \n business_title\n \n as \n \n business_title\n \n, \n \n \n critical_job\n \n as \n \n critical_job\n \n, \n \n \n default_weekly_hours\n \n as \n \n default_weekly_hours\n \n, \n \n \n difficulty_to_fill\n \n as \n \n difficulty_to_fill\n \n, \n \n \n effective_date\n \n as \n \n effective_date\n \n, \n \n \n employee_type\n \n as \n \n employee_type\n \n, \n \n \n end_date\n \n as \n \n end_date\n \n, \n \n \n end_employment_date\n \n as \n \n end_employment_date\n \n, \n \n \n exclude_from_head_count\n \n as \n \n exclude_from_head_count\n \n, \n \n \n expected_assignment_end_date\n \n as \n \n expected_assignment_end_date\n \n, \n \n \n external_employee\n \n as \n \n external_employee\n \n, \n \n \n federal_withholding_fein\n \n as \n \n federal_withholding_fein\n \n, \n \n \n frequency\n \n as \n \n frequency\n \n, \n \n \n full_time_equivalent_percentage\n \n as \n \n full_time_equivalent_percentage\n \n, \n \n \n headcount_restriction_code\n \n as \n \n headcount_restriction_code\n \n, \n \n \n home_country\n \n as \n \n home_country\n \n, \n \n \n host_country\n \n as \n \n host_country\n \n, \n \n \n international_assignment_type\n \n as \n \n international_assignment_type\n \n, \n \n \n is_primary_job\n \n as \n \n is_primary_job\n \n, \n \n \n job_exempt\n \n as \n \n job_exempt\n \n, \n \n \n job_profile_id\n \n as \n \n job_profile_id\n \n, \n \n \n management_level_code\n \n as \n \n management_level_code\n \n, \n \n \n paid_fte\n \n as \n \n paid_fte\n \n, \n \n \n pay_group\n \n as \n \n pay_group\n \n, \n \n \n pay_rate\n \n as \n \n pay_rate\n \n, \n \n \n pay_rate_type\n \n as \n \n pay_rate_type\n \n, \n \n \n pay_through_date\n \n as \n \n pay_through_date\n \n, \n \n \n payroll_entity\n \n as \n \n payroll_entity\n \n, \n \n \n payroll_file_number\n \n as \n \n payroll_file_number\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n regular_paid_equivalent_hours\n \n as \n \n regular_paid_equivalent_hours\n \n, \n \n \n scheduled_weekly_hours\n \n as \n \n scheduled_weekly_hours\n \n, \n \n \n specify_paid_fte\n \n as \n \n specify_paid_fte\n \n, \n \n \n specify_working_fte\n \n as \n \n specify_working_fte\n \n, \n \n \n start_date\n \n as \n \n start_date\n \n, \n \n \n start_international_assignment_reason\n \n as \n \n start_international_assignment_reason\n \n, \n \n \n work_hours_profile\n \n as \n \n work_hours_profile\n \n, \n \n \n work_shift\n \n as \n \n work_shift\n \n, \n \n \n work_shift_required\n \n as \n \n work_shift_required\n \n, \n \n \n work_space\n \n as \n \n work_space\n \n, \n \n \n worker_hours_profile_classification\n \n as \n \n worker_hours_profile_classification\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n working_fte\n \n as \n \n working_fte\n \n, \n \n \n working_time_frequency\n \n as \n \n working_time_frequency\n \n, \n \n \n working_time_unit\n \n as \n \n working_time_unit\n \n, \n \n \n working_time_value\n \n as \n \n working_time_value\n \n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n from base\n),\n\nfinal as (\n \n select \n source_relation,\n _fivetran_synced,\n academic_pay_setup_data_annual_work_period_end_date,\n academic_pay_setup_data_annual_work_period_start_date,\n academic_pay_setup_data_annual_work_period_work_percent_of_year,\n academic_pay_setup_data_disbursement_plan_period_end_date,\n academic_pay_setup_data_disbursement_plan_period_start_date,\n business_site_summary_display_language,\n business_site_summary_local,\n business_site_summary_location as position_location,\n business_site_summary_location_type,\n business_site_summary_name,\n business_site_summary_scheduled_weekly_hours,\n business_site_summary_time_profile,\n business_title,\n critical_job as is_critical_job,\n default_weekly_hours,\n difficulty_to_fill,\n effective_date as position_effective_date,\n employee_type,\n end_date as position_end_date,\n end_employment_date,\n exclude_from_head_count as is_exclude_from_head_count,\n expected_assignment_end_date,\n external_employee,\n federal_withholding_fein,\n frequency,\n full_time_equivalent_percentage as fte_percent,\n headcount_restriction_code,\n home_country,\n host_country,\n international_assignment_type,\n is_primary_job,\n job_exempt as is_job_exempt,\n job_profile_id,\n management_level_code,\n paid_fte,\n pay_group,\n pay_rate,\n pay_rate_type,\n pay_through_date,\n payroll_entity,\n payroll_file_number,\n position_id,\n regular_paid_equivalent_hours,\n scheduled_weekly_hours,\n specify_paid_fte as is_specify_paid_fte,\n specify_working_fte as is_specify_working_fte,\n start_date as position_start_date,\n start_international_assignment_reason,\n work_hours_profile,\n work_shift,\n work_shift_required as is_work_shift_required,\n work_space,\n worker_hours_profile_classification,\n worker_id,\n working_fte,\n working_time_frequency,\n working_time_unit,\n working_time_value\n from fields\n where now() between _fivetran_start and _fivetran_end\n)\n\nselect *\nfrom final\n), __dbt__cte__int_workday__worker_position_enriched as (\nwith worker_position_data as (\n\n select \n *,\n now() as current_date\n from __dbt__cte__stg_workday__worker_position\n),\n\nworker_position_data_enhanced as (\n\n select \n worker_id,\n source_relation,\n position_id,\n employee_type, \n business_title,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n position_location,\n management_level_code,\n job_profile_id,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_employed,\n row_number() over (partition by worker_id order by position_end_date desc) as row_number\n from worker_position_data\n), \n\nworker_position_enriched as (\n\n select\n worker_position_data_enhanced.worker_id,\n worker_position_data_enhanced.source_relation,\n worker_position_data_enhanced.position_id, \n worker_position_data_enhanced.business_title,\n worker_position_data_enhanced.job_profile_id, \n worker_position_data_enhanced.employee_type,\n worker_position_data_enhanced.position_location,\n worker_position_data_enhanced.management_level_code,\n worker_position_data_enhanced.fte_percent,\n worker_position_data_enhanced.days_employed,\n worker_position_data_enhanced.position_start_date,\n worker_position_data_enhanced.position_end_date,\n worker_position_data_enhanced.position_effective_date\n from worker_position_data_enhanced\n)\n\nselect * \nfrom worker_position_enriched\n), __dbt__cte__int_workday__worker_employee_enhanced as (\nwith int_worker_base as (\n\n select * \n from __dbt__cte__int_workday__worker_details \n),\n\nint_worker_personal_details as (\n\n select * \n from __dbt__cte__int_workday__personal_details \n),\n\n\nint_worker_position_enriched as (\n\n select * \n from __dbt__cte__int_workday__worker_position_enriched \n), \n\nworker_employee_enhanced as (\n\n select \n int_worker_base.*,\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n position_id,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_start_date,\n position_end_date,\n position_effective_date,\n days_employed,\n case when days_employed >= 365 \n then true \n else false \n end as is_employed_one_year,\n case when days_employed >= 365*5 \n then true \n else false \n end as is_employed_five_years,\n case when days_employed >= 365*10 \n then true \n else false \n end as is_employed_ten_years,\n case when days_employed >= 365*20 \n then true \n else false \n end as is_employed_twenty_years,\n case when days_employed >= 365*30 \n then true \n else false \n end as is_employed_thirty_years,\n case when days_employed >= 365 and is_user_active \n then true \n else false \n end as is_current_employee_one_year,\n case when days_employed >= 365*5 and is_user_active\n then true \n else false \n end as is_current_employee_five_years,\n case when days_employed >= 365*10 and is_user_active \n then true \n else false \n end as is_current_employee_ten_years,\n case when days_employed >= 365*20 and is_user_active \n then true \n else false \n end as is_current_employee_twenty_years,\n case when days_employed >= 365*30 and is_user_active \n then true \n else false \n end as is_current_employee_thirty_years\n from int_worker_base\n left join int_worker_personal_details \n on int_worker_base.worker_id = int_worker_personal_details.worker_id\n and int_worker_base.source_relation = int_worker_personal_details.source_relation\n left join int_worker_position_enriched\n on int_worker_base.worker_id = int_worker_position_enriched.worker_id\n and int_worker_base.source_relation = int_worker_position_enriched.source_relation\n)\n\nselect * \nfrom worker_employee_enhanced\n), employee_surrogate_key as (\n \n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_start_date as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_id,\n worker_id,\n source_relation,\n position_id,\n position_start_date,\n worker_code,\n user_id,\n universal_id,\n is_user_active,\n is_employed,\n hire_date,\n departure_date, \n days_as_worker,\n is_terminated,\n primary_termination_category,\n primary_termination_reason,\n is_regrettable_termination, \n compensation_effective_date,\n employee_compensation_frequency,\n annual_currency_summary_currency,\n annual_currency_summary_total_base_pay,\n annual_currency_summary_primary_compensation_basis,\n annual_summary_currency,\n annual_summary_total_base_pay,\n annual_summary_primary_compensation_basis,\n compensation_grade_id,\n compensation_grade_profile_id\n first_name,\n last_name,\n date_of_birth,\n gender,\n is_hispanic_or_latino,\n email_address,\n ethnicity_codes,\n military_status,\n business_title,\n job_profile_id,\n employee_type,\n position_location,\n management_level_code,\n fte_percent,\n position_end_date,\n position_effective_date,\n days_employed,\n is_employed_one_year,\n is_employed_five_years,\n is_employed_ten_years,\n is_employed_twenty_years,\n is_employed_thirty_years,\n is_current_employee_one_year,\n is_current_employee_five_years,\n is_current_employee_ten_years,\n is_current_employee_twenty_years,\n is_current_employee_thirty_years\n from __dbt__cte__int_workday__worker_employee_enhanced \n)\n\nselect * \nfrom employee_surrogate_key", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.590339Z", "completed_at": "2024-04-03T15:31:23.593907Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.594884Z", "completed_at": "2024-04-03T15:31:23.594893Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.008707284927368164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_overview_worker_id.a9f1737e97", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.587635Z", "completed_at": "2024-04-03T15:31:23.594166Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.595165Z", "completed_at": "2024-04-03T15:31:23.595169Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.009490966796875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_overview_employee_id.bc9ace9e78", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.597099Z", "completed_at": "2024-04-03T15:31:23.599799Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:23.600213Z", "completed_at": "2024-04-03T15:31:23.600218Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.003979921340942383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__employee_overview_employee_id.b01e19996c", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_overview\"\nwhere employee_id is not null\ngroup by employee_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:24.413294Z", "completed_at": "2024-04-03T15:31:24.423695Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:24.424692Z", "completed_at": "2024-04-03T15:31:24.424701Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.04080986976623535, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_history_unique_key.ae1422e8bf", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select history_unique_key\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:24.417781Z", "completed_at": "2024-04-03T15:31:24.424403Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:24.425900Z", "completed_at": "2024-04-03T15:31:24.425904Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.04031205177307129, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_organization_id.97cda6043d", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select organization_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:24.429537Z", "completed_at": "2024-04-03T15:31:24.438655Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:24.439758Z", "completed_at": "2024-04-03T15:31:24.439766Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.012901782989501953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_position_id.9676945ef5", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select position_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:24.434301Z", "completed_at": "2024-04-03T15:31:24.438983Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:24.440026Z", "completed_at": "2024-04-03T15:31:24.440029Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.01211404800415039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_stg_workday__worker_position_organization_history_worker_id.d364de4bf3", "compiled": true, "compiled_code": "\n \n \n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select worker_id\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:24.442541Z", "completed_at": "2024-04-03T15:31:24.447399Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:24.447999Z", "completed_at": "2024-04-03T15:31:24.448006Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.00662994384765625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_stg_workday__worker_position_organization_history_history_unique_key.f54a0e0398", "compiled": true, "compiled_code": "\n \n \n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n) select\n history_unique_key as unique_field,\n count(*) as n_records\n\nfrom __dbt__cte__stg_workday__worker_position_organization_history\nwhere history_unique_key is not null\ngroup by history_unique_key\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:23.526392Z", "completed_at": "2024-04-03T15:31:24.929797Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:24.930410Z", "completed_at": "2024-04-03T15:31:24.930418Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 1.547516107559204, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__employee_daily_history", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n\n\n \n \n\n \n \n\n\n\n\n\nwith spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 6973\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2005-03-01' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-03'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nemployee_history as (\n\n select * \n from \"postgres\".\"workday_integration_tests_workday\".\"int_workday__employee_history\"\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, employee_id\n order by _fivetran_start desc) as row_num \n from employee_history\n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as employee_day_id,\n cast(spine.date_day as date) as date_day,\n get_latest_daily_value.*\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:25.080703Z", "completed_at": "2024-04-03T15:31:25.106245Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:25.108717Z", "completed_at": "2024-04-03T15:31:25.108728Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.037287235260009766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__monthly_summary", "compiled": true, "compiled_code": " \n\nwith row_month_partition as (\n\n select *, \n cast(date_trunc('month', date_day) as date) as date_month,\n row_number() over (partition by employee_id, source_relation, extract(year from date_day), extract(month from date_day) order by date_day desc) AS recent_dom_row\n from \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\n),\n\nend_of_month_history as (\n \n select *,\n now() as current_date\n from row_month_partition\n where recent_dom_row = 1\n),\n\nmonths_employed as (\n\n select *,\n case when termination_date is null\n then \n ((current_date)::date - (hire_date)::date)\n \n else \n ((termination_date)::date - (hire_date)::date)\n \n end as days_as_worker,\n case when position_end_date is null\n then \n ((current_date)::date - (position_start_date)::date)\n \n else \n ((position_end_date)::date - (position_start_date)::date)\n \n end as days_as_employee\n from end_of_month_history\n),\n\nmonthly_employee_metrics as (\n\n select \n date_month,\n source_relation,\n sum(case when date_month = cast(date_trunc('month', position_effective_date) as date) then 1 else 0 end) as new_employees,\n sum(case when date_month = cast(date_trunc('month', termination_date) as date) then 1 else 0 end) as churned_employees,\n sum(case when (date_month = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_voluntary') then 1 else 0 end) as churned_voluntary_employees,\n sum(case when (date_month = cast(date_trunc('month', termination_date) as date) and lower(primary_termination_category) = 'terminate_employee_involuntary') then 1 else 0 end) as churned_involuntary_employees,\n sum(case when date_month = cast(date_trunc('month', end_employment_date) as date) then 1 else 0 end) as churned_workers\n from months_employed\n group by 1, 2\n),\n\nmonthly_active_employee_metrics as (\n\n select date_month,\n source_relation,\n count(distinct employee_id) as active_employees,\n sum(case when gender is not null and lower(gender) = 'male' then 1 else 0 end) as active_male_employees,\n sum(case when gender is not null and lower(gender) = 'female' then 1 else 0 end) as active_female_employees,\n sum(case when gender is not null then 1 else 0 end) as active_known_gender_employees,\n avg(annual_currency_summary_primary_compensation_basis) as avg_employee_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_employee_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_employee_salary_and_allowances,\n avg(days_as_employee) as avg_days_as_employee\n from months_employed\n where cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and (cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date)\n or end_employment_date is null)\n group by 1, 2\n),\n\nmonthly_active_worker_metrics as (\n \n select date_month,\n source_relation,\n count(distinct worker_id) as active_workers,\n avg(annual_currency_summary_primary_compensation_basis) as avg_worker_primary_compensation,\n avg(annual_currency_summary_total_base_pay) as avg_worker_base_pay,\n avg(annual_currency_summary_total_salary_and_allowances) as avg_worker_salary_and_allowances,\n avg(days_as_worker) as avg_days_as_worker\n from months_employed\n where (cast(date_month as date) >= cast(date_trunc('month', position_effective_date) as date)\n and cast(date_month as date) <= cast(date_trunc('month', end_employment_date) as date))\n or end_employment_date is null\n group by 1, 2\n),\n\nmonthly_summary as (\n\n select \n monthly_employee_metrics.date_month as metrics_month,\n monthly_employee_metrics.source_relation,\n monthly_employee_metrics.new_employees,\n monthly_employee_metrics.churned_employees,\n monthly_employee_metrics.churned_voluntary_employees,\n monthly_employee_metrics.churned_involuntary_employees,\n monthly_employee_metrics.churned_workers,\n monthly_active_employee_metrics.active_employees,\n monthly_active_employee_metrics.active_male_employees,\n monthly_active_employee_metrics.active_female_employees,\n monthly_active_worker_metrics.active_workers,\n monthly_active_employee_metrics.active_known_gender_employees,\n monthly_active_employee_metrics.avg_employee_primary_compensation,\n monthly_active_employee_metrics.avg_employee_base_pay,\n monthly_active_employee_metrics.avg_employee_salary_and_allowances,\n monthly_active_employee_metrics.avg_days_as_employee,\n monthly_active_worker_metrics.avg_worker_primary_compensation,\n monthly_active_worker_metrics.avg_worker_base_pay,\n monthly_active_worker_metrics.avg_worker_salary_and_allowances,\n monthly_active_worker_metrics.avg_days_as_worker\n from monthly_employee_metrics\n left join monthly_active_employee_metrics \n on monthly_employee_metrics.date_month = monthly_active_employee_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_employee_metrics.source_relation\n left join monthly_active_worker_metrics\n on monthly_employee_metrics.date_month = monthly_active_worker_metrics.date_month\n and monthly_employee_metrics.source_relation = monthly_active_worker_metrics.source_relation\n)\n\nselect *\nfrom monthly_summary", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:25.101249Z", "completed_at": "2024-04-03T15:31:25.106809Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:25.109132Z", "completed_at": "2024-04-03T15:31:25.109137Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.03477907180786133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__employee_daily_history_employee_day_id.99f5eea269", "compiled": true, "compiled_code": "\n \n \n\nselect\n employee_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is not null\ngroup by employee_day_id\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:25.097050Z", "completed_at": "2024-04-03T15:31:25.107204Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:25.109506Z", "completed_at": "2024-04-03T15:31:25.109511Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.03679513931274414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__employee_daily_history_employee_day_id.9e97637f6d", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect employee_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__employee_daily_history\"\nwhere employee_day_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:25.114327Z", "completed_at": "2024-04-03T15:31:25.122205Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:25.122955Z", "completed_at": "2024-04-03T15:31:25.122964Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.010921955108642578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__monthly_summary_metrics_month.3be01a1e58", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect metrics_month\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:25.118244Z", "completed_at": "2024-04-03T15:31:25.124115Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:25.124846Z", "completed_at": "2024-04-03T15:31:25.124850Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.012079954147338867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__monthly_summary_metrics_month.955a3b67ab", "compiled": true, "compiled_code": "\n \n \n\nselect\n metrics_month as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__monthly_summary\"\nwhere metrics_month is not null\ngroup by metrics_month\nhaving count(*) > 1\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:24.391585Z", "completed_at": "2024-04-03T15:31:25.869454Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:25.870260Z", "completed_at": "2024-04-03T15:31:25.870269Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 1.619422435760498, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.workday.workday__worker_position_org_daily_history", "compiled": true, "compiled_code": "-- depends_on: \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n\n\n \n \n\n \n \n\n\n\n\nwith __dbt__cte__stg_workday__worker_position_organization_history as (\n\n\nwith base as (\n\n select * \n from \"postgres\".\"workday_integration_tests_stg_workday\".\"stg_workday__worker_position_organization_base\"\n \n),\n\nfill_columns as (\n\n select\n \n \n \n _fivetran_active\n \n as \n \n _fivetran_active\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_start\n \n as \n \n _fivetran_start\n \n, \n \n \n _fivetran_end\n \n as \n \n _fivetran_end\n \n, \n \n \n index\n \n as \n \n index\n \n, \n \n \n position_id\n \n as \n \n position_id\n \n, \n \n \n worker_id\n \n as \n \n worker_id\n \n, \n \n \n date_of_pay_group_assignment\n \n as \n \n date_of_pay_group_assignment\n \n, \n \n \n organization_id\n \n as \n \n organization_id\n \n, \n \n \n primary_business_site\n \n as \n \n primary_business_site\n \n, \n \n \n used_in_change_organization_assignments\n \n as \n \n used_in_change_organization_assignments\n \n\n\n\n\n \n\n\n, cast('' as TEXT) as source_relation\n\n\n\n\n from base\n),\n\nfinal as (\n\n select \n md5(cast(coalesce(cast(worker_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(position_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(organization_id as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(source_relation as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(_fivetran_start as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) as history_unique_key,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n cast(_fivetran_start as timestamp) as _fivetran_start,\n cast(_fivetran_end as timestamp) as _fivetran_end,\n cast(_fivetran_start as date) as _fivetran_date, \n _fivetran_active,\n index, \n date_of_pay_group_assignment, \n primary_business_site,\n used_in_change_organization_assignments as is_used_in_change_organization_assignments\n from fill_columns\n)\n\nselect *\nfrom final\n), spine as (\n \n \n \n\n\n\n\n\nwith rawdata as (\n\n \n\n \n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n \n p0.generated_number * power(2, 0)\n + \n \n p1.generated_number * power(2, 1)\n + \n \n p2.generated_number * power(2, 2)\n + \n \n p3.generated_number * power(2, 3)\n + \n \n p4.generated_number * power(2, 4)\n + \n \n p5.generated_number * power(2, 5)\n + \n \n p6.generated_number * power(2, 6)\n + \n \n p7.generated_number * power(2, 7)\n + \n \n p8.generated_number * power(2, 8)\n + \n \n p9.generated_number * power(2, 9)\n + \n \n p10.generated_number * power(2, 10)\n + \n \n p11.generated_number * power(2, 11)\n + \n \n p12.generated_number * power(2, 12)\n \n \n + 1\n as generated_number\n\n from\n\n \n p as p0\n cross join \n \n p as p1\n cross join \n \n p as p2\n cross join \n \n p as p3\n cross join \n \n p as p4\n cross join \n \n p as p5\n cross join \n \n p as p6\n cross join \n \n p as p7\n cross join \n \n p as p8\n cross join \n \n p as p9\n cross join \n \n p as p10\n cross join \n \n p as p11\n cross join \n \n p as p12\n \n \n\n )\n\n select *\n from unioned\n where generated_number <= 6973\n order by generated_number\n\n\n\n),\n\nall_periods as (\n\n select (\n \n\n greatest(cast('2000-01-01' as date), cast('2005-03-01' as date)) + ((interval '1 day') * (row_number() over (order by 1) - 1))\n\n\n ) as date_day\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_day <= cast('2024-04-03'as date)\n\n)\n\nselect * from filtered\n\n\n),\n\nworker_position_org_history as (\n\n select * \n from __dbt__cte__stg_workday__worker_position_organization_history\n),\n\norder_daily_values as (\n\n select \n *,\n row_number() over (\n partition by _fivetran_date, history_unique_key\n order by _fivetran_start desc) as row_num \n from worker_position_org_history \n),\n\nget_latest_daily_value as (\n\n select * \n from order_daily_values\n where row_num = 1\n),\n\ndaily_history as (\n\n select \n md5(cast(coalesce(cast(spine.date_day as TEXT), '_dbt_utils_surrogate_key_null_') || '-' || coalesce(cast(get_latest_daily_value.history_unique_key as TEXT), '_dbt_utils_surrogate_key_null_') as TEXT)) \n as wpo_day_id,\n cast(spine.date_day as date) as date_day,\n worker_id,\n position_id,\n organization_id,\n source_relation,\n _fivetran_start,\n _fivetran_end,\n _fivetran_active,\n _fivetran_date,\n history_unique_key,\n index,\n date_of_pay_group_assignment,\n primary_business_site,\n is_used_in_change_organization_assignments\n from get_latest_daily_value\n join spine on get_latest_daily_value._fivetran_start <= cast(spine.date_day as timestamp)\n and get_latest_daily_value._fivetran_end >= cast(spine.date_day as timestamp)\n)\n\nselect * \nfrom daily_history", "relation_name": "\"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\""}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:26.018396Z", "completed_at": "2024-04-03T15:31:26.038788Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:26.040436Z", "completed_at": "2024-04-03T15:31:26.040445Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.03205299377441406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_organization_id.27a8cf4e9c", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect organization_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere organization_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:26.030633Z", "completed_at": "2024-04-03T15:31:26.039796Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:26.042408Z", "completed_at": "2024-04-03T15:31:26.042414Z"}], "thread_id": "Thread-4 (worker)", "execution_time": 0.03007364273071289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_worker_id.914545c0fb", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect worker_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere worker_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:26.025459Z", "completed_at": "2024-04-03T15:31:26.040118Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:26.043116Z", "completed_at": "2024-04-03T15:31:26.043120Z"}], "thread_id": "Thread-3 (worker)", "execution_time": 0.03292512893676758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_position_id.07f47bf163", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect position_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere position_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:26.034717Z", "completed_at": "2024-04-03T15:31:26.041104Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:26.044918Z", "completed_at": "2024-04-03T15:31:26.044924Z"}], "thread_id": "Thread-2 (worker)", "execution_time": 0.031016111373901367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.not_null_workday__worker_position_org_daily_history_wpo_day_id.8948c132f4", "compiled": true, "compiled_code": "\n \n \n\n\n\nselect wpo_day_id\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is null\n\n\n", "relation_name": null}, {"status": "success", "timing": [{"name": "compile", "started_at": "2024-04-03T15:31:26.047932Z", "completed_at": "2024-04-03T15:31:26.053933Z"}, {"name": "execute", "started_at": "2024-04-03T15:31:26.054642Z", "completed_at": "2024-04-03T15:31:26.054648Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 0.009395837783813477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.workday.unique_workday__worker_position_org_daily_history_wpo_day_id.f7bfe51a21", "compiled": true, "compiled_code": "\n \n \n\nselect\n wpo_day_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"workday_integration_tests_workday\".\"workday__worker_position_org_daily_history\"\nwhere wpo_day_id is not null\ngroup by wpo_day_id\nhaving count(*) > 1\n\n\n", "relation_name": null}], "elapsed_time": 17.58443522453308, "args": {"show_resource_report": false, "macro_debugging": false, "warn_error_options": {"include": [], "exclude": []}, "vars": {"employee_history_enabled": true}, "project_dir": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests", "static": false, "version_check": true, "defer": false, "log_level_file": "debug", "quiet": false, "log_level": "info", "enable_legacy_logger": false, "empty_catalog": false, "partial_parse_file_diff": true, "write_json": true, "printer_width": 80, "which": "generate", "favor_state": false, "use_colors_file": true, "log_path": "/Users/avinash.kunnath/Documents/dbt_packages/workday/dbt_workday/integration_tests/logs", "use_colors": true, "partial_parse": true, "strict_mode": false, "log_format_file": "debug", "compile": true, "log_format": "default", "select": [], "profiles_dir": "/Users/avinash.kunnath/.dbt", "print": true, "cache_selected_only": false, "populate_cache": true, "introspect": true, "exclude": [], "indirect_selection": "eager", "send_anonymous_usage_stats": true, "static_parser": true, "target": "postgres", "invocation_command": "dbt docs generate -t postgres --vars {employee_history_enabled: true}", "log_file_max_bytes": 10485760}} \ No newline at end of file diff --git a/models/workday_history/workday__employee_daily_history.sql b/models/workday_history/workday__employee_daily_history.sql index 654bc9e..02b10d0 100644 --- a/models/workday_history/workday__employee_daily_history.sql +++ b/models/workday_history/workday__employee_daily_history.sql @@ -26,8 +26,8 @@ {# If only compiling, creates range going back 1 year #} {% else %} - {% set start_date = dbt.dateadd("year", "-2", "current_date") %} -- Arbitrarily picked. Choose a more appropriate default if necessary. - {% set last_date = dbt.dateadd("year", "-1", "current_date") %} + {% set start_date = dbt.dateadd("year", "-1", "current_date") %} -- One year in the past for first date + {% set last_date = dbt.dateadd("day", "-1", "current_date") %} -- Yesterday as last date {% endif %} diff --git a/models/workday_history/workday__worker_position_org_daily_history.sql b/models/workday_history/workday__worker_position_org_daily_history.sql index f85d6fe..56d96e2 100644 --- a/models/workday_history/workday__worker_position_org_daily_history.sql +++ b/models/workday_history/workday__worker_position_org_daily_history.sql @@ -24,9 +24,9 @@ {% set last_date = run_query(first_last_date_query).columns[1][0]|string %} {# If only compiling, creates range going back 1 year #} -{% else %} - {% set start_date = dbt.dateadd("year", "-2", "current_date") %} -- Arbitrarily picked. Choose a more appropriate default if necessary. - {% set last_date = dbt.dateadd("year", "-1", "current_date") %} +{% else %} + {% set start_date = dbt.dateadd("year", "-1", "current_date") %} -- One year in the past for first date + {% set last_date = dbt.dateadd("day", "-1", "current_date") %} -- Yesterday as last date {% endif %} with spine as (